GET /api/compute_resources/:compute_resource_id/images
列出计算资源的所有映像

GET /api/operatingsystems/:operatingsystem_id/images
列出操作系统的所有映像

GET /api/architectures/:architecture_id/images
列出架构的所有映像

参数

参数名字 描述
compute_resource_id
选填

计算资源 ID

Validations:

  • Must be a String

architecture_id
选填

架构 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

search
选填

过滤结果

Validations:

  • Must be a String

order
选填

结果排序

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


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

GET /api/operatingsystems/:operatingsystem_id/images/:id
显示映像

GET /api/architectures/:architecture_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
选填

计算资源 ID

Validations:

  • Must be a String

architecture_id
选填

架构 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String


POST /api/compute_resources/:compute_resource_id/images
创建映像

参数

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

Validations:

  • Must be a String

image[password]
选填 , 允许空值

Validations:

  • Must be a String

image[compute_resource_id]
选填 , 允许空值

计算资源 ID

Validations:

  • Must be a String

image[architecture_id]
选填 , 允许空值

架构 ID

Validations:

  • Must be a String

image[operatingsystem_id]
选填 , 允许空值

操作系统 ID

Validations:

  • Must be a String

image[user_data]
选填 , 允许空值

映象是否支持用户数据

Validations:

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


PUT /api/compute_resources/:compute_resource_id/images/:id
更新映像

参数

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

image[username]
选填

Validations:

  • Must be a String

image[uuid]
选填

Validations:

  • Must be a String

image[password]
选填 , 允许空值

Validations:

  • Must be a String

image[compute_resource_id]
选填 , 允许空值

计算资源 ID

Validations:

  • Must be a String

image[architecture_id]
选填 , 允许空值

架构 ID

Validations:

  • Must be a String

image[operatingsystem_id]
选填 , 允许空值

操作系统 ID

Validations:

  • Must be a String

image[user_data]
选填 , 允许空值

映象是否支持用户数据

Validations:

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


DELETE /api/compute_resources/:compute_resource_id/images/:id
删除映像

参数

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