Use the interface to log in. The cookie will carry the Session ID after logging in successfully. For example, Cookie:mwcloud-sid=xxx;mwcloud-uid=xxx.


URL ip:[port]/sc_cloud/login
Data Format Request: Content-Type: multipart/form-data
Response: Content-Type: application/json

Request Parameters

Request Header
Parameter Description
Content-Type Value: 'multipart/form-data;'
Request Body
Parameter Description
id Username
pass MD5 encrypted user password

Request Example

POST /sc_cloud/login HTTP/1.1
Content-Length: 261
Accept: application/json, text/plain, */*
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryGXBvCk8Vzymt6WUB
Content-Disposition: form-data; name="id"

Content-Disposition: form-data; name="pass"


Response Cookies

Parameter Description
mwcloud-sid A string value that is used to uniquely identify user logged-in.
mwcloud-uid Current logged-in username.

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
id User ID.
name User name.
result Result code. The options are as follows:
  • 0: success.
  • -1: password incorrect.
  • -14: user does not exist.
  • Other values. For details about the result codes, please refer to API Status.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 85

results matching ""

    No results matching ""

    results matching ""

      No results matching ""