Delete Firewall Rule From Virtual Machine
DELETE https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id}
Deletes a firewall rule associated with a virtual machine. Provide the virtual machine ID and the firewall rule ID in the path to remove the specified rule from the specified virtual machine.
Path parameters
virtual_machine_id integer
Required
The ID of the virtual machine from which the firewall rule is being deleted.
sg_rule_id integer
Required
The ID of the firewall rule to be deleted.
Attributes
status boolean
Indicates the result of the request to delete a firewall rule from a virtual machine. true
signifies success, while false
indicates an error.
message string
A description of the status of the request.
Example request
curl -X DELETE "https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id}" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "string"
}
Returns
Returns a status
of true
when the firewall rule has been successfully deleted, along with a description of the operation in the message
field.