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: the cloud provider reclaimed the task and the platform replaces it.
Reason for deployment failure
Task definition details
object
Container 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
The newest run of the job. Null when the job has never run. Sent by the cron list.
object
FAILED_TO_START: the task could not be launched, so the command never ran (for example, the job targets a container that no longer exists).
Why the run failed, in plain text. Set when the status is FAILED_TO_START.
Failed runs (FAILED or FAILED_TO_START) from the newest run back to the first run that did not fail, counted over the latest 10 runs. 0 when the newest run did not fail. Sent by the cron list.
Load balancer 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", "cron": [ { "lastRun": { "status": "PENDING" }, "consecutiveFailures": 0 } ]}The environment not found
