1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. getVirtualRouter
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

azure-native.network.getVirtualRouter

Explore with Pulumi AI

azure-native logo
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

    Gets the specified Virtual Router. API Version: 2022-01-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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:network:getVirtualRouter
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupName string

    The name of the resource group.

    VirtualRouterName string

    The name of the Virtual Router.

    Expand string

    Expands referenced resources.

    ResourceGroupName string

    The name of the resource group.

    VirtualRouterName string

    The name of the Virtual Router.

    Expand string

    Expands referenced resources.

    resourceGroupName String

    The name of the resource group.

    virtualRouterName String

    The name of the Virtual Router.

    expand String

    Expands referenced resources.

    resourceGroupName string

    The name of the resource group.

    virtualRouterName string

    The name of the Virtual Router.

    expand string

    Expands referenced resources.

    resource_group_name str

    The name of the resource group.

    virtual_router_name str

    The name of the Virtual Router.

    expand str

    Expands referenced resources.

    resourceGroupName String

    The name of the resource group.

    virtualRouterName String

    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.AzureNative.Network.Outputs.SubResourceResponse>

    List of references to VirtualRouterPeerings.

    ProvisioningState string

    The provisioning state of the resource.

    Type string

    Resource type.

    HostedGateway Pulumi.AzureNative.Network.Outputs.SubResourceResponse

    The Gateway on which VirtualRouter is hosted.

    HostedSubnet Pulumi.AzureNative.Network.Outputs.SubResourceResponse

    The Subnet on which VirtualRouter is hosted.

    Id string

    Resource ID.

    Location string

    Resource location.

    Tags Dictionary<string, string>

    Resource tags.

    VirtualRouterAsn double

    VirtualRouter ASN.

    VirtualRouterIps List<string>

    VirtualRouter IPs.

    Etag string

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

    Name string

    Resource name.

    Peerings []SubResourceResponse

    List of references to VirtualRouterPeerings.

    ProvisioningState string

    The provisioning state of the resource.

    Type string

    Resource type.

    HostedGateway SubResourceResponse

    The Gateway on which VirtualRouter is hosted.

    HostedSubnet SubResourceResponse

    The Subnet on which VirtualRouter is hosted.

    Id string

    Resource ID.

    Location string

    Resource location.

    Tags map[string]string

    Resource tags.

    VirtualRouterAsn float64

    VirtualRouter ASN.

    VirtualRouterIps []string

    VirtualRouter IPs.

    etag String

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

    name String

    Resource name.

    peerings List<SubResourceResponse>

    List of references to VirtualRouterPeerings.

    provisioningState String

    The provisioning state of the resource.

    type String

    Resource type.

    hostedGateway SubResourceResponse

    The Gateway on which VirtualRouter is hosted.

    hostedSubnet SubResourceResponse

    The Subnet on which VirtualRouter is hosted.

    id String

    Resource ID.

    location String

    Resource location.

    tags Map<String,String>

    Resource tags.

    virtualRouterAsn Double

    VirtualRouter ASN.

    virtualRouterIps List<String>

    VirtualRouter IPs.

    etag string

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

    name string

    Resource name.

    peerings SubResourceResponse[]

    List of references to VirtualRouterPeerings.

    provisioningState string

    The provisioning state of the resource.

    type string

    Resource type.

    hostedGateway SubResourceResponse

    The Gateway on which VirtualRouter is hosted.

    hostedSubnet SubResourceResponse

    The Subnet on which VirtualRouter is hosted.

    id string

    Resource ID.

    location string

    Resource location.

    tags {[key: string]: string}

    Resource tags.

    virtualRouterAsn number

    VirtualRouter ASN.

    virtualRouterIps string[]

    VirtualRouter IPs.

    etag str

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

    name str

    Resource name.

    peerings Sequence[SubResourceResponse]

    List of references to VirtualRouterPeerings.

    provisioning_state str

    The provisioning state of the resource.

    type str

    Resource type.

    hosted_gateway SubResourceResponse

    The Gateway on which VirtualRouter is hosted.

    hosted_subnet SubResourceResponse

    The Subnet on which VirtualRouter is hosted.

    id str

    Resource ID.

    location str

    Resource location.

    tags Mapping[str, str]

    Resource tags.

    virtual_router_asn float

    VirtualRouter ASN.

    virtual_router_ips Sequence[str]

    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.

    tags Map<String>

    Resource tags.

    virtualRouterAsn Number

    VirtualRouter ASN.

    virtualRouterIps List<String>

    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
    azure-native logo
    Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi