DescribeEnvironmentResources
Returns Amazon resources for this environment.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- EnvironmentId
 - 
               
The ID of the environment to retrieve Amazon resource usage data.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, Amazon Elastic Beanstalk returns
MissingRequiredParametererror.Type: String
Required: No
 - EnvironmentName
 - 
               
The name of the environment to retrieve Amazon resource usage data.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, Amazon Elastic Beanstalk returns
MissingRequiredParametererror.Type: String
Length Constraints: Minimum length of 4. Maximum length of 40.
Required: No
 
Response Elements
The following element is returned by the service.
- EnvironmentResources
 - 
               
A list of EnvironmentResourceDescription.
Type: EnvironmentResourceDescription object
 
Errors
For information about the errors that are common to all actions, see Common Errors.
- InsufficientPrivileges
 - 
               
The specified account does not have sufficient privileges for one or more Amazon services.
HTTP Status Code: 403
 
Examples
Example
This example illustrates one usage of DescribeEnvironmentResources.
Sample Request
https://elasticbeanstalk.us-west-2.amazonaws.com/?EnvironmentId=e-hc8mvnayrx
&EnvironmentName=SampleAppVersion
&Operation=DescribeEnvironmentResources
&AuthParams
        
          
          
            Sample Response
<DescribeEnvironmentResourcesResponse xmlns="https://elasticbeanstalk.amazonaws.com/docs/2010-12-01/">
  <DescribeEnvironmentResourcesResult>
    <EnvironmentResources>
      <LoadBalancers>
        <member>
          <Name>elasticbeanstalk-SampleAppVersion</Name>
        </member>
      </LoadBalancers>
      <LaunchConfigurations>
        <member>
          <Name>elasticbeanstalk-SampleAppVersion-hbAc8cSZH7</Name>
        </member>
      </LaunchConfigurations>
      <LaunchTemplates>
      </LaunchTemplates>
      <AutoScalingGroups>
        <member>
          <Name>elasticbeanstalk-SampleAppVersion-us-east-1c</Name>
        </member>
      </AutoScalingGroups>
      <EnvironmentName>SampleAppVersion</EnvironmentName>
      <Triggers>
        <member>
          <Name>elasticbeanstalk-SampleAppVersion-us-east-1c</Name>
        </member>
      </Triggers>
      <Instances/>
    </EnvironmentResources>
  </DescribeEnvironmentResourcesResult>
  <ResponseMetadata>
    <RequestId>e1cb7b96-f287-11df-8a78-9f77047e0d0c</RequestId>
  </ResponseMetadata>
</DescribeEnvironmentResourcesResponse>
        
          
       
    
      See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: