/api/device/global/set

Use this interface to set device global default security configuration.

System configuration editing permissions are required.

Prototype

Protocol HTTP/HTTPS POST
URL ip[:port]/api/device/global/set
Content-Type Request: Content-Type: application/json
Response: Content-Type: application/json

Request Cookies

Parameter Description
mwcloud-sid A string that is used to identify current logged-in user.
mwcloud-uid Current logged-in username.
Request Body
Parameter Description
security Refer to Device Global Default Security Configuration.
Device Global Default Security Configuration
Parameter Description
group-mask Visible user group mask set, when selecting visible to all groups, set this value to 0xFFFFFFFF(4294967295).
usr-mask The set of visible user group masks.

Request Example

POST /api/device/global/set HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: xx
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
    "security": {
        "group-mask": 7,
        "usr-mask": 0
    }
}

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code

Response Example

HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
content-length: xx
{
  "result": 0
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""