PuppetDB 1.1 » API » v2 » Querying Fact Names

This version of PuppetDB is not included in Puppet Enterprise. The latest version of PE includes PuppetDB 4.4. A newer version is available; see the version menu above for details.

The /fact-names endpoint can be used to retrieve all known fact names.

Routes

GET /fact-names

This will return an alphabetical list of all known fact names, including those which are known only for deactivated nodes.

Examples

Using curl from localhost:

curl -X GET -H 'Accept: application/json' http://localhost:8080/v2/fact-names

["kernel", "operatingsystem", "osfamily", "uptime"]

Request

All requests must accept application/json.

Response Format

The response will be in application/json, and will contain an alphabetical JSON array containing fact names. Each fact name will appear only once, regardless of how many nodes have that fact.

[<fact>, <fact>, ..., <fact>, <fact>]

↑ Back to top