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

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource_id
必須

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
必須

Validations:

  • Must be a Hash

image[name]
必須

Validations:

  • Must be a String

image[username]
必須

Validations:

  • Must be a String

image[uuid]
必須

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
任意 , nil可

Validations:

  • Must be a String

image[compute_resource_id]
任意 , nil可

コンピュートリソースの ID

Validations:

  • Must be a String

image[architecture_id]
任意 , nil可

アーキテクチャーの ID

Validations:

  • Must be a String

image[operatingsystem_id]
任意 , nil可

オペレーティングシステムの ID

Validations:

  • Must be a String

image[user_data]
任意 , nil可

イメージがユーザーデータをサポートするかどうか

Validations:

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