search cancel

Get Agent binary with Automic Download Center API

book

Article ID: 227695

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

We have a server that needs an agent installation. We want to download the binary directly from downloads.automic.com with help of the Automic Download Center API.

How can we access the online repository directly from a server?

Environment

Release : 12.3

Resolution

The API of automic.downloads.com is documented here:

https://downloads.automic.com/downloads/download_api_documentation

 

How to download a component with help of the DLC API to a server:

Step 1: find the release_delivery_id:

  • In a browser go to https://downloads.automic.com/downloads/advanced_mode
  • With help of the dropdowns select component you need
  • Right-click the download link and select 'Copy link address
  • Select the number at the end of the line, the is the number after release_delivery_id=
  • Use the curl command below where <user>= your email address to login to the Broadcom portal and <pwd>=your password

 

Step 2: Download the package with cURL:

 

On UNIX:

In the Unix command line on the target server use the following commands to download the component:

This is example requests to directly download the file for download_file_id=1581423064782 (Proxy_Proxy_4_0_1+build.1581607020686.zip)
AUTH_USER="Your Broadcom support ID" # e.g. [email protected]
AUTH_PASSWORD="Your Broadcom support password"
AUTH_HEADER="Authorization: Basic $(echo -n $AUTH_USER:$AUTH_PASSWORD | base64)"
DOWNLOAD_URL="https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1581423064782"

curl -H "$AUTH_HEADER" -X GET "$DOWNLOAD_URL" -O -J 

Unpack the downloaded zip-file with 'unzip'

 

On Windows:

In a Windows shell:

  • Generate the base64 hash of email and password:
powershell "[convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes(\"AUTH_USER:AUTH_PASSWORD\"))"
  • Download the binary:
curl -H "Authorization: Basic <base64 hash>" -X "GET" "https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1622624739070" -O -J
  • Unzip the download file and install the component