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
- 200
- 400
- 401
- 404
- 409
- 500
The firewall rule has been successfully added to the virtual machine.
Bad Request
Unauthorized
Not Found
Conflict
Internal Server Error
Was this page helpful?