GET /api/compute_resources/:compute_resource_id/images
List all images for a compute resource

GET /api/operatingsystems/:operatingsystem_id/images
List all images for operating system

GET /api/architectures/:architecture_id/images
List all images for architecture

参数

参数名字 描述
compute_resource_id
选填

ID of compute resource

Validations:

  • Must be String

architecture_id
选填

ID of architecture

Validations:

  • Must be String

operatingsystem_id
选填

ID of operating system

Validations:

  • Must be String

search
选填

过滤结果

Validations:

  • Must be String

order
选填

结果排序

Validations:

  • Must be String

page
选填

页数

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be String


GET /api/compute_resources/:compute_resource_id/images/:id
Show an image

GET /api/operatingsystems/:operatingsystem_id/images/:id
Show an image

GET /api/architectures/:architecture_id/images/:id
Show an image

参数

参数名字 描述
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.

compute_resource_id
选填

ID of compute resource

Validations:

  • Must be String

architecture_id
选填

ID of architecture

Validations:

  • Must be String

operatingsystem_id
选填

ID of operating system

Validations:

  • Must be String


POST /api/compute_resources/:compute_resource_id/images
Create an image

参数

参数名字 描述
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 String

image[username]
必填

Validations:

  • Must be String

image[uuid]
必填

Validations:

  • Must be String

image[compute_resource_id]
选填 , 允许空值

ID of compute resource

Validations:

  • Must be String

image[architecture_id]
选填 , 允许空值

ID of architecture

Validations:

  • Must be String

image[operatingsystem_id]
选填 , 允许空值

ID of operating system

Validations:

  • Must be String

image[user_data]
选填 , 允许空值

Whether or not the image supports user data

Validations:

  • Must be 'true' or 'false' or '1' or '0'


PUT /api/compute_resources/:compute_resource_id/images/:id
Update an image

参数

参数名字 描述
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.

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 String

image[username]
选填

Validations:

  • Must be String

image[uuid]
选填

Validations:

  • Must be String

image[compute_resource_id]
选填 , 允许空值

ID of compute resource

Validations:

  • Must be String

image[architecture_id]
选填 , 允许空值

ID of architecture

Validations:

  • Must be String

image[operatingsystem_id]
选填 , 允许空值

ID of operating system

Validations:

  • Must be String

image[user_data]
选填 , 允许空值

Whether or not the image supports user data

Validations:

  • Must be 'true' or 'false' or '1' or '0'


DELETE /api/compute_resources/:compute_resource_id/images/:id
Delete an image

参数

参数名字 描述
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.

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.