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

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

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

参数

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

计算资源 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
选填

排序项和顺序,例如 ‘id DESC’

Validations:

  • Must be a String

page
选填

页号,从 1 开始

Validations:

  • Must be a number.

per_page
选填

每页中显示的返回结果数

Validations:

  • Must be a number.

搜索字段

字段名 类型 可能的值
architecture
compute_resource
name
operatingsystem
user_data true, false
username

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

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

GET /api/architectures/:architecture_id/images/:id
显示映像

参数

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

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
创建映像

参数

参数名字 描述
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]
选填 , 允许空值

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
更新映像

参数

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

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]
选填 , 允许空值

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
删除映像

参数

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

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.