RebuildEnvironment - Amazon Elastic Beanstalk
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

RebuildEnvironment

Deletes and recreates all of the Amazon resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

EnvironmentId

The ID of the environment to rebuild.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, Amazon Elastic Beanstalk returns MissingRequiredParameter error.

Type: String

Required: No

EnvironmentName

The name of the environment to rebuild.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, Amazon Elastic Beanstalk returns MissingRequiredParameter error.

Type: String

Length Constraints: Minimum length of 4. Maximum length of 40.

Required: No

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 RebuildEnvironment.

Sample Request

https://elasticbeanstalk.us-west-2.amazonaws.com/?EnvironmentId=e-hc8mvnayrx &EnvironmentName=SampleAppVersion &Operation=RebuildEnvironment &AuthParams

Sample Response

<RebuildEnvironmentResponse xmlns="https://elasticbeanstalk.amazonaws.com/docs/2010-12-01/"> <ResponseMetadata> <RequestId>a7d6606e-f289-11df-8a78-9f77047e0d0c</RequestId> </ResponseMetadata> </RebuildEnvironmentResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: