azure-native.network.getVirtualRouter
Explore with Pulumi AI
Gets the specified Virtual Router.
Uses Azure REST API version 2024-05-01.
Other available API versions: 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the version guide for details.
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:
- Resource
Group stringName  - The name of the resource group.
 - Virtual
Router stringName  - The name of the Virtual Router.
 - Expand string
 - Expands referenced resources.
 
- Resource
Group stringName  - The name of the resource group.
 - Virtual
Router stringName  - The name of the Virtual Router.
 - Expand string
 - Expands referenced resources.
 
- resource
Group StringName  - The name of the resource group.
 - virtual
Router StringName  - The name of the Virtual Router.
 - expand String
 - Expands referenced resources.
 
- resource
Group stringName  - The name of the resource group.
 - virtual
Router 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.
 
- resource
Group StringName  - The name of the resource group.
 - virtual
Router StringName  - The name of the Virtual Router.
 - expand String
 - Expands referenced resources.
 
getVirtualRouter Result
The following output properties are available:
- Azure
Api stringVersion  - The Azure API version of the resource.
 - 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.
 - Provisioning
State string - The provisioning state of the resource.
 - Type string
 - Resource type.
 - Hosted
Gateway Pulumi.Azure Native. Network. Outputs. Sub Resource Response  - The Gateway on which VirtualRouter is hosted.
 - Hosted
Subnet 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.
 - Virtual
Router doubleAsn  - VirtualRouter ASN.
 - Virtual
Router List<string>Ips  - VirtualRouter IPs.
 
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Etag string
 - A unique read-only string that changes whenever the resource is updated.
 - Name string
 - Resource name.
 - Peerings
[]Sub
Resource Response  - List of references to VirtualRouterPeerings.
 - Provisioning
State string - The provisioning state of the resource.
 - Type string
 - 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 string
 - Resource ID.
 - Location string
 - Resource location.
 - map[string]string
 - Resource tags.
 - Virtual
Router float64Asn  - VirtualRouter ASN.
 - Virtual
Router []stringIps  - VirtualRouter IPs.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - etag String
 - A unique read-only string that changes whenever the resource is updated.
 - name String
 - Resource name.
 - peerings
List<Sub
Resource Response>  - List of references to VirtualRouterPeerings.
 - provisioning
State String - The provisioning state of the resource.
 - type String
 - 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 String
 - Resource ID.
 - location String
 - Resource location.
 - Map<String,String>
 - Resource tags.
 - virtual
Router DoubleAsn  - VirtualRouter ASN.
 - virtual
Router List<String>Ips  - VirtualRouter IPs.
 
- azure
Api stringVersion  - The Azure API version of the resource.
 - etag string
 - A unique read-only string that changes whenever the resource is updated.
 - name string
 - Resource name.
 - peerings
Sub
Resource Response[]  - List of references to VirtualRouterPeerings.
 - provisioning
State string - The provisioning state of the resource.
 - type string
 - 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 string
 - Resource ID.
 - location string
 - Resource location.
 - {[key: string]: string}
 - Resource tags.
 - virtual
Router numberAsn  - VirtualRouter ASN.
 - virtual
Router string[]Ips  - VirtualRouter IPs.
 
- azure_
api_ strversion  - The Azure API version of the resource.
 - etag str
 - A unique read-only string that changes whenever the resource is updated.
 - name str
 - Resource name.
 - peerings
Sequence[Sub
Resource 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.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - 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.
 - provisioning
State String - The provisioning state of the resource.
 - type String
 - Resource type.
 - hosted
Gateway Property Map - The Gateway on which VirtualRouter is hosted.
 - hosted
Subnet Property Map - The Subnet on which VirtualRouter is hosted.
 - id String
 - Resource ID.
 - location String
 - Resource location.
 - Map<String>
 - Resource tags.
 - virtual
Router NumberAsn  - VirtualRouter ASN.
 - virtual
Router 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