GET /api/compute_resources/:compute_resource_id/images
컴퓨터 리소스의 모든 이미지 목록 나열

GET /api/operatingsystems/:operatingsystem_id/images
운영 체제의 모든 이미지 목록 나열

GET /api/architectures/:architecture_id/images
아키텍처의 모든 이미지 목록 나열

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

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

Validations:

  • Must be a String

architecture_id
Optional

아키텍쳐 ID

Validations:

  • Must be a String

operatingsystem_id
Optional

운영 체제 ID

Validations:

  • Must be a String

search
Optional

필터 결과

Validations:

  • Must be a String

order
Optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
Optional

1 부터 페이지 번호

Validations:

  • Must be a number.

per_page
Optional

반환할 페이지 당 결과 수

Validations:

  • Must be a number.

Search fields

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

GET /api/compute_resources/:compute_resource_id/images/:id
이미지 보기

GET /api/operatingsystems/:operatingsystem_id/images/:id
이미지 보기

GET /api/architectures/:architecture_id/images/:id
이미지 보기

Examples

GET /api/compute_resources/980190962/images/980190962
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"
}

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

id
Required

Validations:

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

compute_resource_id
Optional

컴퓨터 리소스 ID

Validations:

  • Must be a String

architecture_id
Optional

아키텍쳐 ID

Validations:

  • Must be a String

operatingsystem_id
Optional

운영 체제 ID

Validations:

  • Must be a String


POST /api/compute_resources/:compute_resource_id/images
이미지 생성

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": "2019-11-07 08:38:41 UTC",
  "updated_at": "2019-11-07 08:38:41 UTC",
  "id": 980190963,
  "name": "TestImage"
}

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
Required

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
Required

Validations:

  • Must be a Hash

image[name]
Required

Validations:

  • Must be a String

image[username]
Required

Validations:

  • Must be a String

image[uuid]
Required

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a String

image[compute_resource_id]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

컴퓨터 리소스 ID

Validations:

  • Must be a String

image[architecture_id]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

아키텍쳐 ID

Validations:

  • Must be a String

image[operatingsystem_id]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

운영 체제 ID

Validations:

  • Must be a String

image[user_data]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

이미지가 사용자 데이터를 지원하는지 여부

Validations:

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


PUT /api/compute_resources/:compute_resource_id/images/:id
이미지 업데이트

Examples

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

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
Required

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
Required

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
Required

Validations:

  • Must be a Hash

image[name]
Optional

Validations:

  • Must be a String

image[username]
Optional

Validations:

  • Must be a String

image[uuid]
Optional

Template ID in the compute resource

Validations:

  • Must be a String

image[password]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a String

image[compute_resource_id]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

컴퓨터 리소스 ID

Validations:

  • Must be a String

image[architecture_id]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

아키텍쳐 ID

Validations:

  • Must be a String

image[operatingsystem_id]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

운영 체제 ID

Validations:

  • Must be a String

image[user_data]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

이미지가 사용자 데이터를 지원하는지 여부

Validations:

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


DELETE /api/compute_resources/:compute_resource_id/images/:id
이미지 삭제

Examples

DELETE /api/compute_resources/980190962/images/980190962
{
  "image": {}
}
200
{
  "id": 980190962,
  "operatingsystem_id": 309172073,
  "compute_resource_id": 980190962,
  "architecture_id": 501905019,
  "uuid": "string-of-uuid",
  "username": "root",
  "name": "centos-1",
  "created_at": "2019-11-07T08:38:40.931Z",
  "updated_at": "2019-11-07T08:38:40.931Z",
  "iam_role": null,
  "user_data": false,
  "password": null
}

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
Required

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
Required

Validations:

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