We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I checked https://www.puppet.com/docs/pe/2023.7/groups_endpoint#get_v1_groups-get-v1-groups-response-format
It contains the following example:
auth_header="X-Authentication: $(puppet-access show)" uri="https://$(puppet config print server):4433/classifier-api/v1/groups" curl --silent --header "$auth_header" "$uri" | jq -M -r '.[] | "\(.name) \(.id)"'
But that misses the TLS certificates for authentication. Correct is:
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/groups" curl --silent --header "$type_header" --cert "$cert" --cacert "$cacert" --key "$key" "$uri" | jq -M -r '.[] | "\(.name) \(.id)"'
Working copy & paste example to list all groups and their IDs.
The text was updated successfully, but these errors were encountered:
Migrated issue to PUPDOC-5678
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
Hi, I checked https://www.puppet.com/docs/pe/2023.7/groups_endpoint#get_v1_groups-get-v1-groups-response-format
It contains the following example:
But that misses the TLS certificates for authentication. Correct is:
Expected Behavior
Working copy & paste example to list all groups and their IDs.
Steps to Reproduce
Environment
Additional Context
The text was updated successfully, but these errors were encountered: