Login — REST API

This resource takes a user's authentication credentials and returns an access token that can be used in other API resources to authenticate the user.

GET <server>/publicapi/rest/v1.0/login

In the resource path above, the <server> address is https://datafeed-api.dynatrace.com.

URL parameters

Name Type Required Description
User String Yes The Dynatrace Portal username (The same parameter as is passed to log in to the Dynatrace Portal.)
password String Yes The Dynatrace Portal password (The same parameter as is passed to log into the Dynatrace Portal. Must be case-sensitive.)

HTTP request header parameters

Header name Allowed values Required Description
Accept application/json No Determines the content type of the response data. The default and only supported value is for JSON.

Sample request

GET https://datafeed-api.dynatrace.com/publicapi/rest/v1.0/login?user=sampleuser&password=samplepw HTTP/1.1
Accept-Encoding: gzip,deflate
Accept: application/json
User-Agent: Jakarta Commons-HttpClient/3.1
Host: datafeed-api.dynatrace.com

Sample response

HTTP/1.1 200 OK
Date: Fri, 05 Sep 2014 15:38:24 GMT
Content-Type: application/json
Connection: close
Transfer-Encoding: chunked

9031e0f0-2bad-42cd-8885-7e9ab0041b1a