GET /api/compute_resources/:compute_resource_id/images
Listar todas las imágenes de un recurso de cómputo

GET /api/operatingsystems/:operatingsystem_id/images
Listar todas las imágenes para el sistema operativo

GET /api/architectures/:architecture_id/images
Listar todas las imágenes para arquitectura

Ejemplos

GET /api/compute_resources/980190962/images
200
{
  "total": 2,
  "subtotal": 2,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "operatingsystem_id": 309172073,
      "operatingsystem_name": "centos 5.3",
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "architecture_id": 501905019,
      "architecture_name": "x86_64",
      "uuid": "string-of-uuid",
      "username": "root",
      "created_at": "2019-11-07 08:38:40 UTC",
      "updated_at": "2019-11-07 08:38:40 UTC",
      "id": 980190962,
      "name": "centos-1"
    },
    {
      "operatingsystem_id": 309172073,
      "operatingsystem_name": "centos 5.3",
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "architecture_id": 501905019,
      "architecture_name": "x86_64",
      "uuid": "MyString2",
      "username": "MyString",
      "created_at": "2019-11-07 08:38:40 UTC",
      "updated_at": "2019-11-07 08:38:40 UTC",
      "id": 298486374,
      "name": "centos-2"
    }
  ]
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
opcional

ID del recurso de cómputo

Validations:

  • Must be a String

architecture_id
opcional

ID de la arquitectura

Validations:

  • Must be a String

operatingsystem_id
opcional

ID del sistema operativo

Validations:

  • Must be a String

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Orden y campo de clasificación, p. ej., ‘id DESC’

Validations:

  • Must be a String

page
opcional

Número de página, comenzando por 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para devolver

Validations:

  • Must be a number.

Campos de búsqueda

Nombre del campo Tipo Valores posibles
architecture integer
compute_resource string
name string
operatingsystem integer
user_data true, false
username string

GET /api/compute_resources/:compute_resource_id/images/:id
Mostrar una imagen

GET /api/operatingsystems/:operatingsystem_id/images/:id
Mostrar una imagen

GET /api/architectures/:architecture_id/images/:id
Mostrar una imagen

Ejemplos

GET /api/compute_resources/980190962/images/980190962
200
{
  "operatingsystem_id": 309172073,
  "operatingsystem_name": "centos 5.3",
  "compute_resource_id": 980190962,
  "compute_resource_name": "bigcompute",
  "architecture_id": 501905019,
  "architecture_name": "x86_64",
  "uuid": "string-of-uuid",
  "username": "root",
  "created_at": "2019-11-07 08:38:40 UTC",
  "updated_at": "2019-11-07 08:38:40 UTC",
  "id": 980190962,
  "name": "centos-1"
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

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
opcional

ID del recurso de cómputo

Validations:

  • Must be a String

architecture_id
opcional

ID de la arquitectura

Validations:

  • Must be a String

operatingsystem_id
opcional

ID del sistema operativo

Validations:

  • Must be a String


POST /api/compute_resources/:compute_resource_id/images
Crear una imagen

Ejemplos

POST /api/compute_resources/980190962/images
{
  "image": {
    "name": "TestImage",
    "username": "ec2-user",
    "uuid": "abcdef",
    "password": "password",
    "operatingsystem_id": 309172073,
    "compute_resource_id": 928692541,
    "architecture_id": 331892513,
    "user_data": true
  }
}
201
{
  "operatingsystem_id": 309172073,
  "operatingsystem_name": "centos 5.3",
  "compute_resource_id": 980190962,
  "compute_resource_name": "bigcompute",
  "architecture_id": 331892513,
  "architecture_name": "sparc",
  "uuid": "abcdef",
  "username": "ec2-user",
  "created_at": "2019-11-07 08:38:41 UTC",
  "updated_at": "2019-11-07 08:38:41 UTC",
  "id": 980190963,
  "name": "TestImage"
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
requerido

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
requerido

Validations:

  • Must be a Hash

image[name]
requerido

Validations:

  • Must be a String

image[username]
requerido

Validations:

  • Must be a String

image[uuid]
requerido

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
opcional , nil permitido

Validations:

  • Must be a String

image[compute_resource_id]
opcional , nil permitido

ID del recurso de cómputo

Validations:

  • Must be a String

image[architecture_id]
opcional , nil permitido

ID de la arquitectura

Validations:

  • Must be a String

image[operatingsystem_id]
opcional , nil permitido

ID del sistema operativo

Validations:

  • Must be a String

image[user_data]
opcional , nil permitido

Independientemente de si la imagen admite los datos del usuario

Validations:

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


PUT /api/compute_resources/:compute_resource_id/images/:id
Actualizar una imagen

Ejemplos

PUT /api/compute_resources/980190962/images/980190962
{
  "image": {}
}
200
{
  "operatingsystem_id": 309172073,
  "operatingsystem_name": "centos 5.3",
  "compute_resource_id": 980190962,
  "compute_resource_name": "bigcompute",
  "architecture_id": 501905019,
  "architecture_name": "x86_64",
  "uuid": "string-of-uuid",
  "username": "root",
  "created_at": "2019-11-07 08:38:40 UTC",
  "updated_at": "2019-11-07 08:38:40 UTC",
  "id": 980190962,
  "name": "centos-1"
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
requerido

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
requerido

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
requerido

Validations:

  • Must be a Hash

image[name]
opcional

Validations:

  • Must be a String

image[username]
opcional

Validations:

  • Must be a String

image[uuid]
opcional

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
opcional , nil permitido

Validations:

  • Must be a String

image[compute_resource_id]
opcional , nil permitido

ID del recurso de cómputo

Validations:

  • Must be a String

image[architecture_id]
opcional , nil permitido

ID de la arquitectura

Validations:

  • Must be a String

image[operatingsystem_id]
opcional , nil permitido

ID del sistema operativo

Validations:

  • Must be a String

image[user_data]
opcional , nil permitido

Independientemente de si la imagen admite los datos del usuario

Validations:

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


DELETE /api/compute_resources/:compute_resource_id/images/:id
Borrar una imagen

Ejemplos

DELETE /api/compute_resources/980190962/images/980190962
{
  "image": {}
}
200
{
  "id": 980190962,
  "operatingsystem_id": 309172073,
  "compute_resource_id": 980190962,
  "architecture_id": 501905019,
  "uuid": "string-of-uuid",
  "username": "root",
  "name": "centos-1",
  "created_at": "2019-11-07T08:38:40.931Z",
  "updated_at": "2019-11-07T08:38:40.931Z",
  "iam_role": null,
  "user_data": false,
  "password": null
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
requerido

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
requerido

Validations:

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