Bare metal APIv1alpha1

Download OpenAPI

Introduction

Bare metal as a service allow to order a dedicated server on-demand like cloud instance. Dedicated servers could be used for large workloards, big data, those requiring more security, ….

Technical Limitations

  • Bare metal is only available in fr-par-2 zone

  • Installation is done by preseed (± 10min)

  • The list of OS is limited, but you can install a custom one with remote access

  • Install (Server is installed by preseed, you must define at least one ssh key to install your server)

  • Start/Stop/Reboot

  • Rescue Reboot (Ubuntu could be installed in rescue reboot)

  • Remote access (can manage a remote access to your server, use it for custom install)

  • Billed by minute (The billing start when the server is delivered and stop when the server is deleted)

  • IPv6 (all servers are available with an IPv6)

  • ReverseIP, You can configure your own reverse ip, you must register the server ip in your DNS records before call the endpoint

How can I get my ssh key id ?

You can get your ssh key id with this curl:

curl "https://account.scaleway.com/organizations/$ORGANIZATION-ID" -H 'Accept: application/json' -H "X-Auth-Token: $SECRET-KEY"

Response:

{
"organization":{
...
"users":[
{
...
"ssh_public_keys":[
{
...
"id":"19120f51-cc0d-42c8-90e0-4c9b7212f782", // <-- this is the ssh key id
...
},
...
]
}
]
}
}

You can find it here: https://console.scaleway.com/account/credentials Generate a new token and take the secret-key.

A server represents a dedictaed baremetal server.

List all created servers.

GET
/baremetal/v1alpha1/zones/{zone}/servers
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.
Query Parameters

page
number
Page number. The default value is 1.

page_size
number
Number of server per page. The default value is 20.

order_by
string
Order of the servers. Possible values are created_at_asc and created_at_desc. The default value is created_at_asc.

tags
array
Filter servers by tags.

status
array
Filter servers by status.

name
nullable string
Filter servers by name.
200 Response

total_count
number
Total count of matching servers.

servers
array
Servers that match filters.
id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"total_count": 42,
"servers": [
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}
]
}

Create a new server. Once the server is created, you probably want to install an OS.

POST
/baremetal/v1alpha1/zones/{zone}/servers
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.
Body

offer_id
required string
Offer ID of the new server.

organization_id
required string
Organization ID with which the server will be created.

name
required string
Name of the server (≠hostname).

description
required string
Description associated to the server, max 255 characters.

tags
array
Tags to associate to the server.
Request Example
{
"offer_id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"tags": [
"string"
]
}
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

Get the server associated with the given ID.

GET
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server.
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

Update the server associated with the given ID.

PATCH
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server to update.
Body

name
nullable string
Name of the server (≠hostname), not updated if null.

description
nullable string
Description associated to the server, max 255 characters, not updated if null.

tags
nullable array
Tags associated to the server, not updated if null.
Request Example
{
"name": "string",
"description": "string",
"tags": [
"string"
]
}
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

Delete the server associated with the given ID.

DELETE
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server to delete.
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

List events associated to the given server ID.

GET
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/events
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server events searched.
Query Parameters

page
number
Page number. The default value is 1.

page_size
number
Number of server events per page. The default value is 20.

order_by
string
Order of the server events. Possible values are created_at_asc and created_at_desc. The default value is created_at_asc.
200 Response

total_count
number
Total count of matching events.

event
array
Server events that match filters.
id
string
ID of the server for whom the action will be applied.

action
string
The action that will be applied to the server.

updated_at
string
Date of last modification of the action.

created_at
string
Date of creation of the action.
Response Example
{
"total_count": 42,
"event": [
{
"id": "string",
"action": "string",
"updated_at": "string",
"created_at": "string"
}
]
}

Install an OS on the server associated with the given ID.

POST
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/install
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
Server ID to install.
Body

os_id
required string
ID of the OS to install on the server.

hostname
required string
Hostname of the server.

