GET /api/compute_resources/980190962/images 200 { "total": 2, "subtotal": 2, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "operatingsystem_id": 309172073, "operatingsystem_name": "centos 5.3", "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "architecture_id": 501905019, "architecture_name": "x86_64", "uuid": "string-of-uuid", "username": "root", "created_at": "2019-11-07 08:38:40 UTC", "updated_at": "2019-11-07 08:38:40 UTC", "id": 980190962, "name": "centos-1" }, { "operatingsystem_id": 309172073, "operatingsystem_name": "centos 5.3", "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "architecture_id": 501905019, "architecture_name": "x86_64", "uuid": "MyString2", "username": "MyString", "created_at": "2019-11-07 08:38:40 UTC", "updated_at": "2019-11-07 08:38:40 UTC", "id": 298486374, "name": "centos-2" } ] }
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_id optional |
ID of compute resource Validations:
|
architecture_id optional |
ID of architecture Validations:
|
operatingsystem_id optional |
ID of operating system Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
page optional |
Page number, starting at 1 Validations:
|
per_page optional |
Number of results per page to return Validations:
|
Field name | Type | Possible values |
---|---|---|
architecture | integer | |
compute_resource | string | |
name | string | |
operatingsystem | integer | |
user_data | true, false | |
username | string |
GET /api/compute_resources/980190962/images/980190962 200 { "operatingsystem_id": 309172073, "operatingsystem_name": "centos 5.3", "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "architecture_id": 501905019, "architecture_name": "x86_64", "uuid": "string-of-uuid", "username": "root", "created_at": "2019-11-07 08:38:40 UTC", "updated_at": "2019-11-07 08:38:40 UTC", "id": 980190962, "name": "centos-1" }
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:
|
id required |
Validations:
|
compute_resource_id optional |
ID of compute resource Validations:
|
architecture_id optional |
ID of architecture Validations:
|
operatingsystem_id optional |
ID of operating system Validations:
|
POST /api/compute_resources/980190962/images { "image": { "name": "TestImage", "username": "ec2-user", "uuid": "abcdef", "password": "password", "operatingsystem_id": 309172073, "compute_resource_id": 928692541, "architecture_id": 331892513, "user_data": true } } 201 { "operatingsystem_id": 309172073, "operatingsystem_name": "centos 5.3", "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "architecture_id": 331892513, "architecture_name": "sparc", "uuid": "abcdef", "username": "ec2-user", "created_at": "2019-11-07 08:38:41 UTC", "updated_at": "2019-11-07 08:38:41 UTC", "id": 980190963, "name": "TestImage" }
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_id required |
Validations:
|
image required |
Validations:
|
image[name] required |
Validations:
|
image[username] required |
Validations:
|
image[uuid] required |
Template ID in the compute resource Validations:
|
image[password] optional , nil allowed |
Validations:
|
image[compute_resource_id] optional , nil allowed |
ID of compute resource Validations:
|
image[architecture_id] optional , nil allowed |
ID of architecture Validations:
|
image[operatingsystem_id] optional , nil allowed |
ID of operating system Validations:
|
image[user_data] optional , nil allowed |
Whether or not the image supports user data Validations:
|
PUT /api/compute_resources/980190962/images/980190962 { "image": {} } 200 { "operatingsystem_id": 309172073, "operatingsystem_name": "centos 5.3", "compute_resource_id": 980190962, "compute_resource_name": "bigcompute", "architecture_id": 501905019, "architecture_name": "x86_64", "uuid": "string-of-uuid", "username": "root", "created_at": "2019-11-07 08:38:40 UTC", "updated_at": "2019-11-07 08:38:40 UTC", "id": 980190962, "name": "centos-1" }
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_id required |
Validations:
|
id required |
Validations:
|
image required |
Validations:
|
image[name] optional |
Validations:
|
image[username] optional |
Validations:
|
image[uuid] optional |
Template ID in the compute resource Validations:
|
image[password] optional , nil allowed |
Validations:
|
image[compute_resource_id] optional , nil allowed |
ID of compute resource Validations:
|
image[architecture_id] optional , nil allowed |
ID of architecture Validations:
|
image[operatingsystem_id] optional , nil allowed |
ID of operating system Validations:
|
image[user_data] optional , nil allowed |
Whether or not the image supports user data Validations:
|
DELETE /api/compute_resources/980190962/images/980190962 { "image": {} } 200 { "id": 980190962, "operatingsystem_id": 309172073, "compute_resource_id": 980190962, "architecture_id": 501905019, "uuid": "string-of-uuid", "username": "root", "name": "centos-1", "created_at": "2019-11-07T08:38:40.931Z", "updated_at": "2019-11-07T08:38:40.931Z", "iam_role": null, "user_data": false, "password": null }
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_id required |
Validations:
|
id required |
Validations:
|