API to see all the IAM policies and their rules

is there an API to see all the IAM policies and their rules :

Background:
there are multiple policies in our tenant and we want to document the same to make sure the same is available for future refernce, does Dynatrace provides any API that lists and shows the details ( the get policies, just show the name not the rule behind the policy), or do we maintain any audit of the changes done to the policies?

Hey @dvb ,
You should be able to go to:

PedroSantos_0-1727448103914.png

As indicated here.

If you’d rather use an API, I think v1 has a way to do this but I haven’t tested it myself. Refer to this link for helpful info.

Good luck!

Hello @dvb

  1. You should have cluster admin privileges to navigate Cluster API v2 and execute the below command.

Peter_Youssef_0-1727537970635.png

After successful execution you should get

  1. curl -X ‘GET’ \
    ‘https://abcdefg/api/cluster/v2/iam/configuration/policystatements’ \
    -H ‘accept: application/json’
  2. The request URL should be like this https://abcdefg/api/cluster/v2/iam/configuration/policystatements.

Tip:

  • As per the current version “1.300.61.20240926-012142” in Dynatrace Managed: doesn’t require Access token.

Regards,