Synchronize inventory with Puppet Enterprise using the Security Compliance Management API

If you have a personal API access token and the correct user permissions, you can use the Security Compliance Management Inventory API to initiate a Puppet Enterprise 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 Security Compliance Management.
  • GET/v1/inventory-sync-job/{id}: Retrieve information about an inventory sync job.

For information on how to access and use the Security Compliance Management API, reference the documentation at https://<COMPLY-HOSTNAME>/openapi.json, where COMPLY-HOSTNAME is your organization’s Security Compliance Management 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.