云服务器内容精选

  • 响应示例 返回状态码为200:查询成功,响应体参考InterfacesInfoOutputDto。 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 { "interfaceInfoList" : [ { "interfaceId" : "bb95ad5c-cdf5-46f2-9f1c-0d413320adb7", "ifIndex" : 1, "ifName" : "GigabitEthernet1/1/0/14", "deviceId" : "bb95ad5c-cdf5-46f2-9f1c-0d413320adb7", "ifOperStatus" : "UP", "ifAdminStatus" : "UP", "ipAddress" : "10.1.1.1", "ifSpeeds" : "100", "ifMtu" : "100", "ifDuplexModel" : "FULL", "ifType" : "ETHERNET" } ] } 返回状态码为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/oamservice/interface/devices/{deviceId}/frame/{frameNo}/slot/{slotNo} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string - - 设备ID或堆叠ID, UUID格式。 "ea25fdbf-8dee-4823-bac2-5bfe8e3359cad" frameNo 是 integer 1 2 - 机框号。 1 slotNo 是 integer [0-64] - 单板索引号,槽位号。 1
  • 请求示例 HTTP的示例 GET /controller/campus/v1/oamservice/interface/devices/ea25fdbf-8dee-4823-bac2-5bfe8e3359cad/frame/1/slot/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:查询成功,响应体参考InterfacesInfoOutputDto。 表2 InterfacesInfoOutputDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 interfaceInfoList ARRAY_REFERENCE 0-64个列表项,详细请参见表3。 接口信息列表。 - 表3 InterfaceInfoDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 interfaceId string 0~256个字符。 - 接口ID,UUID格式。 "bb95ad5c-cdf5-46f2-9f1c-0d413320adb7" ifIndex integer [0-64] - 接口索引。 1 ifName string 0~256个字符。 - 接口名称。 "GigabitEthernet1/1/0/14" deviceId string 0~256个字符。 - 设备ID,UUID格式。 "bb95ad5c-cdf5-46f2-9f1c-0d413320adb7" ifOperStatus string 0~256个字符。 UP DOWN TESTING UNKOWN DORMANT NOTPRESENT LOWLAYERDOWN - 接口运行态。 "UP" ifAdminStatus string 0~256个字符。 UP DOWN - 接口管理态。 "UP" ipAddress string 0~256个字符。 - 接口IP地址。 "10.1.1.1" ifSpeeds string 0~256个字符。 - 接口速率,单位是bps。 "100" ifMtu string 0~256个字符。 - 接口mtu,单位是Bytes。 "100" ifDuplexModel string 0~256个字符。 FULL HALF AUTO AUTOFULL AUTOHALF - 双工模式。 "FULL" ifType string 0~256个字符。 STACK-PORT ETHERNET ETH-TRUNK VIRTUAL_ETHERNET ATM POS SERIAL VLANIF E1 T1 CPOS TUNNEL LOOPBACK IP-TRUNK VIRTUAL-TEMPLATE RING-IF MFR MP-GROUP AUX E3 T3 METH NULL IRPR EPON WLAN-ESS RSERVED1 WLAN-DBSS WLAN-MESH VBDIF NVE - 接口类型。 "ETHERNET" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/campus/v1/oamservice/reset/devices/00000000-0000-0000-0000-000000000000/frame/1/board/8 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
  • 响应参数 返回状态码为200:复位成功,响应体参考ResetBoardOutputDto。 表2 ResetBoardOutputDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码:当没有错误时返回0。 "0" errmsg string 0~256个字符。 - 接口调用结果的描述信息。 "error" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:复位成功,响应体参考ResetBoardOutputDto。 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" : "error" } 返回状态码为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/oamservice/reset/devices/{id}/frame/{frameNo}/board/{boardName} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string - - 设备ID,UUID格式。 "00000000-0000-0000-0000-000000000000" frameNo 是 integer 1 2 - 机框号。 1 boardName 是 string - - 槽位名称。 "8"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/oamservice/resetreason/devices/00000000-0000-0000-0000-000000000000/frame/1/board/8 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
  • 响应参数 返回状态码为200:查询成功,响应体参考GetResetReasonOutputDto。 表2 GetResetReasonOutputDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码:当没有错误时返回0。 "0" errmsg string 0~256个字符。 - 接口调用结果的描述信息。 "error" data ARRAY_REFERENCE 0-5个列表项,详细请参见表3。 查询单板复位原因结果。 - 表3 ResetReasonDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 slotIndex string 0~32个字符。 - 槽位号。 "8" resetTime string 0~64个字符。 - 复位时间,UTC时间格式。 "2019-06-10T15:47:34+08:00" reason string 0~256个字符。 - 复位原因。 "Reset for configuration disaccord with controller" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考GetResetReasonOutputDto。 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" : "error", "data" : [ { "slotIndex" : "8", "resetTime" : "2019-06-10T15:47:34+08:00", "reason" : "Reset for configuration disaccord with controller" } ] } 返回状态码为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/oamservice/resetreason/devices/{id}/frame/{frameNo}/board/{boardName} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string - - 设备ID,UUID格式。 "00000000-0000-0000-0000-000000000000" frameNo 是 integer 1 2 - 机框号。 1 boardName 是 string - - 槽位名称。 "8"
  • 响应示例 返回状态码为200:上下电成功,响应体参考PowerSupplyOutputDto。 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" : "error" } 返回状态码为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/oamservice/powersupply 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 { "deviceId" : "75ade72a-e7a9-4c81-8fca-894e7ca9c2c2", "frameNo" : "1", "boardName" : "LPU5", "operation" : "on" }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 request 是 REFERENCE 详细请参见表2。 请求参数。 - 表2 PowerSupplyDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "75ade72a-e7a9-4c81-8fca-894e7ca9c2c2" frameNo 是 integer 1 2 - 机框号。 "1" boardName 是 string 1~36个字符。 - 单板名称。 "LPU5" operation 是 string 1~36个字符。 - 上下电操作。取值范围:on---代表上电,off---代表下电。 "on"