Returns all elastic addresses (failover groups) that belong to the authenticated user's account.
Elastic addresses provide high availability by allowing traffic to be switched between primary and secondary stacks during failures or maintenance operations. They are also known as failover groups.
Key Features:
- High Availability: Automatic traffic switching during failures
- Maintenance Windows: Manual switching for zero-downtime updates
- Multi-Cloud Support: Works across different cloud providers
- Real-time Monitoring: Status tracking for primary and secondary stacks
Status Code | Description |
---|---|
200 | Success - Returns list of elastic addresses |
401 | Unauthorized - Authentication failed or missing OAuth token |
403 | Forbidden - OAuth token lacks required `public` scope |
Request
curl -X GET \
"https://app.cloud66.com/api/3/elastic_addresses" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
{
"response": [
{
"id": 123,
"uid": "abc123def456",
"address": "203.0.113.10",
"primary_stack": "my-primary-stack",
"secondary_stack": "my-backup-stack",
"current_stack": "primary",
"status": "active",
"cloud": "AWS",
"region": "us-east-1",
"created_at": "2023-01-15T10:30:00Z",
"updated_at": "2023-01-15T10:30:00Z"
},
{
"id": 124,
"uid": "def456ghi789",
"address": "203.0.113.20",
"primary_stack": "app-prod-cluster",
"secondary_stack": "app-backup-cluster",
"current_stack": "secondary",
"status": "active",
"cloud": "DigitalOcean",
"region": "nyc3",
"created_at": "2023-01-10T14:20:00Z",
"updated_at": "2023-01-12T09:15:00Z"
}
]
}
Optional Parameters
primary_stack_uid
secondary_stack_uid
current_stack
Creates a new elastic address (failover group) that provides high availability by allowing traffic to be switched between primary and secondary stacks.
Both stacks must support failover groups and you must have appropriate permissions on both stacks. The stacks cannot be the same and must have DNS configurations.
Stacks must not be cluster or prepress type and must have head DNS present to be used in failover groups.
Validation Rules:
- Primary and secondary stacks must be different
- You must have failover group edit permissions on both stacks
- Stacks must support failover group functionality
- Stacks cannot be cluster or prepress type
Status Code | Description |
---|---|
200 | Success - Failover group created successfully |
400 | Bad Request - Invalid stack configuration or validation errors |
401 | Unauthorized - Authentication failed or missing OAuth token |
403 | Forbidden - OAuth token lacks required `admin` scope or insufficient permissions on stacks |
422 | Unprocessable Entity - Cannot create failover group at this time |
Request
curl -X POST \
"https://app.cloud66.com/api/3/elastic_addresses" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
{
"response": {
"ok": true,
"message": "Failover Group created"
}
}
Optional Parameters
uid
primary_stack_uid
secondary_stack_uid
current_stack
Modifies the specified elastic address (failover group) with new stack assignments or current stack settings.
Validates changes against business rules and permissions before applying updates. You must have appropriate permissions on both existing and new stacks.
Updating an elastic address will trigger DNS updates to reflect the new configuration and ensure proper traffic routing.
Update Rules:
- Primary and secondary stacks must be different
- You must have failover group edit permissions on all involved stacks
- New stacks must support failover group functionality
- DNS updates are automatically triggered after successful update
Status Code | Description |
---|---|
200 | Success - Failover group updated successfully |
400 | Bad Request - Invalid failover group UID or stack configuration |
401 | Unauthorized - Authentication failed or missing OAuth token |
403 | Forbidden - OAuth token lacks required `admin` scope or insufficient permissions on stacks |
422 | Unprocessable Entity - Issue updating the failover group |
Request
curl -X PUT \
"https://app.cloud66.com/api/3/elastic_addresses/:uid" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
{
"response": {
"ok": true,
"message": "Failover Group updated"
}
}
Optional Parameters
uid
Permanently removes the specified elastic address (failover group) from the system.
Cannot delete a failover group that is currently attached to a stack. You must first detach it from all stacks before deletion.
The deletion process will:
- Verify the failover group is not attached to any stack
- Remove the elastic address configuration
- Log the deletion event for audit purposes
Status Code | Description |
---|---|
200 | Success - Failover group deleted successfully |
400 | Bad Request - Invalid failover group UID or failover group is attached to a stack |
401 | Unauthorized - Authentication failed or missing OAuth token |
403 | Forbidden - OAuth token lacks required `admin` scope |
Request
curl -X DELETE \
"https://app.cloud66.com/api/3/elastic_addresses/:uid" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
{
"response": {
"ok": true,
"message": "Failover Group deleted"
}
}