Skip to main content

dt-oauth-token

This role allows you to create an oauth token on demand. After including the role, a newly created token can be used as variable dt_oauth_access_token.

Required extra vars

Variable nameDescriptionExample
dt_oauth_sso_endpointDynatrace OAuth endpoint. Attention: Value differs depending on sprint/live environment!https://sso-sprint.dynatracelabs.com/sso/oauth2/token
dt_oauth_client_idDynatrace OAuth client id.dt0s02...
dt_oauth_client_secretDynatrace OAuth client secretdt0s02...
dt_oauth_account_urnDynatrace OAuth account URNurn:dtaccount:...
dt_oauth_scopeList of scopes that will token will be granted, separated by whitespaces.automation:workflows:read automation:workflows:write