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

参数

参数名字 描述
search
选填

过滤结果

Validations:

  • Must be String

order
选填

结果排序

Validations:

  • Must be String

page
选填

编页结果

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be String

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.


GET /api/compute_resources/:compute_resource_id/images/:id
显示映像

参数

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

Validations:

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


POST /api/compute_resources/:compute_resource_id/images
Create a 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]
必填

Validations:

  • Must be a number.

image[architecture_id]
必填

Validations:

  • Must be a number.

image[operatingsystem_id]
必填

Validations:

  • Must be a number.


PUT /api/compute_resources/:compute_resource_id/images/:id
Update a 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]
选填

Validations:

  • Must be a number.

image[architecture_id]
选填

Validations:

  • Must be a number.

image[operatingsystem_id]
选填

Validations:

  • Must be a number.


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.