Synchronize inventory with Puppet Enterprise using the Comply API
If you have a personal API access token and the correct user permissions, you can use the Comply Inventory API to initiate a PE inventory sync.
You can interact with the Inventory API using the following methods:
-
POST/v1/inventory-sync-job
: Create an inventory sync job. The inventory sync job starts immediately if there is not already an inventory sync job running in Comply. -
GET/v1/inventory-sync-job/{id}
: Retrieve information about an inventory sync job.
For information on how to access and use the Comply API,
reference the documentation at https://<COMPLY-HOSTNAME>/openapi.json, where
COMPLY-HOSTNAME
is your organization’s Comply server hostname. This documentation is in OpenAPI
3.0 format, so you can view it more clearly by importing it into an API documentation
tool that supports the format, such as Swagger UI or Postman.