API Help ...

Snyder, Alexander J alexander at snyderfamily.co
Wed Aug 3 09:21:59 MST 2022


UPDATE: The request works fine from my local SSH (Git Bash) environment.

I piped it into JQ and redirected that to a file I can view in vocode ...
but that's mildly annoying, as I was really hoping to use a purpose built
dev tool.

Thanks,
Alexander

Sent from my Samsung Galaxy S22+

On Wed, Aug 3, 2022, 09:00 Snyder, Alexander J <alexander at snyderfamily.co>
wrote:

> I'm new to API Requests in general.
>
> I'm I have an admin API Token that should be able to do "all the things".
>
> I'm using Postman and I'm trying to send queries to Chef Automate.
>
> I'm following along with the Chef Automate API documentation:
> https://docs.chef.io/automate/api/
>
> I have downloaded their JSON Schema definitions, and imported that into
> Postman, so I have examples of all the API they have ....
>
> I mean, I'm the definition of "being hand held", LOL ... but things just
> aren't working.
>
> Like I try to hit "/api/v0/compliance/nodes/search" to get a list of all
> my nodes ... as they suggest in the example, i apply a filter of
> "environment: prod" ... but it returns "Method Not Allowed", and i don't
> know what that means ... and the documentation doesn't mention that.
>
> Specifically, I'm reading this:  "
> https://docs.chef.io/automate/api/#tag/ReportingService/operation/ReportingService_ListNodes
> "
>
> Even if you're not familiar with Chef, or Automate ... I think I need help
> with API.
>
> Thanks,
> Alexander
>
> Sent from my Samsung Galaxy S22+
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20220803/42fffc59/attachment.html>


More information about the PLUG-discuss mailing list