Virtual Machine

Edit virtual machine labels

Adds one or more labels to an existing virtual machine. Provide the virtual machine ID in the path to add labels to the specified VM. For multiple labels, add a space between each label in the request body.

put/core/virtual-machines/{vm_id}/label

Request

  • Base URL: https://infrahub-api.nexgencloud.com/v1
  • URL: https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{vm_id}/label
  • Auth: API key in header api_key

Path parameters

vm_idinteger required

ID of the vm.

Request body

labelsstring[]

Multiple labels can be added by separating with spaces.

Response

Labels edited successfully

statusboolean

Whether the request succeeded.

messagestring

Human-readable description of the result.

Example response

{
  "status": true,
  "message": "Instance is being deleted."
}

Changes

No recorded changes to this operation across all 1 revision of this API.