GET /api/compute_resources
List all compute resources.

Paramètres

Nom du paramètre Description
search
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

trier les résultats

Validations:

  • Must be a String

page
optionel

paginer les résultats

Validations:

  • Must be a String

per_page
optionel

nombre d'entrées par requête

Validations:

  • Must be a String


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

Paramètres

Nom du paramètre Description
id
requis

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.

Paramètres

Nom du paramètre Description
compute_resource
requis

Validations:

  • Must be a Hash

compute_resource[name]
requis

Validations:

  • Must be a String

compute_resource[provider]
optionel

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

Validations:

  • Must be a String

compute_resource[url]
optionel

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
optionel

Validations:

  • Must be a String

compute_resource[user]
optionel

Nom d'utilisateur pour oVirt, EC2, VMware, OpenStack. Clé d'accès pour EC2.

Validations:

  • Must be a String

compute_resource[password]
optionel

Mot de passe pour oVirt, EC2, VMware, OpenStack. Clé secrète pour EC2.

Validations:

  • Must be a String

compute_resource[uuid]
optionel

pour oVirt, VMware Datacenter

Validations:

  • Must be a String

compute_resource[region]
optionel

Seulement pour EC2

Validations:

  • Must be a String

compute_resource[tenant]
optionel

seulement pour OpenStack

Validations:

  • Must be a String

compute_resource[server]
optionel

pour VMware

Validations:

  • Must be a String

compute_resource[set_console_password]
optionel

seulement pour Libvirt et VMware

Validations:

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


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

Paramètres

Nom du paramètre Description
id
requis

Validations:

  • Must be a String

compute_resource
requis

Validations:

  • Must be a Hash

compute_resource[name]
optionel

Validations:

  • Must be a String

compute_resource[provider]
optionel

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

Validations:

  • Must be a String

compute_resource[url]
optionel

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
optionel

Validations:

  • Must be a String

compute_resource[user]
optionel

Nom d'utilisateur pour oVirt, EC2, VMware, OpenStack. Clé d'accès pour EC2.

Validations:

  • Must be a String

compute_resource[password]
optionel

Mot de passe pour oVirt, EC2, VMware, OpenStack. Clé secrète pour EC2.

Validations:

  • Must be a String

compute_resource[uuid]
optionel

pour oVirt, VMware Datacenter

Validations:

  • Must be a String

compute_resource[region]
optionel

Seulement pour EC2

Validations:

  • Must be a String

compute_resource[tenant]
optionel

seulement pour OpenStack

Validations:

  • Must be a String

compute_resource[server]
optionel

pour VMware

Validations:

  • Must be a String


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

Paramètres

Nom du paramètre Description
id
requis

Validations:

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