DescribeEnvironments

class ElasticBeanstalk.Paginator.DescribeEnvironments
paginator = client.get_paginator('describe_environments')
paginate(**kwargs)

Creates an iterator that will paginate through responses from ElasticBeanstalk.Client.describe_environments().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ApplicationName='string',
    VersionLabel='string',
    EnvironmentIds=[
        'string',
    ],
    EnvironmentNames=[
        'string',
    ],
    IncludeDeleted=True|False,
    IncludedDeletedBackTo=datetime(2015, 1, 1),
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • ApplicationName (string) -- If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.
  • VersionLabel (string) -- If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.
  • EnvironmentIds (list) --

    If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

    • (string) --
  • EnvironmentNames (list) --

    If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

    • (string) --
  • IncludeDeleted (boolean) --

    Indicates whether to include deleted environments:

    true : Environments that have been deleted after IncludedDeletedBackTo are displayed.

    false : Do not include deleted environments.

  • IncludedDeletedBackTo (datetime) -- If specified when IncludeDeleted is set to true , then environments deleted after this date are displayed.
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'Environments': [
        {
            'EnvironmentName': 'string',
            'EnvironmentId': 'string',
            'ApplicationName': 'string',
            'VersionLabel': 'string',
            'SolutionStackName': 'string',
            'PlatformArn': 'string',
            'TemplateName': 'string',
            'Description': 'string',
            'EndpointURL': 'string',
            'CNAME': 'string',
            'DateCreated': datetime(2015, 1, 1),
            'DateUpdated': datetime(2015, 1, 1),
            'Status': 'Aborting'|'Launching'|'Updating'|'LinkingFrom'|'LinkingTo'|'Ready'|'Terminating'|'Terminated',
            'AbortableOperationInProgress': True|False,
            'Health': 'Green'|'Yellow'|'Red'|'Grey',
            'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe'|'Suspended',
            'Resources': {
                'LoadBalancer': {
                    'LoadBalancerName': 'string',
                    'Domain': 'string',
                    'Listeners': [
                        {
                            'Protocol': 'string',
                            'Port': 123
                        },
                    ]
                }
            },
            'Tier': {
                'Name': 'string',
                'Type': 'string',
                'Version': 'string'
            },
            'EnvironmentLinks': [
                {
                    'LinkName': 'string',
                    'EnvironmentName': 'string'
                },
            ],
            'EnvironmentArn': 'string',
            'OperationsRole': 'string'
        },
    ],

}

Response Structure

  • (dict) --

    Result message containing a list of environment descriptions.

    • Environments (list) --

      Returns an EnvironmentDescription list.

      • (dict) --

        Describes the properties of an environment.

        • EnvironmentName (string) --

          The name of this environment.

        • EnvironmentId (string) --

          The ID of this environment.

        • ApplicationName (string) --

          The name of the application associated with this environment.

        • VersionLabel (string) --

          The application version deployed in this environment.

        • SolutionStackName (string) --

          The name of the SolutionStack deployed with this environment.

        • PlatformArn (string) --

          The ARN of the platform version.

        • TemplateName (string) --

          The name of the configuration template used to originally launch this environment.

        • Description (string) --

          Describes this environment.

        • EndpointURL (string) --

          For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

        • CNAME (string) --

          The URL to the CNAME for this environment.

        • DateCreated (datetime) --

          The creation date for this environment.

        • DateUpdated (datetime) --

          The last modified date for this environment.

        • Status (string) --

          The current operational status of the environment:

          • Launching : Environment is in the process of initial deployment.
          • Updating : Environment is in the process of updating its configuration settings or application version.
          • Ready : Environment is available to have an action performed on it, such as update or terminate.
          • Terminating : Environment is in the shut-down process.
          • Terminated : Environment is not running.
        • AbortableOperationInProgress (boolean) --

          Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

          true: There is an update in progress.

          false: There are no updates currently in progress.

        • Health (string) --

          Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

          • Red : Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
          • Yellow : Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
          • Green : Indicates the environment is healthy and fully functional.
          • Grey : Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironment request.

          Default: Grey

        • HealthStatus (string) --

          Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses.

        • Resources (dict) --

          The description of the AWS resources used by this environment.

          • LoadBalancer (dict) --

            Describes the LoadBalancer.

            • LoadBalancerName (string) --

              The name of the LoadBalancer.

            • Domain (string) --

              The domain name of the LoadBalancer.

            • Listeners (list) --

              A list of Listeners used by the LoadBalancer.

              • (dict) --

                Describes the properties of a Listener for the LoadBalancer.

                • Protocol (string) --

                  The protocol that is used by the Listener.

                • Port (integer) --

                  The port that is used by the Listener.

        • Tier (dict) --

          Describes the current tier of this environment.

          • Name (string) --

            The name of this environment tier.

            Valid values:

            • For Web server tierWebServer
            • For Worker tierWorker
          • Type (string) --

            The type of this environment tier.

            Valid values:

            • For Web server tierStandard
            • For Worker tierSQS/HTTP
          • Version (string) --

            The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.

            Note

            This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.

        • EnvironmentLinks (list) --

          A list of links to other environments in the same group.

          • (dict) --

            A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.

            • LinkName (string) --

              The name of the link.

            • EnvironmentName (string) --

              The name of the linked environment (the dependency).

        • EnvironmentArn (string) --

          The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.

        • OperationsRole (string) --

          The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .