A newer version is available; see the version menu above for details.
Puppet provides a number of APIs that allow you to interact with Puppet applications. On this page, you’ll find a brief description of each API to help you figure out when to use which API.
PuppetDB comes with a number of APIs. The PuppetDB Query API is used to query the data that PuppetDB collects from Puppet. You can query information such as:
- node facts
- node resources
There are also APIs for importing/exporting PuppetDB archives, changing PuppetDB’s model of a population, querying information about the PuppetDB server, and querying PuppetDB metrics.
For a full list of PuppetDB APIs and endpoints, see PuppetDB API Overview.
Role-Based Access Control (RBAC) Service API
Use the RBAC Service API to manage access to Puppet Enterprise, including connecting to external directories, generating authentication tokens, and managing users, user roles, user groups, and user permissions.
For detailed information and RBAC Service API endpoints, see RBAC Endpoints.
Node Classifier Service API
Use the Node Classifier Service API to query node classification data, such as the groups that a node matches, the classes, parameters, and variables that have been assigned to a node or group, and the environment that a node is in.
For detailed information and Node Classifier Service API endpoints, see Node Classifier Endpoints.
Code Manager API
Use the Code Manager API to:
- Create a custom URL that is used to trigger Code Manager.
- Queue Puppet code deploys.
For information about the
webhook endpoint, see Webhook Endpoint.
For information about the
deploy endpoint, see Deploys Endpoint.
Puppet Server Administrative API
You can use this API to:
- Delete environment caches created by a Puppet master.
- Delete Puppet Server’s pool of JRuby instances.
Use the Status API to check the health status of PE services. For detailed information and Status API endpoints, see Monitoring PE Services.
Activity Service API
Use the Activity Service API to query the events that are logged by the Activity service. The Activity service logs Puppet Enterprise events by service and user.
Use the Razor API to provision bare-metal machines. For detailed information and the Razor API endpoints, see Razor API Reference.
Use the Forge API to get information about modules and users on the Puppet Forge. Using the Forge API, you can write scripts and tools that interact with the Forge website. For detailed information and Forge API endpoints, see Puppet Forge API.
Certificate Authority (CA) API
This API is used internally by Puppet to manage Puppet agent certificates. For detailed information and CA API endpoints, see the CA API documentation. For information about how this API is used internally by Puppet, see the Agent/Master HTTPs Communications page. For information about the Puppet Cert command line tool, see the Puppet’s Commands page.
This API is used by the Puppet agent in communication with the Puppet master. Although it is primarily used internally by Puppet services, you can use it to get a catalog for a node, and to get environment information. For detailed information and Puppet API endpoints, see the Puppet API documentation. For information about how this API is used internally by Puppet, see the Agent/Master HTTPs Communications page.
The File Sync API has endpoints for committing code to a Master of Masters and synchronizing code with compile masters.
Important Note: Puppet only supports file sync through use of Code Manager. Directly accessing the file sync API is not supported and not recommended.
For detailed information and File Sync API endpoints, see File Sync API.