Create Firewall rule for a Network Security Group
Note: Only contract administrators, owners, and users with permissions to the VDC concerned can create and manage NSGs via API.
Prerequisite: You need an IONOS Cloud account with API credentials configured with the appropriate permissions.
To create a firewall rule for a NSG, you need to use the following Cloud API POST
request providing the datacenterId
and securityGroupId
:
POST /datacenters/{datacenterId}/securitygroups/{securityGroupId}/rules
Request
Response
202 Accepted
Note: For CloudAPI, some resources are created asynchronously. You can check for the progress via the Status URL that is returned in the response header of the POST or PUT call.
Last updated