Code bundle

Get-EdgeWorkerCodeBundle

Synopsis

Download an EdgeWorkers code bundle.

Syntax

name-file (Default)

Get-EdgeWorkerCodeBundle -EdgeWorkerName <String> -Version <String> [-OutputFile <String>]
 [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

name-directory

Get-EdgeWorkerCodeBundle -EdgeWorkerName <String> -Version <String> [-OutputDirectory <String>]
 [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

id-directory

Get-EdgeWorkerCodeBundle -EdgeWorkerID <Int32> -Version <String> [-OutputDirectory <String>]
 [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

id-file

Get-EdgeWorkerCodeBundle -EdgeWorkerID <Int32> -Version <String> [-OutputFile <String>] [-EdgeRCFile <String>]
 [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Downloads the bundle containing the code the EdgeWorker executes. If you specify the -OutputFile, which is the default, the code bundle will be written to a .tgz file. Alternatively, you can specify the -OutputDirectory, upon which the .tgz bundle will be extracted to the given directory.

You need to have the tar command available on your system to run this operation.

Parameters

-AccountSwitchKey

Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Run the Get-AccountSwitchKey command to list the account switch keys available to you.

Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EdgeRCFile

EdgeRC file to authenticate your command. Defaults to ~/.edgerc.

Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EdgeWorkerID

Unique identifier for an EdgeWorker.

Type: Int32
Parameter Sets: id-directory, id-file
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EdgeWorkerName

Name of the Edge Worker.

Type: String
Parameter Sets: name-file, name-directory
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OutputDirectory

Directory to extract bundle contents into.

Type: String
Parameter Sets: name-directory, id-directory
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OutputFile

TGZ filename to save bundle contents to.

Type: String
Parameter Sets: name-file, id-file
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Section

EdgeRC section to retrieve authentication credentials from. Defaults to default.

Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Version

Unique identifier for an EdgeWorker version. Can be an integer or the word latest.

Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object

Related links