List environments (admin)
cs_admin_list_environmentsList tenant environments with their type, region, and state, filtering by name, type, or installed application.
Instructions
Every environment in the tenant with its type, region and state, as the admin centre lists them. Filters by name, type or installed application. Runs 'pac admin list' with the active pac auth profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for pac (for project commands: the solution project folder) | |
| name | No | Only environments whose name contains this text | |
| type | No | Only environments of this type (Production, Sandbox, Trial, Developer, Teams) | |
| profile | No | pac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles. | |
| background | No | Run in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status. | |
| application | No | Only environments with this application installed | |
| environment | No | Only environments whose name or id contains this text | |
| timeoutSeconds | No | Default 600 |