ssh_key_ids
required array
SSH key IDs authorized on the server.
Request Example
{
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
]
}
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

Configure ip associated with the given server ID and ipID. You can use this method to set a reverse dns for an IP.

PATCH
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/ips/{ip_id}
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server.

ip_id
required string
ID of the IP to update.
Body

reverse
nullable string
New reverse IP to update, not updated if null.
Request Example
{
"reverse": "string"
}
200 Response

id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.
Response Example
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}

Server actions allows you to start, stop or reboot your servers.

Reboot the server associated with the given ID, use boot param to reboot in rescue.

POST
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/reboot
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server to reboot.
Body

boot_type
string
The type of boot. Possible values are normal and rescue. The default value is normal.
Request Example
{
"boot_type": "normal"
}
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

Start the server associated with the given ID.

POST
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/start
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server to start.
Body

Request Example
{}
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

Stop the server associated with the given ID.

POST
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/stop
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server to stop.
Body

Request Example
{}
200 Response

id
string
ID of the server.

organization_id
string
Organization ID the server is attached to.

name
string
Name of the server.

description
string
Description of the server.

updated_at
string
Date of last modification of the server.

created_at
string
Date of creation of the server.

status
string
Status of the server. Possible values are unknown, undelivered, ready, stopping, stopped, starting, error, deleting and locked. The default value is unknown.

offer_id
string
Offer ID of the server.

install
object
Information about the last installation of the server.
os_id
string
ID of the OS.

hostname
string
Host defined in the server install.

ssh_key_ids
array
SSH public key IDs defined in the server install.

status
string
Status of the server install. Possible values are unknown, completed, installing, to_install and error. The default value is unknown.

tags
array
Array of customs tags attached to the server.

ips
array
Array of IPs attached to the server.
id
string
ID of the IP.

address
string
Address of the IP.

reverse
string
Reverse IP value.

version
string
Version of IP (v4 or v6). Possible values are Ipv4 and Ipv6. The default value is Ipv4.

reverse_status
string
Status of the reverse. Possible values are unknown, pending, active and error. The default value is unknown.

reverse_status_message
nullable string
A message related to the reverse status, in case of an error for example.

domain
string
Domain of the server.

boot_type
string
Boot type of the server. Possible values are normal and rescue. The default value is normal.
Response Example
{
"id": "string",
"organization_id": "string",
"name": "string",
"description": "string",
"updated_at": "string",
"created_at": "string",
"status": "unknown",
"offer_id": "string",
"install": {
"os_id": "string",
"hostname": "string",
"ssh_key_ids": [
"string"
],
"status": "unknown"
},
"tags": [
"string"
],
"ips": [
{
"id": "string",
"address": "string",
"reverse": "string",
"version": "Ipv4",
"reverse_status": "unknown",
"reverse_status_message": "string"
}
],
"domain": "string",
"boot_type": "normal"
}

Remote access allow you to access serie console of your baremetal server. The remote access feature is available one hour after the installation of the server.

Get the remote server access associated with the given ID.

GET
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/remote-access
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server.
200 Response

url
string
URL to access to the server console.

login
string
The login to use for the remote access authentification.

password
string
The password to use for the remote access authentification.

expires_at
string
The date after which the remote access will be closed.
Response Example
{
"url": "string",
"login": "string",
"password": "string",
"expires_at": "string"
}

Create remote server access associated with the given ID. The remote access is available one hour after the installation of the server.

POST
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/remote-access
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server.
Body

ip
required string
The IP authorized to connect to the given server.
Request Example
{
"ip": "string"
}
200 Response

url
string
URL to access to the server console.

login
string
The login to use for the remote access authentification.

password
string
The password to use for the remote access authentification.

expires_at
string
The date after which the remote access will be closed.
Response Example
{
"url": "string",
"login": "string",
"password": "string",
"expires_at": "string"
}

Delete remote server access associated with the given ID.

