Retrieve Network Security Groups
To retrieve the NSGs, you need to use the following Cloud APIGET
request using the datacenter ID
:
GET /datacenters/{datacenterId}/securitygroups
Request
curl --location 'https://api.ionos.com/cloudapi/v6/datacenters/5a88aa8b-8aa1-51f6-XXd1-XXXXXe9f31/securitygroups/' \
--header 'Authorization: Basic YYXabCDeFmLMO0c2hyYUBpb25vcy5jb206I1Bha2lzdGFuXzE='
Response
200 OK
{
"id": "5a88aa8b-8aa1-51f6-XXd1-XXXXXe9f31/securitygroups",
"type": "collection",
"href": "https://api.ionos.com/cloudapi/v6/datacenters/5a88aa8b-8aa1-51f6-XXd1-XXXXXe9f31/securitygroups",
"items": [
{
"id": "bxxxx-axXX-0008-8888-99k0444e5555",
"type": "security-group",
"href": "https://api.ionos.com/cloudapi/v6/datacenters/5a88aa8b-8aa1-51f6-XXd1-XXXXXe9f31/securitygroups/bxxxx-axXX-0008-8888-99k0444e5555"
}
]
}
PreviousConvert a Custom Network Security Group to DefaultNextRetrieve Network Security Groups by Group ID
Last updated
Was this helpful?