云服务器内容精选

  • 响应示例 返回状态码为200:创建AP子网配置成功,响应体参考ApSubnetResponseDto。 { "errcode": "0", "errmsg": "", "data": { "id": "1f23369b44904d28aca2203df250d71f", "name": "subnet", "vlanId": 1, "getIpAddressMode": 1, "ipv4poolOrNot": null, "ipAddress": null, "maskAddress": null, "ipv4PoolId": null, "dhcpEnable": null, "dhcpConfig": { "dnsConfig": null, "dhcpServerOptions": null, "leasesConfig": null, "excludedAddresses": null, "staticBindings": null }, "natPolicys": [], "natEnable": false, "aclId": null, "dhcpMode": "server", "relayServerIps": null } } 返回状态码为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:查询AP子网成功,响应体参考GetApSubnetResponseDto。 返回状态码为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的示例 GET /controller/campus/api/v1/networkconfig/device/fbb684c8-0d37-496f-bafa-4b06d6151e2e/apsubnet?pageIndex=1&pageSize=1&subnetName=subnet 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
  • URI /controller/campus/api/v1/networkconfig/device/{deviceId}/apsubnet 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID。 "fbb684c8-0d37-496f-bafa-4b06d6151e2e" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 [1-2147483647] - 第几页的数据。 1 pageSize 否 int32 [1-100] - 一页多少条数据。 1 subnetName 否 string 0~32个字符。 - 子网名称。 "subnet"
  • 响应参数 返回状态码为200:查询AP子网成功,响应体参考GetApSubnetResponseDto。 表3 GetApSubnetResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" subnetList ARRAY_REFERENCE 0-100个列表项,详细请参见表13。 删除AP子网成功列表,结构体参见ApSubnetDto。 - pageIndex int32 [1-2147483647] - 第几页的数据。 1 pageSize int32 [1-100] - 一页多少条数据。 1 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务错误 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:修改AP子网配置成功,响应体参考ApSubnetResponseDto。 { "errcode": "0", "errmsg": "", "data": { "id": "1f23369b44904d28aca2203df250d71f", "name": "subnet", "vlanId": 1, "getIpAddressMode": 1, "ipv4poolOrNot": null, "ipAddress": null, "maskAddress": null, "ipv4PoolId": null, "dhcpEnable": null, "dhcpConfig": { "dnsConfig": null, "dhcpServerOptions": null, "leasesConfig": null, "excludedAddresses": null, "staticBindings": null }, "natPolicys": [], "natEnable": false, "aclId": null, "dhcpMode": "server", "relayServerIps": null } } 返回状态码为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的示例 { "id":"1f23369b44904d28aca2203df250d71f", "name": "subnet", "ipAddress": "192.168.0.1", "getIpAddressMode": 1, "natEnable": false, "maskAddress": "255.255.255.0" }