search cancel

API Gateway: Download patches using curl

book

Article ID: 214206

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Patches can be downloaded from the Layer7 API Gateway - Solutions and Patches page using curl and wget.

Environment

CA API Gateway: 10.X

Resolution

Step 1: GENERATE AN ACCESS TOKEN

curl -k "https://ftp.broadcom.com/CrushFTPAPIForDownloads/webapi/getAccessTokenForPath?path=/pub/API_Management/Gateway/Platform_Patch/v10.x/<NAME_OF_PATCH>.L7P"
{"access_token":"<GENERATED_ACCESS_TOKEN>","expires_in":3600}

Step 2: SAVE THE TOKEN TO COOKIES

wget --max-redirect 3 --save-cookies cookies.txt --keep-session-cookies 'https://ftp.broadcom.com/pub/API_Management/Gateway/Platform_Patch/v10.x/<NAME_OF_PATCH>.L7P?token=<GENERATED_ACCESS_TOKEN>'

Step 3: RETRIEVE/DOWNLOAD THE FILE

wget --load-cookies cookies.txt 'https://ftp.broadcom.com/pub/API_Management/Gateway/Platform_Patch/v10.x/<NAME_OF_PATCH>.L7P'

Additional Information

The <NAME_OF_PATCH> can be found on the Solutions and Patches page.

Attachments