云服务器内容精选
-
请求示例 HTTP的示例 POST /controller/campus/v1/performanceservice/datamonitor/switch HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AC CES S-TOKEN: x-yyyyyy [ { "tenantId": "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b", "configTenantType": [ "ap", "lsw", "fw", "ar" ], "configObjectType": 0, "sites": [ { "siteId": "00000000-0000-0000-0000-000000000001", "configType": [ "ap", "lsw", "fw", "ar" ] } ], "configObjectInfo": { "switchData": { "1001": true, "1002": false } }, "logData": [ 100, 200 ], "extDevices": [ { "switchData": { "1001": true, "1002": false }, "logData": [ 100, 200 ], "deviceIds": [ "00000000-0000-0000-0000-000000000001" ] } ] } ]
-
响应参数 返回状态码为200:接口调用成功,响应体参考MonitorResponse。 表6 MonitorResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~256个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "Success" 返回状态码为400:接口更新失败后的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。
-
响应示例 返回状态码为200:接口调用成功,响应体参考MonitorResponse。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "Success" } 返回状态码为400:接口更新失败后的状态返回码。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:接口发生内部错误后的状态返回码。 HTTP/1.1 500 Internal Server Error Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
-
响应示例 返回状态码为200:接口更新成功后的状态返回码。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "Success" } 返回状态码为400:接口更新失败后的状态返回码。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:接口发生内部错误后的状态返回码。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
-
请求示例 HTTP的示例 POST /controller/campus/v1/performanceservice/datamonitor/switch HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy [ { "tenantId": "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b", "configTenantType": [ "ap", "lsw", "fw", "ar" ], "configObjectType": 0, "sites": [ { "siteId": "00000000-0000-0000-0000-000000000001", "configType": [ "ap", "lsw", "fw", "ar" ] } ], "configObjectInfo": { "switchData": { "1001": true, "1002": false } }, "logData": [ 100, 200 ], "extDevices": [ { "switchData": { "1001": true, "1002": false }, "logData": [ 100, 200 ], "deviceIds": [ "00000000-0000-0000-0000-000000000001" ] } ] } ]
-
响应参数 返回状态码为200:接口更新成功后的状态返回码。 表6 MonitorResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~256个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "Success" 返回状态码为400:接口更新失败后的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。