CIDR block

Remove-IAMCIDRBlock

Synopsis

Delete a CIDR block.

Syntax

Remove-IAMCIDRBlock [-CIDRBlockID] <String> [[-EdgeRCFile] <String>] [[-Section] <String>]
 [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Deletes a CIDR block from the IP allowlist. After you delete a CIDR block, any requests from the IP addresses you deleted fail the next time someone tries to log in from that address.

Users accessing Control Center from an IP address you delete aren't automatically logged out of Control Center at the time you delete the IP address.

When the IP allowlist is enabled for your account, you can't delete the last CIDR block in the allowlist or the CIDR block allowing access to the current user.

There are no restrictions on CIDR block deletion when the IP allowlist is disabled on your account.

Parameters

-AccountSwitchKey

Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Run Get-AccountSwitchKey to list the account switch keys available to you.

Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CIDRBlockID

Unique identifier for each CIDR block. To get this value, run Get-IAMCIDRBlock.

Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 0
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: 1
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: 2
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