GET /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes
List of compute attributes for provided compute profile and compute resource

GET /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes
List of compute attributes for provided compute profile and compute resource

GET /api/compute_resources/:compute_resource_id/compute_attributes
List of compute attributes for compute resource

GET /api/compute_profiles/:compute_profile_id/compute_attributes
List of compute attributes for compute profile

GET /api/compute_attributes/:id
List of compute attributes

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

compute_profile_id
optional

ID of compute profile

Validations:

  • Must be a String

compute_resource_id
optional

ID of compute_resource

Validations:

  • Must be a String

search
optional

filter results

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

paginate results

Validations:

  • Must be a String

per_page
optional

number of entries per request

Validations:

  • Must be a String

Search fields

Field name Type Possible values
compute_profile string
compute_resource string
name string

GET /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id
Show a compute attributes set

GET /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id
Show a compute attributes set

GET /api/compute_resources/:compute_resource_id/compute_attributes/:id
Show a compute attributes set

GET /api/compute_profiles/:compute_profile_id/compute_attributes/:id
Show a compute attributes set

GET /api/compute_attributes/:id
Show a compute attributes set

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer


POST /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes
Create a compute attributes set

POST /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes
Create a compute attributes set

POST /api/compute_resources/:compute_resource_id/compute_attributes
Create a compute attributes set

POST /api/compute_profiles/:compute_profile_id/compute_attributes
Create a compute attributes set

POST /api/compute_attributes
Create a compute attributes set

Examples

POST /api/compute_profiles/113629430/compute_resources/980190962/compute_attributes
{
  "compute_attribute": {
    "vm_attrs": {
      "cpus": "2",
      "memory": "2147483648"
    }
  }
}
201
{
  "created_at": "2019-02-20 13:22:07 UTC",
  "updated_at": "2019-02-20 13:22:07 UTC",
  "id": 980190963,
  "name": null,
  "compute_resource_id": 980190962,
  "compute_resource_name": "bigcompute",
  "provider_friendly_name": "Libvirt",
  "compute_profile_id": 113629430,
  "compute_profile_name": "3-Large",
  "vm_attrs": {
    "cpus": "2",
    "memory": "2147483648"
  },
  "attributes": {
    "cpus": "2",
    "memory": "2147483648",
    "image_id": null,
    "image_name": null,
    "volumes_attributes": {},
    "interfaces_attributes": {}
  }
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

compute_profile_id
required

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
required

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
required

Validations:

  • Must be a Hash

compute_attribute[vm_attrs]
required

Validations:

  • Must be a Hash


PUT /api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id
Update a compute attributes set

PUT /api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id
Update a compute attributes set

PUT /api/compute_resources/:compute_resource_id/compute_attributes/:id
Update a compute attributes set

PUT /api/compute_profiles/:compute_profile_id/compute_attributes/:id
Update a compute attributes set

PUT /api/compute_attributes/:id
Update a compute attributes set

Examples

PUT /api/compute_profiles/980190962/compute_resources/980190962/compute_attributes/298486374
{
  "compute_attribute": {
    "vm_attrs": {
      "cpus": "4"
    }
  }
}
200
{
  "created_at": "2019-02-20 13:21:44 UTC",
  "updated_at": "2019-02-20 13:22:07 UTC",
  "id": 298486374,
  "name": null,
  "compute_resource_id": 980190962,
  "compute_resource_name": "bigcompute",
  "provider_friendly_name": "Libvirt",
  "compute_profile_id": 980190962,
  "compute_profile_name": "1-Small",
  "vm_attrs": {
    "cpus": "4"
  },
  "attributes": {
    "cpus": "4",
    "memory": null,
    "image_id": null,
    "image_name": null,
    "volumes_attributes": {},
    "interfaces_attributes": {}
  }
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

compute_profile_id
optional

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
optional

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
required

Validations:

  • Must be a String

compute_attribute
required

Validations:

  • Must be a Hash

compute_attribute[vm_attrs]
optional

Validations:

  • Must be a Hash