[[env]]
= Environment (`env`)

The `env` endpoint provides information about the application's `Environment`.



[[env.entire]]
== Retrieving the Entire Environment

To retrieve the entire environment, make a `GET` request to `/actuator/env`, as shown in the following curl-based example:

include::partial$rest/actuator/env/all/curl-request.adoc[]

The resulting response is similar to the following:

include::partial$rest/actuator/env/all/http-response.adoc[]

NOTE: Sanitization of sensitive values has been switched off for this example.



[[env.entire.response-structure]]
=== Response Structure

The response contains details of the application's `Environment`.
The following table describes the structure of the response:

[cols="3,1,3"]
include::partial$rest/actuator/env/all/response-fields.adoc[]



[[env.single-property]]
== Retrieving a Single Property

To retrieve a single property, make a `GET` request to `/actuator/env/{property.name}`, as shown in the following curl-based example:

include::partial$rest/actuator/env/single/curl-request.adoc[]

The preceding example retrieves information about the property named `com.example.cache.max-size`.
The resulting response is similar to the following:

include::partial$rest/actuator/env/single/http-response.adoc[]

NOTE: Sanitization of sensitive values has been switched off for this example.



[[env.single-property.response-structure]]
=== Response Structure

The response contains details of the requested property.
The following table describes the structure of the response:

[cols="3,1,3"]
include::partial$rest/actuator/env/single/response-fields.adoc[]
