GetConfiguration - AWS AppConfig

GetConfiguration

Retrieve information about a configuration.

Request Syntax

GET /applications/Application/environments/Environment/configurations/Configuration?client_configuration_version=ClientConfigurationVersion&client_id=ClientId HTTP/1.1

URI Request Parameters

The request requires the following URI parameters.

Application

The application to get. Specify either the application name or the application ID.

Length Constraints: Minimum length of 1. Maximum length of 64.

ClientConfigurationVersion

The configuration version returned in the most recent GetConfiguration response. Calls to GetConfiguration should send the ConfigurationVersion value as the ClientConfigurationVersion parameter. AppConfig uses this value to determine if new configuration data is needed by the client. For more information about working with configurations, see Retrieving the Configuration in the AWS AppConfig User Guide.

Length Constraints: Minimum length of 1. Maximum length of 128.

ClientId

A unique ID to identify the client for the configuration. This ID enables AppConfig to deploy the configuration in intervals, as defined in the deployment strategy.

Length Constraints: Minimum length of 1. Maximum length of 64.

Configuration

The configuration to get. Specify either the configuration name or the configuration ID.

Length Constraints: Minimum length of 1. Maximum length of 64.

Environment

The environment to get. Specify either the environment name or the environment ID.

Length Constraints: Minimum length of 1. Maximum length of 64.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Configuration-Version: ConfigurationVersion Content-Type: ContentType Content

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The response returns the following HTTP headers.

ConfigurationVersion

The configuration version.

Length Constraints: Minimum length of 1. Maximum length of 128.

ContentType

A standard MIME type describing the format of the configuration content. For more information, see Content-Type.

The response returns the following as the HTTP body.

Content

The content of the configuration or the configuration data.

Errors

For information about the errors that are common to all actions, see Common Errors.

BadRequestException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

InternalServerException

There was an internal failure in the AppConfig service.

HTTP Status Code: 500

ResourceNotFoundException

The requested resource could not be found.

HTTP Status Code: 404

ResourceNotFoundException

The requested resource could not be found.

HTTP Status Code: 404

See Also

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