云服务器内容精选

  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/policy/traffic/dynamic/qos/00000000-0000-0000-0000-000000000000 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
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryDynamicQosPolicyResponse。 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" : "", "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "name" : "qos1", "direction" : "Outbound", "peerSiteNum" : 1, "ruleNum" : 1, "adaptiveQosEnable" : false } ] } 返回状态码为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/sdwan/policy/traffic/dynamic/qos/00000000-0000-0000-0000-000000000000 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 { "id" : "00000000-0000-0000-0000-000000000000", "name" : "qos1", "peerSites" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "templateName", "bandwidth" : 10 } ], "dynamicQosRules" : [ { "qosRuleId" : "00000000-0000-0000-0000-000000000000", "qosClassificationId" : "00000000-0000-0000-0000-000000000000", "qosClassificationName" : "qosClassificationName", "qosProfileId" : "00000000-0000-0000-0000-000000000000", "qosProfileName" : "templateName", "qosPriority" : 1 } ], "adaptiveQosEnable" : false, "adaptiveQosInfo" : { "period" : 10, "linkBandwidthLowerThreshold" : 1, "appBandwidthLowerThreshold" : 1, "packetLossThreshold" : 1 } }
  • 响应示例 返回状态码为201:创建成功,响应体参考DynamicQosPolicyResponse。 HTTP/1.1 201 Created 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" : "", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "name" : "qos1", "peerSites" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "templateName", "bandwidth" : 10 } ], "dynamicQosRules" : [ { "qosRuleId" : "00000000-0000-0000-0000-000000000000", "qosClassificationId" : "00000000-0000-0000-0000-000000000000", "qosClassificationName" : "qosClassificationName", "qosProfileId" : "00000000-0000-0000-0000-000000000000", "qosProfileName" : "templateName", "qosPriority" : 1 } ], "adaptiveQosEnable" : false, "adaptiveQosInfo" : { "period" : 10, "linkBandwidthLowerThreshold" : 1, "appBandwidthLowerThreshold" : 1, "packetLossThreshold" : 1 } } } 返回状态码为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
  • 响应示例 返回状态码为200:删除成功,响应体参考DeleteDynamicQosResponse。 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" : [ { "policyId" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy" } ], "fail" : [ { "errcode" : "0", "errmsg" : "", "policyId" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy" } ] } 返回状态码为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
  • 响应参数 返回状态码为200:删除成功,响应体参考DeleteDynamicQosResponse。 表5 DeleteDynamicQosResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" success ARRAY_REFERENCE 0-16个列表项,详细请参见表6。 成功的QOS模板信息列表。 - fail ARRAY_REFERENCE 0-16个列表项,详细请参见表7。 失败的QOS模板信息列表。 - 表6 DeleteDynamicQosPolicyDetail对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 policyId uuid 0~64个字符。 - 动态QoS策略id。 "00000000-0000-0000-0000-000000000000" policyName string 0~64个字符。 - 动态QoS策略Name。 "policy" 表7 FailDeleteDynamicQosPolicy对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" policyId uuid 0~64个字符。 - 动态QoS策略id。 "00000000-0000-0000-0000-000000000000" policyName string 0~64个字符。 - 动态QoS策略Name。 "policy" 返回状态码为400:请求参数错误,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 queryDynamicQosDetailRequest 是 REFERENCE 详细请参见表3。 创建动态QoS策略请求数据。 - 表3 DeleteDynamicQosRequest对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 policyIds 否 ARRAY_REFERENCE 0-16个列表项,详细请参见表4。 动态QoS策略id列表。 - 表4 DeleteDynamicQosPolicyDetail对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 policyId 否 uuid 0~64个字符。 - 动态QoS策略id。 "00000000-0000-0000-0000-000000000000" policyName 否 string 0~64个字符。 - 动态QoS策略Name。 "policy"
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/traffic/dynamic/qos/00000000-0000-0000-0000-000000000000/batch-delete 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 { "policyIds" : [ { "policyId" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy" } ] }
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryDynamicQosDetailResponse。 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" : "", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "name" : "qos1", "adaptiveQosEnable" : false, "adaptiveQosInfo" : { "period" : 10, "linkBandwidthLowerThreshold" : 1, "appBandwidthLowerThreshold" : 1, "packetLossThreshold" : 1 }, "queryPeerSites" : { "totalRecords" : 1, "pageIndex" : 1, "pageSize" : 10, "peerSites" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "templateName", "bandwidth" : 10 } ] }, "queryDynamicQosRules" : { "totalRecords" : 1, "pageIndex" : 1, "pageSize" : 10, "dynamicQosRules" : [ { "qosRuleId" : "00000000-0000-0000-0000-000000000000", "qosClassificationId" : "00000000-0000-0000-0000-000000000000", "qosClassificationName" : "qosClassificationName", "qosProfileId" : "00000000-0000-0000-0000-000000000000", "qosProfileName" : "templateName", "qosPriority" : 1 } ] } } } 返回状态码为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
  • 响应参数 返回状态码为200:查询成功,响应体参考QueryDynamicQosDetailResponse。 表5 QueryDynamicQosDetailResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表6。 动态QoS策略策略信息。 - 表6 QueryDynamicQosPolicyDetail对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id uuid 0~64个字符。 - 策略ID,UUID格式。 "00000000-0000-0000-0000-000000000000" name string 0~64个字符。 - 策略名称。 "qos1" adaptiveQosEnable boolean true false false 是否开启自适应QoS。 false adaptiveQosInfo REFERENCE 详细请参见表11。 自适应QoS相关数据信息。 - queryPeerSites REFERENCE 详细请参见表7。 HUB站点对端站点id列表。 - queryDynamicQosRules REFERENCE 详细请参见表8。 子策略列表。 - 表7 QueryPeerSites对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 totalRecords int32 [0-1200] - 总的数据条数。 1 pageIndex int32 [0-65535] - 当前页数。 1 pageSize int32 [0-65535] - 每页显示数量。 10 peerSites ARRAY_REFERENCE 0-1200个列表项,详细请参见表9。 HUB站点对端站点id列表。 - 表8 QueryDynamicQosRules对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 totalRecords int32 [0-68] - 总的数据条数。 1 pageIndex int32 [0-65535] - 当前页数。 1 pageSize int32 [0-65535] - 每页显示数量。 10 dynamicQosRules ARRAY_REFERENCE 0-68个列表项,详细请参见表10。 QoS子策略列表。 - 返回状态码为400:请求参数错误,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/traffic/dynamic/qos/00000000-0000-0000-0000-000000000000/detail 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 { "peerSitePageInfo" : { "pageIndex" : 1, "pageSize" : 20 }, "qosRulePageInfo" : { "pageIndex" : 1, "pageSize" : 20 } }
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/policy/traffic/dynamic/qos/00000000-0000-0000-0000-000000000000 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 { "id" : "00000000-0000-0000-0000-000000000000", "name" : "qos1", "peerSites" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "templateName", "bandwidth" : 10 } ], "dynamicQosRules" : [ { "qosRuleId" : "00000000-0000-0000-0000-000000000000", "qosClassificationId" : "00000000-0000-0000-0000-000000000000", "qosClassificationName" : "qosClassificationName", "qosProfileId" : "00000000-0000-0000-0000-000000000000", "qosProfileName" : "templateName", "qosPriority" : 1 } ], "adaptiveQosEnable" : false, "adaptiveQosInfo" : { "period" : 10, "linkBandwidthLowerThreshold" : 1, "appBandwidthLowerThreshold" : 1, "packetLossThreshold" : 1 } }
  • 响应示例 返回状态码为200:修改成功,响应体参考DynamicQosPolicyResponse。 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" : "", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "name" : "qos1", "peerSites" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "templateName", "bandwidth" : 10 } ], "dynamicQosRules" : [ { "qosRuleId" : "00000000-0000-0000-0000-000000000000", "qosClassificationId" : "00000000-0000-0000-0000-000000000000", "qosClassificationName" : "qosClassificationName", "qosProfileId" : "00000000-0000-0000-0000-000000000000", "qosProfileName" : "templateName", "qosPriority" : 1 } ], "adaptiveQosEnable" : false, "adaptiveQosInfo" : { "period" : 10, "linkBandwidthLowerThreshold" : 1, "appBandwidthLowerThreshold" : 1, "packetLossThreshold" : 1 } } } 返回状态码为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