Huddle01 Cloud
Security groups

Duplicate security group to region

Duplicate an existing security group (with all its rules) to another region. Uses the saga pattern — if any step fails, the partially created security group in the target region is automatically rolled back.

POST
/security-groups/{id}/duplicate

Authorization

ApiKeyAuth
X-API-Key<token>

API key for authentication. Generate from the Huddle01 Cloud dashboard.

In: header

Path Parameters

id*string

Security group ID

Query Parameters

region*string

Region code (e.g., eu2, us1)

Header Parameters

Idempotency-Key?string

Unique key to ensure idempotent request handling

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://cloud.huddleapis.com/api/v1/security-groups/string/duplicate?region=string" \  -H "Content-Type: application/json" \  -d '{    "target_region": "us1"  }'
{
  "security_group": {
    "id": "string",
    "name": "string",
    "description": "string",
    "rules": [
      {
        "id": "string",
        "direction": "ingress",
        "ether_type": "IPv4",
        "protocol": "tcp",
        "port_range_min": 0,
        "port_range_max": 0,
        "remote_ip_prefix": "string",
        "remote_group_id": "string",
        "security_group_id": "string",
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z"
      }
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "region": {
      "name": "eu2"
    }
  },
  "source_region": "string",
  "target_region": "string",
  "rules_copied": 0
}
{
  "success": false,
  "error": "Invalid request"
}
{
  "success": false,
  "error": "Invalid request"
}
{
  "success": false,
  "error": "Invalid request"
}
{
  "success": false,
  "error": "Invalid request"
}