azure-native.network.VirtualHubRouteTableV2
Explore with Pulumi AI
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, 2024-05-01.
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
This property is required. string - The unique name of the resource.
- args
This property is required. VirtualHubRouteTableV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. VirtualHubRouteTableV2Args - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. VirtualHubRouteTableV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name of the VirtualHub.
- Virtual
Hub Name This property is required. Changes to this property will trigger replacement.
- The name of the VirtualHub.
- Attached
Connections 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.
- Route
Table Name Changes to this property will trigger replacement.
- The name of the VirtualHubRouteTableV2.
- Routes
List<Pulumi.
Azure Native. Network. Inputs. Virtual Hub Route V2> - List of all routes.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name of the VirtualHub.
- Virtual
Hub Name This property is required. Changes to this property will trigger replacement.
- The name of the VirtualHub.
- Attached
Connections []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.
- Route
Table Name Changes to this property will trigger replacement.
- The name of the VirtualHubRouteTableV2.
- Routes
[]Virtual
Hub Route V2Args - List of all routes.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name of the VirtualHub.
- virtual
Hub Name This property is required. Changes to this property will trigger replacement.
- The name of the VirtualHub.
- attached
Connections 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.
- route
Table Name Changes to this property will trigger replacement.
- The name of the VirtualHubRouteTableV2.
- routes
List<Virtual
Hub Route V2> - List of all routes.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name of the VirtualHub.
- virtual
Hub Name This property is required. Changes to this property will trigger replacement.
- The name of the VirtualHub.
- attached
Connections 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.
- route
Table Name Changes to this property will trigger replacement.
- The name of the VirtualHubRouteTableV2.
- routes
Virtual
Hub Route V2[] - List of all routes.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The resource group name of the VirtualHub.
- virtual_
hub_ name This property is required. Changes to this property will trigger replacement.
- 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 Changes to this property will trigger replacement.
- The name of the VirtualHubRouteTableV2.
- routes
Sequence[Virtual
Hub Route V2Args] - List of all routes.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name of the VirtualHub.
- virtual
Hub Name This property is required. Changes to this property will trigger replacement.
- The name of the VirtualHub.
- attached
Connections 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.
- route
Table Name Changes to this property will trigger replacement.
- 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.
- Provisioning
State 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.
- Provisioning
State 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.
- provisioning
State 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.
- provisioning
State 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.
- provisioning
State String - The provisioning state of the virtual hub route table v2 resource.
Supporting Types
VirtualHubRouteV2, VirtualHubRouteV2Args
- Destination
Type string - The type of destinations.
- Destinations List<string>
- List of all destinations.
- Next
Hop stringType - The type of next hops.
- Next
Hops List<string> - NextHops ip address.
- Destination
Type string - The type of destinations.
- Destinations []string
- List of all destinations.
- Next
Hop stringType - The type of next hops.
- Next
Hops []string - NextHops ip address.
- destination
Type String - The type of destinations.
- destinations List<String>
- List of all destinations.
- next
Hop StringType - The type of next hops.
- next
Hops List<String> - NextHops ip address.
- destination
Type string - The type of destinations.
- destinations string[]
- List of all destinations.
- next
Hop stringType - The type of next hops.
- next
Hops string[] - NextHops ip address.
- destination_
type str - The type of destinations.
- destinations Sequence[str]
- List of all destinations.
- next_
hop_ strtype - The type of next hops.
- next_
hops Sequence[str] - NextHops ip address.
- destination
Type String - The type of destinations.
- destinations List<String>
- List of all destinations.
- next
Hop StringType - The type of next hops.
- next
Hops List<String> - NextHops ip address.
VirtualHubRouteV2Response, VirtualHubRouteV2ResponseArgs
- Destination
Type string - The type of destinations.
- Destinations List<string>
- List of all destinations.
- Next
Hop stringType - The type of next hops.
- Next
Hops List<string> - NextHops ip address.
- Destination
Type string - The type of destinations.
- Destinations []string
- List of all destinations.
- Next
Hop stringType - The type of next hops.
- Next
Hops []string - NextHops ip address.
- destination
Type String - The type of destinations.
- destinations List<String>
- List of all destinations.
- next
Hop StringType - The type of next hops.
- next
Hops List<String> - NextHops ip address.
- destination
Type string - The type of destinations.
- destinations string[]
- List of all destinations.
- next
Hop stringType - The type of next hops.
- next
Hops string[] - NextHops ip address.
- destination_
type str - The type of destinations.
- destinations Sequence[str]
- List of all destinations.
- next_
hop_ strtype - The type of next hops.
- next_
hops Sequence[str] - NextHops ip address.
- destination
Type String - The type of destinations.
- destinations List<String>
- List of all destinations.
- next
Hop StringType - The type of next hops.
- next
Hops 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