华为云UCS-更新权限策略:请求参数

时间:2024-07-01 15:10:48

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

身份认证信息

最小长度:1

最大长度:16384

表3 请求Body参数

参数

是否必选

参数类型

描述

spec

RuleSpec object

spec是集合类的元素类型,您对需要管理的对象进行详细描述的主体部分都在spec中给出。U CS 通过spec的描述来创建或更新对象。

表4 RuleSpec

参数

是否必选

参数类型

描述

iamuserids

Array of strings

权限策略关联的 IAM 用户信息

type

String

权限策略类型,只允许四种类型:readonly/develop/admin/custom

contents

Array of Content objects

权限策略内容

description

String

权限策略描述信息

最小长度:0

最大长度:255

表5 Content

参数

是否必选

参数类型

描述

verbs

Array of strings

动作列表

resources

Array of strings

资源列表

support.huaweicloud.com/api-ucs/UpdateRule.html