Skip to main content

getInstallationLinks

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

Warning

Make sure you have the right access permissions and the installation package is published in the Configuration > Update > Components page of Control Center. Otherwise, you may receive error 400 Bad request or 404 Not found.

Parameters

Parameter

Type

Optional

Description

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

  • 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

  • fullKitWindowsArm64 - the full kit for Windows x64 operating systems for ARM architecture

  • fullKitLinuxX32 - the full kit for Linux x32 operating systems

  • fullKitLinuxX64 - the full kit for Linux x64 operating systems

  • fullKitLinuxArm64 - the full kit for Linux x64 operating systems for ARM architecture

  • fullKitMac - the full kit for macOS operating systems

  • fullKitMacArm64 - the full kit for macOS operating systems for ARM architecture

  • 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

    • windowsArm64

    • linux

    • linuxArm64

    • mac

    • macArm

Example

Request:

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

Note

API_KEY_ENCODED_BASE64 is your API key encoded using base64.

Response:

 {
   "packageName":"PackagesAPI1695306052.633011oWYMHbCBM1",
   "installLinkWindows":"https://10.18.148.224/Packages/BSTWIN/0/setupdownloader_[aHR0cHM6Ly8xMC4xOC4xNDguMjI0Ojg0NDMvUGFja2FnZXMvQlNUV0lOLzAvaUpuSF9fL2luc3RhbGxlci54bWw-bGFuZz1lbi1VUw==].exe",
   "installLinkMac":"https://10.18.148.224/Packages/MAC/0/iJnH__/Bitdefender_for_MAC.dmg",
   "installLinkMacArm":"https://10.18.148.224/Packages/MAC/0/iJnH__/Bitdefender_for_MAC_ARM.dmg",
   "installLinkMacDownloader":"https://10.18.148.224/Packages/MAC/0/iJnH__/setup_downloader.dmg",
   "installLinkLinux":"https://10.18.148.224/Packages/NIX/0/iJnH__/setup_downloader.tar",
   "fullKitWindowsX32":"https://10.18.148.224/api/v1.0/http/downloadPackageFullKit?packageId=650c5145a024a1001303b99d&downloadType=19",
   "fullKitWindowsX64":"https://10.18.148.224/api/v1.0/http/downloadPackageFullKit?packageId=650c5145a024a1001303b99d&downloadType=20",
   "fullKitWindowsArm64":"https://10.18.148.224/api/v1.0/http/downloadPackageFullKit?packageId=650c5145a024a1001303b99d&downloadType=35",
   "fullKitLinuxX32":"https://10.18.148.224/api/v1.0/http/downloadPackageFullKit?packageId=650c5145a024a1001303b99d&downloadType=21",
   "fullKitLinuxX64":"https://10.18.148.224/api/v1.0/http/downloadPackageFullKit?packageId=650c5145a024a1001303b99d&downloadType=22",
   "fullKitLinuxArm64":"https://10.18.148.224/api/v1.0/http/downloadPackageFullKit?packageId=650c5145a024a1001303b99d&downloadType=36",
   "status":{
      "windows":2,
      "windowsArm64":0,
      "linux":0,
      "mac":0,
      "macArm":0,
      "macDownloader":0
   }
}

Note

<gz_ip> is the IP address of GravityZone Control Centerthe management console.

You can use one of the provided URL addresses to download the installation package:

  • If you are using a GZVA Self-Signed certificate.

    curl -fOJ -H "YOUR_API_KEY:" https://gravityzone.bitdefender.com/api/v1.0/http/downloadPackageFullKit?packageId=5645cba6f12a9a8c5e8b4748&downloadType=20  
    
  • If you are not using a GZVA Self-Signed certificate.

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

    Note

    To get your ENCODED_API_KEY, use the following entry:

    echo "YOUR_API_KEY:" | base64