DELETE
/baremetal/v1alpha1/zones/{zone}/servers/{server_id}/remote-access
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.

server_id
required string
ID of the server.
204 Response

Empty response

List all available server offers.

GET
/baremetal/v1alpha1/zones/{zone}/offers
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.
Query Parameters

page
number
Page number. The default value is 1.

page_size
number
Number of offers per page. The default value is 20.
200 Response

total_count
number
Total count of matching offers.

offers
array
Offers that match filters.
id
string
ID of the offer.

name
string
Name of the offer.

stock
string
Stock level. Possible values are empty, low and available. The default value is empty.

bandwidth
number
Bandwidth available with the offer.

commercial_range
string
Commercial range of the offer.

price_by_minute
object
Price of the offer by minutes, this field is deprecated, please use `price_per_sixty_minutes` instead.
currency_code
string

units
number

nanos
number

price_by_month
object
Price of the offer by months, this field is deprecated, please use `price_per_month` instead.
currency_code
string

units
number

nanos
number

price_per_sixty_minutes
object
Price of the offer for the next 60 minutes (a server order at 11h32 will be payed until 12h32).
currency_code
string

units
number

nanos
number

price_per_month
object
Price of the offer per months.
currency_code
string

units
number

nanos
number

disk
array
Disks specifications of the offer.
capacity
number
Capacity of the disk in GB.

type
string
Type of the disk.

enable
boolean
True if the offer is currently available.

cpu
array
CPU specifications of the offer.
name
string
Name of the CPU.

cores
number
Number of cores of the CPU.

threads
number
Number of threads of the CPU.

frequency
number

memory
array
Memory specifications of the offer.
capacity
number

type
string

frequency
number

ecc
boolean

quota_name
string
Name of the quota associated to the offer.
Response Example
{
"total_count": 42,
"offers": [
{
"id": "string",
"name": "string",
"stock": "empty",
"bandwidth": 42,
"commercial_range": "string",
"price_by_minute": {
"currency_code": "string",
"units": 42,
"nanos": 42
},
"price_by_month": {
"currency_code": "string",
"units": 42,
"nanos": 42
},
"price_per_sixty_minutes": {
"currency_code": "string",
"units": 42,
"nanos": 42
},
"price_per_month": {
"currency_code": "string",
"units": 42,
"nanos": 42
},
"disk": [
{
"capacity": 42,
"type": "string"
}
],
"enable": "boolean",
"cpu": [
{
"name": "string",
"cores": 42,
"threads": 42,
"frequency": 42
}
],
"memory": [
{
"capacity": 42,
"type": "string",
"frequency": 42,
"ecc": "boolean"
}
],
"quota_name": "string"
}
]
}

List all available OS that can be install on a baremetal server.

GET
/baremetal/v1alpha1/zones/{zone}/os
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.
Query Parameters

page
number
Page number. The default value is 1.

page_size
number
Number of OS per page. The default value is 20.
200 Response

total_count
number
Total count of matching OS.

os
array
OS that match filters.
id
string
ID of the OS.

name
string
Name of the OS.

version
string
Version of the OS.
Response Example
{
"total_count": 42,
"os": [
{
"id": "string",
"name": "string",
"version": "string"
}
]
}

List all consumptions for servers.

GET
/baremetal/v1alpha1/zones/{zone}/consumptions
Path Parameters

zone
required string
The zone you want to target. Possible value is fr-par-2.
200 Response

consumptions_organizations
map
Consumptions of all your servers by quota name and organization ID (map[ORGGANIZATION_ID]map[QUOTA_NAME]CONSUMPTION).
<consumptions_organizationKey>
object
consumptions
map
Consumptions by quota name (map[QUOTA_NAME]CONSUMPTION).
<consumptionKey>
number
Response Example
{
"consumptions_organizations": {
"<consumptions_organizationKey>": {
"consumptions": {
"<consumptionKey>": 42
}
}
}
}