方法: GET
PATH: /api/lease/{suid}
cURL示例:
curl 'https://localhost:9931/api/lease/{suid}' \
-H 'Authorization:Bearer UHUzcGhDY29JTnZSbGpxZm1EOU......'
响应参数:
参数名 | 类型 | 说明 | 示例 |
---|---|---|---|
request_id | [string] | 请求ID | Uuid-v4 |
body | [object] | ||
body.id | [number] | 业务ID | 2394 |
body.suid | [string] | 业务标识 | 5hG7reWs |
body.node_id | [number] | 业务绑定的节点ID | 1008 |
body.room_id | [number] | 业务所在的机房ID | 264 |
body.cabinet_id | [number] | 业务所在的机柜ID | 54 |
body.bandwidth | [number] | 业务的带宽,单位M | 50 |
body.ip_num | [number] | 业务的IP数量,单位 个 | 1 |
body.spec_code | [string] | 业务的规格编号 | bzb-b |
body.template_code | [string] | 业务的模板编号 | centos76 |
body.admin_user | [string] | 业务的系统账号 | root |
body.admin_password | [string] | 业务的系统密码 | 6lnQsEcHro0xlazs1k |
body.edges | [object] | ||
body.edges.room | [object] | 设备所在机房 | |
body.edges.room.id | [number] | 机房ID | 257 |
body.edges.room.name | [string] | 机房名 | 安溪 |
body.edges.room.url | [string] | 机房连接地址 | http://ec.qg.net:9931 |
body.edges.room.admin_user | [string] | 机房API用户名 | cloudinstall |
body.edges.room.admin_passwd | [string] | 机房API密码 | nXk79wGYWOEZLNSA |
body.edges.room.address | [string] | 机房地址 | |
body.edges.room.director | [string] | 机房管理员 | |
body.edges.room.tel | [string] | 机房管理员电话 | |
body.edges.room.vlan | [string] | 机房的cloudinstall程序所在的VLAN | 100 |
body.edges.room.activated | [boolean] | 机房是否已经激活 | true |
body.edges.room.edges | [object] | ||
body.edges.cabinet | [object] | 设备的机柜 | |
body.edges.cabinet.id | [number] | 设备绑定的机柜ID | 51 |
body.edges.cabinet.name | [string] | 机柜名 | 1-2-A02 |
body.edges.cabinet.room_id | [number] | 机柜所在机房ID | 257 |
body.edges.cabinet.u_sum | [number] | 机柜最大容纳的U数 | 48 |
body.edges.cabinet.u_surplus | [number] | 机柜当前可用的U数,该参数将在不久后删除 | |
body.edges.cabinet.trusteeship_max_unit | [number] | 托管的最大台数 | 48 |
body.edges.cabinet.trusteeship_per_max_unit | [number] | 1U容纳的最大台数 | 48 |
body.edges.cabinet.power | [string] | 机柜电源 | |
body.edges.cabinet.enabled | [boolean] | 机柜是否已经启用 | true |
body.edges.cabinet.edges | [object] | ||
body.edges.node | [object] | ||
body.edges.node.id | [number] | 节点ID | 1008 |
body.edges.node.label | [string] | 节点标签 | 枣庄192.168.169.41 |
body.edges.node.asset_number | [string] | 节点资产编号 | MB653 |
body.edges.node.room_id | [number] | 节点机房ID | 264 |
body.edges.node.cabinet_id | [number] | 节点机柜ID | 54 |
body.edges.node.parent_id | [number] | 节点的设备ID | 2731 |
body.edges.node.sn | [string] | 节点SN | |
body.edges.node.mac | [string] | 节点MAC地址 | f0a2:74:22:35 |
body.edges.node.spec_id | [number] | 节点规格ID | 25 |
body.edges.node.service_id | [number] | 节点业务ID | 2394 |
body.edges.node.ipmi_ip_id | [number] | 节点的内网IP ID | 1066 |
body.edges.node.ipmi_user | [string] | 节点的IPMI管理用户 | root |
body.edges.node.ipmi_password | [string] | 节点的IPMI管理密码 | root |
body.edges.node.admin_password | [string] | 节点的系统密码 | |
body.edges.node.status | [string] | 节点的电源状态 | power_on |
body.edges.node.remark | [string] | 节点的备注信息 | |
body.edges.node.enabled | [boolean] | 节点是否已经启用 | true |
body.edges.node.edges | [object] | ||
body.edges.node.edges.ipmi_ip | [object] | 节点绑定的内网IP | |
body.edges.node.edges.ipmi_ip.id | [number] | 内网IP ID | 1066 |
body.edges.node.edges.ipmi_ip.room_id | [number] | 内网IP的机房ID | 264 |
body.edges.node.edges.ipmi_ip.addr | [string] | 内网IP地址 | 192.168.169.41 |
body.edges.node.edges.ipmi_ip.mask | [string] | 内网IP掩码 | 255.255.255.0 |
body.edges.node.edges.ipmi_ip.gateway | [string] | 内网IP网关 | 192.168.169.1 |
body.edges.node.edges.ipmi_ip.inuse | [boolean] | 内网IP是否正在使用 | true |
body.edges.node.edges.ipmi_ip.node_id | [number] | 内网IP绑定的节点ID | 1008 |
body.edges.node.edges.ipmi_ip.enabled | [boolean] | 内网IP是否可用 | true |
body.edges.node.edges.ipmi_ip.remark | [string] | 内网IP备注 | |
body.edges.node.edges.ipmi_ip.edges | [object] | ||
body.edges.node.edges.public_ip | [array] | 节点绑定的公网IP | |
body.edges.node.edges.public_ip.id | [number] | 公网IP ID | 4922 |
body.edges.node.edges.public_ip.room_id | [number] | 公网IP 机房ID | 264 |
body.edges.node.edges.public_ip.pool_id | [number] | 公网IP所在的IP池ID | 50 |
body.edges.node.edges.public_ip.parent_id | [number] | 公网IP的父IP ID | |
body.edges.node.edges.public_ip.addr | [string] | 公网IP地址 | 202.189.4.213 |
body.edges.node.edges.public_ip.vlan | [number] | 公网IP VLAN | 214 |
body.edges.node.edges.public_ip.mask | [string] | 公网IP掩码 | 255.255.255.0 |
body.edges.node.edges.public_ip.gateway | [string] | 公网IP网关 | 202.189.4.1 |
body.edges.node.edges.public_ip.dns1 | [string] | 公网IP DNS1 | 114.114.114.114 |
body.edges.node.edges.public_ip.dns2 | [string] | 公网IP DNS2 | 8.8.8.8 |
body.edges.node.edges.public_ip.enabled | [boolean] | 公网IP是否已经启用 | true |
body.edges.node.edges.public_ip.bind_type | [string] | 公网IP绑定类型 | node |
body.edges.node.edges.public_ip.bind_node_id | [number] | 公网IP绑定的节点ID | 1008 |
body.edges.node.edges.public_ip.bind_network_id | [number] | 公网IP绑定的网络设备ID | |
body.edges.node.edges.public_ip.bind_trusteeship_id | [number] | 公网IP绑定的托管设备ID | |
body.edges.node.edges.public_ip.remark | [string] | 公网IP备注 | |
body.edges.node.edges.public_ip.edges | [object] |
响应示例:
{
"request_id": "0948a970-e0d4-42db-a10d-db73b3c5feb5",
"body": {
"id": 2394,
"suid": "5hG7reWs",
"node_id": 1008,
"room_id": 264,
"cabinet_id": 54,
"bandwidth": 50,
"ip_num": 1,
"spec_code": "bzb-b",
"template_code": "centos76",
"admin_user": "root",
"admin_password": "6lnQsEcHroCOzs1k",
"edges": {
"room": {
"id": 264,
"name": "枣庄",
"url": "http://202.189.4.222:9931",
"admin_user": "cloudinstall",
"admin_passwd": "nXk79wGYWOEZLNSA",
"address": "",
"director": "",
"tel": "0",
"vlan": "169",
"activated": true,
"edges": {}
},
"cabinet": {
"id": 54,
"name": "3L-A15",
"room_id": 264,
"u_sum": 47,
"u_surplus": 0,
"trusteeship_max_unit": 10,
"trusteeship_per_max_unit": 20,
"power": "",
"enabled": true,
"edges": {}
},
"node": {
"id": 1008,
"label": "枣庄192.168.169.41",
"asset_number": "MB653",
"room_id": 264,
"cabinet_id": 54,
"parent_id": 2731,
"sn": "",
"mac": "f0:4d:a2:74:22:35",
"spec_id": 25,
"service_id": 2394,
"ipmi_ip_id": 1066,
"ipmi_user": "root",
"ipmi_password": "root",
"admin_password": "",
"status": "power_on",
"remark": "",
"enabled": true,
"edges": {
"ipmi_ip": {
"id": 1066,
"room_id": 264,
"addr": "192.168.169.41",
"mask": "255.255.255.0",
"gateway": "192.168.169.1",
"inuse": true,
"node_id": 1008,
"enabled": true,
"remark": "",
"edges": {}
},
"public_ip": [
{
"id": 4922,
"room_id": 264,
"pool_id": 50,
"parent_id": 0,
"addr": "202.189.4.213",
"vlan": 214,
"mask": "255.255.255.0",
"gateway": "202.189.4.1",
"dns1": "114.114.114.114",
"dns2": "8.8.8.8",
"enabled": true,
"bind_type": "node",
"bind_node_id": 1008,
"bind_network_id": 0,
"bind_trusteeship_id": 0,
"remark": "",
"edges": {}
}
]
}
}
}
}
}