Skip to main content
POST
/
v1
/
baremetals
Create baremetal servers
curl --request POST \
  --url https://console.gmicloud.ai/api/v1/baremetals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "count": 2,
  "idc": "<string>",
  "imageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "product": "<string>",
  "enableZabbixAgent": true,
  "internalIp": "<string>",
  "sshKey": "<string>",
  "sshKeyIdList": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
count
integer
required
Required range: x >= 1
idc
string
required
Maximum string length: 50
imageId
string<uuid>
required

The ID of the image to use for creating the baremetal instance

name
string
required
Maximum string length: 255
product
string
required
Maximum string length: 256
enableZabbixAgent
boolean
default:true

Whether to enable Zabbix agent on the baremetal node

internalIp
string

Manually allocate internal IP address(IPv4 only). If not provided, internal IP will be allocated automatically. It only supports single baremetal creation.

Required string length: 7 - 15
sshKey
string
Minimum string length: 1
sshKeyIdList
string<uuid>[]

The list of SSH key IDs to use for creating the baremetal instance

Response

successful

id
string<uuid>
required