Update Virtual Machine Callback
PUT https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}/update-callback
Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, click here.
Path parameters
id integer
Required
The ID of the virtual machine to which the callback URL is being modified.
Request body parameters
url string
Required
The new callback URL to be attached to the virtual machine.
Attributes
status boolean
Indicates the status of the request to update the virtual machine callback. A status of true
indicates success.
message string
A message describing the status of the callback update.
url string
The URL of the new callback attached to the virtual machine.
curl -X PUT "https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}/update-callback" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"\
-H "content-type: application/json" \
-d '{
"url": "string"
}'
{
"status": true,
"message": "string",
"url": "string"
}
Returns
A successful response returns the status of true
, a message confirming that the new URL has been successfully attached to the virtual machine. Any other response indicates an error has occurred.