全部产品
访问控制

DeletePolicy

更新时间:2017-06-07 13:26:11   分享:   

接口描述

 删除指定的授权策略

请求参数

Action

  • 类型:String
  • 必须:是
  • 描述:系统规定参数,取值:DeletePolicy

PolicyName

  • 类型:String
  • 必须:是
  • 描述:指定授权策略名称

返回参数

  只有公共返回参数,详见公共返回参数

需要的权限

Action

ram:DeletePolicy

Resource

acs:ram:*:${AccountId}:policy/${PolicyName}

错误信息

InvalidParameter.PolicyName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - "PolicyNam" contains invalid chars.
InvalidParameter.PolicyName.Length
  • HTTP Status:400
  • Error Message:The parameter - "PolicyName" beyond the length limit.
EntityNotExist.Policy
  • HTTP Status:404
  • Error Message:The policy does not exist.
DeleteConflict.Policy.User
  • HTTP Status:409
  • Error Message:The policy CAN NOT been attached to any user while deleting the policy.
DeleteConflict.Policy.Group
  • HTTP Status:409
  • Error Message:The policy CAN NOT been attached to any group while deleting the policy.
DeleteConflict.Policy.Version
  • HTTP Status:409
  • Error Message:The policy CAN NOT has any version except the defaul version.

操作示例

请求示例

https://ram.aliyuncs.com/?Action=DeletePolicy
&PolicyName=OSS-Administrator
&<公共请求参数>

返回示例

XML格式

<DeletePolicyResponse>
    <RequestId>898FAB24-7509-43EE-A287-086FE4C44394</RequestId>
</DeletePolicyResponse>

JSON格式

{
    "RequestId": "898FAB24-7509-43EE-A287-086FE4C44394"
}
本文导读目录
本文导读目录
以上内容是否对您有帮助?