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
ACTIVEorSHUTOFFstate.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Success
Bad Request
Unauthorized
Not Found
Internal Server Error
Was this page helpful?