/api/catalog/list

Use this interface to obtain the list of device groups.

Group viewing permissions is required.

Prototype

Protocol HTTP/HTTPS GET
URL ip[:port]/api/catalog/list
Content-Type Response: Content-Type: application/json

Request URL Parameters

Request Example

GET /api/catalog/list HTTP/1.1
Accept: application/json, text/plain, */*
Content-Length: xx
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code
total Total number.
list List of returned Device Group.
Device Group
Parameter Description
id Group ID. 0 represents a global device, not belonging to any group.
name Group name.
is-inherit Whether to inherit the visibility configuration. Boolean value, if true, indicates that the mask configuration for user groups and users is inherited.
group-mask The set of visible user group masks. 0xFFFFFFFF(4294967295) indicates that it is visible to all user groups.
usr-mask The set of visible user group masks.
create-time Device group creation time.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
    "list": [
        {
            "create-time": 1694053658821,
            "group-mask": 1,
            "id": 30012,
            "is-inherit": 1,
            "name": "11",
            "usr-mask": 0
        },
        {
            "create-time": 1689673549462,
            "group-mask": 1,
            "id": 30011,
            "is-inherit": 0,
            "name": "dds",
            "usr-mask": 0
        },
        {
            "create-time": 1685523384343,
            "group-mask": 1,
            "id": 30009,
            "is-inherit": 1,
            "name": "          6666s                 ",
            "usr-mask": 0
        }
    ],
    "result": 0,
    "total": 3
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""