03 Oct 2024 12:36 PM
Hi all,
I am currently managing access controls within our Dynatrace setup and have a question regarding the Dynatrace Environment API.
I would like to grant access to a specific group of users through a policy. Is there a way to define a policy statement to specify access to the Dynatrace Environment API?
Thank you for your assistance!
03 Oct 2024 04:53 PM - edited 03 Oct 2024 05:47 PM
Hi @GerardoAud
You have two options:
Here is the policy statement as an example you can tailor it as per your requirements:
ALLOW settings:objects:write, settings:objects:read, settings:scheamas:write, WHERE settings:schemaId = "Environment API v2";
2. Through the rest Api, create access token with "ServiceProviderAPI" scope > under API v2
Then
If you need to get the current schemas > Environment API V2.
@GerardoAud I'm sure you will do it better than described, keep us posted Pro.
Regards,
Peter.