GET /api/compute_resources
List all compute resources.

パラメーター

パラメーター名 記述
search
任意

結果のフィルター

Validations:

  • Must be a String

order
任意

結果のソート

Validations:

  • Must be a String

page
任意

結果のページネーション

Validations:

  • Must be a String

per_page
任意

要求ごとのエントリー数

Validations:

  • Must be a String


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

パラメーター

パラメーター名 記述
id
必須

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.

パラメーター

パラメーター名 記述
compute_resource
必須

Validations:

  • Must be a Hash

compute_resource[name]
必須

Validations:

  • Must be a String

compute_resource[provider]
任意

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

Validations:

  • Must be a String

compute_resource[url]
任意

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
任意

Validations:

  • Must be a String

compute_resource[user]
任意

oVirt、EC2、VMware、OpenStack のユーザー名。EC2 のアクセスキー。

Validations:

  • Must be a String

compute_resource[password]
任意

oVirt、EC2、VMware、OpenStack のパスワード。EC2 のシークレットキー

Validations:

  • Must be a String

compute_resource[uuid]
任意

oVirt、VMware Datacenter の場合

Validations:

  • Must be a String

compute_resource[region]
任意

EC2 の場合のみ

Validations:

  • Must be a String

compute_resource[tenant]
任意

OpenStack の場合のみ

Validations:

  • Must be a String

compute_resource[server]
任意

VMware の場合

Validations:

  • Must be a String

compute_resource[set_console_password]
任意

Libvirt および VMware の場合のみ

Validations:

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


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

パラメーター

パラメーター名 記述
id
必須

Validations:

  • Must be a String

compute_resource
必須

Validations:

  • Must be a Hash

compute_resource[name]
任意

Validations:

  • Must be a String

compute_resource[provider]
任意

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

Validations:

  • Must be a String

compute_resource[url]
任意

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
任意

Validations:

  • Must be a String

compute_resource[user]
任意

oVirt、EC2、VMware、OpenStack のユーザー名。EC2 のアクセスキー。

Validations:

  • Must be a String

compute_resource[password]
任意

oVirt、EC2、VMware、OpenStack のパスワード。EC2 のシークレットキー

Validations:

  • Must be a String

compute_resource[uuid]
任意

oVirt、VMware Datacenter の場合

Validations:

  • Must be a String

compute_resource[region]
任意

EC2 の場合のみ

Validations:

  • Must be a String

compute_resource[tenant]
任意

OpenStack の場合のみ

Validations:

  • Must be a String

compute_resource[server]
任意

VMware の場合

Validations:

  • Must be a String


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

パラメーター

パラメーター名 記述
id
必須

Validations:

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