Baremetal

baremetal

Domain types

BaremetalFlavorPricingSchema = { currency_code, disabled, flavor_id, 6 more... }

Bare metal flavors

Baremetal

Capacity

baremetal.capacity

Methods

Get Amount Of Available Bare Metal Nodes It S Similar V1 Bmcapacity Just With Project ID In Path ->
get/v1/bmcapacity/{project_id}/{region_id}

Get amount of available bare metal nodes It's similar v1/bmcapacity just with in path

Get Amount Of Available Bare Metal Nodes Without Client S Reservations It S Similar V2 Bmcapacity Just Without Project ID In Path ->
get/v2/bmcapacity/{region_id}

Get amount of available bare metal nodes without client's reservations It's similar v2/bmcapacity just without in path

Domain types

BaremetalCapacity = { capacity }

Available bare metal nodes count per flavor

Baremetal

Flavors

baremetal.flavors

Methods

List Bare Metal Flavors -> { count, results }
get/v1/bmflavors/{project_id}/{region_id}

Retrieve a list of flavors. When the include_prices query parameter is specified, the list shows prices. A client in trial mode gets all price values as 0. If you get Pricing Error contact the support

List Bare Metal Flavors From Default Project For Current Client -> { count, results }
get/v1/bmflavors/{region_id}

Retrieve a list of flavors. When the include_prices query parameter is specified, the list shows prices. A client in trial mode gets all price values as 0. If you get Pricing Error contact the support

Baremetal

Images

baremetal.images

Methods

Create Image -> { tasks }
post/v1/bmimages/{project_id}/{region_id}

Create image

List Images For Bare Metal Servers -> { count, results }
get/v1/bmimages/{project_id}/{region_id}

Retrieve the available images list for bare metal servers. Returned entities may or may not be owned by the project

Baremetal

Instances

baremetal.instances

Methods

Check Quota For Bare Metal Server Creation -> { baremetal_basic_count_limit, baremetal_basic_count_requested, baremetal_basic_count_usage, 126 more... }
post/v1/bminstances/{project_id}/{region_id}/check_limits

Check if regional quota is exceeded, if yes the number of additional quotas needed to create the specified bare metal server will be calculated

Create Bare Metal Server -> { tasks }
post/v1/bminstances/{project_id}/{region_id}

Create a new bare metal server or multiple servers

Get Flavors For Bare Metal Server -> { count, results }
post/v1/bminstances/{project_id}/{region_id}/available_flavors

Get flavors available for a potential bare metal server

List Bare Metal Servers -> OffsetPage<{ addresses, blackhole_ports, creator_task_id, 21 more... }>
get/v1/bminstances/{project_id}/{region_id}

The date and time stamp format in changes-since or changes-before should be ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. Values must be urlencoded. If the time zone is omitted, the UTC time zone is assumed. When both changes-since and changes-before are specified, the value of the changes-since must be earlier than or equal to the value of the changes-before.

Parameters
project_id: number
region_id: number
changes-before: string
Optional

Filters the instances by a date and time stamp when the instances last changed. Those instances that changed before or equal to the specified date and time stamp are returned.

changes-since: string
Optional

Filters the instances by a date and time stamp when the instances last changed status.

flavor_id: string
Optional

Filter out instances by flavor_id. Flavor id must match exactly. Example: "g1-standard-1-2"

flavor_prefix: string
Optional

Filter out instances by flavor_prefix. Example: "g1-standard" or "g1-"

include_k8s: boolean
Optional

Include k8s instances. default True.

ip: string
Optional

An IPv4 address to filter results by. Regular expression allowed

limit: number
Optional

Limit the number of returned instances

metadata_kv: string
Optional

Filter by metadata key-value pairs. Must be a valid JSON string. curl -G --data-urlencode "metadata_kv={"key": "value"}" --url "http://localhost:1111/v1/instances/1/1"

metadata_v: string
Optional

Filter by metadata values. Must be a valid JSON string. curl -G --data-urlencode "metadata_v=["value", "sense"]" --url "http://localhost:1111/v1/instances/1/1"

name: string
Optional

Filter out instances by name. Use MySQL regular expression. Example: "^.est_...._[0-9]$". Also, any substring can be used and instances will be returned with names containing the substring. Example: "test".

offset: number
Optional

Offset value is used to exclude the first set of records from the result

only_isolated: boolean
Optional

Include only isolated instances. default False.

only_with_fixed_external_ip: boolean
Optional

Return bare metals only with external fixed IP addresses.

order_by: string
Optional

Order instances by transmitted fields and directions (name.asc).

profile_name: string
Optional

Filter result by profile name. Effective only with with_ddos set to true.

protection_status: string
Optional

Filter result by DDoS protection_status. if parameter is provided. Effective only with with_ddos set to true. (Active, Queued or Error)

status: string
Optional

Filters instances by a server status, as a string. Possible statuses are ACTIVE, ERROR, SHUTOFF, REBOOT, PAUSED, etc.

type_ddos_profile: string
Optional

Return bare metals either only with advanced or only basic DDoS protection. Effective only with with_ddos set to true. (advanced or basic)

uuid: string
Optional

Filter the server list result by the UUID of the server. Allowed UUID part

with_ddos: boolean
Optional

DDoS profile information will be included to Bare metal servers

Response fields
count: number
Optional

Number of objects

results: Array<{ addresses, blackhole_ports, creator_task_id, 21 more... }>
Optional

Objects

Request example
200Example
Rebuild Bare Metal Server -> { tasks }
post/v1/bminstances/{project_id}/{region_id}/{instance_id}/rebuild

Rebuild bare metal server