azure-native.network.VirtualHubRouteTableV2

Explore with Pulumi AI

VirtualHubRouteTableV2 Resource. API Version: 2020-11-01.

Example Usage

VirtualHubRouteTableV2Put

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var virtualHubRouteTableV2 = new AzureNative.Network.VirtualHubRouteTableV2("virtualHubRouteTableV2", new()
    {
        AttachedConnections = new[]
        {
            "All_Vnets",
        },
        ResourceGroupName = "rg1",
        RouteTableName = "virtualHubRouteTable1a",
        Routes = new[]
        {
            new AzureNative.Network.Inputs.VirtualHubRouteV2Args
            {
                DestinationType = "CIDR",
                Destinations = new[]
                {
                    "20.10.0.0/16",
                    "20.20.0.0/16",
                },
                NextHopType = "IPAddress",
                NextHops = new[]
                {
                    "10.0.0.68",
                },
            },
            new AzureNative.Network.Inputs.VirtualHubRouteV2Args
            {
                DestinationType = "CIDR",
                Destinations = new[]
                {
                    "0.0.0.0/0",
                },
                NextHopType = "IPAddress",
                NextHops = new[]
                {
                    "10.0.0.68",
                },
            },
        },
        VirtualHubName = "virtualHub1",
    });

});
package main

