POST /api/compute_resources { "compute_resource": { "name": "Ovirt-create-test", "url": "https://myovirt/api", "provider": "ovirt", "datacenter": "af69fae6-5f77-441a-969d-15a42144e0f5", "user": "user@example.com", "password": "secret" } } 201 { "description": null, "url": "https://myovirt/api", "created_at": "2019-11-07 08:49:09 UTC", "updated_at": "2019-11-07 08:49:09 UTC", "id": 980190964, "name": "Ovirt-create-test", "provider": "Ovirt", "provider_friendly_name": "oVirt", "user": "user@example.com", "datacenter": "af69fae6-5f77-441a-969d-15a42144e0f5", "use_v4": false, "ovirt_quota": null, "display_type": "vnc", "keyboard_layout": "en-us", "images": [], "compute_attributes": [], "locations": [], "organizations": [] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
compute_resource required |
Validations:
|
compute_resource[name] required |
Validations:
|
compute_resource[provider] optional , nil allowed |
Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE Validations:
|
compute_resource[url] optional , nil allowed |
URL for Libvirt, oVirt, OpenStack and Rackspace Validations:
|
compute_resource[description] optional , nil allowed |
Validations:
|
compute_resource[user] optional , nil allowed |
Username for oVirt, EC2, VMware, OpenStack. Access Key for EC2. Validations:
|
compute_resource[password] optional , nil allowed |
Password for oVirt, EC2, VMware, OpenStack. Secret key for EC2 Validations:
|
compute_resource[uuid] optional , nil allowed |
Deprecated, please use datacenter Validations:
|
compute_resource[datacenter] optional , nil allowed |
for oVirt, VMware Datacenter Validations:
|
compute_resource[use_v4] optional , nil allowed |
for oVirt only Validations:
|
compute_resource[ovirt_quota] optional , nil allowed |
for oVirt only, ID of quota to use Validations:
|
compute_resource[public_key] optional , nil allowed |
for oVirt only Validations:
|
compute_resource[region] optional , nil allowed |
for EC2 only, use ‘us-gov-west-1’ for GovCloud region Validations:
|
compute_resource[tenant] optional , nil allowed |
for OpenStack and AzureRM only Validations:
|
compute_resource[domain] optional , nil allowed |
for OpenStack (v3) only Validations:
|
compute_resource[project_domain_name] optional , nil allowed |
for OpenStack (v3) only Validations:
|
compute_resource[project_domain_id] optional , nil allowed |
for OpenStack (v3) only Validations:
|
compute_resource[server] optional , nil allowed |
for VMware Validations:
|
compute_resource[set_console_password] optional , nil allowed |
for Libvirt and VMware only Validations:
|
compute_resource[display_type] optional , nil allowed |
for Libvirt and oVirt only Validations:
|
compute_resource[keyboard] optional , nil allowed |
for oVirt only Validations:
|
compute_resource[caching_enabled] optional , nil allowed |
enable caching, for VMware only Validations:
|
compute_resource[project] optional , nil allowed |
Project id for GCE only Validations:
|
compute_resource[email] optional , nil allowed |
Email for GCE only Validations:
|
compute_resource[key_path] optional , nil allowed |
Certificate path for GCE only Validations:
|
compute_resource[zone] optional , nil allowed |
for GCE only Validations:
|
compute_resource[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
compute_resource[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|