Examples

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": "MyString2",
      "username": "MyString",
      "created_at": "2018-11-16 10:02:08 UTC",
      "updated_at": "2018-11-16 10:02:08 UTC",
      "id": 298486374,
      "name": "centos-2"
    },
    {
      "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": "2018-11-16 10:02:08 UTC",
      "updated_at": "2018-11-16 10:02:08 UTC",
      "id": 980190962,
      "name": "centos-1"
    }
  ]
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
optional

ID of compute resource

Validations:

  • Must be a String

architecture_id
optional

ID of architecture

Validations:

  • Must be a String

operatingsystem_id
optional

ID of operating system

Validations:

  • Must be a number.

search
optional

filter results

Validations:

  • Must be a String

order
optional

Sort and order by a searchable field, e.g. '<field> DESC'

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return, 'all' to return all results

Validations:

  • Must match regular expression /\A([1-9]\d*|all)\Z$/.

Search fields

Field name Type Possible values
architecture integer
compute_resource string
id integer
name string
operatingsystem integer
user_data true, false
username string