GET /api/compute_profiles 200 { "total": 4, "subtotal": 4, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "created_at": "2018-07-24 12:59:36 UTC", "updated_at": "2018-07-24 12:59:36 UTC", "id": 980190962, "name": "1-Small" }, { "created_at": "2018-07-24 12:59:36 UTC", "updated_at": "2018-07-24 12:59:36 UTC", "id": 298486374, "name": "2-Medium" }, { "created_at": "2018-07-24 12:59:36 UTC", "updated_at": "2018-07-24 12:59:36 UTC", "id": 113629430, "name": "3-Large" }, { "created_at": "2018-07-24 12:59:36 UTC", "updated_at": "2018-07-24 12:59:36 UTC", "id": 281110143, "name": "4-Networking" } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
page optional |
paginate results Validations:
|
per_page optional |
number of entries per request Validations:
|
Field name | Type | Possible values |
---|---|---|
name | string |
GET /api/compute_profiles/980190962-1-Small 200 { "created_at": "2018-07-24 12:59:36 UTC", "updated_at": "2018-07-24 12:59:36 UTC", "id": 980190962, "name": "1-Small", "compute_attributes": [ { "id": 980190962, "name": null, "compute_resource_id": 928692541, "compute_resource_name": "amazon123", "provider_friendly_name": "EC2", "compute_profile_id": 980190962, "compute_profile_name": "1-Small", "vm_attrs": { "flavor_id": "m1.small", "availability_zone": "eu-west-1a" }, "attributes": {} }, { "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": 2, "memory": 536870912 }, "attributes": { "cpus": 2, "memory": 536870912, "image_id": null, "image_name": null, "volumes_attributes": {}, "interfaces_attributes": {} } } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
POST /api/compute_profiles { "compute_profile": { "name": "4-Xlarge" } } 201 { "created_at": "2018-07-24 12:59:37 UTC", "updated_at": "2018-07-24 12:59:37 UTC", "id": 980190963, "name": "4-Xlarge", "compute_attributes": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
compute_profile required |
Validations:
|
compute_profile[name] required |
Validations:
|
PUT /api/compute_profiles/980190962-1-Small { "compute_profile": { "name": "new name" } } 200 { "created_at": "2018-07-24 12:59:36 UTC", "updated_at": "2018-07-24 12:59:37 UTC", "id": 980190962, "name": "new name", "compute_attributes": [ { "id": 980190962, "name": null, "compute_resource_id": 928692541, "compute_resource_name": "amazon123", "provider_friendly_name": "EC2", "compute_profile_id": 980190962, "compute_profile_name": "new name", "vm_attrs": { "flavor_id": "m1.small", "availability_zone": "eu-west-1a" }, "attributes": {} }, { "id": 298486374, "name": null, "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "provider_friendly_name": "Libvirt", "compute_profile_id": 980190962, "compute_profile_name": "new name", "vm_attrs": { "cpus": 2, "memory": 536870912 }, "attributes": { "cpus": 2, "memory": 536870912, "image_id": null, "image_name": null, "volumes_attributes": {}, "interfaces_attributes": {} } } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
compute_profile required |
Validations:
|
compute_profile[name] optional |
Validations:
|
DELETE /api/compute_profiles/113629430-3-Large { "compute_profile": {} } 200 { "id": 113629430, "name": "3-Large", "created_at": "2018-07-24T12:59:36.023Z", "updated_at": "2018-07-24T12:59:36.023Z" }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|