Przykłady

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"
    }
  ]
}

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
opcjonalny

ID zasobu obliczeniowego

Validations:

  • Must be a String

architecture_id
opcjonalny

ID architektury

Validations:

  • Must be a String

operatingsystem_id
opcjonalny

ID systemów operacyjnych

Validations:

  • Must be a String

search
opcjonalny

rezultat filtrowania

Validations:

  • Must be a String

order
opcjonalny

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opcjonalny

Page number, starting at 1

Validations:

  • Must be a number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • Must be a number.

Search fields

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