Manages IP Group CIDR records.
resource "azurerm_resource_group" "example" {
name = "test-rg"
location = "West Europe"
}
resource "azurerm_ip_group" "example" {
name = "test-ipgroup"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_ip_group_cidr" "example" {
ip_group_id = azurerm_ip_group.example.id
cidr = "10.10.10.0/24"
}
The following arguments are supported:
ip_group_id
- (Required) The ID of the destination IP Group.
Changing this forces a new IP Group CIDR to be created.
cidr
- (Required) The CIDR
that should be added to the IP Group.
Changing this forces a new IP Group CIDR to be created.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the IP Group CIDR.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the IP Group CIDR.read
- (Defaults to 5 minutes) Used when retrieving the IP Group CIDR.delete
- (Defaults to 30 minutes) Used when deleting the IP Group CIDR.IP Group CIDRs can be imported using the resource id
of the IP Group and
the CIDR value (/
characters have to be replaced by _
), e.g.
terraform import azurerm_ip_group_cidr.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/ipGroups/test-ipgroup/cidrs/10.1.0.0_24