PUT /api/compute_resources/367690737
{
"compute_resource": {
"location_ids": [
447626474,
447626475,
447626476
]
}
}
200
{
"description": "mycompute",
"url": "test:///default",
"created_at": "2019-02-20 13:25:27 UTC",
"updated_at": "2019-02-20 13:25:27 UTC",
"id": 367690737,
"name": "mycompute",
"provider": "Libvirt",
"provider_friendly_name": "Libvirt",
"display_type": "vnc",
"set_console_password": true,
"images": [],
"compute_attributes": [],
"locations": [
{
"id": 447626474,
"name": "loc149",
"title": "loc149",
"description": null
},
{
"id": 447626475,
"name": "loc150",
"title": "loc150",
"description": null
},
{
"id": 447626476,
"name": "loc151",
"title": "loc151",
"description": null
}
],
"organizations": [
{
"id": 447626438,
"name": "Organization 1",
"title": "Organization 1",
"description": null
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
id required |
Validations:
|
|
compute_resource required |
Validations:
|
|
compute_resource[name] optional |
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 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 only Validations:
|
|
compute_resource[domain] optional , nil allowed |
for OpenStack 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 only Validations:
|
|
compute_resource[caching_enabled] optional , nil allowed |
enable caching, for VMware 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:
|