Skip to main content

Attach firewalls to a virtual machine

POST 

/core/virtual-machines/:vm_id/attach-firewalls

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.

Request

Responses

Success