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_profile_id optional |
ID of compute profile Validations:
|
compute_resource_id optional |
ID of compute_resource Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort and order by a searchable field, e.g. '<field> DESC' Validations:
|
page optional |
Page number, starting at 1 Validations:
|
per_page optional |
Number of results per page to return, 'all' to return all results Validations:
|
Field name | Type | Possible values |
---|---|---|
compute_profile | string | |
compute_resource | string | |
id | integer | |
name | string |
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:
|
POST /api/compute_profiles/113629430/compute_resources/980190962/compute_attributes { "compute_attribute": { "vm_attrs": { "cpus": "2", "memory": "2147483648" } } } 201 { "created_at": "2018-11-16 10:03:50 UTC", "updated_at": "2018-11-16 10:03:50 UTC", "id": 980190963, "name": null, "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "provider_friendly_name": "Libvirt", "compute_profile_id": 113629430, "compute_profile_name": "3-Large", "vm_attrs": { "cpus": "2", "memory": "2147483648" }, "attributes": { "cpus": "2", "memory": "2147483648", "image_id": null, "image_name": null, "volumes_attributes": {}, "interfaces_attributes": {} } }
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_profile_id required |
Validations:
|
compute_resource_id required |
Validations:
|
compute_attribute required |
Validations:
|
compute_attribute[vm_attrs] required |
Validations:
|
PUT /api/compute_profiles/980190962/compute_resources/980190962/compute_attributes/298486374 { "compute_attribute": { "vm_attrs": { "cpus": "4" } } } 200 { "created_at": "2018-11-16 10:02:08 UTC", "updated_at": "2018-11-16 10:03:50 UTC", "id": 298486374, "name": null, "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "provider_friendly_name": "Libvirt", "compute_profile_id": 980190962, "compute_profile_name": "1-Small", "vm_attrs": { "cpus": "4" }, "attributes": { "cpus": "4", "memory": null, "image_id": null, "image_name": null, "volumes_attributes": {}, "interfaces_attributes": {} } }
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_profile_id optional |
Validations:
|
compute_resource_id optional |
Validations:
|
id required |
Validations:
|
compute_attribute required |
Validations:
|
compute_attribute[vm_attrs] optional |
Validations:
|