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
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Account switch keys can be found using Get-AccountSwitchKey
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AdditionalVersions
Any additional versions that you want to clone into the new shared policy.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 3
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: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-GroupID
Unique identifier for each group.
Type: Int32
Parameter Sets: (All)
Aliases: None
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NewName
The name of the new shared policy.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PolicyID
The ID of the cloudlet policy.
Type: Int32
Parameter Sets: (All)
Aliases: None
Required: True
Position: 0
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: 5
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
Updated 8 days ago