Query Role Information

Last Updated on : 2023-07-06 09:11:56download

Query the information about a specified role.

API address

GET: /v1.0/iot-03/idaas/spaces/{space_id}/roles/{role_code}

Request parameter

Parameter nameTypeINRequiredDescription
space_idStringuritrueThe ID of a specified space.
role_codeStringuritrueThe identifier of a specified role.

Return parameter

Parameter nameTypeDescription
resultIdaasRoleDTO

Description of result

Parameter nameTypeDescription
role_codeStringThe identifier of a specified role.
role_nameStringThe name of a specific role.
remarkStringThe remarks.
space_idStringThe ID of a specified space.

Request example

GET: /v1.0/iot-03/idaas/spaces/1400762304747802670/roles/wujunCode

Return example

{
    "result": {
        "role_code": "wujunCode",
        "remark": "Remarks",
        "role_name": "Role name",
        "space_id": "1400762304747802670"
    },
    "t": 1622882143131,
    "success": true
}

Error code

For more information, see error code.