Versions Compared

Key

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

...

Use the VM metadata link from the step above to retrieve any existing metadata.

Code Block
curl -X GET httphttps://localhost:9000mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/2/virtualappliances/2/virtualmachines/24/metadata \
     -H 'Accept:application/vnd.abiquo.metadata+json; version=4.2' \
     -u user:password --verbose

...

To update the VM metadata, perform a PUT request to the metadata link.

Code Block
curl -X PUT httphttps://localhost:9000mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/2/virtualappliances/2/virtualmachines/24/metadata \
     -H 'Accept:application/vnd.abiquo.metadata+json; version=4.2' \
     -H 'Content-Type:application/vnd.abiquo.metadata+json; version=4.2' \
     -d @requestpayload.json \
     -u user:password --verbose

...