Create a Default Network Security Group
Note: Only contract administrators, owners, and users with both permissions to the VDC concerned and createNetworkSecurityGroups
privilege can create NSGs via API.
Prerequisite: You need an IONOS Cloud account with API credentials configured with the appropriate permissions.
You can create a Default NSG with predefined rules at the time of creation or during the update of a datacenter. You can use any of the following Cloud API requests with the property createDefaultSecurityGroup
set to true
and the other required properties:
POST /datacenters/
PUT /datacenters/{datacenterId}
PATCH /datacenters/{datacenterId}
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