閱讀733 返回首頁    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文檔_訪問控製-阿裏雲