云服务器内容精选

  • 响应示例 返回状态码为201:创建虚拟探测任务成功,响应体参考虚拟TaskResponse。 HTTP/1.1 201 Created Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "The device does not exist.", "data" : { "interfaceName" : "interface0/0/0", "pairaStatus" : "pairaStatus", "pairbStatus" : "pairbStatus", "paircStatus" : "paircStatus", "pairdStatus" : "pairdStatus", "pairaLength" : "length", "pairbLength" : "length", "paircLength" : "length", "pairdLength" : "length" } } 返回状态码为400:请求参数错误,无响应体。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 vctInputModel 是 REFERENCE 详细请参见表2。 虚拟探测下发模型 - 表2 VctDiagnoseModel对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "75ade72a-e7a9-4c81-8fca-894e7ca9c2c2" interfaceName 否 string 1~253个字符。 - 设备接口名称。注:字段interfaceName为必传参数。 "interxxx"
  • 请求示例 HTTP的示例 POST /controller/campus/api/v1/oamservice/vct 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 { "deviceId" : "75ade72a-e7a9-4c81-8fca-894e7ca9c2c2", "interfaceName" : "interxxx" }
  • 响应参数 返回状态码为201:创建虚拟探测任务成功,响应体参考虚拟TaskResponse。 表3 VctTaskResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "The device does not exist." data REFERENCE 详细请参见表4。 虚拟探测任务返回结果 - 表4 VctResponseModel对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 interfaceName string 1~64个字符。 - 虚拟探测任务ID,格式UUID。 "interface0/0/0" pairaStatus string 1~64个字符。 - paira状态。 "pairaStatus" pairbStatus string 1~64个字符。 - pairb状态。 "pairbStatus" paircStatus string 1~64个字符。 - pairc状态。 "paircStatus" pairdStatus string 1~64个字符。 - paird状态。 "pairdStatus" pairaLength string 1~64个字符。 - paira长度。 "length" pairbLength string 1~64个字符。 - pairb长度。 "length" paircLength string 1~64个字符。 - pairc长度。 "length" pairdLength string 1~64个字符。 - paird长度。 "length" 返回状态码为400:请求参数错误,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务器错误,无响应体。 详细信息请参见实际响应消息体。