Set-R1Aci
Set-R1Aci
SYNOPSIS
Updates an access control instruction.
SYNTAX
Set-R1Aci [-aciId] <Int64> [-baseDn] <String> [[-name] <String>] [[-aciString] <String>]
[[-parsable] <Boolean>] [[-targetDn] <String>] [[-targetScope] <String>] [[-targetFilter] <String>]
[[-includeTargetAttributes] <Boolean>] [[-targetAttributes] <String[]>] [[-permsType] <String>]
[[-selectedOperations] <String[]>] [[-loaOperator] <String>] [[-loaLevel] <Int32>] [[-daysOfWeek] <String[]>]
[[-timeRanges] <String[]>] [[-applyUserDns] <String[]>] [[-applyGroupDns] <String[]>] [[-applyIps] <String[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Updates an existing access control instruction.
The ACI is retrieved before it is updated, and sent back with the supplied values applied over it, so a property left unspecified keeps its current value. The command therefore issues a GET followed by a PUT.
Because the command retrieves the ACI before updating it, the account needs permission to read it as well as to change it.
EXAMPLES
Example 1
Set-R1Aci -aciId 12345 -baseDn 'cn=config' -permsType DENY
Changes the ACI to deny its selected operations, leaving everything else as it is.
PARAMETERS
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-aciId
The identifier of the ACI, which the API derives as a hash of the ACI itself.
Type: Int64
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-aciString
The ACI expressed as a raw ACI string, as an alternative to describing it with the structured parameters.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-applyGroupDns
The group DNs the ACI applies to.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 17
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-applyIps
The IP addresses the ACI applies to.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 18
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-applyUserDns
The user DNs the ACI applies to. Accepts the keywords anyone, all, self and parent.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 16
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-baseDn
The base DN the ACI applies at. Get-R1AciLocation returns the DNs which hold ACIs.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-daysOfWeek
The days the ACI applies on.
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
Required: False
Position: 14
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-includeTargetAttributes
Whether the target attribute expression is inclusive.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-loaLevel
The level of assurance to compare against, 0 to 4.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 13
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-loaOperator
The comparison operator used against the level of assurance, e.g. <=
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 12
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-name
A name for the ACI.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-parsable
Whether the ACI can be represented as a structured object rather than only as a raw string.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-permsType
Whether the ACI allows or denies the selected operations. ALLOW or DENY.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: ALLOW, DENY
Required: False
Position: 10
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-selectedOperations
The operations allowed or denied. READ, WRITE, SEARCH, SELF_WRITE, ADD, PROXY, DELETE, MOVE_CURRENT, COMPARE or MOVE_FUTURE.
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: READ, WRITE, SEARCH, SELF_WRITE, ADD, PROXY, DELETE, MOVE_CURRENT, COMPARE, MOVE_FUTURE
Required: False
Position: 11
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-targetAttributes
The attribute names the ACI targets. Omit for all attributes.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 9
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-targetDn
The DN the ACI targets.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-targetFilter
An LDAP filter limiting the entries the ACI applies to.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-targetScope
The scope the ACI applies over. BASE, ONE or SUBTREE.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: BASE, ONE, SUBTREE
Required: False
Position: 6
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-timeRanges
The time ranges the ACI applies during, e.g. 1030-1230
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 15
Default value: None
Accept pipeline input: True (ByPropertyName)
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
System.Int64
System.String
System.Boolean
System.String[]
System.Int32
OUTPUTS
System.Void
NOTES
The ACI string is not sent: the server builds it from the target, the permissions and the restrictions, and sending the string it built for the ACI as it stands is refused.