List effective deployment environments for agent swarm
GET/agent-swarms/:agentSwarmId/related-environments
Returns the effective set of deployment environments for the agent swarm — environments matched by
the direct environment policy and, when expand=labelEnvironments, additionally those resolved from
the swarm'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 swarm's label policy.
To update the underlying access policies, use PUT /agent-swarms/{agentSwarmId}.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
agent-swarm-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.