Ejemplos

PUT /api/compute_profiles/980190962/compute_resources/980190962/compute_attributes/298486374
{
  "compute_attribute": {
    "vm_attrs": {
      "cpus": "4"
    }
  }
}
200
{
  "created_at": "2019-09-11 14:54:14 UTC",
  "updated_at": "2019-09-11 14:54:22 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": {}
  }
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Alcance por ubicación

Validations:

  • Must be a Integer

organization_id
opcional

Alcance por organización

Validations:

  • Must be a Integer

compute_profile_id
opcional

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
opcional

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
requerido

Validations:

  • Must be a String

compute_attribute
requerido

Validations:

  • Must be a Hash

compute_attribute[vm_attrs]
opcional

Validations:

  • Must be a Hash