Query Permission Details

Last Updated on : 2023-07-06 09:12:09download

Query the details of a specified permission.

API address

GET: /v1.0/iot-03/idaas/spaces/{space_id}/permissions/{permission_code}

Request parameter

Parameter nameTypeINRequiredDescription
space_idStringuritrueThe ID of a specified space.
permission_codeStringuritrueThe identifier of a specified permission.

Return parameter

Parameter nameTypeDescription
resultIdaasPermissionInsertDTO

Description of result

Parameter nameTypeDescription
permission_codeStringThe identifier of a specified permission.
nameStringThe name of a specified permission.
typeIntegerThe type of specified permission. 1: API. 2: menu. 3: button. 4: data. 5: combination.
parent_codeStringThe identifier of a parent permission.
orderIntegerThe displayed sequence.
remarkStringThe remarks.
gmt_createStringThe time when it is created.
gmt_modifiedStringThe time when it is modified.

Request example

GET: /v1.0/iot-03/idaas/spaces/1400335346549391440/permissions/6002

Return example

{
    "code": 200,
    "data": {
        "remark": "remark",
        "type": 1,
        "name": "name",
        "order": 2
    },
    "message": "OK",
    "success": true
}

Error code

For more information, see error code.