Classes endpoint
Use the classes
endpoint to retrieve a list of all
classes.
To retrieve a list of all classes in a specific environment or a specific class from a specific environment, use the GET /v1/environments/<environment>/classes or GET /v1/environments/<environment>/classes/<name> endpoints.
The output from the classes
endpoint (and the environments/<environment>/classes
endpoints) is useful
for creating or editing node groups, which usually reference one or more classes. You
can use the Groups endpoints to create and edit node groups.
The node classifier gets information about classes from Puppet. Don't use the classes
endpoint to create, update, or delete classes.