Query Permission

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

Based on the permission ID, query the details of the specified permission.

API address

GET: /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.
resultPermissionInfoResThe returned result.

Description of result

Parameter nameTypeDescription
permission_idLongThe ID of the specified permission.
nameStringThe name of the specified permission.
descriptionStringThe description of the specified permission.
gmt_createLongThe creation time.

Request example

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

Return example

{
    "tid": "f25f58860b5111ee8144726abb6617ad",
    "result": {
        "gmt_create": 1686798666,
        "description": "desc",
        "permission_id": 5002,
        "name": "name"
    },
    "t": 1686815708201,
    "success": true
}

Error code

For more information, see error code.