Delete Firewall rule from a Network Security Group
To delete a firewall rule from a NSG, you need to use the following Cloud API DELETE
request providing the datacenterId
, securityGroupId
and ruleId
:
DELETE /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules/{ruleId}
Request
curl --location --request DELETE 'https://api.ionos.com/cloudapi/v6/datacenters/5a88aa8b-8aa1-51f6-XXd1-XXXXXe9f31/securitygroups/bxxxx-axXX-0008-8888-99k0444e5555/rules/axxxx-axXX-0008-8888-99k0444e5555' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YYXabCDeFmLMO0c2hyYUBpb25vcy5jb206I1Bha2lzdGFuXzE=' \
Response
202 Accepted
PreviousUpdate Firewall rules of a Network Security GroupNextAttach a List of Security Groups to a Server or NIC
Last updated
Was this helpful?