Skip to main content

Add firewall rule to virtual machine

POST 

/core/virtual-machines/:vm_id/sg-rules

Creates a firewall rule and applies it to a virtual machine. Include the virtual machine ID in the path and the firewall rule configuration in the request body.

Request​

Responses​

The firewall rule has been successfully added to the virtual machine.