Huddle01 Cloud
Security groups

Get security group

Get details of a specific security group.

GET
/security-groups/{id}
x-api-key<token>

In: header

Path Parameters

idstring

Unique identifier of the security group.

Query Parameters

regionstring

Region code where the resource exists (e.g., eu2).

Response Body

application/json

application/json

application/json

curl -X GET "https://cloud.huddleapis.com/api/v1/security-groups/sg-9f3c7c2?region=eu2"
{
  "security_group": {
    "id": "sg-9f3c7c2",
    "name": "allow-rtmp",
    "description": "Allow RTMP ingress from CDN nodes",
    "rules": [
      {
        "id": "sgr-0d8e12a",
        "direction": "ingress",
        "ether_type": "IPv4",
        "protocol": "tcp",
        "port_range_min": 80,
        "port_range_max": 80,
        "remote_ip_prefix": "0.0.0.0/0",
        "remote_group_id": "sg-9f3c7c2",
        "security_group_id": "sg-9f3c7c2",
        "created_at": "2024-03-18T10:20:00Z",
        "updated_at": "2024-03-18T10:22:00Z"
      }
    ],
    "created_at": "2024-03-18T10:20:00Z",
    "updated_at": "2024-03-18T10:22:00Z",
    "region": {
      "name": "eu2"
    }
  }
}
{
  "message": "Resource not found",
  "error": {
    "code": "NOT_FOUND",
    "message": "Instance not found",
    "type": "not_found"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}
{
  "message": "Internal server error",
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Failed to create instance",
    "type": "server"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}