GET /api/compute_resources
列出所有计算资源

参数

参数名字 描述
search
选填

过滤结果

Validations:

  • Must be String

order
选填

结果排序

Validations:

  • Must be String

page
选填

页数

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be String


GET /api/compute_resources/:id
显示计算资源

参数

参数名字 描述
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
生成计算资源

参数

参数名字 描述
compute_resource
必填

Validations:

  • Must be a Hash

compute_resource[name]
必填

Validations:

  • Must be String

compute_resource[provider]
选填 , 允许空值

供应商包括

Validations:

  • Must be String

compute_resource[url]
选填 , 允许空值

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be String

compute_resource[description]
选填 , 允许空值

Validations:

  • Must be String

compute_resource[user]
选填 , 允许空值

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

Validations:

  • Must be String

compute_resource[password]
选填 , 允许空值

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

Validations:

  • Must be String

compute_resource[uuid]
选填 , 允许空值

for oVirt, VMware Datacenter

Validations:

  • Must be String

compute_resource[region]
选填 , 允许空值

仅用于 EC2

Validations:

  • Must be String

compute_resource[tenant]
选填 , 允许空值

for OpenStack only

Validations:

  • Must be String

compute_resource[server]
选填 , 允许空值

for VMware

Validations:

  • Must be String

compute_resource[set_console_password]
选填 , 允许空值

for Libvirt and VMware only

Validations:

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


PUT /api/compute_resources/:id
更新计算资源

参数

参数名字 描述
id
必填

Validations:

  • Must be String

compute_resource
必填

Validations:

  • Must be a Hash

compute_resource[name]
选填

Validations:

  • Must be String

compute_resource[provider]
选填 , 允许空值

供应商包括

Validations:

  • Must be String

compute_resource[url]
选填 , 允许空值

URL for Libvirt, oVirt, and OpenStack

Validations:

  • Must be String

compute_resource[description]
选填 , 允许空值

Validations:

  • Must be String

compute_resource[user]
选填 , 允许空值

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

Validations:

  • Must be String

compute_resource[password]
选填 , 允许空值

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

Validations:

  • Must be String

compute_resource[uuid]
选填 , 允许空值

for oVirt, VMware Datacenter

Validations:

  • Must be String

compute_resource[region]
选填 , 允许空值

仅用于 EC2

Validations:

  • Must be String

compute_resource[tenant]
选填 , 允许空值

for OpenStack only

Validations:

  • Must be String

compute_resource[server]
选填 , 允许空值

for VMware

Validations:

  • Must be String

compute_resource[set_console_password]
选填 , 允许空值

for Libvirt and VMware only

Validations:

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


DELETE /api/compute_resources/:id
删除计算资源

参数

参数名字 描述
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.


GET /api/compute_resources/:id/available_images
列出计算资源的所有可用映像

参数

参数名字 描述
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.


GET /api/compute_resources/:id/available_clusters
列出计算资源的所有可用集群

参数

参数名字 描述
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.


GET /api/compute_resources/:id/available_flavors
List available flavors for 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.


GET /api/compute_resources/:id/available_folders
列出计算资源的所有可用文件夹

参数

参数名字 描述
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.


GET /api/compute_resources/:id/available_zones
List available zone for 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.


GET /api/compute_resources/:id/available_networks
列出计算资源的所有可用网络

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_networks
列出计算资源集群的所有可用网络

参数

参数名字 描述
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.

cluster_id
选填

Validations:

  • Must be String


GET /api/compute_resources/:id/available_clusters/:cluster_id/available_resource_pools
列出计算资源集群的资源池

参数

参数名字 描述
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.

cluster_id
必填

Validations:

  • Must be String


GET /api/compute_resources/:id/available_storage_domains
列出计算资源的存储域

GET /api/compute_resources/:id/available_storage_domains/:storage_domain
列出给定存储域的所有属性

参数

参数名字 描述
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.

storage_domain
选填

Validations:

  • Must be String


GET /api/compute_resources/:id/available_storage_pods
List storage pods for a compute resource

GET /api/compute_resources/:id/available_storage_pods/:storage_pod
List attributes for a given storage pod

参数

参数名字 描述
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.

storage_pod
选填

Validations:

  • Must be String


GET /api/compute_resources/:id/available_security_groups
List available security groups for 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.


PUT /api/compute_resources/:id/associate
将 VM 与主机关联

参数

参数名字 描述
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.