import * as pulumi from "@pulumi/pulumi"; /** * Manages a Network Manager IPAM Pool Static CIDR. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const current = azure.core.getSubscription({}); * const exampleNetworkManager = new azure.network.NetworkManager("example", { * name: "example-nm", * resourceGroupName: example.name, * location: example.location, * scope: { * subscriptionIds: [current.then(current => current.id)], * }, * }); * const exampleNetworkManagerIpamPool = new azure.network.NetworkManagerIpamPool("example", { * name: "example-ipampool", * networkManagerId: exampleNetworkManager.id, * location: example.location, * displayName: "ipampool1", * addressPrefixes: ["10.0.0.0/24"], * }); * const exampleNetworkManagerIpamPoolStaticCidr = new azure.network.NetworkManagerIpamPoolStaticCidr("example", { * name: "example-ipsc", * ipamPoolId: exampleNetworkManagerIpamPool.id, * addressPrefixes: [ * "10.0.0.0/26", * "10.0.0.128/27", * ], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Network Manager IPAM Pool Static CIDRs can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/networkManagerIpamPoolStaticCidr:NetworkManagerIpamPoolStaticCidr example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/manager1/ipamPools/pool1/staticCidrs/cidr1 * ``` */ export declare class NetworkManagerIpamPoolStaticCidr extends pulumi.CustomResource { /** * Get an existing NetworkManagerIpamPoolStaticCidr resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NetworkManagerIpamPoolStaticCidrState, opts?: pulumi.CustomResourceOptions): NetworkManagerIpamPoolStaticCidr; /** * Returns true if the given object is an instance of NetworkManagerIpamPoolStaticCidr. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NetworkManagerIpamPoolStaticCidr; /** * Specifies a list of IPv4 or IPv6 IP address prefixes which will be allocated to the Static CIDR. * * > **Note:** Exactly one of `addressPrefixes` or `numberOfIpAddressesToAllocate` must be specified. */ readonly addressPrefixes: pulumi.Output; /** * The ID of the Network Manager IP Address Management (IPAM) Pool. Changing this forces a new Network Manager IPAM Pool Static CIDR to be created. */ readonly ipamPoolId: pulumi.Output; /** * The name which should be used for this Network Manager IPAM Pool Static CIDR. Changing this forces a new Network Manager IPAM Pool Static CIDR to be created. */ readonly name: pulumi.Output; /** * The number of IP addresses to allocate to the Static CIDR. The value must be a string representing a positive integer which is a positive power of 2, e.g., `"16"`. * * > **Note:** Exactly one of `addressPrefixes` or `numberOfIpAddressesToAllocate` must be specified. */ readonly numberOfIpAddressesToAllocate: pulumi.Output; /** * Create a NetworkManagerIpamPoolStaticCidr resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NetworkManagerIpamPoolStaticCidrArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkManagerIpamPoolStaticCidr resources. */ export interface NetworkManagerIpamPoolStaticCidrState { /** * Specifies a list of IPv4 or IPv6 IP address prefixes which will be allocated to the Static CIDR. * * > **Note:** Exactly one of `addressPrefixes` or `numberOfIpAddressesToAllocate` must be specified. */ addressPrefixes?: pulumi.Input[]>; /** * The ID of the Network Manager IP Address Management (IPAM) Pool. Changing this forces a new Network Manager IPAM Pool Static CIDR to be created. */ ipamPoolId?: pulumi.Input; /** * The name which should be used for this Network Manager IPAM Pool Static CIDR. Changing this forces a new Network Manager IPAM Pool Static CIDR to be created. */ name?: pulumi.Input; /** * The number of IP addresses to allocate to the Static CIDR. The value must be a string representing a positive integer which is a positive power of 2, e.g., `"16"`. * * > **Note:** Exactly one of `addressPrefixes` or `numberOfIpAddressesToAllocate` must be specified. */ numberOfIpAddressesToAllocate?: pulumi.Input; } /** * The set of arguments for constructing a NetworkManagerIpamPoolStaticCidr resource. */ export interface NetworkManagerIpamPoolStaticCidrArgs { /** * Specifies a list of IPv4 or IPv6 IP address prefixes which will be allocated to the Static CIDR. * * > **Note:** Exactly one of `addressPrefixes` or `numberOfIpAddressesToAllocate` must be specified. */ addressPrefixes?: pulumi.Input[]>; /** * The ID of the Network Manager IP Address Management (IPAM) Pool. Changing this forces a new Network Manager IPAM Pool Static CIDR to be created. */ ipamPoolId: pulumi.Input; /** * The name which should be used for this Network Manager IPAM Pool Static CIDR. Changing this forces a new Network Manager IPAM Pool Static CIDR to be created. */ name?: pulumi.Input; /** * The number of IP addresses to allocate to the Static CIDR. The value must be a string representing a positive integer which is a positive power of 2, e.g., `"16"`. * * > **Note:** Exactly one of `addressPrefixes` or `numberOfIpAddressesToAllocate` must be specified. */ numberOfIpAddressesToAllocate?: pulumi.Input; }