GET /api/compute_resources
List all compute resources.

Parametri

Nome parametro Descrizione
search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

ordina risultati

Validations:

  • Must be a String

page
opzionale

paginazione risultati

Validations:

  • Must be a String

per_page
opzionale

numero di voci per richiesta

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
id
richiesto

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.

Parametri

Nome parametro Descrizione
compute_resource
richiesto

Validations:

  • Must be a Hash

compute_resource[name]
richiesto

Validations:

  • Must be a String

compute_resource[provider]
opzionale

Providers include

Validations:

  • Must be a String

compute_resource[url]
opzionale

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
opzionale

Validations:

  • Must be a String

compute_resource[user]
opzionale

Username for oVirt, EC2, VMware, OpenStack. Access Key for EC2.

Validations:

  • Must be a String

compute_resource[password]
opzionale

Password for oVirt, EC2, VMware, OpenStack. Secret key for EC2

Validations:

  • Must be a String

compute_resource[uuid]
opzionale

for oVirt, VMware Datacenter

Validations:

  • Must be a String

compute_resource[region]
opzionale

solo per EC2

Validations:

  • Must be a String

compute_resource[tenant]
opzionale

for OpenStack only

Validations:

  • Must be a String

compute_resource[server]
opzionale

for VMware

Validations:

  • Must be a String

compute_resource[set_console_password]
opzionale

for Libvirt and VMware only

Validations:

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


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

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

  • Must be a String

compute_resource
richiesto

Validations:

  • Must be a Hash

compute_resource[name]
opzionale

Validations:

  • Must be a String

compute_resource[provider]
opzionale

Providers include

Validations:

  • Must be a String

compute_resource[url]
opzionale

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
opzionale

Validations:

  • Must be a String

compute_resource[user]
opzionale

Username for oVirt, EC2, VMware, OpenStack. Access Key for EC2.

Validations:

  • Must be a String

compute_resource[password]
opzionale

Password for oVirt, EC2, VMware, OpenStack. Secret key for EC2

Validations:

  • Must be a String

compute_resource[uuid]
opzionale

for oVirt, VMware Datacenter

Validations:

  • Must be a String

compute_resource[region]
opzionale

solo per EC2

Validations:

  • Must be a String

compute_resource[tenant]
opzionale

for OpenStack only

Validations:

  • Must be a String

compute_resource[server]
opzionale

for VMware

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

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