Skip to content

Instance

All operations require authentication.

4 operationsv2/publicCloud/project
Agent setup

List instance flavorsProduction

GET
/v2/publicCloud/project/{projectId}/reference/instance/flavor

Returns the instance flavors available to the project, in the regions activated on the project and in those the project can activate. location.regionActivated on each flavor tells which regions must be activated on the project before use. location.availabilityZones lists the availability zones of the region, for example eu-west-par-a, eu-west-par-b and eu-west-par-c, and is empty for a single-AZ region. A region filter on a region that does not exist is rejected. On a region the project can neither use nor activate, it returns an empty list. A flavor is a read-only sizing template (vCPUs, RAM, disk) used to create or resize an instance. A new or disabled flavor, or a private flavor newly granted to the project, can take up to one minute to show in this list.

Path parameters

projectId
required
string

Project ID

Query parameters

name
string

Optional flavor name filter, for example b2-7

region
string

Optional region filter

Headers

X-Pagination-Cursor
string

Pagination cursor

X-Pagination-Size
integer

Pagination size

Response

200Flavor[]successful operation
bandwidth
read-only
FlavorBandwidth

Network bandwidth an instance of the flavor gets in Mbit/s

description
read-only
string

Free-form description of the flavor as reported by the backend. Null when no description is advertised for this flavor.

disk
read-only
integer

Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.

ephemeral
read-only
integer

Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient. Its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.

gpus
read-only
integer

Number of physical GPUs provided by the flavor. Zero for flavors without GPU.

id
read-only
stringuuid

Identifier. The OpenStack/Nova flavor ID. Stable within a region and used to reference the flavor when creating an instance.

isPublic
read-only
boolean

Public availability. Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.

location
read-only
Location

Location. Region where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another. regionActivated tells whether the region is already activated on the project. When false, the region must be activated on the project before use. availabilityZones lists the availability zones of the region, empty for a single-AZ region.

name
read-only
string

The backend flavor name, for example b2-7, c2-15. This is the commercial/technical name used to identify the sizing in the catalog.

ram
read-only
integer

RAM in MB. Amount of memory provided by the flavor, expressed in MB.

swap
read-only
integer

Size of the flavor's swap space in MB. Zero when the flavor provides no swap.

vcpus
read-only
integer

vCPUs. Number of virtual CPUs provided by the flavor.

Example uses projectId = string

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/reference/instance/flavor \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "bandwidth": { "private": 0, "publicInbound": 0, "publicOutbound": 0 }, "description": "string", "disk": 0, "ephemeral": 0, "gpus": 0, "id": "00000000-0000-0000-0000-000000000000", "isPublic": true, "location": { "availabilityZones": [ "string" ], "region": "string", "regionActivated": true }, "name": "string", "ram": 0, "swap": 0, "vcpus": 0 }]

Get an instance flavorProduction

GET
/v2/publicCloud/project/{projectId}/reference/instance/flavor/{id}

Returns one instance flavor with its vCPUs, RAM and disk. location.regionActivated tells whether the flavor's region is already activated on the project. When false, the region must be activated on the project before use. location.availabilityZones lists the availability zones of the region, for example eu-west-par-a, eu-west-par-b and eu-west-par-c, and is empty for a single-AZ region. Use its id in targetSpec.flavor to create or resize an instance.

Path parameters

id
required
stringuuid

Id

projectId
required
string

Project ID

Response

200Flavorsuccessful operation
bandwidth
read-only
FlavorBandwidth

Network bandwidth an instance of the flavor gets in Mbit/s

description
read-only
string

Free-form description of the flavor as reported by the backend. Null when no description is advertised for this flavor.

disk
read-only
integer

Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.

ephemeral
read-only
integer

Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient. Its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.

gpus
read-only
integer

Number of physical GPUs provided by the flavor. Zero for flavors without GPU.

id
read-only
stringuuid

Identifier. The OpenStack/Nova flavor ID. Stable within a region and used to reference the flavor when creating an instance.

isPublic
read-only
boolean

Public availability. Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.

location
read-only
Location

Location. Region where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another. regionActivated tells whether the region is already activated on the project. When false, the region must be activated on the project before use. availabilityZones lists the availability zones of the region, empty for a single-AZ region.

name
read-only
string

The backend flavor name, for example b2-7, c2-15. This is the commercial/technical name used to identify the sizing in the catalog.

ram
read-only
integer

RAM in MB. Amount of memory provided by the flavor, expressed in MB.

swap
read-only
integer

Size of the flavor's swap space in MB. Zero when the flavor provides no swap.

vcpus
read-only
integer

vCPUs. Number of virtual CPUs provided by the flavor.

Example uses id = 00000000-0000-0000-0000-000000000000, projectId = string

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/reference/instance/flavor/{id} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "bandwidth": { "private": 0, "publicInbound": 0, "publicOutbound": 0 }, "description": "string", "disk": 0, "ephemeral": 0, "gpus": 0, "id": "00000000-0000-0000-0000-000000000000", "isPublic": true, "location": { "availabilityZones": [ "string" ], "region": "string", "regionActivated": true }, "name": "string", "ram": 0, "swap": 0, "vcpus": 0}

List instance imagesProduction

GET
/v2/publicCloud/project/{projectId}/reference/instance/image

Returns the operating system images available to the project. Images are provided by the platform and are read-only.

Path parameters

