Query Role Information

Last Updated on : 2023-06-15 05:02:19

Query the information about a specified role based on the role code.

API address

GET: /v1.0/iot-02/roles/{role_code}

Request parameter

Parameter nameTypeINRequiredDescription
role_codeStringuritrueThe identifier of a specified role.

Return parameter

Parameter nameTypeDescription
resultRoleResponseThe returned result of role information.

Description of result

Parameter nameTypeDescription
role_nameStringThe name of a specified role.
role_codeStringThe identifier of a specified role.
remarkStringThe remarks.

Request example

GET: /v1.0/iot-02/roles/roleCodegcnI

Return example

{
    "tid": "4f5adb1b948811ec82481264f1be8bd1",
    "result": {
        "role_code": "roleCodegcnI",
        "remark": "",
        "role_name": "role1"
    },
    "t": 1645607371010,
    "success": true
}

Error code

For more information, see error code.