cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OneAgent Download through the API

If this sufficient to download oneagent

wget -O Dynatrace-OneAgent-Linux-[version].sh https://[serverURL]/installer/agent/unix/latest/?api-token=abcdefjhij1234567890

I'm just passing api-token as query in url, but document says we need PaaS token for downloading the oneagent, if so how to add PaaS token can you give me an example which helps me to download the oneagent from my Managed server.

1 REPLY 1

sia_h
Dynatrace Pro
Dynatrace Pro

Hi Ravi,

Instead of an API-token please use a PaaS-token in your request:

curl -X GET "https://abc.dynatrace.com/api/v1/deployment/installer/gateway/windows/latest" -H  "accept: */*" -H  "Authorization: Api-Token PAAS-TOKEN-HERE"

It may indeed look confusing but if you look in the Swagger API UI you'll see that they're asking for a PaaS-token instead of the standard API-token that we usually use.

Sia

Featured Posts