查询指定IP池下的IP列表
GET
/{adminPath}/selectIpListByPoolId
最后修改时间:2023-08-10 03:00:01
责任人:mryunqi
请求参数
Path 参数
adminPath
string
后台路径
示例值:
admin
Query 参数
poolid
integer
IP池ID
示例值:
1
page
integer
页码
示例值:
1
size
integer
页数量
示例值:
50
Header 参数
Authorization
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/admin/selectIpListByPoolId?poolid=1&page=1&size=50' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
records
array [object {10}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
maxLimit
null
必需
countId
null
必需
pages
integer
必需
示例
{
"code": 20000,
"message": "请求成功",
"data": {
"records": [
{
"id": 17,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.33",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 18,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.34",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 19,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.35",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 20,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.36",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 21,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.37",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 22,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.38",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 23,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.39",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 24,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.40",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 25,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.41",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 26,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.42",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 27,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.43",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 28,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.44",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 29,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.45",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
},
{
"id": 30,
"nodeId": 5,
"vmId": null,
"poolId": 2,
"ip": "23.94.247.46",
"subnetMask": "255.255.255.240",
"gateway": "23.94.247.33",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"status": 0
}
],
"total": 14,
"size": 50,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"maxLimit": null,
"countId": null,
"pages": 1
}
}
修改于 2023-08-10 03:00:01