Create a Custom Network Security Group
To create a Custom NSG, you need to use the following Cloud API POST request providing the datacenterIdand the required properties:
POST /datacenters/{datacenterId}/securitygroups
Request
curl --location 'https://api.ionos.com/cloudapi/v6/datacenters/5a88aa8b-8aa1-51f6-XXd1-XXXXXe9f31/securitygroups' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YYXabCDeFmLMO0c2hyYUBpb25vcy5jb206I1Bha2lzdGFuXzE=' \
--data '{
"properties": {
"name": "NSG-1",
"description": "Description for NSG-1"
}
}'Response
202 Accepted
PreviousCreate a Default Network Security GroupNextConvert a Custom Network Security Group to Default
Last updated
Was this helpful?