GET /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes
提供的计算配置文件和计算资源的计算属性列表

GET /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes
提供的计算配置文件和计算资源的计算属性列表

GET /api/compute_resources/:compute_resource_id/compute_attributes
计算资源的计算属性列表

GET /api/compute_profiles/:compute_profile_id/compute_attributes
计算配置文件的计算属性列表

GET /api/compute_attributes/:id
计算配置文件列表

参数

参数名字 描述
location_id
选填

设置请求的当前位置上下文

Validations:

  • Must be a Integer

organization_id
选填

设置请求的当前组织上下文

Validations:

  • Must be a Integer

compute_profile_id
选填

编辑计算配置文件

Validations:

  • Must be a String

compute_resource_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.

搜索字段

字段名 类型 可能的值
compute_profile
compute_resource
name

GET /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id
更新運算屬性集

GET /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id
更新運算屬性集

GET /api/compute_resources/:compute_resource_id/compute_attributes/:id
更新運算屬性集

GET /api/compute_profiles/:compute_profile_id/compute_attributes/:id
更新運算屬性集

GET /api/compute_attributes/:id
更新運算屬性集

参数

参数名字 描述
location_id
选填

设置请求的当前位置上下文

Validations:

  • Must be a Integer

organization_id
选填

设置请求的当前组织上下文

Validations:

  • Must be a Integer


POST /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes
创建计算属性集

POST /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes
创建计算属性集

POST /api/compute_resources/:compute_resource_id/compute_attributes
创建计算属性集

POST /api/compute_profiles/:compute_profile_id/compute_attributes
创建计算属性集

POST /api/compute_attributes
创建计算属性集

参数

参数名字 描述
location_id
选填

设置请求的当前位置上下文

Validations:

  • Must be a Integer

organization_id
选填

设置请求的当前组织上下文

Validations:

  • Must be a Integer

compute_profile_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.

compute_attribute
必填

Validations:

  • Must be a Hash

compute_attribute[vm_attrs]
必填

Validations:

  • Must be a Hash


PUT /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id
更新计算属性集

PUT /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id
更新计算属性集

PUT /api/compute_resources/:compute_resource_id/compute_attributes/:id
更新计算属性集

PUT /api/compute_profiles/:compute_profile_id/compute_attributes/:id
更新计算属性集

PUT /api/compute_attributes/:id
更新计算属性集

参数

参数名字 描述
location_id
选填

设置请求的当前位置上下文

Validations:

  • Must be a Integer

organization_id
选填

设置请求的当前组织上下文

Validations:

  • Must be a Integer

compute_profile_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.

id
必填

Validations:

  • Must be a String

compute_attribute
必填

Validations:

  • Must be a Hash

compute_attribute[vm_attrs]
选填

Validations:

  • Must be a Hash