Convert a Custom Network Security Group to Default
You can convert a Custom NSG to a Default NSG during the update of a datacenter. You can use any of the following Cloud API requests with the property defaultSecurityGroupId set to UUID of the NSG to be converted and the other required properties:
PUT /datacenters/{datacenterId}
PATCH /datacenters/{datacenterId}
Request
curl --location 'https://api.ionos.com/cloudapi/v6/datacenters/15f67991-0f51-4efc-a8ad-ef1fb31a480c' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YYXabCDeFmLMO0c2hyYUBpb25vcy5jb206I1Bha2lzdGFuXzE=' \
--data '{
"properties": {
"name": "Production Datacenter",
"description": "My Production Datacenter",
"location": "us/las",
"defaultSecurityGroupId": "15f67991-0f51-4efc-a8ad-ef1fb31a480c"
}
}'Response
202 Accepted
Last updated
Was this helpful?