GET /api/compute_resources
List all compute resources.

Params

Param name Description
search
optional

필터 결과

Validations:

  • Must be a String

order
optional

결과 정렬

Validations:

  • Must be a String

page
optional

페이지네이션 결과

Validations:

  • Must be a String

per_page
optional

요청 당 항목 수

Validations:

  • Must be a 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 a String

compute_resource[provider]
optional

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

Validations:

  • Must be a String

compute_resource[url]
optional

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
optional

Validations:

  • Must be a String

compute_resource[user]
optional

oVirt, EC2, VMware, OpenStack의 사용자 이름. EC2의 액세스 키.

Validations:

  • Must be a String

compute_resource[password]
optional

oVirt, EC2, VMware, OpenStack의 암호. EC2의 비밀 키

Validations:

  • Must be a String

compute_resource[uuid]
optional

oVirt, VMware Datacenter의 경우

Validations:

  • Must be a String

compute_resource[region]
optional

EC2의 경우에만

Validations:

  • Must be a String

compute_resource[tenant]
optional

OpenStack만 해당

Validations:

  • Must be a String

compute_resource[server]
optional

VMware의 경우

Validations:

  • Must be a String

compute_resource[set_console_password]
optional

Libvirt 및 VMware만 해당

Validations:

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


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

Params

Param name Description
id
required

Validations:

  • Must be a String

compute_resource
required

Validations:

  • Must be a Hash

compute_resource[name]
optional

Validations:

  • Must be a String

compute_resource[provider]
optional

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

Validations:

  • Must be a String

compute_resource[url]
optional

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be a String

compute_resource[description]
optional

Validations:

  • Must be a String

compute_resource[user]
optional

oVirt, EC2, VMware, OpenStack의 사용자 이름. EC2의 액세스 키.

Validations:

  • Must be a String

compute_resource[password]
optional

oVirt, EC2, VMware, OpenStack의 암호. EC2의 비밀 키

Validations:

  • Must be a String

compute_resource[uuid]
optional

oVirt, VMware Datacenter의 경우

Validations:

  • Must be a String

compute_resource[region]
optional

EC2의 경우에만

Validations:

  • Must be a String

compute_resource[tenant]
optional

OpenStack만 해당

Validations:

  • Must be a String

compute_resource[server]
optional

VMware의 경우

Validations:

  • Must be a 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.