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

Downloading Custom 2.0 Extensions' extension.yaml Files from Tenant

ASE
Helper

Is there a way to download (or view) our custom 2.0 Extensions' extension.yaml files from our SaaS tenant?

We use Visual Studio Code (with the Dynatrace Extension) to build and deploy our custom extensions to Dynatrace.

However, if the local extension.yaml file were to become unavailable, we need a way to view it and/or download it from our tenant.

I'm not seeing a way to do this via either of the Extensions apps.

Thank you.

2 REPLIES 2

Akhil-Jayendran
Participant

Hello @ASE,

I’m not sure about the VS Code extension add-on, but there is definitely an option to download the ZIP file using the API.

Please refer to the following API documentation:

curl -X 'GET' \
'https://{environmentid}.live.dynatrace.com/api/v2/extensions/com.dynatrace.extension.<name>/<version>' \
-H 'accept: application/octet-stream' \
-H 'Authorization: Api-Token <token>' --output extension.zip

 

 

Thanks

Thank you, @Akhil-Jayendran.

This was very helpful.

I was not able to download it via the Extensions app(s), but I was able to view the custom extension.yaml I needed to view using the API like you suggested.

The url I used was slightly different:

https://{environmentid}.live.dynatrace.com/api/v2/extensions/{extensionName}/{extensionVersion}

Got it from here: 

https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/extensio...

 

Featured Posts