Policy
New-CloudletPolicy
Synopsis
Create a policy.
Syntax
__AllParametersets (Default)
New-CloudletPolicy -Name <String> [-Description <String>] -GroupID <Int32> -CloudletType <String>
[-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
legacy
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
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: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ClonePolicyID
ID of the policy to clone.
Type: Int32
Parameter Sets: legacy
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ClonePolicyVersion
Version of the policy to clone.
Type: Int32
Parameter Sets: legacy
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CloudletType
The name of the cloudlet type, for example, Phased Release
. This is translated to the correct 2- or 3-letter code automatically.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: API Prioritization, Application Load Balancer, Audience Segmentation, Edge Redirector, Forward Rewrite, Phased Release, Request Control, Visitor Prioritization
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Description
Description to include.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
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: Named
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: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Legacy
Indicate that your policy is legacy (v2). Without this, v3 of the Cloudlets API will be used.
Type: SwitchParameter
Parameter Sets: legacy
Aliases: None
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Name
Name of the policy.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: Named
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: Named
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 about 1 month ago