azure-native.network.StaticCidr
Explore with Pulumi AI
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:
- Network
Manager stringName - The name of the network manager.
- Pool
Name string - IP Address Manager Pool resource name.
- Resource
Group stringName - The name of the resource group.
- Properties
Pulumi.
Azure Native. Network. Inputs. Static Cidr Properties - Properties of static CIDR resource.
- Static
Cidr stringName - Static Cidr allocation name.
- Network
Manager stringName - The name of the network manager.
- Pool
Name string - IP Address Manager Pool resource name.
- Resource
Group stringName - The name of the resource group.
- Properties
Static
Cidr Properties Args - Properties of static CIDR resource.
- Static
Cidr stringName - Static Cidr allocation name.
- network
Manager StringName - The name of the network manager.
- pool
Name String - IP Address Manager Pool resource name.
- resource
Group StringName - The name of the resource group.
- properties
Static
Cidr Properties - Properties of static CIDR resource.
- static
Cidr StringName - Static Cidr allocation name.
- network
Manager stringName - The name of the network manager.
- pool
Name string - IP Address Manager Pool resource name.
- resource
Group stringName - The name of the resource group.
- properties
Static
Cidr Properties - Properties of static CIDR resource.
- static
Cidr 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
Static
Cidr Properties Args - Properties of static CIDR resource.
- static_
cidr_ strname - Static Cidr allocation name.
- network
Manager StringName - The name of the network manager.
- pool
Name String - IP Address Manager Pool resource name.
- resource
Group StringName - The name of the resource group.
- properties Property Map
- Properties of static CIDR resource.
- static
Cidr 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
- System
Data 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
- System
Data 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
- system
Data 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
- system
Data 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
- system
Data 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
- Address
Prefixes List<string> - List of IP address prefixes of the resource.
- Description string
- Number
Of 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 []string - List of IP address prefixes of the resource.
- Description string
- Number
Of 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 List<String> - List of IP address prefixes of the resource.
- description String
- number
Of 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 string[] - List of IP address prefixes of the resource.
- description string
- number
Of 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.
- address
Prefixes List<String> - List of IP address prefixes of the resource.
- description String
- number
Of 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
- Provisioning
State string - Provisioning states of a resource.
- Total
Number stringOf IPAddresses - Total number of IP addresses allocated for the static CIDR resource.
- Address
Prefixes List<string> - List of IP address prefixes of the resource.
- Description string
- Number
Of 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 string - Provisioning states of a resource.
- Total
Number stringOf IPAddresses - Total number of IP addresses allocated for the static CIDR resource.
- Address
Prefixes []string - List of IP address prefixes of the resource.
- Description string
- Number
Of 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 String - Provisioning states of a resource.
- total
Number StringOf IPAddresses - Total number of IP addresses allocated for the static CIDR resource.
- address
Prefixes List<String> - List of IP address prefixes of the resource.
- description String
- number
Of 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 string - Provisioning states of a resource.
- total
Number stringOf IPAddresses - Total number of IP addresses allocated for the static CIDR resource.
- address
Prefixes string[] - List of IP address prefixes of the resource.
- description string
- number
Of 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.
- provisioning
State String - Provisioning states of a resource.
- total
Number StringOf IPAddresses - Total number of IP addresses allocated for the static CIDR resource.
- address
Prefixes List<String> - List of IP address prefixes of the resource.
- description String
- number
Of 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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