云服务器内容精选

  • 响应示例 返回状态码为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" : [ "de5813f8ff1e41f5ba9c324da70b49ed" ], "fail" : { "errcode" : "0x00c80014", "errmsg" : "The id does not exist.", "id" : "c8eb0831aaa843e9a123cb6f051195b8" } } 返回状态码为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
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/net/arstaticroute/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/staticroute/action/batch-delete 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 { "ids" : [ "de5813f8ff1e41f5ba9c324da70b49ed" ] }
  • URI /controller/campus/v1/networkservice/networkconfig/net/arstaticroute/devices/{deviceId}/staticroute/action/batch-delete 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备标识,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/arstaticroute/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/staticroute 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 { "mask" : "22", "description" : "", "nextAddress" : "10.20.0.0", "destinationIp" : "10.20.0.0", "priority" : 5, "nextInterface" : "GigabitEthernet0/0/4", "nqaId" : "d26320b9e15a4b069576f1ebff9c9cc1", "nqaAdminName" : "adminName", "nqaTestName" : "test", "dhcp" : false, "nextLogicInterface" : "Dialer1", "id" : "de5813f8ff1e41f5ba9c324da70b49ed" }
  • 响应示例 返回状态码为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" : "", "data" : { "mask" : "22", "description" : "", "nextAddress" : "10.20.0.0", "destinationIp" : "10.20.0.0", "priority" : 5, "nextInterface" : "GigabitEthernet0/0/4", "nqaId" : "d26320b9e15a4b069576f1ebff9c9cc1", "nqaAdminName" : "adminName", "nqaTestName" : "test", "dhcp" : false, "nextLogicInterface" : "Dialer1", "id" : "de5813f8ff1e41f5ba9c324da70b49ed" } } 返回状态码为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
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceArStaticrouteInfoDto 是 REFERENCE 详细请参见表3。 修改的路由器设备静态路由配置。 - 表3 DeviceArStaticrouteInfoDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 mask 是 string 0~32个字符。 - 掩码,0-32。创建后不允许修改。 "22" description 否 string 0~256个字符。 - 描述。 "" nextAddress 否 string 0~64个字符。 - 下一跳地址,必须是合法的IPv4地址,以127或者224~255开头的IP地址为非法IP地址。当nextInterface为空时,nextAddress必填。 "10.20.0.0" destinationIp 是 string 0~64个字符。 - 目的IP地址,创建后不允许修改。必须是合法的IPv4地址,以127或者224~255开头的IP地址为非法IP地址。 "10.20.0.0" priority 否 integer [1-255] - 优先级,取值越小优先级越高,为空时默认为60。 5 nextInterface 否 string 0~25个字符。 - 路由出接口。当nextAddress为空时,nextInterface必填。 "GigabitEthernet0/0/4" nqaId 否 string 0~32个字符。 - NQA的ID。 "d26320b9e15a4b069576f1ebff9c9cc1" nqaAdminName 否 string 0~32个字符。 - NQA的admin名称,待拓展字段,入参时无需填写。 "adminName" nqaTestName 否 string 0~32个字符。 - NQA的测试名称,待拓展字段,入参时无需填写。 "test" dhcp 否 boolean true false false DHCP开关使能。当nextAddress非空时,dhcp必须为false,不填时默认为false。 false nextLogicInterface 否 string 0~32个字符。 - 逻辑出接口,待拓展字段,入参时无需填写。 "Dialer1" id 是 string 0~32个字符。 - 路由器静态路由ID。 "de5813f8ff1e41f5ba9c324da70b49ed"
  • URI /controller/campus/v1/networkservice/networkconfig/net/arstaticroute/devices/{deviceId}/staticroute 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备标识,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 响应参数 返回状态码为201:创建的路由器设备静态路由配置。 表4 ArStaticrouteResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data REFERENCE 详细请参见表5。 - - 表5 DeviceArStaticrouteInfoDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 mask string 0~32个字符。 - 掩码,0-32。创建后不允许修改。 "22" description string 0~256个字符。 - 描述。 "" nextAddress string 0~64个字符。 - 下一跳地址,必须是合法的IPv4地址,以127或者224~255开头的IP地址为非法IP地址。当nextInterface为空时,nextAddress必填。 "10.20.0.0" destinationIp string 0~64个字符。 - 目的IP地址,创建后不允许修改。必须是合法的IPv4地址,以127或者224~255开头的IP地址为非法IP地址。 "10.20.0.0" priority integer [1-255] - 优先级,取值越小优先级越高,为空时默认为60。 5 nextInterface string 0~25个字符。 - 路由出接口。当nextAddress为空时,nextInterface必填。 "GigabitEthernet0/0/4" nqaId string 0~32个字符。 - NQA的ID。 "d26320b9e15a4b069576f1ebff9c9cc1" nqaAdminName string 0~32个字符。 - NQA的admin名称,待拓展字段,入参时无需填写。 "adminName" nqaTestName string 0~32个字符。 - NQA的测试名称,待拓展字段,入参时无需填写。 "test" dhcp boolean true false false DHCP开关使能。当nextAddress非空时,dhcp必须为false,不填时默认为false。 false nextLogicInterface string 0~32个字符。 - 逻辑出接口,待拓展字段,入参时无需填写。 "Dialer1" id string 0~32个字符。 - 路由器静态路由ID。 "de5813f8ff1e41f5ba9c324da70b49ed" 返回状态码为400:校验失败信息。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为201:创建的路由器设备静态路由配置。 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" : "0", "errmsg" : "", "data" : { "mask" : "22", "description" : "", "nextAddress" : "10.20.0.0", "destinationIp" : "10.20.0.0", "priority" : 5, "nextInterface" : "GigabitEthernet0/0/4", "nqaId" : "d26320b9e15a4b069576f1ebff9c9cc1", "nqaAdminName" : "adminName", "nqaTestName" : "test", "dhcp" : false, "nextLogicInterface" : "Dialer1", "id" : "de5813f8ff1e41f5ba9c324da70b49ed" } } 返回状态码为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
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/net/arstaticroute/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/staticroute 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 { "mask" : "22", "description" : "", "nextAddress" : "10.20.0.0", "destinationIp" : "10.20.0.0", "priority" : 5, "nextInterface" : "GigabitEthernet0/0/4", "nqaId" : "d26320b9e15a4b069576f1ebff9c9cc1", "nqaAdminName" : "adminName", "nqaTestName" : "test", "dhcp" : false, "nextLogicInterface" : "Dialer1" }
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceArStaticrouteInfoDto 是 REFERENCE 详细请参见表3。 创建的路由器设备静态路由配置。 - 表3 RouteInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 mask 是 string 0~32个字符。 - 掩码,0-32。创建后不允许修改。 "22" description 否 string 0~256个字符。 - 描述。 "" nextAddress 否 string 0~64个字符。 - 下一跳地址,必须是合法的IPv4地址,以127或者224~255开头的IP地址为非法IP地址。当nextInterface为空时,nextAddress必填。 "10.20.0.0" destinationIp 是 string 0~64个字符。 - 目的IP地址,创建后不允许修改。必须是合法的IPv4地址,以127或者224~255开头的IP地址为非法IP地址。 "10.20.0.0" priority 否 integer [1-255] - 优先级,取值越小优先级越高,为空时默认为60。 5 nextInterface 否 string 0~25个字符。 - 路由出接口。当nextAddress为空时,nextInterface必填。 "GigabitEthernet0/0/4" nqaId 否 string 0~32个字符。 - NQA的ID。 "d26320b9e15a4b069576f1ebff9c9cc1" nqaAdminName 否 string 0~32个字符。 - NQA的admin名称,待拓展字段,入参时无需填写。 "adminName" nqaTestName 否 string 0~32个字符。 - NQA的测试名称,待拓展字段,入参时无需填写。 "test" dhcp 否 boolean true false false DHCP开关使能。当nextAddress非空时,dhcp必须为false,不填时默认为false。 false nextLogicInterface 否 string 0~32个字符。 - 逻辑出接口,待拓展字段,入参时无需填写。 "Dialer1"
  • URI /controller/campus/v1/networkservice/networkconfig/net/arstaticroute/devices/{deviceId}/staticroute 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备标识,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"