azure-native.network.StaticCidr
Explore with Pulumi AI
Instance of StaticCidr resource. Azure REST API version: 2024-01-01-preview.
Other available API versions: 2024-05-01.
Example Usage
StaticCidrs_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var staticCidr = new AzureNative.Network.StaticCidr("staticCidr", new()
    {
        NetworkManagerName = "TestNetworkManager",
        PoolName = "TestPool",
        ResourceGroupName = "rg1",
        StaticCidrName = "TestStaticCidr",
    });
});
package main
import (
	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewStaticCidr(ctx, "staticCidr", &network.StaticCidrArgs{
			NetworkManagerName: pulumi.String("TestNetworkManager"),
			PoolName:           pulumi.String("TestPool"),
			ResourceGroupName:  pulumi.String("rg1"),
			StaticCidrName:     pulumi.String("TestStaticCidr"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.StaticCidr;
import com.pulumi.azurenative.network.StaticCidrArgs;
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 staticCidr = new StaticCidr("staticCidr", StaticCidrArgs.builder()
            .networkManagerName("TestNetworkManager")
            .poolName("TestPool")
            .resourceGroupName("rg1")
            .staticCidrName("TestStaticCidr")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const staticCidr = new azure_native.network.StaticCidr("staticCidr", {
    networkManagerName: "TestNetworkManager",
    poolName: "TestPool",
    resourceGroupName: "rg1",
    staticCidrName: "TestStaticCidr",
});
import pulumi
import pulumi_azure_native as azure_native
static_cidr = azure_native.network.StaticCidr("staticCidr",
    network_manager_name="TestNetworkManager",
    pool_name="TestPool",
    resource_group_name="rg1",
    static_cidr_name="TestStaticCidr")
resources:
  staticCidr:
    type: azure-native:network:StaticCidr
    properties:
      networkManagerName: TestNetworkManager
      poolName: TestPool
      resourceGroupName: rg1
      staticCidrName: TestStaticCidr
Create StaticCidr Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StaticCidr(name: string, args: StaticCidrArgs, opts?: CustomResourceOptions);@overload
def StaticCidr(resource_name: str,
               args: StaticCidrArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def StaticCidr(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               network_manager_name: Optional[str] = None,
               pool_name: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               properties: Optional[StaticCidrPropertiesArgs] = None,
               static_cidr_name: Optional[str] = None)func NewStaticCidr(ctx *Context, name string, args StaticCidrArgs, opts ...ResourceOption) (*StaticCidr, error)public StaticCidr(string name, StaticCidrArgs args, CustomResourceOptions? opts = null)
public StaticCidr(String name, StaticCidrArgs args)
public StaticCidr(String name, StaticCidrArgs args, CustomResourceOptions options)
type: azure-native:network:StaticCidr
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StaticCidrArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StaticCidrArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StaticCidrArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StaticCidrArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StaticCidrArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var staticCidrResource = new AzureNative.Network.StaticCidr("staticCidrResource", new()
{
    NetworkManagerName = "string",
    PoolName = "string",
    ResourceGroupName = "string",
    Properties = new AzureNative.Network.Inputs.StaticCidrPropertiesArgs
    {
        AddressPrefixes = new[]
        {
            "string",
        },
        Description = "string",
        NumberOfIPAddressesToAllocate = "string",
    },
    StaticCidrName = "string",
});
example, err := network.NewStaticCidr(ctx, "staticCidrResource", &network.StaticCidrArgs{
	NetworkManagerName: pulumi.String("string"),
	PoolName:           pulumi.String("string"),
	ResourceGroupName:  pulumi.String("string"),
	Properties: &network.StaticCidrPropertiesArgs{
		AddressPrefixes: pulumi.StringArray{
			pulumi.String("string"),
		},
		Description:                   pulumi.String("string"),
		NumberOfIPAddressesToAllocate: pulumi.String("string"),
	},
	StaticCidrName: pulumi.String("string"),
})
var staticCidrResource = new StaticCidr("staticCidrResource", StaticCidrArgs.builder()
    .networkManagerName("string")
    .poolName("string")
    .resourceGroupName("string")
    .properties(StaticCidrPropertiesArgs.builder()
        .addressPrefixes("string")
        .description("string")
        .numberOfIPAddressesToAllocate("string")
        .build())
    .staticCidrName("string")
    .build());
static_cidr_resource = azure_native.network.StaticCidr("staticCidrResource",
    network_manager_name="string",
    pool_name="string",
    resource_group_name="string",
    properties={
        "address_prefixes": ["string"],
        "description": "string",
        "number_of_ip_addresses_to_allocate": "string",
    },
    static_cidr_name="string")
const staticCidrResource = new azure_native.network.StaticCidr("staticCidrResource", {
    networkManagerName: "string",
    poolName: "string",
    resourceGroupName: "string",
    properties: {
        addressPrefixes: ["string"],
        description: "string",
        numberOfIPAddressesToAllocate: "string",
    },
    staticCidrName: "string",
});
type: azure-native:network:StaticCidr
properties:
    networkManagerName: string
    poolName: string
    properties:
        addressPrefixes:
            - string
        description: string
        numberOfIPAddressesToAllocate: string
    resourceGroupName: string
    staticCidrName: string
StaticCidr Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The StaticCidr resource accepts the following input properties:
- NetworkManager stringName 
- The name of the network manager.
- PoolName string
- IP Address Manager Pool resource name.
- ResourceGroup stringName 
- The name of the resource group.
- Properties
Pulumi.Azure Native. Network. Inputs. Static Cidr Properties 
- Properties of static CIDR resource.
- StaticCidr stringName 
- Static Cidr allocation name.
- NetworkManager stringName 
- The name of the network manager.
- PoolName string
- IP Address Manager Pool resource name.
- ResourceGroup stringName 
- The name of the resource group.
- Properties
StaticCidr Properties Args 
- Properties of static CIDR resource.
- StaticCidr stringName 
- Static Cidr allocation name.
- networkManager StringName 
- The name of the network manager.
- poolName String
- IP Address Manager Pool resource name.
- resourceGroup StringName 
- The name of the resource group.
- properties
StaticCidr Properties 
- Properties of static CIDR resource.
- staticCidr StringName 
- Static Cidr allocation name.
- networkManager stringName 
- The name of the network manager.
- poolName string
- IP Address Manager Pool resource name.
- resourceGroup stringName 
- The name of the resource group.
- properties
StaticCidr Properties 
- Properties of static CIDR resource.
- staticCidr stringName 
- Static Cidr allocation name.
- network_manager_ strname 
- The name of the network manager.
- pool_name str
- IP Address Manager Pool resource name.
- resource_group_ strname 
- The name of the resource group.
- properties
StaticCidr Properties Args 
- Properties of static CIDR resource.
- static_cidr_ strname 
- Static Cidr allocation name.
- networkManager StringName 
- The name of the network manager.
- poolName String
- IP Address Manager Pool resource name.
- resourceGroup StringName 
- The name of the resource group.
- properties Property Map
- Properties of static CIDR resource.
- staticCidr StringName 
- Static Cidr allocation name.
Outputs
All input properties are implicitly available as output properties. Additionally, the StaticCidr resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Network. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
StaticCidrProperties, StaticCidrPropertiesArgs      
- AddressPrefixes List<string>
- List of IP address prefixes of the resource.
- Description string
- NumberOf stringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- AddressPrefixes []string
- List of IP address prefixes of the resource.
- Description string
- NumberOf stringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- addressPrefixes List<String>
- List of IP address prefixes of the resource.
- description String
- numberOf StringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- addressPrefixes string[]
- List of IP address prefixes of the resource.
- description string
- numberOf stringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- address_prefixes Sequence[str]
- List of IP address prefixes of the resource.
- description str
- number_of_ strip_ addresses_ to_ allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- addressPrefixes List<String>
- List of IP address prefixes of the resource.
- description String
- numberOf StringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
StaticCidrPropertiesResponse, StaticCidrPropertiesResponseArgs        
- ProvisioningState string
- Provisioning states of a resource.
- TotalNumber stringOf IPAddresses 
- Total number of IP addresses allocated for the static CIDR resource.
- AddressPrefixes List<string>
- List of IP address prefixes of the resource.
- Description string
- NumberOf stringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- ProvisioningState string
- Provisioning states of a resource.
- TotalNumber stringOf IPAddresses 
- Total number of IP addresses allocated for the static CIDR resource.
- AddressPrefixes []string
- List of IP address prefixes of the resource.
- Description string
- NumberOf stringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- provisioningState String
- Provisioning states of a resource.
- totalNumber StringOf IPAddresses 
- Total number of IP addresses allocated for the static CIDR resource.
- addressPrefixes List<String>
- List of IP address prefixes of the resource.
- description String
- numberOf StringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- provisioningState string
- Provisioning states of a resource.
- totalNumber stringOf IPAddresses 
- Total number of IP addresses allocated for the static CIDR resource.
- addressPrefixes string[]
- List of IP address prefixes of the resource.
- description string
- numberOf stringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- provisioning_state str
- Provisioning states of a resource.
- total_number_ strof_ ip_ addresses 
- Total number of IP addresses allocated for the static CIDR resource.
- address_prefixes Sequence[str]
- List of IP address prefixes of the resource.
- description str
- number_of_ strip_ addresses_ to_ allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
- provisioningState String
- Provisioning states of a resource.
- totalNumber StringOf IPAddresses 
- Total number of IP addresses allocated for the static CIDR resource.
- addressPrefixes List<String>
- List of IP address prefixes of the resource.
- description String
- numberOf StringIPAddresses To Allocate 
- Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The type of identity that last modified the resource.
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The type of identity that last modified the resource.
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:StaticCidr OnPremResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0