Create bare metal servers
POST/backend/api/servers/
Host: https://core.ocplanet.cloud
Create bare metal servers.
Request
- application/json
Body
disk_layout_id integer
name stringrequired
os integerrequired
password stringrequired
ssh_keys string[]
tags string[]required
Responses
- 201
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
- Array [
- ]
server object
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
{
"server": {
"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"
]
}
}
{
"type": "object",
"properties": {
"server": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"image": {
"type": "string"
},
"create_at": {
"type": "string"
},
"name": {
"type": "string"
},
"primary_ip": {
"type": "string"
},
"type": {
"type": "string"
},
"cpu": {
"type": "object",
"properties": {
"model": {
"type": "string"
},
"value": {
"type": "integer"
},
"count": {
"type": "integer"
},
"value_type": {
"type": "string"
},
"cores": {
"type": "integer"
},
"threads": {
"type": "integer"
},
"mhzTurbo": {
"type": "integer"
}
},
"required": [
"model",
"value",
"count",
"value_type",
"cores",
"threads",
"mhzTurbo"
],
"title": "CPU"
},
"floating_ips": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ip": {
"type": "string"
},
"ip_attributes": {
"type": "object",
"properties": {
"is_IP_v4": "boolean",
"is_IP_v6": "boolean",
"is_subnet": "boolean"
},
"required": [
"is_IP_v4",
"is_IP_v6",
"is_subnet"
]
},
"primary_ip": "boolean",
"subnet_information": {
"type": "object",
"properties": {
"gw": "string",
"netmask": "string",
"subnet": "string",
"type": "string"
},
"required": [
"gw",
"netmask",
"subnet",
"type"
]
},
"updated_at": {
"type": "string"
}
},
"required": [
"ip",
"ip_attributes",
"primary_ip",
"subnet_information",
"updated_at"
],
"title": "BMFloatingIP"
}
},
"memory": {
"type": "objects",
"properties": {
"model": {
"type": "string"
},
"value": {
"type": "integer"
},
"count": {
"type": "integer"
},
"value_type": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"properties": {
"model": {
"type": "string"
},
"size": {
"type": "integer"
}
},
"required": [
"model",
"size"
]
}
}
},
"required": [
"model",
"value",
"count",
"value_type",
"details"
],
"title": "RAM"
},
"state": {
"type": "object",
"properties": {
"power_status": {
"type": "string"
},
"reinstall_run": {
"type": "boolean"
}
},
"required": [
"power_status",
"reinstall_run"
]
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"image",
"create_at",
"name",
"primary_ip",
"type",
"cpu",
"floating_ips",
"memory",
"state",
"tags"
],
"title": "BMServer"
}
},
"required": [
"server"
]
}
Loading...