1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
Environments
============
The `environments` endpoint allows for enumeration of the environments known to the master. Each environment contains information
about itself like its modulepath, manifest directory, environment timeout, and the config version.
This endpoint is by default accessible to any client with a valid certificate, though this may be changed in Puppet Server's `auth.conf`.
Get
---
Get the list of known environments.
GET /puppet/v3/environments
### Supported Response Formats
`application/json`
### Parameters
None
### Example Request & Response
GET /puppet/v3/environments
HTTP 200 OK
Content-Type: application/json
{
"search_paths": ["/etc/puppetlabs/code/environments"]
"environments": {
"production": {
"settings": {
"modulepath": ["/etc/puppetlabs/code/environments/production/modules", "/etc/puppetlabs/code/environments/development/modules"],
"manifest": ["/etc/puppetlabs/code/environments/production/manifests"]
"environment_timeout": 180,
"config_version": "/version/of/config"
}
}
}
}
The `environment_timeout` attribute could also be the string "unlimited".
Schema
------
An environments response body conforms to
[the environments schema.](../schemas/environments.json)
|