Skip to content

PE: Update examples for classifier nodes endpoint #1174

@bastelfreak

Description

@bastelfreak

Describe the Bug

https://www.puppet.com/docs/pe/2023.8/nodes_endpoint.html lists some URL examples. The text says

When Forming node classifier API requests to this endpoint, the request is a basic GET call with authentication

but also:

GET https://localhost:4433/classifier-api/v1/nodes?limit=25&offset=25

Which doesn't work out of the box.

Expected Behavior

A working copy and paste example would be awesome:

cert="$(puppet config print hostcert)"; \
cacert="$(puppet config print localcacert)"; \
key="$(puppet config print hostprivkey)"; \
uri="https://$(puppet config print server):4433/classifier-api/v1/nodes?limit=25&offset=25"; \
curl --cert "$cert" --cacert "$cacert" --key "$key" "$uri"

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'

Environment

  • Version [e.g. 1.27.0]
  • Platform [e.g. Ubuntu 18.04]

Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedThis ticket has been accepted to our backlog and migrated internally

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions