Generate SSO client credentials
Dynatrace Managed Documentation
This page will soon be available only on the dedicated Dynatrace Managed Documentation site. Update your bookmarks.
This API call generates an OAuth API client
.
You can create up to 100
OAuth API clients per account. We recommend that you reuse once created OAuth API client.
Endpoint
/public/v1.0/oauth/registration/withLicenseKey
Parameter
Parameter | Type | Description | In | Required |
---|---|---|---|---|
clientType | string | - | query | optional |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | ClientCredentialsDto | Cluster credentials generated successfully |
401 | - | Invalid cluster credentials |
Response body objects
The ClientCredentialsDto
object
Element | Type | Description |
---|---|---|
clientId | string | - |
clientSecret | string | - |
scopes | string[] | - |
Response body JSON model
1{2 "clientId": "string",3 "clientSecret": "string",4 "scopes": [5 "string"6 ]7}
Example
In this example, you generate an OAuth API client
execute following REST call.
where :
<cluster-identifier>
is a cluster identifier (In the Dynatrace menu, go to Licensing). For example,0a00a0a0-92ec-11e7-b1e6-12fbd1fb3732
<license-key>
is a license key provided to you in welcome email and visible in Licensing. For example,0a0aAAAA0jeUv6N
.
Curl
1curl -X POST "https://mcsvc.dynatrace.com/rest/public/v1.0/oauth/registration/withLicenseKey"2-H "accept: application/json"3-u "<cluster-identifier>:<license-key>"
Request URL
1https://mcsvc.dynatrace.com/rest/public/v1.0/oauth/registration/withLicenseKey
Response body
1{2 "clientId": "dt0s04.AAAAAAAA",3 "clientSecret": "dt0s04.AAAAAAAA.AAAA00AAAAAAAAAA0OBA6AVNCQVQAGSO25VM5KDFBIKEZ7HVG6THKTHGWAY5ACCL",4 "scopes": [5 "sso20-managed-cluster-offline-bundle",6 "sso20-identity-linking"7 ]8}
Response code
200