Policy

Copy-CloudletPolicy

Synopsis

Clone a policy as a shared policy.

Syntax

Copy-CloudletPolicy [-PolicyID] <Int32> [-NewName] <String> [-GroupID] <Int32> [[-AdditionalVersions] <String>] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Clones the staging, production, and last modified versions of a shared or non-shared policy into a new shared policy. You can also specify any additional versions that you want to clone into the new policy as a comma-separated string.

When cloning a non-shared policy to a shared policy, you need to provide the -GroupID parameter.

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.

‑AdditionalVersions

Any additional versions that you want to clone into the new shared policy.

‑EdgeRCFile

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

‑GroupID
Required

Your group's ID.

‑NewName
Required

The name of the new shared policy.

‑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