Generate SSO client credentials

This API call generates an OAuth API client:

Endpoint

/public/v1.0/oauth/registration/withLicenseKey

Parameter

Parameter Type Description In Required
clientType string query optional

Response

Response codes

Code Description
200

Cluster credentials generated successfully

401

Invalid cluster credentials

Response body

A successful request doesn't return any content.

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

curl -X POST "https://mcsvc.dynatrace.com/rest/public/v1.0/oauth/registration/withLicenseKey" 
-H "accept: application/json" 
-u "<cluster-identifier>:<license-key>"

Request URL

https://mcsvc.dynatrace.com/rest/public/v1.0/oauth/registration/withLicenseKey

Response body

{
  "clientId": "dt0s04.AAAAAAAA",
  "clientSecret": "dt0s04.AAAAAAAA.AAAA00AAAAAAAAAA0OBA6AVNCQVQAGSO25VM5KDFBIKEZ7HVG6THKTHGWAY5ACCL",
  "scopes": [
    "sso20-managed-cluster-offline-bundle",
    "sso20-identity-linking"
  ]
}

Response code

200