参数名称 | 类型 | 必填 | 描述 |
---|
Action | String | 是 | 公共参数,本接口取值:CreatePolicyVersion。 |
Version | String | 是 | 公共参数,本接口取值:2015-11-01。 |
PolicyKrn | String | 是 | 待创建新版本的策略的唯一标识 |
PolicyDocument | String | 是 | 待创建新策略版本的策略文档内容 |
SetAsDefault | String | 否 | 可选参数,用于设置是否将新创建的策略版本指定为默认策略版本 |
PolicyStruct | String | 否 |
参数名称 | 类型 | 描述 |
---|
CreatePolicyVersionResult | Object | |
PolicyVersion | Object | |
IsDefaultVersion | String | 是否默认策略版本 示例值:true |
VersionId | String | 策略版本号 示例值:v3 |
CreateDate | String | 创建时间 示例值:2021-11-18T09:53:56Z |
RequestId | String | 示例值:5558a81f-fa73-4760-a033-5fa48eb49a72 |
JSON格式
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码
错误码 | 错误信息 | Http状态码 | 描述 |
---|
InvalidParameterValue | An value must be supplied for the input parameter %s. | 400 | 输入参数%s的值不能为空,具体参数名在%s说明 |
InvalidParameterValue | An invalid or out-of-range value was supplied for the input parameter %s. | 400 | 输入参数 %s的值无效、不合法或者超出范围,具体参数名在%s说明 |
PolicyVersionLimitExceeded | The request was rejected because it attempted to create policy version beyond the current KSC account limits. | 409 | 请求被拒绝,因其创建的策略版本数量超过当前账户限制(PolicyVersion数量限制为5) |
PolicyNoSuchEntity | The request was rejected because it referenced ‘Policy’ that does not exist. | 404 | 请求被拒绝,因其引用的“策略”不存在 |
PolicyDocumentNotJsonFormat | The ‘PolicyDocument’ is not json format. | 400 | 策略文档不是Json格式 |
PolicyDocumentInvalidVersion | The ‘Verion’ in ‘PolicyDocument’ is invalid. | 400 | 策略文档中的Version元素无效 |
PolicyDocumentInvalidStatement | The ‘Statement’ in ‘PolicyDocument’ is invalid. | 400 | 策略文档中的Statement元素无效 |
PolicyDocumentInvalidEffect | The ‘Effect’ in ‘PolicyDocument’ is invalid. | 400 | 策略文档中的Effect元素无效 |
PolicyDocumentInvalidResource | The ‘Resource’ in ‘PolicyDocument’ is invalid. | 400 | 策略文档中的Resource元素无效 |
PolicyDocumentInvalidAction | The ‘Action’ in ‘PolicyDocument’ is invalid. | 400 | 策略文档中的Action元素无效 |
纯净模式