Policy
New-CloudletPolicy
Synopsis
Create a policy.
Syntax
New-CloudletPolicy -Name <String> [-Description <String>] -GroupID <Int32> -CloudletType <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-CloudletPolicy -Name <String> [-Description <String>] -GroupID <Int32> -CloudletType <String> [-Legacy] [-ClonePolicyID <Int32>] [-ClonePolicyVersion <Int32>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Creates a new Cloudlet policy either as a v3 policy (shared) or a legacy policy enabled with the -Legacy switch. You need to specify the -CloudletType parameter as the full product name (for example, Phased Release).
When creating a v2 policy, you also have the option of cloning an existing policy with the -ClonePolicyId and -ClonePolicyVersion parameters.
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. | 
| ‑ClonePolicyID | The ID of the policy to clone. | 
| ‑ClonePolicyVersion | A version of the policy to clone. | 
| ‑CloudletTypeRequired | The name of the cloudlet type, for example,  | 
| ‑Description | A description to include. | 
| ‑EdgeRCFile | Your EdgeGrid resource file to authenticate your command. Defaults to  | 
| ‑GroupIDRequired | Your group's ID. | 
| ‑Legacy | If present, this indicates that your policy is legacy (v2). Without this switch, v3 of the Cloudlets API is used. | 
| ‑NameRequired | Your policy's name. | 
| ‑Section | The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to  | 
Related Links
Updated 4 months ago
