There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListEnvironments
with a CLI
The following code examples show how to use ListEnvironments
.
- CLI
-
- AWS CLI
-
To get a list of available AWS Cloud9 development environment identifiers
This example gets a list of available AWS Cloud9 development environment identifiers.
Command:
aws cloud9 list-environments
Output:
{ "environmentIds": [ "685f892f431b45c2b28cb69eadcdb0EX", "1980b80e5f584920801c09086667f0EX" ] }
-
For API details, see ListEnvironments
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example gets a list of available AWS Cloud9 development environment identifiers.
Get-C9EnvironmentList
Output:
685f892f431b45c2b28cb69eadcdb0EX 1980b80e5f584920801c09086667f0EX
-
For API details, see ListEnvironments in AWS Tools for PowerShell Cmdlet Reference.
-