云服务器内容精选

  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/policy/traffic/forward-broadcast/00000000-0000-0000-0000-000000000000/detail?policyId=00000000-0000-0000-0000-000000000000&pageIndex=1&pageSize=1 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:查询成功,响应体参考QueryBroadCastResponse。 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" : "500", "errmsg" : "error", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy1", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "hub", "interfaces" : [ "00000000-0000-0000-0000-000000000000" ], "pageSize" : 10, "pageIndex" : 1, "totalcount" : 1, "aclRules" : [ { "ruleId" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "permit", "protocol" : "TCP", "sourceIP" : "192.168.0.0/16", "destinationIP" : "192.168.0.0/16", "sourcePort" : 1, "destinationPort" : 1, "protocolNum" : 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
  • URI /controller/campus/v1/sdwan/policy/traffic/forward-broadcast/{siteId}/detail 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 uuid 1~64个字符。 - 站点ID。 "00000000-0000-0000-0000-000000000000" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 policyId 是 uuid 1~64个字符。 - 策略ID。 "00000000-0000-0000-0000-000000000000" pageIndex 否 int32 [0-100] 1 当前页数,默认1,0查询全量。 1 pageSize 否 int32 [1-200] 10 每页显示数量,默认10。 1
  • URI /controller/campus/v1/sdwan/policy/traffic/forward-broadcast/{siteId} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 uuid 1~64个字符。 - 站点ID。 "00000000-0000-0000-0000-000000000000" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 [1-100] 1 当前页数,默认1。 1 pageSize 否 int32 [1-200] 10 每页显示数量,默认10。 1
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryBroadCastSumResponse。 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" : "200", "errmsg" : "", "pageSize" : 10, "pageIndex" : 1, "totalcount" : 1, "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy1", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "hub", "interfaces" : [ "00000000-0000-0000-0000-000000000000" ], "ruleCount" : 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
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/policy/traffic/forward-broadcast/00000000-0000-0000-0000-000000000000?pageIndex=1&pageSize=1 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
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/policy/traffic/forward-broadcast/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", "policyName" : "policy1", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "hub", "interfaces" : [ { "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/2" } ], "ruleCount" : 1, "aclRules" : [ { "ruleId" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "permit", "protocol" : "TCP", "sourceIP" : "192.168.0.0/16", "destinationIP" : "192.168.0.0/16", "sourcePort" : 1, "destinationPort" : 1, "protocolNum" : 1 } ] }
  • 响应示例 返回状态码为200:修改成功,响应体参考BroadCastResponse。 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" : "201", "errmsg" : "success", "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy1", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "hub", "interfaces" : [ { "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/2" } ], "ruleCount" : 1, "aclRules" : [ { "ruleId" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "permit", "protocol" : "TCP", "sourceIP" : "192.168.0.0/16", "destinationIP" : "192.168.0.0/16", "sourcePort" : 1, "destinationPort" : 1, "protocolNum" : 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
  • 请求示例 HTTP的示例 DELETE /controller/campus/v1/sdwan/policy/traffic/forward-broadcast/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 { "policys" : [ { "policyId" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy" } ] }
  • 响应示例 返回状态码为200:删除成功,响应体参考BroadCastResponse。 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" : "201", "errmsg" : "success", "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy1", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "hub", "interfaces" : [ { "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/2" } ], "ruleCount" : 1, "aclRules" : [ { "ruleId" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "permit", "protocol" : "TCP", "sourceIP" : "192.168.0.0/16", "destinationIP" : "192.168.0.0/16", "sourcePort" : 1, "destinationPort" : 1, "protocolNum" : 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
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 policys 是 REFERENCE 详细请参见表3。 待删除策略信息列表。 - 表3 DeletePolicyInfos对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 policys 否 ARRAY_REFERENCE 1-32个列表项,详细请参见表4。 待删除策略信息列表。 - 表4 DeletePolicyInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 policyId 否 uuid 1~64个字符。 - 策略id,必填。 "00000000-0000-0000-0000-000000000000" policyName 否 string 1~64个字符。 - 策略名称,必填。 "policy"