GET /api/compute_resources
List all compute resources.

Params

Param Name Description
search
Optional

filtrera resultat

Validations:

  • Must be String

order
Optional

sortera resultat

Validations:

  • Must be String

page
Optional

paginate results

Validations:

  • Must be String

per_page
Optional

antal poster per begäran

Validations:

  • Must be String


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

Params

Param Name Description
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.


POST /api/compute_resources
Create a compute resource.

Params

Param Name Description
compute_resource
Required

Validations:

  • Must be a Hash

compute_resource[name]
Required

Validations:

  • Must be String

compute_resource[provider]
Optional

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

Validations:

  • Must be String

compute_resource[url]
Optional

Adress för Libvirt, oVirt och OpenStack

Validations:

  • Must be String

compute_resource[description]
Optional

Validations:

  • Must be String

compute_resource[user]
Optional

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

Validations:

  • Must be String

compute_resource[password]
Optional

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

Validations:

  • Must be String

compute_resource[uuid]
Optional

för oVirt, VMWare Datacenter

Validations:

  • Must be String

compute_resource[region]
Optional

endast för EC2

Validations:

  • Must be String

compute_resource[tenant]
Optional

endast för OpenStack

Validations:

  • Must be String

compute_resource[server]
Optional

för VMware

Validations:

  • Must be String

compute_resource[set_console_password]
Optional

endast för Libvirt och VMware

Validations:

  • Must be 'true' or 'false' or '1' or '0'


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

Params

Param Name Description
id
Required

Validations:

  • Must be String

compute_resource
Required

Validations:

  • Must be a Hash

compute_resource[name]
Optional

Validations:

  • Must be String

compute_resource[provider]
Optional

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

Validations:

  • Must be String

compute_resource[url]
Optional

Adress för Libvirt, oVirt och OpenStack

Validations:

  • Must be String

compute_resource[description]
Optional

Validations:

  • Must be String

compute_resource[user]
Optional

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

Validations:

  • Must be String

compute_resource[password]
Optional

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

Validations:

  • Must be String

compute_resource[uuid]
Optional

för oVirt, VMWare Datacenter

Validations:

  • Must be String

compute_resource[region]
Optional

endast för EC2

Validations:

  • Must be String

compute_resource[tenant]
Optional

endast för OpenStack

Validations:

  • Must be String

compute_resource[server]
Optional

för VMware

Validations:

  • Must be String


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

Params

Param Name Description
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.