云服务器内容精选

  • 响应示例 返回状态码为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", "data" : { "id" : "512", "name" : "随流检测", "profileId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "enable" : true, "dscp" : 63, "vpnPorts" : [ { "operate" : 0, "interfaceName" : "GigabiEthernet0/0/1", "deviceName" : "设备001", "deviceId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "vpnId" : "9a157da3-9e59-41c9-8312-254a38a3b276", "vpnName" : "vpn1" } ] } } 返回状态码为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:查询随流检测配置数据成功后的状态返回码。 表2 FlowDetailOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "Success" data REFERENCE 详细请参见表3。 流数据 - 表3 FlowData对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 0~5个字符。 - 流id "512" name string 1~256个字符。 - 指定流名称 "随流检测" profileId string 1~36个字符。 - 识别流模板ID "9a157da3-9e59-41c9-8312-254a38a3b275" enable boolean true false true 启用状态 true dscp int32 [0-63] - 静态流排序号 63 vpnPorts ARRAY_REFERENCE 0-1000个列表项,详细请参见表4。 设备接口接口信息 - 表4 VpnPort对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 operate int32 [0-2] 0 增量接口操作增删 0-增加 1-删除 2-修改 0 interfaceName string 1~36个字符。 - 接口名称 "GigabiEthernet0/0/1" deviceName string 0~256个字符。 - 设备名称 "设备001" deviceId string 1~36个字符。 - 设备id "9a157da3-9e59-41c9-8312-254a38a3b275" vpnId string 0~36个字符。 - vpn id "9a157da3-9e59-41c9-8312-254a38a3b276" vpnName string 0~256个字符。 - vpn名称 "vpn1" 返回状态码为400:查询随流检测配置数据失败后的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为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", "total" : 0, "deviceInfos" : [ { "deviceId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "deviceName" : "设备名称", "deviceType" : "AR", "esn" : "9a157da3-9e59-41c9-8312-254a38a3b275", "siteId" : "9a157da3-9e59-41c9-8312-254a38a3b276", "siteName" : "name" } ] } 返回状态码为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 /v1/performanceservice/flow/support-devices 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 { "siteId" : "9a157da3-9e59-41c9-8312-254a38a3b276", "pageIndex" : 0, "pageSize" : 5, "keyword" : "test" }
  • 响应参数 返回状态码为200:查询随流检测支持设备数据成功后的状态返回码。 表3 SupportInfoOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "Success" total int32 - 0 设备总数 0 deviceInfos ARRAY_REFERENCE 0-20000个列表项,详细请参见表4。 设备信息 - 表4 DeviceInfoData对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string 0~36个字符。 - 设备id "9a157da3-9e59-41c9-8312-254a38a3b275" deviceName string 0~256个字符。 - 设备名称 "设备名称" deviceType string 0~4个字符。 - 设备款型 "AR" esn string 0~64个字符。 - 设备esn "9a157da3-9e59-41c9-8312-254a38a3b275" siteId string 0~36个字符。 - 站点id "9a157da3-9e59-41c9-8312-254a38a3b276" siteName string 0~256个字符。 - 站点名称 "name" 返回状态码为400:查询随流检测支持设备数据失败后的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 supportDeviceInput 否 REFERENCE 详细请参见表2。 随流检测支持设备查询 - 表2 SupportDeviceInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 否 string 0~36个字符。 - 站点id "9a157da3-9e59-41c9-8312-254a38a3b276" pageIndex 否 int32 [0-10000] 1 页数 0 pageSize 否 int32 [5-200] 5 当前页展示条数 5 keyword 否 string 0~512个字符。 - 查询关键字, 譬如设备名称 "test"
  • 响应示例 返回状态码为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", "global" : { "period" : 10, "measure" : { "tosBit" : 3, "flagBit" : 0 } } } 返回状态码为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:设置随流检测配置成功后的状态返回码。 表1 FlowGlobalOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "Success" global REFERENCE 详细请参见表2。 全局配置 - 表2 FlowGlobalInput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 period int32 [1-600] 10 排障统计周期,默认10s,支持1s/10s/60s/600s 10 measure REFERENCE 详细请参见表3。 染色位 - 表3 MeasureData对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 tosBit int32 [3-7] - Tos染色位 3 flagBit int32 [0-0] - Flag染色位 0 返回状态码为400:接口更新失败后的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /v1/performanceservice/flow/auto-learnings 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 { "deviceIds" : ["33d8dd50-b4fe-463e-972d-ff3c1cbf12fe"] }
  • 响应示例 返回状态码为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
  • 响应示例 返回状态码为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", "id" : "512" } 返回状态码为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
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 flowPutInput 否 REFERENCE 详细请参见表2。 修改随流检测配置 - 表2 FlowPutInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 否 string 1~256个字符。 - 指定流名称 "指定流名称" profileId 否 string 1~36个字符。 - 识别流模板id "9a157da3-9e59-41c9-8312-254a38a3b275" profileName 否 string 0~256个字符。 - 识别流模板名称 "识别流模板名称" enable 否 boolean true false true 启用状态 true-打开 false-关闭 true dscp 否 int32 [0-63] - 静态流排序号 63 vpnPorts 否 ARRAY_REFERENCE 0-200个列表项,详细请参见表3。 设备接口接口信息 - id 否 string 0~5个字符。 - 流id "512"
  • 请求示例 HTTP的示例 PUT /v1/performanceservice/flow/instances 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 { "name" : "指定流名称", "profileId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "profileName" : "识别流模板名称", "enable" : true, "dscp" : 63, "vpnPorts" : [ { "operate" : 0, "interfaceName" : "GigabiEthernet0/0/1", "deviceName" : "设备001", "deviceId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "vpnId" : "9a157da3-9e59-41c9-8312-254a38a3b276", "vpnName" : "vpn1" } ], "id" : "512" }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 flowGlobalInput 否 REFERENCE 详细请参见表2。 全局配置入参 - 表2 FlowGlobalInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 period 否 int32 [1-600] 10 排障统计周期,默认10s,支持1s/10s/60s/600s 10 measure 否 REFERENCE 详细请参见表3。 染色位 - 表3 MeasureData对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 tosBit 否 int32 [3-7] - Tos染色位 3 flagBit 否 int32 [0-0] - Flag染色位 0
  • 响应示例 返回状态码为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