import (
	network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewVirtualHubRouteTableV2(ctx, "virtualHubRouteTableV2", &network.VirtualHubRouteTableV2Args{
			AttachedConnections: pulumi.StringArray{
				pulumi.String("All_Vnets"),
			},
			ResourceGroupName: pulumi.String("rg1"),
			RouteTableName:    pulumi.String("virtualHubRouteTable1a"),
			Routes: []network.VirtualHubRouteV2Args{
				{
					DestinationType: pulumi.String("CIDR"),
					Destinations: pulumi.StringArray{
						pulumi.String("20.10.0.0/16"),
						pulumi.String("20.20.0.0/16"),
					},
					NextHopType: pulumi.String("IPAddress"),
					NextHops: pulumi.StringArray{
						pulumi.String("10.0.0.68"),
					},
				},
				{
					DestinationType: pulumi.String("CIDR"),
					Destinations: pulumi.StringArray{
						pulumi.String("0.0.0.0/0"),
					},
					NextHopType: pulumi.String("IPAddress"),
					NextHops: pulumi.StringArray{
						pulumi.String("10.0.0.68"),
					},
				},
			},
			VirtualHubName: pulumi.String("virtualHub1"),
		})
		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.VirtualHubRouteTableV2;
import com.pulumi.azurenative.network.VirtualHubRouteTableV2Args;
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 virtualHubRouteTableV2 = new VirtualHubRouteTableV2("virtualHubRouteTableV2", VirtualHubRouteTableV2Args.builder()        
            .attachedConnections("All_Vnets")
            .resourceGroupName("rg1")
            .routeTableName("virtualHubRouteTable1a")
            .routes(            
                Map.ofEntries(
                    Map.entry("destinationType", "CIDR"),
                    Map.entry("destinations",                     
                        "20.10.0.0/16",
                        "20.20.0.0/16"),
                    Map.entry("nextHopType", "IPAddress"),
                    Map.entry("nextHops", "10.0.0.68")
                ),
                Map.ofEntries(
                    Map.entry("destinationType", "CIDR"),
                    Map.entry("destinations", "0.0.0.0/0"),
                    Map.entry("nextHopType", "IPAddress"),
                    Map.entry("nextHops", "10.0.0.68")
                ))
            .virtualHubName("virtualHub1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

virtual_hub_route_table_v2 = azure_native.network.VirtualHubRouteTableV2("virtualHubRouteTableV2",
    attached_connections=["All_Vnets"],
    resource_group_name="rg1",
    route_table_name="virtualHubRouteTable1a",
    routes=[
        azure_native.network.VirtualHubRouteV2Args(
            destination_type="CIDR",
            destinations=[
                "20.10.0.0/16",
                "20.20.0.0/16",
            ],
            next_hop_type="IPAddress",
            next_hops=["10.0.0.68"],
        ),
        azure_native.network.VirtualHubRouteV2Args(
            destination_type="CIDR",
            destinations=["0.0.0.0/0"],
            next_hop_type="IPAddress",
            next_hops=["10.0.0.68"],
        ),
    ],
    virtual_hub_name="virtualHub1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const virtualHubRouteTableV2 = new azure_native.network.VirtualHubRouteTableV2("virtualHubRouteTableV2", {
    attachedConnections: ["All_Vnets"],
    resourceGroupName: "rg1",
    routeTableName: "virtualHubRouteTable1a",
    routes: [
        {
            destinationType: "CIDR",
            destinations: [
                "20.10.0.0/16",
                "20.20.0.0/16",
            ],
            nextHopType: "IPAddress",
            nextHops: ["10.0.0.68"],
        },
        {
            destinationType: "CIDR",
            destinations: ["0.0.0.0/0"],
            nextHopType: "IPAddress",
            nextHops: ["10.0.0.68"],
        },
    ],
    virtualHubName: "virtualHub1",
});
resources:
  virtualHubRouteTableV2:
    type: azure-native:network:VirtualHubRouteTableV2
    properties:
      attachedConnections:
        - All_Vnets
      resourceGroupName: rg1
      routeTableName: virtualHubRouteTable1a
      routes:
        - destinationType: CIDR
          destinations:
            - 20.10.0.0/16
            - 20.20.0.0/16
          nextHopType: IPAddress
          nextHops:
            - 10.0.0.68
        - destinationType: CIDR
          destinations:
            - 0.0.0.0/0
          nextHopType: IPAddress
          nextHops:
            - 10.0.0.68
      virtualHubName: virtualHub1

Create VirtualHubRouteTableV2 Resource

new VirtualHubRouteTableV2(name: string, args: VirtualHubRouteTableV2Args, opts?: CustomResourceOptions);
@overload
def VirtualHubRouteTableV2(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           attached_connections: Optional[Sequence[str]] = None,
                           id: Optional[str] = None,
                           name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           route_table_name: Optional[str] = None,
                           routes: Optional[Sequence[VirtualHubRouteV2Args]] = None,
                           virtual_hub_name: Optional[str] = None)
@overload
def VirtualHubRouteTableV2(resource_name: str,
                           args: VirtualHubRouteTableV2InitArgs,
                           opts: Optional[ResourceOptions] = None)
func NewVirtualHubRouteTableV2(ctx *Context, name string, args VirtualHubRouteTableV2Args, opts ...ResourceOption) (*VirtualHubRouteTableV2, error)
public VirtualHubRouteTableV2(string name, VirtualHubRouteTableV2Args args, CustomResourceOptions? opts = null)
public VirtualHubRouteTableV2(String name, VirtualHubRouteTableV2Args args)
public VirtualHubRouteTableV2(String name, VirtualHubRouteTableV2Args args, CustomResourceOptions options)
type: azure-native:network:VirtualHubRouteTableV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VirtualHubRouteTableV2Args
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 VirtualHubRouteTableV2InitArgs
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 VirtualHubRouteTableV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VirtualHubRouteTableV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VirtualHubRouteTableV2Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VirtualHubRouteTableV2 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 VirtualHubRouteTableV2 resource accepts the following input properties:

ResourceGroupName string

The resource group name of the VirtualHub.

VirtualHubName string

The name of the VirtualHub.

AttachedConnections List<string>

List of all connections attached to this route table v2.

Id string

Resource ID.

Name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

RouteTableName string

The name of the VirtualHubRouteTableV2.

Routes List<Pulumi.AzureNative.Network.Inputs.VirtualHubRouteV2Args>

List of all routes.

ResourceGroupName string

The resource group name of the VirtualHub.

VirtualHubName string

The name of the VirtualHub.

AttachedConnections []string

List of all connections attached to this route table v2.

Id string

Resource ID.

Name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

RouteTableName string

The name of the VirtualHubRouteTableV2.

Routes []VirtualHubRouteV2Args

List of all routes.

resourceGroupName String

The resource group name of the VirtualHub.

virtualHubName String

The name of the VirtualHub.

attachedConnections List<String>

List of all connections attached to this route table v2.

id String

Resource ID.

name String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

routeTableName String

The name of the VirtualHubRouteTableV2.

routes List<VirtualHubRouteV2Args>

List of all routes.

resourceGroupName string

The resource group name of the VirtualHub.

virtualHubName string

The name of the VirtualHub.

attachedConnections string[]

List of all connections attached to this route table v2.

id string

Resource ID.

name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

routeTableName string

The name of the VirtualHubRouteTableV2.

routes VirtualHubRouteV2Args[]

List of all routes.

resource_group_name str

The resource group name of the VirtualHub.

virtual_hub_name str

The name of the VirtualHub.

attached_connections Sequence[str]

List of all connections attached to this route table v2.

id str

Resource ID.

name str

The name of the resource that is unique within a resource group. This name can be used to access the resource.

route_table_name str

The name of the VirtualHubRouteTableV2.

routes Sequence[VirtualHubRouteV2Args]

List of all routes.

resourceGroupName String

The resource group name of the VirtualHub.

virtualHubName String

The name of the VirtualHub.

attachedConnections List<String>

List of all connections attached to this route table v2.

id String

Resource ID.

name String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

routeTableName String

The name of the VirtualHubRouteTableV2.

routes List<Property Map>

List of all routes.

Outputs

All input properties are implicitly available as output properties. Additionally, the VirtualHubRouteTableV2 resource produces the following output properties:

Etag string

A unique read-only string that changes whenever the resource is updated.

Id string

The provider-assigned unique ID for this managed resource.

ProvisioningState string

The provisioning state of the virtual hub route table v2 resource.

Etag string

A unique read-only string that changes whenever the resource is updated.

Id string

The provider-assigned unique ID for this managed resource.

ProvisioningState string

The provisioning state of the virtual hub route table v2 resource.

etag String

A unique read-only string that changes whenever the resource is updated.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning state of the virtual hub route table v2 resource.

etag string

A unique read-only string that changes whenever the resource is updated.

id string

The provider-assigned unique ID for this managed resource.

provisioningState string

The provisioning state of the virtual hub route table v2 resource.

etag str

A unique read-only string that changes whenever the resource is updated.

id str

The provider-assigned unique ID for this managed resource.

provisioning_state str

The provisioning state of the virtual hub route table v2 resource.

etag String

A unique read-only string that changes whenever the resource is updated.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning state of the virtual hub route table v2 resource.

Supporting Types

VirtualHubRouteV2

DestinationType string

The type of destinations.

Destinations List<string>

List of all destinations.

NextHopType string

The type of next hops.

NextHops List<string>

NextHops ip address.

DestinationType string

The type of destinations.

Destinations []string

List of all destinations.

NextHopType string

The type of next hops.

NextHops []string

NextHops ip address.

destinationType String

The type of destinations.

destinations List<String>

List of all destinations.

nextHopType String

The type of next hops.

nextHops List<String>

NextHops ip address.

destinationType string

The type of destinations.

destinations string[]

List of all destinations.

nextHopType string

The type of next hops.

nextHops string[]

NextHops ip address.

destination_type str

The type of destinations.

destinations Sequence[str]

List of all destinations.

next_hop_type str

The type of next hops.

next_hops Sequence[str]

NextHops ip address.

destinationType String

The type of destinations.

destinations List<String>

List of all destinations.

nextHopType String

The type of next hops.

nextHops List<String>

NextHops ip address.

VirtualHubRouteV2Response

DestinationType string

The type of destinations.

Destinations List<string>

List of all destinations.

NextHopType string

The type of next hops.

NextHops List<string>

NextHops ip address.

DestinationType string

The type of destinations.

Destinations []string

List of all destinations.

NextHopType string

The type of next hops.

NextHops []string

NextHops ip address.

destinationType String

The type of destinations.

destinations List<String>

List of all destinations.

nextHopType String

The type of next hops.

nextHops List<String>

NextHops ip address.

destinationType string

The type of destinations.

destinations string[]

List of all destinations.

nextHopType string

The type of next hops.

nextHops string[]

NextHops ip address.

destination_type str

The type of destinations.

destinations Sequence[str]

List of all destinations.

next_hop_type str

The type of next hops.

next_hops Sequence[str]

NextHops ip address.

destinationType String

The type of destinations.

destinations List<String>

List of all destinations.

nextHopType String

The type of next hops.

nextHops List<String>

NextHops ip address.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:VirtualHubRouteTableV2 virtualHubRouteTable1a /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeTables/virtualHubRouteTable1a 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0