Gets parameters of an access policy.
The request produces an application/json
payload.
GET |
|
To execute this request, you need the Allow IAM policy configuration for environments (iam-policies-management
) permission assigned to your token. To learn how to obtain and use it, see OAuth clients.
The ID of the required policy.
The ID of the policy level. Use one of the following values, depending on the level type:
global
value.The type of the policy level. The following values are available:
global
: A global policy applies to all accounts and environments. It is defined and managed by Dynatrace.account
: An account policy applies to all environments of an account.environment
: An environment policy applies to a specific environment.Each level inherits the policies of the higher level and extends them with its own policies.
LevelPolicyDto
objectThe ID of the policy.
The display name of the policy.
A list of tags.
A short description of the policy.
Statement
objectThe effect of the policy (for example, allow something).
The service to which the policy applies.
A list of granted permissions.
Condition
objectThe name of the condition.
It indicates which part of the services is checked by the condition.
The operator of the condition.
A list of reference values of the condition.
{"uuid": "string","name": "string","tags": ["string"],"description": "string","statementQuery": "string","statements": [{"effect": "string","service": "string","permissions": ["string"],"conditions": [{"name": "string","operator": "string","values": ["string"]}]}]}
In this example, the request lists parameters of the Settings Writer global policy (UUID is d10eb8e0-875a-40c8-821c-6214c23ac0b3).
curl --request GET \--url 'https://api.dynatrace.com/iam/v1/repo/global/global/policies/d10eb8e0-875a-40c8-821c-6214c23ac0b3' \--header 'Authorization: Bearer abcdefjhij1234567890'
https://api.dynatrace.com/iam/v1/repo/global/global/policies/d10eb8e0-875a-40c8-821c-6214c23ac0b3
{"uuid": "d10eb8e0-875a-40c8-821c-6214c23ac0b3","name": "Settings Writer","description": "Settings Writer Policy","tags": [],"statementQuery": "ALLOW settings:objects:read, settings:objects:write, settings:schemas:read;","statements": [{"effect": "ALLOW","permissions": ["settings:objects:read","settings:objects:write","settings:schemas:read"],"conditions": null}]}
200