Virtual Machine
Attach firewalls to a virtual machine
Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
State requirement: This operation requires the VM to be in the ACTIVE or SHUTOFF state.
post/core/virtual-machines/{vm_id}/attach-firewalls
Request
- Base URL: https://infrahub-api.nexgencloud.com/v1
- URL: https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{vm_id}/attach-firewalls
- Auth: API key in header api_key
Path parameters
vm_idinteger required
ID of the vm.
Request body
Response
Success
Example response
{
"status": true,
"message": "Instance is being deleted."
}Changes
No recorded changes to this operation across all 1 revision of this API.