projectId
required
string

Project ID

Query parameters

region
string

Optional region filter

Headers

X-Pagination-Cursor
string

Pagination cursor

X-Pagination-Size
integer

Pagination size

Response

200Image[]successful operation
createdAt
read-only
stringdate-time

Creation date. Timestamp at which the image was created on the backend, in RFC 3339 format.

defaultUser
read-only
string

Default login user of the image, as set by its publisher, for example almalinux or ubuntu. Null when the image declares none.

id
read-only
stringuuid

Identifier. The OpenStack/Glance image ID. Stable within a region and used to reference the image when creating an instance.

location
read-only
Location

Location. Region (and, where applicable, availability zone) where this image is offered. The image catalog is per-region: an image returned for one region is not guaranteed to exist in another.

minDisk
read-only
integer

Minimum root disk size in GB that an instance must provide to boot from this image. A flavor whose disk is smaller than this value cannot be used with the image.

minRam
read-only
integer

Minimum amount of memory in MB that an instance must provide to boot from this image. A flavor whose RAM is below this value cannot be used with the image.

name
read-only
string

Display name of the image as reported by the backend, for example the distribution and version, such as Debian 12

osType
read-only
ImageOSTypeEnum

Operating system type. Operating system family of the image (see ImageOSTypeEnum). Windows images can only boot on Windows flavors.

ValuesBAREMETAL_LINUXLINUXWINDOWS
size
read-only
integer

Size of the image on the backend, expressed in bytes

status
read-only
ImageStatusEnum

Availability status of the image as reported by the backend (see ImageStatusEnum). Only images in an active status can be used to create an instance.

ValuesACTIVEDEACTIVATEDDELETEDIMPORTINGKILLEDPENDING_DELETEQUEUEDSAVING
updatedAt
read-only
stringdate-time

Last update date. Timestamp of the last modification of the image on the backend, in RFC 3339 format.

visibility
read-only
ImageVisibilityEnum

Visibility scope of the image (see ImageVisibilityEnum), for example whether it is a public OVHcloud-provided image or private to the project

ValuesCOMMUNITYPRIVATEPUBLICSHARED

Example uses projectId = string

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/reference/instance/image \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "createdAt": "2024-01-01T12:00:00Z", "defaultUser": "string", "id": "00000000-0000-0000-0000-000000000000", "location": { "availabilityZone": "string", "region": "string" }, "minDisk": 0, "minRam": 0, "name": "string", "osType": "BAREMETAL_LINUX", "size": 0, "status": "ACTIVE", "updatedAt": "2024-01-01T12:00:00Z", "visibility": "COMMUNITY" }]

Get an instance imageProduction

GET
/v2/publicCloud/project/{projectId}/reference/instance/image/{id}

Returns one operating system image. Use its id in targetSpec.image to create or rebuild an instance.

Path parameters

id
required
stringuuid

Id

projectId
required
string

Project ID

Response

200Imagesuccessful operation
createdAt
read-only
stringdate-time

Creation date. Timestamp at which the image was created on the backend, in RFC 3339 format.

defaultUser
read-only
string

Default login user of the image, as set by its publisher, for example almalinux or ubuntu. Null when the image declares none.

id
read-only
stringuuid

Identifier. The OpenStack/Glance image ID. Stable within a region and used to reference the image when creating an instance.

location
read-only
Location

Location. Region (and, where applicable, availability zone) where this image is offered. The image catalog is per-region: an image returned for one region is not guaranteed to exist in another.

minDisk
read-only
integer

Minimum root disk size in GB that an instance must provide to boot from this image. A flavor whose disk is smaller than this value cannot be used with the image.

minRam
read-only
integer

Minimum amount of memory in MB that an instance must provide to boot from this image. A flavor whose RAM is below this value cannot be used with the image.

name
read-only
string

Display name of the image as reported by the backend, for example the distribution and version, such as Debian 12

osType
read-only
ImageOSTypeEnum

Operating system type. Operating system family of the image (see ImageOSTypeEnum). Windows images can only boot on Windows flavors.

ValuesBAREMETAL_LINUXLINUXWINDOWS
size
read-only
integer

Size of the image on the backend, expressed in bytes

status
read-only
ImageStatusEnum

Availability status of the image as reported by the backend (see ImageStatusEnum). Only images in an active status can be used to create an instance.

ValuesACTIVEDEACTIVATEDDELETEDIMPORTINGKILLEDPENDING_DELETEQUEUEDSAVING
updatedAt
read-only
stringdate-time

Last update date. Timestamp of the last modification of the image on the backend, in RFC 3339 format.

visibility
read-only
ImageVisibilityEnum

Visibility scope of the image (see ImageVisibilityEnum), for example whether it is a public OVHcloud-provided image or private to the project

ValuesCOMMUNITYPRIVATEPUBLICSHARED

Example uses id = 00000000-0000-0000-0000-000000000000, projectId = string

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/reference/instance/image/{id} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "createdAt": "2024-01-01T12:00:00Z", "defaultUser": "string", "id": "00000000-0000-0000-0000-000000000000", "location": { "availabilityZone": "string", "region": "string" }, "minDisk": 0, "minRam": 0, "name": "string", "osType": "BAREMETAL_LINUX", "size": 0, "status": "ACTIVE", "updatedAt": "2024-01-01T12:00:00Z", "visibility": "COMMUNITY"}