Skip to main content

PARTNERS

getInstallationLinks

This method returns the installation links and full kits for a package.

Parameters

Parameter

Type

Optional

Description

companyId

String

Yes

The ID of the managed company. If no value is passed, the installation links available for all managed companies will be returned.

packageName

String

Yes

The name of the package. If no value is passed, all packages will be returned.

Return value

This method returns an Array containing the list of installation links for the requested package, or for all available packages if none specified explicitly. Each entry in the list has the following fields:

  • packageName - the name of the package for which you need the installation links and kits

  • companyName - the name of the company to which the package belongs

  • companyId - the ID of the above-mentioned company

  • installLinkWindows - the installation link for Windows operating systems

  • installLinkMac - the installation link for macOS operating systems

  • installLinkLinux - the installation link for Linux operating systems

  • fullKitWindowsX32 - the full kit for Windows x32 operating systems

  • fullKitWindowsX64 - the full kit for Windows x64 operating systems

  • fullKitLinuxX32 - the full kit for Linux x32 operating systems

  • fullKitLinuxX64 - the full kit for Linux x64 operating systems

  • status - an Object containing the supported operating systems and showing kits availability within your GravityZone environment. Possible status values: 0 - not downloaded, 1 - downloading, 2 - ready

    • windows

    • linux

    • mac

Example

Request:

  {
     "params": {
       "companyId": "54a1a1d3b1a43d2b347b23c1",
       "packageName": "my package"
   },
     "jsonrpc": "2.0",
     "method": "getInstallationLinks",
     "id": "426db9bb-e92a-4824-a21b-bba6b62d0a18"
  }  

Response:

  {
     "id": "426db9bb-e92a-4824-a21b-bba6b62d0a18",
     "jsonrpc": "2.0",
     "result": [{
         "packageName": "Pack1",
         "companyName": "TestC2",,
         "companyId": "54a1a1d3b1a43d2b347b23c1",
         "installLinkWindows":"https://gravityzone.bitdefender.com/Packages/BSTWIN/0/setupdownloader_[qwer=].exe",
         "installLinkMac":"https://gravityzone.bitdefender.com/Packages/MAC/0/antivirus_for_mac_[qwer].pkg",
         "installLinkLinux":"https://gravityzone.bitdefender.com/Packages/NIX/0/ETZ_h5/setup_downloader.tar",
         "fullKitWindowsX32":"https://gravityzone.bitdefender.com/api/v1.0/http/downloadPack\ageFullKit?packageId=5f1ecde1be4be6142c3e9b32&downloadType=19",
         "fullKitWindowsX64":"https://gravityzone.bitdefender.com/api/v1.0/http/downloadPack\ageFullKit?packageId=5f1ecde1be4be6142c3e9b32&downloadType=20",
         "fullKitLinuxX32":"https://gravityzone.bitdefender.com/api/v1.0/http/downloadPack\ageFullKit?packageId=5f1ecde1be4be6142c3e9b32&downloadType=21",         
         "fullKitLinuxX64":"https://gravityzone.bitdefender.com/api/v1.0/http/downloadPack\ageFullKit?packageId=5f1ecde1be4be6142c3e9b32&downloadType=22"
      }]
  }  

Request:

  Download the full kit package using curl:
   curl -fOJ -H "YOUR_API_KEY:"https://gravityzone.bitdefender.com/api/v1.0/http/downloadPackageFullKit?packageId=5645cba6f12a9a8c5e8b4748&downloadType=20   

Equivalent with:

   curl -fOJ -H "Authorization: Basic API_KEY_ENCODED_BASE64"https://gravityzone.bitdefender.com/api/v1.0/http/downloadPackageFullKit?packageId=5f1ecde1be4be6142c3e9b32&downloadType=20   

Where API_KEY_ENCODED_BASE64 is your API key encoded  using base64.