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.89.3 published on Thursday, Mar 20, 2025 by Pulumi
azure-native.network.getVirtualRouter
Explore with Pulumi AI
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.89.3 published on Thursday, Mar 20, 2025 by Pulumi
Gets the specified Virtual Router. Azure REST API version: 2023-02-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.
Using getVirtualRouter
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualRouter(args: GetVirtualRouterArgs, opts?: InvokeOptions): Promise<GetVirtualRouterResult>
function getVirtualRouterOutput(args: GetVirtualRouterOutputArgs, opts?: InvokeOptions): Output<GetVirtualRouterResult>def get_virtual_router(expand: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       virtual_router_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetVirtualRouterResult
def get_virtual_router_output(expand: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       virtual_router_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetVirtualRouterResult]func LookupVirtualRouter(ctx *Context, args *LookupVirtualRouterArgs, opts ...InvokeOption) (*LookupVirtualRouterResult, error)
func LookupVirtualRouterOutput(ctx *Context, args *LookupVirtualRouterOutputArgs, opts ...InvokeOption) LookupVirtualRouterResultOutput> Note: This function is named LookupVirtualRouter in the Go SDK.
public static class GetVirtualRouter 
{
    public static Task<GetVirtualRouterResult> InvokeAsync(GetVirtualRouterArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualRouterResult> Invoke(GetVirtualRouterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualRouterResult> getVirtualRouter(GetVirtualRouterArgs args, InvokeOptions options)
public static Output<GetVirtualRouterResult> getVirtualRouter(GetVirtualRouterArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:network:getVirtualRouter
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group.
- VirtualRouter stringName 
- The name of the Virtual Router.
- Expand string
- Expands referenced resources.
- ResourceGroup stringName 
- The name of the resource group.
- VirtualRouter stringName 
- The name of the Virtual Router.
- Expand string
- Expands referenced resources.
- resourceGroup StringName 
- The name of the resource group.
- virtualRouter StringName 
- The name of the Virtual Router.
- expand String
- Expands referenced resources.
- resourceGroup stringName 
- The name of the resource group.
- virtualRouter stringName 
- The name of the Virtual Router.
- expand string
- Expands referenced resources.
- resource_group_ strname 
- The name of the resource group.
- virtual_router_ strname 
- The name of the Virtual Router.
- expand str
- Expands referenced resources.
- resourceGroup StringName 
- The name of the resource group.
- virtualRouter StringName 
- The name of the Virtual Router.
- expand String
- Expands referenced resources.
getVirtualRouter Result
The following output properties are available:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Peerings
List<Pulumi.Azure Native. Network. Outputs. Sub Resource Response> 
- List of references to VirtualRouterPeerings.
- ProvisioningState string
- The provisioning state of the resource.
- Type string
- Resource type.
- HostedGateway Pulumi.Azure Native. Network. Outputs. Sub Resource Response 
- The Gateway on which VirtualRouter is hosted.
- HostedSubnet Pulumi.Azure Native. Network. Outputs. Sub Resource Response 
- The Subnet on which VirtualRouter is hosted.
- Id string
- Resource ID.
- Location string
- Resource location.
- Dictionary<string, string>
- Resource tags.
- VirtualRouter doubleAsn 
- VirtualRouter ASN.
- VirtualRouter List<string>Ips 
- VirtualRouter IPs.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Peerings
[]SubResource Response 
- List of references to VirtualRouterPeerings.
- ProvisioningState string
- The provisioning state of the resource.
- Type string
- Resource type.
- HostedGateway SubResource Response 
- The Gateway on which VirtualRouter is hosted.
- HostedSubnet SubResource Response 
- The Subnet on which VirtualRouter is hosted.
- Id string
- Resource ID.
- Location string
- Resource location.
- map[string]string
- Resource tags.
- VirtualRouter float64Asn 
- VirtualRouter ASN.
- VirtualRouter []stringIps 
- VirtualRouter IPs.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- peerings
List<SubResource Response> 
- List of references to VirtualRouterPeerings.
- provisioningState String
- The provisioning state of the resource.
- type String
- Resource type.
- hostedGateway SubResource Response 
- The Gateway on which VirtualRouter is hosted.
- hostedSubnet SubResource Response 
- The Subnet on which VirtualRouter is hosted.
- id String
- Resource ID.
- location String
- Resource location.
- Map<String,String>
- Resource tags.
- virtualRouter DoubleAsn 
- VirtualRouter ASN.
- virtualRouter List<String>Ips 
- VirtualRouter IPs.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- name string
- Resource name.
- peerings
SubResource Response[] 
- List of references to VirtualRouterPeerings.
- provisioningState string
- The provisioning state of the resource.
- type string
- Resource type.
- hostedGateway SubResource Response 
- The Gateway on which VirtualRouter is hosted.
- hostedSubnet SubResource Response 
- The Subnet on which VirtualRouter is hosted.
- id string
- Resource ID.
- location string
- Resource location.
- {[key: string]: string}
- Resource tags.
- virtualRouter numberAsn 
- VirtualRouter ASN.
- virtualRouter string[]Ips 
- VirtualRouter IPs.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- name str
- Resource name.
- peerings
Sequence[SubResource Response] 
- List of references to VirtualRouterPeerings.
- provisioning_state str
- The provisioning state of the resource.
- type str
- Resource type.
- hosted_gateway SubResource Response 
- The Gateway on which VirtualRouter is hosted.
- hosted_subnet SubResource Response 
- The Subnet on which VirtualRouter is hosted.
- id str
- Resource ID.
- location str
- Resource location.
- Mapping[str, str]
- Resource tags.
- virtual_router_ floatasn 
- VirtualRouter ASN.
- virtual_router_ Sequence[str]ips 
- VirtualRouter IPs.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- peerings List<Property Map>
- List of references to VirtualRouterPeerings.
- provisioningState String
- The provisioning state of the resource.
- type String
- Resource type.
- hostedGateway Property Map
- The Gateway on which VirtualRouter is hosted.
- hostedSubnet Property Map
- The Subnet on which VirtualRouter is hosted.
- id String
- Resource ID.
- location String
- Resource location.
- Map<String>
- Resource tags.
- virtualRouter NumberAsn 
- VirtualRouter ASN.
- virtualRouter List<String>Ips 
- VirtualRouter IPs.
Supporting Types
SubResourceResponse  
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.89.3 published on Thursday, Mar 20, 2025 by Pulumi