Skip to main content

1E 9.x (on-premises)

ContentDistribution.Stage

Module

ContentDistribution

Method

Stage

Library

Core

Action

Downloads content from a web server.

Parameters

LszUrl (string): The URL of a Nomad-style LSZ file that acts as a manifest for the content.

DirectoryUrl (string): The URL of the top-level directory of the content. The directory can contain files and an arbitrary level of subdirectories. Only files listed in the LSZ manifest will be downloaded, but the LSZ file should have been generated to use the entire content.

ContentLocation (string): Where to download the content to on the Tachyon agent host.

Return values

Downloaded (boolean): Whether download was successful or not.

NomadStatus (string): One of

    • "Nomad not supported" (for non-Windows)

    • "Unknown" (Windows, but did not get a chance to use Nomad)

    • "Nomad successful" (for download)

    • "Nomad failed" (Nomad not installed or suitable, or download with Nomad attempted but failed, but subsequent HTTP download may have succeeded) .

Example

 ContentDistribution.Stage(LszUrl:"http://fileserver.domain.local/Content/Tachyon_1d82db90-39ba-47c3-98b1-4483d20ac8f7_1.LsZ",
                           DirectoryUrl:"http://fileserver.domain.local/Content/Tachyon_1d82db90-39ba-47c3-98b1-4483d20ac8f7",
                           ContentLocation:"c:\hiddenshare\prestagedContent\patch12");

Platforms

  • Windows (also supports Nomad)

  • Linux

  • MacOS

Notes

If NomadContentDownloadEnabled is set to true in the Agent's configuration file and Nomad is available and running then Nomad will be used for download. If Nomad is not available or fails then the Agent falls back to its internal HTTP provider.