set-web接口
云平台证书管理接口。
仅管理员有权限。
接口原型
    | 协议 | 
    HTTP/HTTPS POST | 
    | URL | 
    ip[:port]/sc_cloud/settings/set-web | 
    | 数据格式 | 
    请求消息:Content-Type: application/json 响应消息:Content-Type: application/json | 
请求Cookies
| 名称 | 
描述 | 
| mwcloud-sid | 
用于标识当前登录的字符串 | 
| mwcloud-uid | 
当前登录用户名 | 
Request Body
| 参数 | 
描述 | 
| is-http | 
是否允许 HTTP 协议访问云平台。1:是,0:否。 | 
| http-port | 
HTTP 端口号。 | 
| is-https | 
是否允许 HTTPS 协议访问云平台。1:是,0:否。 | 
| https-port | 
HTTPS 端口号。 | 
请求示例
POST /sc_cloud/settings/set-web HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: 58
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
  "is-http": 1,
  "http-port": 80,
  "is-https": 1,
  "https-port": 443
}
响应参数
| 参数 | 
描述 | 
| Content-Type | 
取值为:'application/json; charset=UTF-8' | 
Response Body
| 参数 | 
描述 | 
| result | 
返回码。 | 
| method | 
方法名:set-web。 | 
响应示例
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 31
{
  "method": "set-web",
  "result": 0
}