Configuration Search Using Prisma Cloud API

Hi,

I'm trying to run a config search using the API. I can successfully get the JWT token and can use the token to do basic get options.

However, when trying the configuration search I get a 401 unauthorized error if I format the data as json( using header1). And if I don't specify the Content-Type, then I get a 500 internal server error ( header2). Just wondering if someone might be able to help with identifying the issue.

Re: Configuration Search Using Prisma Cloud API

I don't see anything wrong with header1 (header 2 is missing the content-type so that would throw the 500 as expected). If you are getting a 401, then the token has expired. FYI, there is a syntax issue with your "query" line - you have an open single quote.

Re: Configuration Search Using Prisma Cloud API

I don't see anything wrong with header1 (header 2 is missing the content-type so that would throw the 500 as expected). If you are getting a 401, then the token has expired. FYI, there is a syntax issue with your "query" line - you have an open single quote.