Unable to Access Prisma Cloud DSPM (Data Security) APIs – 403 Forbidden Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to Access Prisma Cloud DSPM (Data Security) APIs – 403 Forbidden Error

L1 Bithead

I am encountering a 403 Forbidden error when trying to access Prisma Cloud Data Security (DSPM) APIs, such as:
POST https://api.ind.prismacloud.io/dlp/api/v1/inventory/objects/aggregate
However, I am able to successfully access CSPM APIs (for example, /compliance/standards).

 

DSPM is enabled on my tenant, and I have checked by assigning a custom role with full Data Security permissions and used an admin token, but still see the issue.

 

Could any one please help me on this?

4 REPLIES 4

L3 Networker

Hi N.Modi

Note that the process for authentication for the DSPM API is different than the process for authenticating to the CSPM API.  It requires yout o create a separate key etc.  Take a look at this link which explains this in more detail and see if it helps. 

Thanks! 

We are trying to access the following API endpoint:

https://api.ind.prismacloud.io/dlp/api/v1/inventory/objects/aggregate
Reference documentation: https://pan.dev/prisma-cloud/api/cspm/get-inventory-resources/
Authentication method used:

Authorization: x-redlock-auth
However, we are encountering access issues while calling this API.

L3 Networker

Hello
I guess I'm confused here, because you stated that you are trying to use one API endpoint, but you are suplying documentation for a different endpoint.  

Maybe you're trying to do this?

https://api.ind.prismacloud.io/dlp/api/v1/inventory/objects/aggregate

Yes, we’re trying to call the following API: https://api.ind.prismacloud.io/dlp/api/v1/inventory/objects/aggregate

Here’s the cURL command for your reference:

curl --location 'https://api.ind.prismacloud.io/dlp/api/v1/inventory/objects/aggregate' \
--header 'Content-Type: application/json' \
--header 'x-redlock-auth: <token>' \
--data '{
  "tableLevel": 1
}'

  • 457 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!