curl -X GET 'https://api.example.com/environments/environment_prod' \
-H 'Authorization: Bearer YOUR_TOKEN'
{
"id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_env_prod",
"name": "Production"
}
Get an environment by ID
curl -X GET 'https://api.example.com/environments/environment_prod' \
-H 'Authorization: Bearer YOUR_TOKEN'
{
"id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_env_prod",
"name": "Production"
}
curl -X GET 'https://api.example.com/environments/environment_prod' \
-H 'Authorization: Bearer YOUR_TOKEN'
{
"id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tenantId": "tenant_acme",
"projectId": "project_api",
"scopeId": "scope_env_prod",
"name": "Production"
}
Was this page helpful?