Update a Network Security Group
To update a NSG, you need to use the following Cloud API PUTor PATCH request providing the datacenterId, securityGroupIdand the required properties:
PUT(PATCH) /datacenters/{datacenterId}/securitygroups/{securityGroupId}
Request
curl --location --request PUT 'https://api.ionos.com/cloudapi/v6/datacenters/5a88aa8b-8aa1-51f6-XXd1-XXXXXe9f31/securitygroups/b3f55c2d-a89e-4008-8213-92e0428e2555' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YYXabCDeFmLMO0c2hyYUBpb25vcy5jb206I1Bha2lzdGFuXzE=' \
--data '{
"properties": {
"name": "NSG",
"description": "updated to true"
}
}'Response
202 Accepted
Last updated
Was this helpful?