sites
List Site Environments
Lists all environments for a specific Pantheon site.
Returns a map of environments keyed by environment ID (e.g., "dev", "test", "live"). This format matches the old API for Terminus compatibility.
get/v0/sites/{site_id}/environments
Request
- Base URLhttps://api.pantheon.io
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
site_idstring required
The ID of the site
Response
EnvironmentMapResponse represents a successful response containing environment map
Environment Map required
EnvironmentMap represents site environments as a map keyed by environment ID This format matches the old API and is required for Terminus compatibility
Changes
No recorded changes to this operation across all 2 revisions of this API.