1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. VirtualHubRouteTableV2
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.network.VirtualHubRouteTableV2

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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    VirtualHubRouteTableV2 Resource. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.

    Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.

    Example Usage

    VirtualHubRouteTableV2Put

    using System.Collections.Generic;
    using System.Linq;
    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/network/v2"
    	"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.VirtualHubRouteV2Array{
    				&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"),
    					},
    				},
    				&network.VirtualHubRouteV2Args{
    					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 com.pulumi.azurenative.network.inputs.VirtualHubRouteV2Args;
    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(            
                    VirtualHubRouteV2Args.builder()
                        .destinationType("CIDR")
                        .destinations(                    
                            "20.10.0.0/16",
                            "20.20.0.0/16")
                        .nextHopType("IPAddress")
                        .nextHops("10.0.0.68")
                        .build(),
                    VirtualHubRouteV2Args.builder()
                        .destinationType("CIDR")
                        .destinations("0.0.0.0/0")
                        .nextHopType("IPAddress")
                        .nextHops("10.0.0.68")
                        .build())
                .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=[
            {
                "destination_type": "CIDR",
                "destinations": [
                    "20.10.0.0/16",
                    "20.20.0.0/16",
                ],
                "next_hop_type": "IPAddress",
                "next_hops": ["10.0.0.68"],
            },
            {
                "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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualHubRouteTableV2(name: string, args: VirtualHubRouteTableV2Args, opts?: CustomResourceOptions);
    @overload
    def VirtualHubRouteTableV2(resource_name: str,
                               args: VirtualHubRouteTableV2InitArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualHubRouteTableV2(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               resource_group_name: Optional[str] = None,
                               virtual_hub_name: Optional[str] = None,
                               attached_connections: Optional[Sequence[str]] = None,
                               id: Optional[str] = None,
                               name: Optional[str] = None,
                               route_table_name: Optional[str] = None,
                               routes: Optional[Sequence[VirtualHubRouteV2Args]] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualHubRouteTableV2Resource = new AzureNative.Network.VirtualHubRouteTableV2("virtualHubRouteTableV2Resource", new()
    {
        ResourceGroupName = "string",
        VirtualHubName = "string",
        AttachedConnections = new[]
        {
            "string",
        },
        Id = "string",
        Name = "string",
        RouteTableName = "string",
        Routes = new[]
        {
            new AzureNative.Network.Inputs.VirtualHubRouteV2Args
            {
                DestinationType = "string",
                Destinations = new[]
                {
                    "string",
                },
                NextHopType = "string",
                NextHops = new[]
                {
                    "string",
                },
            },
        },
    });
    
    example, err := network.NewVirtualHubRouteTableV2(ctx, "virtualHubRouteTableV2Resource", &network.VirtualHubRouteTableV2Args{
    	ResourceGroupName: pulumi.String("string"),
    	VirtualHubName:    pulumi.String("string"),
    	AttachedConnections: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Id:             pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	RouteTableName: pulumi.String("string"),
    	Routes: network.VirtualHubRouteV2Array{
    		&network.VirtualHubRouteV2Args{
    			DestinationType: pulumi.String("string"),
    			Destinations: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			NextHopType: pulumi.String("string"),
    			NextHops: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var virtualHubRouteTableV2Resource = new VirtualHubRouteTableV2("virtualHubRouteTableV2Resource", VirtualHubRouteTableV2Args.builder()
        .resourceGroupName("string")
        .virtualHubName("string")
        .attachedConnections("string")
        .id("string")
        .name("string")
        .routeTableName("string")
        .routes(VirtualHubRouteV2Args.builder()
            .destinationType("string")
            .destinations("string")
            .nextHopType("string")
            .nextHops("string")
            .build())
        .build());
    
    virtual_hub_route_table_v2_resource = azure_native.network.VirtualHubRouteTableV2("virtualHubRouteTableV2Resource",
        resource_group_name="string",
        virtual_hub_name="string",
        attached_connections=["string"],
        id="string",
        name="string",
        route_table_name="string",
        routes=[{
            "destination_type": "string",
            "destinations": ["string"],
            "next_hop_type": "string",
            "next_hops": ["string"],
        }])
    
    const virtualHubRouteTableV2Resource = new azure_native.network.VirtualHubRouteTableV2("virtualHubRouteTableV2Resource", {
        resourceGroupName: "string",
        virtualHubName: "string",
        attachedConnections: ["string"],
        id: "string",
        name: "string",
        routeTableName: "string",
        routes: [{
            destinationType: "string",
            destinations: ["string"],
            nextHopType: "string",
            nextHops: ["string"],
        }],
    });
    
    type: azure-native:network:VirtualHubRouteTableV2
    properties:
        attachedConnections:
            - string
        id: string
        name: string
        resourceGroupName: string
        routeTableName: string
        routes:
            - destinationType: string
              destinations:
                - string
              nextHopType: string
              nextHops:
                - string
        virtualHubName: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.VirtualHubRouteV2>
    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<VirtualHubRouteV2>
    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 VirtualHubRouteV2[]
    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, VirtualHubRouteV2Args

    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, VirtualHubRouteV2ResponseArgs

    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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName} 
    

    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi