IPGroupCIDRArgs

data class IPGroupCIDRArgs(val cidr: Output<String>? = null, val ipGroupId: Output<String>? = null) : ConvertibleToJava<IPGroupCIDRArgs>

Manages IP Group CIDR records.

Warning Do not use this resource at the same time as the cidrs property of the azure.network.IPGroup resource for the same IP Group. Doing so will cause a conflict and CIDRS will be removed.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.IPGroup;
import com.pulumi.azure.network.IPGroupArgs;
import com.pulumi.azure.network.IPGroupCIDR;
import com.pulumi.azure.network.IPGroupCIDRArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleIPGroup = new IPGroup("exampleIPGroup", IPGroupArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleIPGroupCIDR = new IPGroupCIDR("exampleIPGroupCIDR", IPGroupCIDRArgs.builder()
.ipGroupId(exampleIPGroup.id())
.cidr("10.10.10.0/24")
.build());
}
}

Import

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.

$ pulumi import azure:network/iPGroupCIDR:IPGroupCIDR example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/ipGroups/test-ipgroup/cidrs/10.1.0.0_24

Constructors

Link copied to clipboard
fun IPGroupCIDRArgs(cidr: Output<String>? = null, ipGroupId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): IPGroupCIDRArgs

Properties

Link copied to clipboard
val cidr: Output<String>? = null
Link copied to clipboard
val ipGroupId: Output<String>? = null

The ID of the destination IP Group. Changing this forces a new IP Group CIDR to be created.