1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. StaticCidr
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.network.StaticCidr

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    Instance of StaticCidr resource. Azure REST API version: 2024-01-01-preview.

    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 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")
    
    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",
    });
    
    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={
            "addressPrefixes": ["string"],
            "description": "string",
            "numberOfIPAddressesToAllocate": "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

    The StaticCidr resource accepts the following input properties:

    NetworkManagerName string
    The name of the network manager.
    PoolName string
    IP Address Manager Pool resource name.
    ResourceGroupName string
    The name of the resource group.
    Properties Pulumi.AzureNative.Network.Inputs.StaticCidrProperties
    Properties of static CIDR resource.
    StaticCidrName string
    Static Cidr allocation name.
    NetworkManagerName string
    The name of the network manager.
    PoolName string
    IP Address Manager Pool resource name.
    ResourceGroupName string
    The name of the resource group.
    Properties StaticCidrPropertiesArgs
    Properties of static CIDR resource.
    StaticCidrName string
    Static Cidr allocation name.
    networkManagerName String
    The name of the network manager.
    poolName String
    IP Address Manager Pool resource name.
    resourceGroupName String
    The name of the resource group.
    properties StaticCidrProperties
    Properties of static CIDR resource.
    staticCidrName String
    Static Cidr allocation name.
    networkManagerName string
    The name of the network manager.
    poolName string
    IP Address Manager Pool resource name.
    resourceGroupName string
    The name of the resource group.
    properties StaticCidrProperties
    Properties of static CIDR resource.
    staticCidrName string
    Static Cidr allocation name.
    network_manager_name str
    The name of the network manager.
    pool_name str
    IP Address Manager Pool resource name.
    resource_group_name str
    The name of the resource group.
    properties StaticCidrPropertiesArgs
    Properties of static CIDR resource.
    static_cidr_name str
    Static Cidr allocation name.
    networkManagerName String
    The name of the network manager.
    poolName String
    IP Address Manager Pool resource name.
    resourceGroupName String
    The name of the resource group.
    properties Property Map
    Properties of static CIDR resource.
    staticCidrName String
    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.AzureNative.Network.Outputs.SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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
    NumberOfIPAddressesToAllocate string
    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
    NumberOfIPAddressesToAllocate string
    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
    numberOfIPAddressesToAllocate String
    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
    numberOfIPAddressesToAllocate string
    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_ip_addresses_to_allocate str
    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
    numberOfIPAddressesToAllocate String
    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.
    TotalNumberOfIPAddresses string
    Total number of IP addresses allocated for the static CIDR resource.
    AddressPrefixes List<string>
    List of IP address prefixes of the resource.
    Description string
    NumberOfIPAddressesToAllocate string
    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.
    TotalNumberOfIPAddresses string
    Total number of IP addresses allocated for the static CIDR resource.
    AddressPrefixes []string
    List of IP address prefixes of the resource.
    Description string
    NumberOfIPAddressesToAllocate string
    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.
    totalNumberOfIPAddresses String
    Total number of IP addresses allocated for the static CIDR resource.
    addressPrefixes List<String>
    List of IP address prefixes of the resource.
    description String
    numberOfIPAddressesToAllocate String
    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.
    totalNumberOfIPAddresses string
    Total number of IP addresses allocated for the static CIDR resource.
    addressPrefixes string[]
    List of IP address prefixes of the resource.
    description string
    numberOfIPAddressesToAllocate string
    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_of_ip_addresses str
    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_ip_addresses_to_allocate str
    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.
    totalNumberOfIPAddresses String
    Total number of IP addresses allocated for the static CIDR resource.
    addressPrefixes List<String>
    List of IP address prefixes of the resource.
    description String
    numberOfIPAddressesToAllocate String
    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.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The type of identity that last modified the resource.
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The type of identity that last modified the resource.
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The type of identity that last modified the resource.
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The type of identity that last modified the resource.
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The type of identity that last modified the resource.
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The type of identity that last modified the resource.
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi