Set floating IP to bare metal server.
POST/backend/api/servers/:server_id/floating_ip/
Host: https://core.ocplanet.cloud
Set floating IP to bare metal server.
Request
- application/json
Body
ip stringrequired
Responses
- 201
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
- Array [
- ]
id integerrequired
image stringrequired
create_at stringrequired
name stringrequired
primary_ip stringrequired
type stringrequired
cpu objectrequired
model stringrequired
value integerrequired
count integerrequired
value_type stringrequired
cores integerrequired
threads integerrequired
mhzTurbo integerrequired
floating_ips object[]required
ip stringrequired
ip_attributes objectrequired
is_IP_v4 required
is_IP_v6 required
is_subnet required
primary_ip required
subnet_information objectrequired
gw required
netmask required
subnet required
type required
updated_at stringrequired
memory RAMrequired
model stringrequired
value integerrequired
count integerrequired
value_type stringrequired
details object[]required
model stringrequired
size integerrequired
state objectrequired
power_status stringrequired
reinstall_run booleanrequired
tags string[]required
{
"id": 0,
"image": "string",
"create_at": "string",
"name": "string",
"primary_ip": "string",
"type": "string",
"cpu": {
"model": "string",
"value": 0,
"count": 0,
"value_type": "string",
"cores": 0,
"threads": 0,
"mhzTurbo": 0
},
"floating_ips": [
{
"ip": "string",
"ip_attributes": {},
"subnet_information": {},
"updated_at": "string"
}
],
"state": {
"power_status": "string",
"reinstall_run": true
},
"tags": [
"string"
]
}
{
"id": 153,
"name": "bmserver.com",
"image": "CentOS 7",
"tags": [
"tag1"
],
"type": "type 1",
"state": {
"reinstall_run": false,
"power_status": "online"
},
"primary_ip": "217.147.172.253",
"memory": {
"model": "multiple",
"value": 16384,
"count": 4,
"value_type": "mb",
"details": [
{
"model": "NOT AVAILABLE",
"size": 4096
},
{
"model": "NOT AVAILABLE",
"size": 4096
},
{
"model": "NOT AVAILABLE",
"size": 4096
},
{
"model": "NOT AVAILABLE",
"size": 4096
}
]
},
"cpu": {
"model": "Intel Xeon E5-4650 0",
"value": 1200,
"count": 2,
"value_type": "MHz",
"cores": 16,
"threads": 64,
"mhzTurbo": 3300
},
"storage": {
"model": "LOGICAL VOLUME",
"value": 572293,
"count": 1,
"value_type": "mib",
"details": [
{
"model": "LOGICAL VOLUME",
"size": 572293
}
]
},
"floating_ips": [
{
"updated_at": "2024-03-26T14:31:22Z",
"ip": "217.147.172.2",
"primary_ip": false,
"ip_attributes": {
"is_IP_v4": true,
"is_IP_v6": false,
"is_subnet": false
},
"subnet_information": {
"subnet": "217.147.172.0",
"netmask": "255.255.255.0",
"gw": "217.147.172.1",
"type": "v4"
}
},
{
"updated_at": "2024-02-19T14:58:41Z",
"ip": "217.147.172.253",
"primary_ip": true,
"ip_attributes": {
"is_IP_v4": true,
"is_IP_v6": false,
"is_subnet": false
},
"subnet_information": {
"subnet": "217.147.172.0",
"netmask": "255.255.255.0",
"gw": "217.147.172.1",
"type": "v4"
}
}
],
"created_at": "2024-03-26T11:20:17Z"
}
Loading...