Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PE: Update examples for classifier nodes endpoint #1174

Open
bastelfreak opened this issue Oct 4, 2024 · 1 comment
Open

PE: Update examples for classifier nodes endpoint #1174

bastelfreak opened this issue Oct 4, 2024 · 1 comment
Labels
triaged This ticket has been accepted to our backlog and migrated internally

Comments

@bastelfreak
Copy link

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.

@lisarobertson lisarobertson added the triaged This ticket has been accepted to our backlog and migrated internally label Nov 8, 2024
Copy link

github-actions bot commented Nov 8, 2024

Migrated issue to PUPDOC-5703

@lisarobertson lisarobertson changed the title Update examples for classifier nodes endpoint PE: Update examples for classifier nodes endpoint Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged This ticket has been accepted to our backlog and migrated internally
Projects
None yet
Development

No branches or pull requests

2 participants