GET /api/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
顯示運算資源

參數

參數名字 描述
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
建立運算資源

參數

參數名字 描述
compute_resource
必填

Value:

Must be a Hash

compute_resource[name]
必填

Value:

Must be String

compute_resource[provider]
選填 , 允許空值

供應者包含了


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]
選填 , 允許空值

僅適用於 EC2


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
更新運算資源

參數

參數名字 描述
id
必填

Value:

Must be String

compute_resource
必填

Value:

Must be a Hash

compute_resource[name]
選填

Value:

Must be String

compute_resource[provider]
選填 , 允許空值

供應者包含了


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]
選填 , 允許空值

僅適用於 EC2


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
刪除運算資源

參數

參數名字 描述
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
列出運算資源的可用映像檔

參數

參數名字 描述
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
列出運算資源的可用叢集

參數

參數名字 描述
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
列出運算資源的可用資料夾

參數

參數名字 描述
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
列出運算資源的可用網路

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_networks
列出運算資源叢集的可用網路

參數

參數名字 描述
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
列出運算資源叢集的資源集區

參數

參數名字 描述
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
列出運算資源的儲存區域

GET /api/compute_resources/:id/available_storage_domains/: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_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
必填

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_pod
選填

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
將 VM 與主機建立關連

參數

參數名字 描述
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.