云服务器内容精选

  • 请求示例 HTTP的示例 { "compareDto": [ { "objectId": "02fb5ed9-3ae4-4563-9973-34cabbc628b6", "objectType": "siteTemplate", "configId": "9b61f430dd784affbc2fad92fcbc53a1", "compareType": 0 }, { "objectId": "c3bccf76-ebb9-4edd-b84d-3482981c2745", "objectType": "siteTemplate", "configId": "41eadc1925114523bc56095cf40cdfb9", "compareType": 1 } ] }
  • 响应示例 返回状态码为200:操作成功。 { "errcode": "0", "errmsg": "", "data": [ { "compareType": 0, "objectId": "02fb5ed9-3ae4-4563-9973-34cabbc628b6", "configId": "9b61f430dd784affbc2fad92fcbc53a1", "configValues": [ { "configKey": "ap.basic.config", "parentConfigKey": "", "configName": "基本配置", "strValue": null, "boolValue": null, "listValue": null, "valueType": null, "isDiff": null }, { "configKey": "ap.ssid.name", "parentConfigKey": "ap.basic.config", "configName": "SSID名称", "strValue": "ssd1", "boolValue": null, "listValue": null, "valueType": "STRING", "isDiff": null } ] } ] } 返回状态码为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
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 input 是 REFERENCE 详细请参见表3。 查询参数 - 表3 CompareConfigDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 compareDto 否 ARRAY_REFERENCE 1-6个列表项,详细请参见表4。 特性比较值 - 表4 CompareConfigObj对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 objectId 是 string 36个字符。 - 对象id "fbde1c5d-5b94-49e3-a912-48641015e45c" objectType 是 string 1~20个字符。满足正则表达deviceGroup|siteTemplate。 - 对象类型 "deviceGroup" configId 否 string 0~64个字符。 - 对于列表型的配置需要比较具体的某条特性通过configId确认 "fbde1c5d-5b94-49e3-a912-48641015e45c" compareType 是 int32 [0-1] - 比较类型0表示基准,1表示非基准 0
  • 请求示例 HTTP的示例 { "compareDto": [ { "objectId": "02fb5ed9-3ae4-4563-9973-34cabbc628b6", "objectType": "siteTemplate", "configId": "9b61f430dd784affbc2fad92fcbc53a1", } ] }
  • 响应示例 返回状态码为200:操作成功。 { "errcode": "0", "errmsg": "", "data": [ { "compareType": 0, "objectId": "02fb5ed9-3ae4-4563-9973-34cabbc628b6", "configId": "9b61f430dd784affbc2fad92fcbc53a1", "configValues": [ { "attributeName":"" "configKey": "ap.basic.config", "parentConfigKey": "", "configName": "基本配置", "strValue": null, "boolValue": null, "listValue": null, "valueType": null, "isDiff": null }, { "attributeName":"name" "configKey": "ap.ssid.name", "parentConfigKey": "ap.basic.config", "configName": "SSID名称", "strValue": "ssd1", "boolValue": null, "listValue": null, "valueType": "STRING", "isDiff": null } ] }, { "compareType": 1, "objectId": "45fb5ed9-3ae4-4563-9973-34cabbc629b6", "configId": "9b61f430dd784affbc2fad92fcbc53a1", "configValues": [ { "attributeName":"" "configKey": "ap.basic.config", "parentConfigKey": "", "configName": "基本配置", "strValue": null, "boolValue": null, "listValue": null, "valueType": null, "isDiff": null }, { "attributeName":"name" "configKey": "ap.ssid.name", "parentConfigKey": "ap.basic.config", "configName": "SSID名称", "strValue": "ssd1", "boolValue": null, "listValue": null, "valueType": "STRING", "isDiff": null } ] } ] } 返回状态码为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