This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

GetAvailablePackages

GetAvailablePackages(platformFilter, typeFilter): Array

Retrieves all available deployment packages, optionally filtered by platform and/or package type.

Table 1. Parameters

platformFilter

String

Optional platform name filter (e.g., "Windows", "Linux"). Pass NULL to skip filtering

typeFilter

String

Optional package type filter. Pass NULL to skip filtering

Return

Array of DeploymentPackage objects containing package metadata, or null if the script is executed on behalf of a user without the "Manage packages" system access right.

// Get all packages
packages = GetAvailablePackages(null, null);

// Get only Linux packages
linuxPackages = GetAvailablePackages("Linux", null);

for (pkg : packages) {
    println("Package: " .. pkg->name .. " v" .. pkg->version .. " (" .. pkg->platform .. ")");
}