Policy version

New-CloudletPolicyVersion

Synopsis

Create a new policy version.

Syntax

New-CloudletPolicyVersion [-PolicyID] <Int32> [-Legacy] [-Body] <Object> [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Creates a new version of a Cloudlet policy. Use the -Legacy switch to specify v2 policies; otherwise, the command will apply only to v3 policies.

Note: Request bodies are automatically sanitized to enable you to retrieve a version with the Get-CloudletPolicyVersion operation, edit it locally, and pipe the object to this command.

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.

‑Body
Required

A request body, either as a PSCustomObject or a string. This parameter supports pipelining.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑Legacy

If present, this indicates that your policy is legacy (v2). Without this switch, v3 of the Cloudlets API is used.

‑PolicyID
Required

Your cloudlet policy's ID.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

Related Links