Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Abiquo virtual machine metadata

Abiquo stores some platform information in VMs as metadata , and it enables you allows users to store custom metadata too. To access metadata, use the link with the "rel" value of "metadata" in the VM.

...

Always use the existing metadata as the starting point for creating a new object to write. This is because writing metadata will overwrite ALL existing metadata

API references about working with VM metadata:

...


Excerpt

For the metadata attribute, Abiquo has the reserved keys that are described in the following table.

Metadata typeReserved KeysDescription
Chef
  • chef
  • Users enter Chef recipe attributes as JSON on the Chef / Attributes tab in the UI 
  • Abiquo stores the recipe attributes that you enter in JSON format as an escaped string under the chef key
Bootstrap script
  • startup-script
  • Cloud-config for use by cloud-init
Metrics
  • monitoring-metrics
  • Names of the metrics available for the VM – useful for accessing metrics via API
Custom 
  • Append custom metadata to the existing metadata
  • Do not use the Abiquo reserved metadata keys


...

If you ever need to delete the VM metadata, just send a DELETE request to the metadata link. But remember that this request will delete ALL metadata, leaving just the empty links list and the null metadata key, as shown in the first example about where we retrieved empty metadata.

API references about working with VM metadata: