Trigger the node classifier to update class and environment definitions from the Puppet master. This is the endpoint that’s used when you refresh classes in the console.
environment: (optional) If provided, fetches classes for only the specified environment.
curl -X POST https://localhost:4433/classifier-api/v1/update-classes?environment=production --cert <PATH TO CERT> --key <PATH TO KEY> --cacert <PATH TO PUPPET CA CERT>
A successful update will return a 201 response with an empty body.
If the Puppet master returns an unexpected status to the node classifier, the server will return a 500 Server Error response with the following keys:
msg: describes the error
details: a JSON object, which has
bodykeys describing the response the classifier received from the Puppet master