Przykłady

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

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
wymagany

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
wymagany

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

image
wymagany

Validations:

  • Must be a Hash

image[name]
opcjonalny

Validations:

  • Must be a String

image[username]
opcjonalny

Validations:

  • Must be a String

image[uuid]
opcjonalny

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

image[compute_resource_id]
opcjonalny , nil dopuszczalny

ID zasobu obliczeniowego

Validations:

  • Must be a String

image[architecture_id]
opcjonalny , nil dopuszczalny

ID architektury

Validations:

  • Must be a String

image[operatingsystem_id]
opcjonalny , nil dopuszczalny

ID systemów operacyjnych

Validations:

  • Must be a String

image[user_data]
opcjonalny , nil dopuszczalny

Obsługuje lub nie dane użytkownika

Validations:

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