set-dev-secu

Use the interface to set security interface for devices.

Only available for users with administrative rights.

Prototype

Protocol HTTP/HTTPS POST
URL ip[:port]/sc_cloud/registry/set-dev-secu
Data Format Request: Content-Type: application/json
Response: Content-Type: application/json

Request Cookies

Parameter Description
mwcloud-sid A string value that is used to uniquely identify user logged-in.
mwcloud-uid Current logged-in username.
Request Body
Parameter Description
sn Array of Device SN.
param-int Whether the device is available for all users. 0: no; 1: yes.
params User list when param-int = 0.
params
  • When param-int = 1, params are [""].
  • When param-int = 0, params are array of the specified usename.

Request Example

POST /sc_cloud/registry/set-dev-secu HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: 64
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
  "sn": [
    "A302190930002"
  ],
  "param-int": 0,
   // Only available for "Admin" and "Test" users
  "params": [
    "Admin",
    "Test"
  ]
}

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code. The options are as follows:
  • 0: success.
  • Other values. For details about the result codes, please refer to API Status.
method set-dev-secu

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 36
Connection: keep-alive
{
  "method": "set-dev-secu",
  "result": 0
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""