Examples

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": "2024-02-22 15:52:48 UTC",
  "updated_at": "2024-02-22 15:52:48 UTC",
  "id": 980190963,
  "name": "TestImage"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

compute_resource_id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

image
required

Validations:

  • Hash

image[name]
required

Validations:

  • String

image[username]
required

Validations:

  • String

image[uuid]
required

Template ID in the compute resource

Validations:

  • String

image[password]
optional , nil allowed

Validations:

  • String

image[compute_resource_id]
optional , nil allowed

ID of compute resource

Validations:

  • String

image[architecture_id]
optional , nil allowed

ID of architecture

Validations:

  • String

image[operatingsystem_id]
optional , nil allowed

ID of operating system

Validations:

  • Must be a number.

image[user_data]
optional , nil allowed

Whether or not the image supports user data

Validations:

  • Must be one of: true, false, 1, 0.