GET /api/compute_resources
List all compute resources.

Params

Param Name Description
search
Optional

結果をフィルタ

Validations:

  • Must be String

order
Optional

結果をソート

Validations:

  • Must be String

page
Optional

結果をページ分割

Validations:

  • Must be String

per_page
Optional

リクエストあたりのエントリ数

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

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be String

compute_resource[description]
Optional

Validations:

  • Must be String

compute_resource[user]
Optional

oVirt, EC2, VMware, OpenStack のためのユーザ名。 EC2 のためのアクセスキー。

Validations:

  • Must be String

compute_resource[password]
Optional

oVirt, EC2, VMware, OpenStack のためのユーザ名。 EC2 のためのアクセスキー。

Validations:

  • Must be String

compute_resource[uuid]
Optional

for oVirt, VMware Datacenter

Validations:

  • Must be String

compute_resource[region]
Optional

for EC2 only

Validations:

  • Must be String

compute_resource[tenant]
Optional

for OpenStack only

Validations:

  • Must be String

compute_resource[server]
Optional

for VMware

Validations:

  • Must be String

compute_resource[set_console_password]
Optional

libvirt と 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

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be String

compute_resource[description]
Optional

Validations:

  • Must be String

compute_resource[user]
Optional

oVirt, EC2, VMware, OpenStack のためのユーザ名。 EC2 のためのアクセスキー。

Validations:

  • Must be String

compute_resource[password]
Optional

oVirt, EC2, VMware, OpenStack のためのユーザ名。 EC2 のためのアクセスキー。

Validations:

  • Must be String

compute_resource[uuid]
Optional

for oVirt, VMware Datacenter

Validations:

  • Must be String

compute_resource[region]
Optional

for EC2 only

Validations:

  • Must be String

compute_resource[tenant]
Optional

for OpenStack only

Validations:

  • Must be String

compute_resource[server]
Optional

for 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.