当前接口只支持创建授信实体为金山云账号的角色
参数名称 | 类型 | 必填 | 描述 |
---|
Action | String | 是 | 公共参数,本接口取值:CreateRole。 |
Version | String | 是 | 公共参数,本接口取值:2015-11-01。 |
RoleName | String | 是 | 角色名称 |
TrustAccounts | String | 是 | 信任账号列表(多个账号之间使用半角逗号(,)分隔,最多可以有20个账号) |
Description | String | 否 | 角色描述 |
参数名称 | 类型 | 描述 |
---|
CreateRoleResult | Object | |
Role | Object | |
Path | String | 示例值:/ |
Krn | String | 示例值:krn:ksc:iam::2000143391:role/test_role |
RoleName | String | 示例值:test_role |
Description | String | |
TrustAccounts | String | 示例值:2000143391 |
CreateDate | String | 示例值:2021-11-19T09:20:45Z |
RoleId | String | 示例值:H0SMWGpFSHi6mTfPaplUzQ |
RequestId | String | 示例值:2f4e9467-32d0-4d60-9b6c-cbbb13ecf0f9 |
JSON格式
XML格式
a
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码
错误码 | 错误信息 | Http状态码 | 描述 |
---|
MissingParameter | A required parameter for the specified action is not supplied. | 400 | 忘记输入参数,具体参数名在错误消息中说明(RoleName) |
InvalidParameterValue | An invalid or out-of-range value was supplied for the input parameter. | 400 | 参数格式/取值范围不对,具体参数名在错误消息中说明(RoleName) |
LimitExceeded | The request was rejected because it attempted to create resources beyond the current Ksyun account limits | 409 | 资源数量超过限制,具体限制在错误消息中说明 |
EntityAlreadyExists | The request was rejected because it attempted to create a resource that already exists | 409 | 资源已经存在,具体实体名称在错误消息中说明 |
纯净模式