Last Updated on : 2023-07-06 09:13:21download
Check whether a role has the specified permissions. The role ID and permission ID are required.
POST: /v1.0/iot-02/roles/{role_code}/actions/permission-valid
| Parameter name | Type | IN | Required | Description | 
|---|---|---|---|---|
| role_code | String | uri | true | The identifier of a specified role. | 
Description of body
| Parameter name | Type | IN | Required | Description | 
|---|---|---|---|---|
| permission_code | String | true | The identifier of a permission. | 
| Parameter name | Type | Description | 
|---|---|---|
| result | Boolean | Indicates whether the operation is successful. Valid values: 
 | 
POST: /v1.0/iot-02/roles/123/actions/permission-valid
{
  "permission_code": "permissionCodeXyYG"
}
{
    "tid": "524bc6be948811ec82481264f1be8bd1",
    "result": true,
    "t": 1645607375967,
    "success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback