Delete Permission

Last Updated on : 2023-10-09 08:07:07download

Based on the permission ID, delete the specified permission.

API address

DELETE: /v2.0/cloud/iam/permission/{permission_id}

Request parameter

Parameter nameTypeINRequiredDescription
permission_idLonguritrueThe ID of the specified permission.

Return parameter

Parameter nameTypeDescription
successBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
error_codeStringThe error code. For more information, see the error codes.
error_msgStringThe message that is returned if the request fails. It is empty if the request is successful.
resultObjectThe returned result. Valid values:
  • true: Deleted successfully.
  • false: Failed to delete it.

Request example

DELETE: /v2.0/cloud/iam/permission/1

Return example

{
    "tid": "44b298320b2a11eeae100efb7ec85579",
    "result": true,
    "t": 1686798666453,
    "success": true
}

Error code

For more information, see error code.