Query Authorized User List

Last Updated on : 2023-06-20 15:22:31download

Query a list of authorized users under a specified asset.

API address

GET: /v1.0/iot-03/{asset_id}/authorized_users

Request parameter

Parameter nameTypeINRequiredDescription
asset_idStringuritrueThe asset ID.
page_noIntegerqueryfalseThe current page number.
page_sizeIntegerqueryfalseThe number of items returned on each page. The value range is 0 to 20.

Return parameter

Parameter nameTypeDescription
resultPageResultThe returned result.

Description of result

Parameter nameTypeDescription
page_noIntegerThe current page number.
page_sizeIntegerThe number of items returned on each page.
dataListThe list of data.
totalIntegerThe total number of items to be returned.

Description of data

Parameter nameTypeDescription
uidStringThe user ID.
user_accountStringThe user account.
country_codeStringThe country or region code.

Request example

GET: /v1.0/iot-03/**/authorized_users?pageNo=1&pageSize=10

Return example

{
    "result": {
        "data": [
            {
                "country_code": "86",
                "uid": "bay1****11",
                "user_account": "****"
            }
        ],
        "page_no": 1,
        "total": 1,
        "page_size": 1
    },
    "t": 1649389215548,
    "success": true
}

Error code

For more information, see error code.