云服务器内容精选

  • 响应示例 返回状态码为201:创建成功,响应体参考CentralizedInterworkingResponse。 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" : "", "errmsg" : "", "data" : { "centralizedSiteInfos" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1", "igwEnable" : true, "enableUnderlayFirst" : false, "priority" : "active", "tnpConfigs" : [ { "transportNetworkPortId" : "00000000-0000-0000-0000-000000000000", "transportNetworkPortName" : "ApSite", "priority" : 1, "bandwidth" : 10, "mtu" : 1500 } ] } ] } } 返回状态码为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/interworking/00000000-0000-0000-0000-000000000000/centralized-access 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 { "centralizedSiteInfos" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1", "igwEnable" : true, "enableUnderlayFirst" : false, "priority" : "active", "tnpConfigs" : [ { "transportNetworkPortId" : "00000000-0000-0000-0000-000000000000", "transportNetworkPortName" : "ApSite", "priority" : 1, "bandwidth" : 10, "mtu" : 1500 } ] } ] }
  • 响应参数 返回状态码为201:创建成功,响应体参考CentralizedInterworkingResponse。 表6 CentralizedInterworkingResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 - errmsg string - - 错误信息。 - data REFERENCE 详细请参见表7。 成功创建或者更新返回的集中互访请求体。 - 表7 CentralizedInterworkingInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 centralizedSiteInfos ARRAY_REFERENCE 0-2个列表项,详细请参见表8。 集中互访的站点信息,最多2个hub站点或者一个其它站点。 - 表8 CentralizedSite对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 siteId uuid - - 站点ID。 创建的时候必填,站点必须先加入拓扑。 "00000000-0000-0000-0000-000000000000" siteName string 0~64个字符。 - 站点名称。 "site1" igwEnable boolean true false - 是否互访网关,创建的时候必填。 true enableUnderlayFirst boolean true false false 是否使能underlay优先,默认关闭,V600系列设备不支持使能此功能。 false priority string - - 站点主备优先级,该字段可以设置为以下几种: a) active:主网关 b) standby:备网关 当指定两个上网网关且网络类型为evpn时,需要指定。 创建的时候必填。 "active" tnpConfigs ARRAY_REFERENCE 0-6个列表项,详细请参见表9。 集中互访的出口链路配置。 创建的时候必填。 更新的时候,同一站点下,如果不传值,则保持更新前的配置内容不变;如果传值,需要填写所有已配置的链路配置,未填写的链路配置会被删除。 - 表9 TnpConfig对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 transportNetworkPortId uuid - - TNP ID,创建、修改的时候必填。 "00000000-0000-0000-0000-000000000000" transportNetworkPortName string 0~64个字符。 - 传输网络端口名称。 "ApSite" priority int32 - - 链路优先级,只能为1、2、3,1表示最高,创建、修改的时候必填。 1 bandwidth int32 [0-99] - 集中互访占用部门带宽比,单位为百分比。 当配置为0表示关闭独立分配带宽功能。 10 mtu int32 [46-9216] - mtu,取值范围46-9216,默认值1500。 1500 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 centralizedInterworkingInfo 是 REFERENCE 详细请参见表3。 创建集中互访配置请求数据。 - 表3 CentralizedInterworkingInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 centralizedSiteInfos 是 ARRAY_REFERENCE 0-2个列表项,详细请参见表4。 集中互访的站点信息,最多2个hub站点或者一个其它站点。 - 表4 CentralizedSite对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 否 uuid - - 站点ID。 创建的时候必填,站点必须先加入拓扑。 "00000000-0000-0000-0000-000000000000" siteName 否 string 0~64个字符。 - 站点名称。 "site1" igwEnable 否 boolean true false - 是否互访网关,创建的时候必填。 true enableUnderlayFirst 否 boolean true false false 是否使能underlay优先,默认关闭,V600系列设备不支持使能此功能。 false priority 否 string - - 站点主备优先级,该字段可以设置为以下几种: a) active:主网关 b) standby:备网关 当指定两个上网网关且网络类型为evpn时,需要指定。 创建的时候必填。 "active" tnpConfigs 否 ARRAY_REFERENCE 0-6个列表项,详细请参见表5。 集中互访的出口链路配置。 创建的时候必填。 更新的时候,同一站点下,如果不传值,则保持更新前的配置内容不变;如果传值,需要填写所有已配置的链路配置,未填写的链路配置会被删除。 - 表5 TnpConfig对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 transportNetworkPortId 否 uuid - - TNP ID,创建、修改的时候必填。 "00000000-0000-0000-0000-000000000000" transportNetworkPortName 否 string 0~64个字符。 - 传输网络端口名称。 "ApSite" priority 否 int32 - - 链路优先级,只能为1、2、3,1表示最高,创建、修改的时候必填。 1 bandwidth 否 int32 [0-99] - 集中互访占用部门带宽比,单位为百分比。 当配置为0表示关闭独立分配带宽功能。 10 mtu 否 int32 [46-9216] - mtu,取值范围46-9216,默认值1500。 1500
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/policy/traffic/interworking/00000000-0000-0000-0000-000000000000/centralized-access 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 { "centralizedSiteInfos" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1", "igwEnable" : true, "enableUnderlayFirst" : false, "priority" : "active", "tnpConfigs" : [ { "transportNetworkPortId" : "00000000-0000-0000-0000-000000000000", "transportNetworkPortName" : "ApSite", "priority" : 1, "bandwidth" : 10, "mtu" : 1500 } ] } ] }
  • 响应示例 返回状态码为200:修改成功,响应体参考CentralizedInterworkingResponse。 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" : "", "errmsg" : "", "data" : { "centralizedSiteInfos" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1", "igwEnable" : true, "enableUnderlayFirst" : false, "priority" : "active", "tnpConfigs" : [ { "transportNetworkPortId" : "00000000-0000-0000-0000-000000000000", "transportNetworkPortName" : "ApSite", "priority" : 1, "bandwidth" : 10, "mtu" : 1500 } ] } ] } } 返回状态码为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:删除成功,响应体参考CentralizedInterworkingResponse。 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" : "", "errmsg" : "", "data" : { "centralizedSiteInfos" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1", "igwEnable" : true, "enableUnderlayFirst" : false, "priority" : "active", "tnpConfigs" : [ { "transportNetworkPortId" : "00000000-0000-0000-0000-000000000000", "transportNetworkPortName" : "ApSite", "priority" : 1, "bandwidth" : 10, "mtu" : 1500 } ] } ] } } 返回状态码为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/interworking/00000000-0000-0000-0000-000000000000/centralized-access 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