阅读733 返回首页    go 阿里云 go 技术社区[云栖]


DeletePolicy__授权策略管理接口_RAM API文档_访问控制-阿里云

接口描述

 删除指定的授权策略

请求参数

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"
}

最后更新:2016-11-23 17:16:05

  上一篇:go GetPolicy__授权策略管理接口_RAM API文档_访问控制-阿里云
  下一篇:go ListPolicies__授权策略管理接口_RAM API文档_访问控制-阿里云