Get all environments
GET/environments
Returns all environments available in the organization. The organization is derived from the access token.
On SaaS, the environments are resolved from Console using the caller's own token; a token that is not authorized for Console's cluster:read permission is rejected with 403. Self-Managed has no such requirement — it does not call Console — so this cluster:read 403 never applies there.
Responses
- 200
- 401
- 403
- 500
The environments were retrieved successfully.
The request lacks valid authentication credentials.
Response Headers
WWW-Authenticate
Forbidden. The request is not allowed.
An internal error occurred while processing the request.