Use the interface to add a new account to Cloud.

Only available for users with administrative rights.


URL ip[:port]/sc_cloud/user/add
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
name User name.
passwd MD5 encrypted password.

Request Example

POST /sc_cloud/user/add HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: 92
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
  "name": "guest",
  "passwd": "c4ca4238a0b923820dcc509a6f75849b"

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.
id User ID.
method add-user

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 54
  "result": 0,
  "id": "5",
  "method": "add-user"

results matching ""

    No results matching ""

    results matching ""

      No results matching ""