get https://ioe.droplit.io/v0/api/environments/
Details
Get an environment.
An account token, server token, or user token may be used to run this endpoint.
Parameters
path
- id (required): The ID of the environment.
Responses
200
{
"createdAt": "YYYY-MM-DD HH:MM:SS ENCODED",
"ecosystemId": "ECOSYSTEM-ID",
"id": "ENVIRONMENT-ID",
"meta": {}
}
400
- Environment Invalid: The standard error structure defines this error as invalid parameters, with an invalid ID linked to the parameter that designates the environment ID. In this context, it means that the ID given for an environment was not valid.
404
- Environment Not Found: This error means that an environment with the given ID was not found. This is distinct from an invalid environment ID being specified; this means that the environment ID once existed, but no longer does.
Examples
HTTP
GET https://ioe.droplit.io/api/environments/ENVIRONMENT-ID HTTP/1.1
authorization: TOKEN
Droplit Console
droplit environment info ENVIRONMENT-ID
Droplit SDK
droplit.environments.info("ENVIRONMENT-ID");