View a markdown version of this page

Use DescribeEnvironmentStatus with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use DescribeEnvironmentStatus with a CLI

The following code examples show how to use DescribeEnvironmentStatus.

CLI
AWS CLI

To get status information for an AWS Cloud9 development environment

The following describe-environment-status example gets status information for the specified AWS Cloud9 development environment.

aws cloud9 describe-environment-status \ --environment-id 685f892f431b45c2b28cb69eadcdb0EX

Output:

{ "status": "ready", "message": "Environment is ready to use" }

For more information, see Working with environments in AWS Cloud9 in the AWS Cloud9 User Guide.

PowerShell
Tools for PowerShell V4

Example 1: This example gets status information for the specified AWS Cloud9 development environment.

Get-C9EnvironmentStatus -EnvironmentId 349c86d4579e4e7298d500ff57a6b2EX

Output:

Message Status ------- ------ Environment is ready to use ready
Tools for PowerShell V5

Example 1: This example gets status information for the specified AWS Cloud9 development environment.

Get-C9EnvironmentStatus -EnvironmentId 349c86d4579e4e7298d500ff57a6b2EX

Output:

Message Status ------- ------ Environment is ready to use ready