Last Updated on : 2023-07-06 09:12:33download
Query the permission information on pages.
POST: /v1.0/iot-03/idaas/spaces/{space_id}/page-permission
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| space_id | String | uri | true | The ID of a specified space. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| permission_name | String | false | The name of a specified permission. | |
| role_name | String | false | The name of a specific role. | |
| role_code | String | false | The identifier of a specified role. | |
| page_number | Integer | true | The current page number. | |
| page_size | Integer | true | The number of items per page. | |
| gmt_modified_asc | Boolean | false | Indicates whether to display the items in the descending order of the modification time. |
| Parameter name | Type | Description |
|---|---|---|
| result | Page |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| total_count | Integer | The total number of items that are found. |
| total_pages | Integer | The total number of pages. |
| page_number | Integer | The current page number. |
| page_size | Integer | The number of items per page. |
| results | IdaasUserPageResultDTO | The list of results. |
Description of results
| Parameter name | Type | Description |
|---|---|---|
| space_id | String | The ID of a specified space. |
| permission_code | String | The identifier of a permission. |
| name | String | The name of a specified permission. |
| remark | String | The remarks. |
| order | Integer | The order that the items are displayed. |
| type | Integer | The type of specified permission. Valid values: 1: API. 2: menu. 3: button. 4: data. 5: combination. |
| gmt_modified | Long | The time when it is modified. |
| gmt_create | Long | The time when it is created. |
POST: /v1.0/iot-03/idaas/spaces/1400762304747802670/page-permission
{ "role_name": "Role name", "permission_name": "Permission name", "page_number": 1, "page_size": 100, }
{
"result": {
"total_count": 1,
"total_pages": 1,
"page_number": 1,
"results": [
{
"gmt_create": "1622808344941",
"remark": "updateRemark1",
"gmt_modified": "1622812407709",
"permission_code": "permissionCode",
"type": 2,
"name": "updateName",
"space_id": "1400762304747802670",
"order": 2
}
],
"page_size": 100
},
"t": 1622883484704,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback