Last Updated on : 2023-07-06 09:10:24download
Query the permission set based on the role identifier set.
POST: /v1.0/iot-03/idaas/spaces/{space_id}/get-batch-role-permission
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
space_id | String | query | true | The ID of a specified space. |
Parameter name | Type | Description |
---|---|---|
result | List |
Description of result
Parameter name | Type | Description |
---|---|---|
role_code | String | The identifier of a specified role. |
permission_list | List | The permission set. |
Description of permission_list
Parameter name | Type | Description |
---|---|---|
permission_code | String | The identifier of a specified permission. |
name | String | The name of a specified permission. |
type | Integer | The type of specified permission. 1 : API. 2 : menu. 3 : button. 4 : data. 5 : combination. |
parent_code | String | The identifier of a parent permission. |
order | Integer | The order that the items are displayed. |
remark | String | The remarks. |
space_id | String | The ID of a specified space. |
POST: /v1.0/iot-03/idaas/spaces/8/get-batch-role-permission
{
"roleCode_list": [
"Role identifier",
"Role identifier 2"
]
}
{
"msg": "",
"data": [
{
"role_code": "Role code",
"permission_list": [
{
"remark": "The button to confirm an order.",
"permission_code": "commit",
"type": 1,
"name": "Confirm 1",
"parent_code": "parentCode1",
"space_id": 123,
"order": "1"
},
{
"remark": "The button to confirm an order.",
"permission_code": "commit",
"type": 1,
"name": "Confirm 2",
"parent_code": "parentCode2",
"space_id": "123",
"order": "1"
}
]
},
{
"role_code": "Role identifier 2",
"permission_list": [
{
"remark": "The button to confirm an order.",
"permission_code": "commit",
"type": 1,
"name": "Confirm 3",
"parent_code": "parentCode3",
"space_id": 123,
"order": "1"
},
{
"remark": "The button to confirm an order.",
"permission_code": "commit",
"type": 1,
"name": "Confirm 4",
"parent_code": "parentCode4",
"space_id": "123",
"order": "1"
}
]
}
],
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback