Policy
Set-CloudletPolicy
Synopsis
Update a policy.
Syntax
attributes-shared (Default)
Set-CloudletPolicy -PolicyID <Int32> [-Legacy] -GroupID <Int32> [-Description <String>] [-EdgeRCFile <String>]
[-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
attributes-legacy
Set-CloudletPolicy -PolicyID <Int32> [-Legacy] [-Name <String>] [-GroupID <Int32>] [-Description <String>]
[-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
body
Set-CloudletPolicy -PolicyID <Int32> [-Legacy] -Body <Object> [-EdgeRCFile <String>] [-Section <String>]
[-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Updates an existing policy. Use the -Legacy
switch to specify v2 policies; otherwise, this command will apply only to v3 policies. For both types of policies, you can update the policy's description and move it to a new group by its ID. For v2 policies, you can also update the policy's name.
Parameters
-AccountSwitchKey
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Run the Get-AccountSwitchKey
command to list the account switch keys available to you.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Body
Request body, either as a PSCustomObject
or string. This parameter supports pipelining.
Type Object
Parameter Sets body
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline input True (ByValue)
Accept wildcard charactersFalse
-Description
Description to include.
Type String
Parameter Sets attributes-shared, attributes-legacy
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-EdgeRCFile
EdgeRC file to authenticate your command. Defaults to ~/.edgerc
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-GroupID
Unique identifier for each group.
Type Int32
Parameter Sets attributes-shared
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
Type Int32
Parameter Sets attributes-legacy
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Legacy
Indicate that your policy is legacy (v2). Without this, v3 of the Cloudlets API will be used.
Type SwitchParameter
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default valueFalse
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Name
Name of the policy.
Type String
Parameter Sets attributes-legacy
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-PolicyID
The ID of the cloudlet policy.
Type Int32
Parameter Sets (All)
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
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
System.Object
Outputs
System.Object
Related links
Updated 4 months ago