GET /api/compute_resources
List all compute resources

参数

参数名字 描述
search
选填

过滤结果


Value:

Must be String

order
选填

结果排序


Value:

Must be String

page
选填

页数


Value:

Must be String

per_page
选填

每个请求中的条目数


Value:

Must be String


GET /api/compute_resources/:id
Show a compute resource

参数

参数名字 描述
id
必填

Value:

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
必填

Value:

Must be a Hash

compute_resource[name]
必填

Value:

Must be String

compute_resource[provider]
选填 , 允许空值

Providers include


Value:

Must be String

compute_resource[url]
选填 , 允许空值

URL for Libvirt, oVirt, and OpenStack


Value:

Must be String

compute_resource[description]
选填 , 允许空值

Value:

Must be String

compute_resource[user]
选填 , 允许空值

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


Value:

Must be String

compute_resource[password]
选填 , 允许空值

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


Value:

Must be String

compute_resource[uuid]
选填 , 允许空值

for oVirt, VMware Datacenter


Value:

Must be String

compute_resource[region]
选填 , 允许空值

for EC2 only


Value:

Must be String

compute_resource[tenant]
选填 , 允许空值

for OpenStack only


Value:

Must be String

compute_resource[server]
选填 , 允许空值

for VMware


Value:

Must be String

compute_resource[set_console_password]
选填 , 允许空值

for Libvirt and VMware only


Value:

Must be 'true' or 'false'


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

参数

参数名字 描述
id
必填

Value:

Must be String

compute_resource
必填

Value:

Must be a Hash

compute_resource[name]
选填

Value:

Must be String

compute_resource[provider]
选填 , 允许空值

Providers include


Value:

Must be String

compute_resource[url]
选填 , 允许空值

URL for Libvirt, oVirt, and OpenStack


Value:

Must be String

compute_resource[description]
选填 , 允许空值

Value:

Must be String

compute_resource[user]
选填 , 允许空值

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


Value:

Must be String

compute_resource[password]
选填 , 允许空值

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


Value:

Must be String

compute_resource[uuid]
选填 , 允许空值

for oVirt, VMware Datacenter


Value:

Must be String

compute_resource[region]
选填 , 允许空值

for EC2 only


Value:

Must be String

compute_resource[tenant]
选填 , 允许空值

for OpenStack only


Value:

Must be String

compute_resource[server]
选填 , 允许空值

for VMware


Value:

Must be String

compute_resource[set_console_password]
选填 , 允许空值

for Libvirt and VMware only


Value:

Must be 'true' or 'false'


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

参数

参数名字 描述
id
必填

Value:

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


GET /api/compute_resources/:id/available_images
List available images for a compute resource

参数

参数名字 描述
id
必填

Value:

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


GET /api/compute_resources/:id/available_clusters
List available clusters for a compute resource

参数

参数名字 描述
id
必填

Value:

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


GET /api/compute_resources/:id/available_flavors
List available flavors for a compute resource

参数

参数名字 描述
id
必填

Value:

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


GET /api/compute_resources/:id/available_folders
List available folders for a compute resource

参数

参数名字 描述
id
必填

Value:

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


GET /api/compute_resources/:id/available_zones
List available zone for a compute resource

参数

参数名字 描述
id
必填

Value:

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


GET /api/compute_resources/:id/available_networks
List available networks for a compute resource

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_networks
List available networks for a compute resource cluster

参数

参数名字 描述
id
必填

Value:

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

cluster_id
选填

Value:

Must be String


GET /api/compute_resources/:id/available_clusters/:cluster_id/available_resource_pools
List resource pools for a compute resource cluster

参数

参数名字 描述
id
必填

Value:

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

cluster_id
必填

Value:

Must be String


GET /api/compute_resources/:id/available_storage_domains
List storage_domains for a compute resource

GET /api/compute_resources/:id/available_storage_domains
List storage domains for a compute resource

GET /api/compute_resources/:id/available_storage_domains/:storage_domain
List attributes for a given storage domain

参数

参数名字 描述
id
必填

Value:

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

storage_domain
选填

Value:

Must be String


GET /api/compute_resources/:id/available_security_groups
List available security groups for a compute resource

参数

参数名字 描述
id
必填

Value:

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


PUT /api/compute_resources/:id/associate
Associate VMs to Hosts

参数

参数名字 描述
id
必填

Value:

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