GET /api/compute_resources
List all compute resources.

Parámetros

Nombre del parámetro Descripción
search
opcional

filtrar resultados

Validations:

  • Must be String

order
opcional

ordenar resultados

Validations:

  • Must be String

page
opcional

paginar resultados

Validations:

  • Must be String

per_page
opcional

número de entradas por petición

Validations:

  • Must be String


GET /api/compute_resources/:id
Show an compute resource.

Parámetros

Nombre del parámetro Descripción
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.


POST /api/compute_resources
Create a compute resource.

Parámetros

Nombre del parámetro Descripción
compute_resource
requerido

Validations:

  • Must be a Hash

compute_resource[name]
requerido

Validations:

  • Must be String

compute_resource[provider]
opcional

Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE

Validations:

  • Must be String

compute_resource[url]
opcional

URL para Libvirt, oVirt, y OpenStack

Validations:

  • Must be String

compute_resource[description]
opcional

Validations:

  • Must be String

compute_resource[user]
opcional

Nombre de usuario para oVirt, EC2, VMware, OpenStack. Clave de acceso para EC2.

Validations:

  • Must be String

compute_resource[password]
opcional

Password para oVirt, EC2, VMware, OpenStack. Clave secreta para EC2

Validations:

  • Must be String

compute_resource[uuid]
opcional

para oVirt, VMware Datacenter

Validations:

  • Must be String

compute_resource[region]
opcional

solo para EC2

Validations:

  • Must be String

compute_resource[tenant]
opcional

sólo para OpenStack

Validations:

  • Must be String

compute_resource[server]
opcional

para VMware

Validations:

  • Must be String

compute_resource[set_console_password]
opcional

sólo para Libvirt y VMware

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’


PUT /api/compute_resources/:id
Update a compute resource.

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • Must be String

compute_resource
requerido

Validations:

  • Must be a Hash

compute_resource[name]
opcional

Validations:

  • Must be String

compute_resource[provider]
opcional

Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE

Validations:

  • Must be String

compute_resource[url]
opcional

URL para Libvirt, oVirt, y OpenStack

Validations:

  • Must be String

compute_resource[description]
opcional

Validations:

  • Must be String

compute_resource[user]
opcional

Nombre de usuario para oVirt, EC2, VMware, OpenStack. Clave de acceso para EC2.

Validations:

  • Must be String

compute_resource[password]
opcional

Password para oVirt, EC2, VMware, OpenStack. Clave secreta para EC2

Validations:

  • Must be String

compute_resource[uuid]
opcional

para oVirt, VMware Datacenter

Validations:

  • Must be String

compute_resource[region]
opcional

solo para EC2

Validations:

  • Must be String

compute_resource[tenant]
opcional

sólo para OpenStack

Validations:

  • Must be String

compute_resource[server]
opcional

para VMware

Validations:

  • Must be String


DELETE /api/compute_resources/:id
Delete a compute resource.

Parámetros

Nombre del parámetro Descripción
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.