GET /api/compute_resources/:compute_resource_id/images
Llista totes les imatges per a un recurs computacional

GET /api/operatingsystems/:operatingsystem_id/images
Llista totes les imatges per al sistema operatiu

GET /api/architectures/:architecture_id/images
Llista totes les imatges per a l'arquitectura

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
optional

ID de recurs computacional

Validations:

  • Must be a String

architecture_id
optional

ID d'arquitectura

Validations:

  • Must be a String

operatingsystem_id
optional

ID de sistema operatiu

Validations:

  • Must be a String

search
optional

filtra els resultats

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Nombre de resultats per pàgina a retornar

Validations:

  • Must be a number.

Search fields

Field name Tipus Possible values
architecture
compute_resource
name
operatingsystem
user_data true, false
username

GET /api/compute_resources/:compute_resource_id/images/:id
Mostra una imatge

GET /api/operatingsystems/:operatingsystem_id/images/:id
Mostra una imatge

GET /api/architectures/:architecture_id/images/:id
Mostra una imatge

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

compute_resource_id
optional

ID de recurs computacional

Validations:

  • Must be a String

architecture_id
optional

ID d'arquitectura

Validations:

  • Must be a String

operatingsystem_id
optional

ID de sistema operatiu

Validations:

  • Must be a String


POST /api/compute_resources/:compute_resource_id/images
Crea una imatge

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

image
required

Validations:

  • Must be a Hash

image[name]
required

Validations:

  • Must be a String

image[username]
required

Validations:

  • Must be a String

image[uuid]
required

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
optional , nil allowed

Validations:

  • Must be a String

image[compute_resource_id]
optional , nil allowed

ID de recurs computacional

Validations:

  • Must be a String

image[architecture_id]
optional , nil allowed

ID d'arquitectura

Validations:

  • Must be a String

image[operatingsystem_id]
optional , nil allowed

ID de sistema operatiu

Validations:

  • Must be a String

image[user_data]
optional , nil allowed

Whether or not the image supports user data

Validations:

  • Must be one of: true, false, 1, 0.


PUT /api/compute_resources/:compute_resource_id/images/:id
Actualitza una imatge

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

image
required

Validations:

  • Must be a Hash

image[name]
optional

Validations:

  • Must be a String

image[username]
optional

Validations:

  • Must be a String

image[uuid]
optional

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
optional , nil allowed

Validations:

  • Must be a String

image[compute_resource_id]
optional , nil allowed

ID de recurs computacional

Validations:

  • Must be a String

image[architecture_id]
optional , nil allowed

ID d'arquitectura

Validations:

  • Must be a String

image[operatingsystem_id]
optional , nil allowed

ID de sistema operatiu

Validations:

  • Must be a String

image[user_data]
optional , nil allowed

Whether or not the image supports user data

Validations:

  • Must be one of: true, false, 1, 0.


DELETE /api/compute_resources/:compute_resource_id/images/:id
Suprimeix una imatge

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.