接口描述
查询用户所处资源池的带宽列表
接口约束
无
URI
GET /v1/eop/networks
请求参数
query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 |
---|---|---|---|---|
pageNum | 是 | Integer | 页码,页码最小值为1 | 1 |
pageSize | 是 | Integer | 页大小,页大小取值范围为:1-500 |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 状态码 | 800 | |
message | String | 消息提示 | SUCCESS | |
returnObj | Array | 返回对象 | [] | NetworkInfo |
NetworkInfo
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
accountId | String | 账户ID | 5a101a9e7d2e4df0af71742390db1504 | |
createDate | String | 创建时间 | 2022-10-25T06:32:17Z | |
dueDate | String | 到期时间 | 2022-10-25T06:32:17Z | |
hostId | String | 带宽对应的主机id,如果是单独订购的带宽没有此值,绑定后才有 | 7767857a-f3c2-4467-b1ef-bca506cf7a26 | |
id | String | uuid | deacf1fa-b55c-4c5a-b277-410602e9fed5 | |
ipAddress | String | 公网ip地址 | 55.55.2.103 | |
ipStatus | Integer | 带宽的真实状态。0:未绑定;1:已绑定;2:绑定中;3:解绑中;-1:ERROR;9999:DELETE | 1 | |
iptype | String | ip类型 | IPV4 | |
isPackaged | Integer | 是否成套,1成套 0非成套 | 1 | |
name | String | 带宽名称 | ||
orderId | String | 订单id | 08b2c3833e0146bb8d1a7f21e9d3697d | |
regionId | String | 资源池ID | 100054c0416811e9a6690242ac110002 | |
regionName | String | 资源池名称 | 保定os | |
resIpAddressId | String | 带宽ipid | cdce17c8-c33a-4c3b-a8c6-87227f64a920 | |
resourceType | String | 资源类型 | INSTANCE | |
speed | Integer | 带宽大小 | 1 | |
status | Integer | 带宽状态。2-正常(CREATE_SUCCEED);22-执行续订(RENEW_ING);33-执行变更(CHANGE_ING);55-执行退订(UNSUBSCRIB_ING);5-已退订(UNSUBSCRIB);6-已超时(OVERTIME_SUCCEED);7-已销毁(DESTORY) | 2 | |
updateDate | TIMESTAMP | 更新时间 | 1666679332000 | |
userId | String | 用户id | 5a101a9e7d2e4df0af71742390db1504 | |
virtualmachinename | String | 虚拟机名称 | htaptest-741 | |
vmName | String | 虚拟机名称 | htaptest-741 | |
vpcId | String | 带宽对应的vpcid | ||
vpcname | String | vpc名称 | vpc-3t68 | |
workOrderResourceId | String | 虚拟资源id | 417af50b6fdd4ba7818ba93e2ba4af42 | |
zoneId | String | 资源池可用区id | ||
zoneName | String | 资源池名称 |
请求示例
/v1/eop/networks?pageNum=1&pageSize=2
响应示例
{
"message": "SUCCESS",
"returnObj": [
{
"accountId": "5a101a9e7d2e4df0af71742390db1504",
"createDate": "",
"dueDate": "",
"hostId": "",
"id": "cdfc9ccb-594e-4544-918f-151c666f8238",
"ipAddress": "55.55.0.181",
"ipStatus": 1,
"iptype": "IPV4",
"isPackaged": 0,
"name": "",
"orderId": "7b3d4f1634f14d4fbaa393f3d4aa9f45",
"regionId": "100054c0416811e9a6690242ac110002",
"regionName": "保定os",
"resIpAddressId": "cdce17c8-c33a-4c3b-a8c6-87227f64a920",
"resourceType": "VIP",
"speed": 1,
"status": 6,
"updateDate": 1663830206000,
"userId": "5a101a9e7d2e4df0af71742390db1504",
"virtualmachinename": "",
"vmName": "",
"vpcId": "",
"vpcname": "vpc-3t68",
"workOrderResourceId": "473ce629d963473a99fea10209e936b3",
"zoneId": "",
"zoneName": ""
},
{
"accountId": "5a101a9e7d2e4df0af71742390db1504",
"createDate": "",
"dueDate": "",
"hostId": "",
"id": "deacf1fa-b55c-4c5a-b277-410602e9fed5",
"ipAddress": "55.55.5.120",
"ipStatus": 0,
"iptype": "IPV4",
"isPackaged": 0,
"name": "",
"orderId": "7b3d4f1634f14d4fbaa393f3d4aa9f45",
"regionId": "100054c0416811e9a6690242ac110002",
"regionName": "保定os",
"resIpAddressId": "cdce17c8-c33a-4c3b-a8c6-87227f64a920",
"resourceType": "",
"speed": 1,
"status": 6,
"updateDate": 1655277095000,
"userId": "5a101a9e7d2e4df0af71742390db1504",
"virtualmachinename": "",
"vmName": "",
"vpcId": "",
"vpcname": "",
"workOrderResourceId": "5d6291dc665e472eac6c87598d0915b5",
"zoneId": "",
"zoneName": ""
}
],
"statusCode": 800
}
错误码
访问ErrorCodes说明文档查看更多错误码。