Get a single environment
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Example
test-orgThe application ID
Example
test-appThe environment ID
Example
test-envResponses
Section titled “Responses”The environment with runtime details
Environment response schema with runtime details
object
Environment name
Environment status
Number of running tasks
Desired number of tasks
Minimum capacity for autoscaling
Maximum capacity for autoscaling
Public IP address for SSH access
Current deployment status
Why the most recent task stopped. SPOT_INTERRUPTION is informational: AWS reclaimed the task and ECS replaces it.
Reason for deployment failure
ECS task definition details
object
ECS service details
object
Load balancer configuration
object
Security group configuration
object
Subnet configuration
object
VPC configuration
object
Container name list
Persistent storage volumes
object
Scheduled cron jobs
object
ALB routing configuration
object
Creation timestamp
Last update timestamp
Example
{ "envName": "production", "status": "ACTIVE", "runningCount": 2, "desiredCount": 2, "minCapacity": 1, "maxCapacity": 5, "publicIpAddress": "54.123.45.67", "deploymentStatus": "COMPLETED", "deploymentFailureType": "IMAGE_NOT_FOUND"}The environment not found
