Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 931 Bytes

fact-names.markdown

File metadata and controls

38 lines (22 loc) · 931 Bytes
title layout canonical
PuppetDB 1.3 » API » v2 » Querying Fact Names
default
/puppetdb/latest/api/query/v2/fact-names.html

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 http://localhost:8080/v2/fact-names

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

Request

All requests Accept header must match 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>]