EdgeWorker version
New-EdgeWorkerVersion
Synopsis
Create a new version.
Syntax
New-EdgeWorkerVersion -EdgeWorkerName <String> -CodeDirectory <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdgeWorkerVersion -EdgeWorkerName <String> -CodeBundle <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdgeWorkerVersion -EdgeWorkerID <Int32> -CodeBundle <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdgeWorkerVersion -EdgeWorkerID <Int32> -CodeDirectory <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Creates a new version of an EdgeWorker based on either the .tgz -CodeBundle
or a point to a directory with the -CodeDirectory
parameter. If you opt for the directory option, all files in the directory (except the existing .tgz files) will be included in the bundle. You can specify an EdgeWorker by either its name or ID.
Parameters
‑AccountSwitchKey |
An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. |
‑CodeBundle Conditionally required |
The location of a local TGZ file containing your Edge Worker code. |
‑CodeDirectory Conditionally required |
A local directory containing your Edge Worker code. Note: Requires that your operating system contains the |
‑EdgeRCFile |
Your EdgeGrid resource file to authenticate your command. Defaults to |
‑EdgeWorkerID Conditionally required |
Your EdgeWorker's ID. |
‑EdgeWorkerName Conditionally required |
Your Edge Worker's name. |
‑Section |
The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
Related Links
Updated 10 days ago