List effective deployment environments for application
GET/applications/:applicationId/related-environments
Returns the effective set of deployment environments for the application — environments matched by
the direct environment policy and, when expand=labelEnvironments, additionally those resolved from
the application's label policy. Each item carries a source marker (DIRECT or LABEL); direct entries
shadow label-resolved entries with the same id.
Supported expand values:
status — resolve each environment's status against its cluster (extra read);
labelEnvironments — also resolve and merge environments from the application's label policy.
To update the underlying access policies, use PUT /applications/{applicationId}.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
application-related-environments-list 200 response
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.