set-catalog-secu
Use the interface to configure security policy settings for groups.
Only available for users with administrative rights.
Prototype
Protocol |
HTTP/HTTPS POST |
URL |
ip[:port]/sc_cloud/devcatalog/set-catalog-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 |
id |
Device group ID. |
param-int2 |
Constant value: 0. |
param-int |
Whether the group is available to 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 username array.
Request Example
POST /sc_cloud/devcatalog/set-catalog-secu HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: 63
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
"id": 1,
"param-int2": 0,
"param-int": 0,
// Only available to "Admin" and "Test" users
"params": [
"Admin",
"Test"
]
}
Response Parameters
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-usercatalog |
Response Example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 39
Connection: keep-alive
{
"method": "set-usercatalog",
"result": 0
}