Examples

PUT /api/compute_resources/980190963
{
  "compute_resource": {
    "name": "mycompute"
  }
}
422
{
  "error": {
    "id": 980190963,
    "errors": {
      "name": [
        "has already been taken"
      ]
    },
    "full_messages": [
      "Name has already been taken"
    ]
  }
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
Required

Validations:

  • Must be a String

compute_resource
Required

Validations:

  • Must be a Hash

compute_resource[name]
Optional

Validations:

  • Must be a String

compute_resource[provider]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Providers bevatten Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE

Validations:

  • Must be a String

compute_resource[url]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

URL voor Libvirt, oVirt, OpenStack and Rackspace

Validations:

  • Must be a String

compute_resource[description]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a String

compute_resource[user]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

inlognaam voor oVirt, EC2, VMware, Openstack, Toegangssleutel voor EC2.

Validations:

  • Must be a String

compute_resource[password]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

wachtwoord voor oVirt, EC2, VMware, Openstack. Geheime sleutel voor EC2.

Validations:

  • Must be a String

compute_resource[uuid]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Uitgefaseerd, gebruik datacenter alstublieft

Validations:

  • Must be a String

compute_resource[datacenter]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

voor oVirt, VMware Datacenter

Validations:

  • Must be a String

compute_resource[use_v4]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

enkel voor oVirt

Validations:

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

compute_resource[ovirt_quota]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for oVirt only, ID of quota to use

Validations:

  • Must be a String

compute_resource[public_key]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

enkel voor oVirt

Validations:

  • Must be a String

compute_resource[region]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for EC2 only, use ‘us-gov-west-1’ for GovCloud region

Validations:

  • Must be a String

compute_resource[tenant]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for OpenStack and AzureRM only

Validations:

  • Must be a String

compute_resource[domain]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[project_domain_name]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[project_domain_id]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[server]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

voor VMware

Validations:

  • Must be a String

compute_resource[set_console_password]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

alleen voor Libvirt en VMware

Validations:

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

compute_resource[display_type]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for Libvirt and oVirt only

Validations:

  • Must be one of: VNC, SPICE.

compute_resource[keyboard]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

enkel voor oVirt

Validations:

  • Must be one of: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr.

compute_resource[caching_enabled]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

zet caching aan, alleen voor VMware

Validations:

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

compute_resource[project]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Project id for GCE only

Validations:

  • Must be a String

compute_resource[email]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Email for GCE only

Validations:

  • Must be a String

compute_resource[key_path]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Certificate path for GCE only

Validations:

  • Must be a String

compute_resource[zone]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

for GCE only

Validations:

  • Must be a String

compute_resource[location_ids]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

compute_resource[organization_ids]
Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span>

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type