1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. getVirtualHub
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.getVirtualHub

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

    Retrieves the details of a VirtualHub. Azure REST API version: 2023-02-01.

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

    Using getVirtualHub

    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 getVirtualHub(args: GetVirtualHubArgs, opts?: InvokeOptions): Promise<GetVirtualHubResult>
    function getVirtualHubOutput(args: GetVirtualHubOutputArgs, opts?: InvokeOptions): Output<GetVirtualHubResult>
    def get_virtual_hub(resource_group_name: Optional[str] = None,
                        virtual_hub_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVirtualHubResult
    def get_virtual_hub_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                        virtual_hub_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVirtualHubResult]
    func LookupVirtualHub(ctx *Context, args *LookupVirtualHubArgs, opts ...InvokeOption) (*LookupVirtualHubResult, error)
    func LookupVirtualHubOutput(ctx *Context, args *LookupVirtualHubOutputArgs, opts ...InvokeOption) LookupVirtualHubResultOutput

    > Note: This function is named LookupVirtualHub in the Go SDK.

    public static class GetVirtualHub 
    {
        public static Task<GetVirtualHubResult> InvokeAsync(GetVirtualHubArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualHubResult> Invoke(GetVirtualHubInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualHubResult> getVirtualHub(GetVirtualHubArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:network:getVirtualHub
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupName string
    The resource group name of the VirtualHub.
    VirtualHubName string
    The name of the VirtualHub.
    ResourceGroupName string
    The resource group name of the VirtualHub.
    VirtualHubName string
    The name of the VirtualHub.
    resourceGroupName String
    The resource group name of the VirtualHub.
    virtualHubName String
    The name of the VirtualHub.
    resourceGroupName string
    The resource group name of the VirtualHub.
    virtualHubName string
    The name of the VirtualHub.
    resource_group_name str
    The resource group name of the VirtualHub.
    virtual_hub_name str
    The name of the VirtualHub.
    resourceGroupName String
    The resource group name of the VirtualHub.
    virtualHubName String
    The name of the VirtualHub.

    getVirtualHub Result

    The following output properties are available:

    BgpConnections List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
    List of references to Bgp Connections.
    Etag string
    A unique read-only string that changes whenever the resource is updated.
    IpConfigurations List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
    List of references to IpConfigurations.
    Kind string
    Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
    Location string
    Resource location.
    Name string
    Resource name.
    ProvisioningState string
    The provisioning state of the virtual hub resource.
    RouteMaps List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
    List of references to RouteMaps.
    RoutingState string
    The routing state.
    Type string
    Resource type.
    AddressPrefix string
    Address-prefix for this VirtualHub.
    AllowBranchToBranchTraffic bool
    Flag to control transit for VirtualRouter hub.
    AzureFirewall Pulumi.AzureNative.Network.Outputs.SubResourceResponse
    The azureFirewall associated with this VirtualHub.
    ExpressRouteGateway Pulumi.AzureNative.Network.Outputs.SubResourceResponse
    The expressRouteGateway associated with this VirtualHub.
    HubRoutingPreference string
    The hubRoutingPreference of this VirtualHub.
    Id string
    Resource ID.
    P2SVpnGateway Pulumi.AzureNative.Network.Outputs.SubResourceResponse
    The P2SVpnGateway associated with this VirtualHub.
    PreferredRoutingGateway string
    The preferred gateway to route on-prem traffic
    RouteTable Pulumi.AzureNative.Network.Outputs.VirtualHubRouteTableResponse
    The routeTable associated with this virtual hub.
    SecurityPartnerProvider Pulumi.AzureNative.Network.Outputs.SubResourceResponse
    The securityPartnerProvider associated with this VirtualHub.
    SecurityProviderName string
    The Security Provider name.
    Sku string
    The sku of this VirtualHub.
    Tags Dictionary<string, string>
    Resource tags.
    VirtualHubRouteTableV2s List<Pulumi.AzureNative.Network.Outputs.VirtualHubRouteTableV2Response>
    List of all virtual hub route table v2s associated with this VirtualHub.
    VirtualRouterAsn double
    VirtualRouter ASN.
    VirtualRouterAutoScaleConfiguration Pulumi.AzureNative.Network.Outputs.VirtualRouterAutoScaleConfigurationResponse
    The VirtualHub Router autoscale configuration.
    VirtualRouterIps List<string>
    VirtualRouter IPs.
    VirtualWan Pulumi.AzureNative.Network.Outputs.SubResourceResponse
    The VirtualWAN to which the VirtualHub belongs.
    VpnGateway Pulumi.AzureNative.Network.Outputs.SubResourceResponse
    The VpnGateway associated with this VirtualHub.
    BgpConnections []SubResourceResponse
    List of references to Bgp Connections.
    Etag string
    A unique read-only string that changes whenever the resource is updated.
    IpConfigurations []SubResourceResponse
    List of references to IpConfigurations.
    Kind string
    Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
    Location string
    Resource location.
    Name string
    Resource name.
    ProvisioningState string
    The provisioning state of the virtual hub resource.
    RouteMaps []SubResourceResponse
    List of references to RouteMaps.
    RoutingState string
    The routing state.
    Type string
    Resource type.
    AddressPrefix string
    Address-prefix for this VirtualHub.
    AllowBranchToBranchTraffic bool
    Flag to control transit for VirtualRouter hub.
    AzureFirewall SubResourceResponse
    The azureFirewall associated with this VirtualHub.
    ExpressRouteGateway SubResourceResponse
    The expressRouteGateway associated with this VirtualHub.
    HubRoutingPreference string
    The hubRoutingPreference of this VirtualHub.
    Id string
    Resource ID.
    P2SVpnGateway SubResourceResponse
    The P2SVpnGateway associated with this VirtualHub.
    PreferredRoutingGateway string
    The preferred gateway to route on-prem traffic
    RouteTable VirtualHubRouteTableResponse
    The routeTable associated with this virtual hub.
    SecurityPartnerProvider SubResourceResponse
    The securityPartnerProvider associated with this VirtualHub.
    SecurityProviderName string
    The Security Provider name.
    Sku string
    The sku of this VirtualHub.
    Tags map[string]string
    Resource tags.
    VirtualHubRouteTableV2s []VirtualHubRouteTableV2Response
    List of all virtual hub route table v2s associated with this VirtualHub.
    VirtualRouterAsn float64
    VirtualRouter ASN.
    VirtualRouterAutoScaleConfiguration VirtualRouterAutoScaleConfigurationResponse
    The VirtualHub Router autoscale configuration.
    VirtualRouterIps []string
    VirtualRouter IPs.
    VirtualWan SubResourceResponse
    The VirtualWAN to which the VirtualHub belongs.
    VpnGateway SubResourceResponse
    The VpnGateway associated with this VirtualHub.
    bgpConnections List<SubResourceResponse>
    List of references to Bgp Connections.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    ipConfigurations List<SubResourceResponse>
    List of references to IpConfigurations.
    kind String
    Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
    location String
    Resource location.
    name String
    Resource name.
    provisioningState String
    The provisioning state of the virtual hub resource.
    routeMaps List<SubResourceResponse>
    List of references to RouteMaps.
    routingState String
    The routing state.
    type String
    Resource type.
    addressPrefix String
    Address-prefix for this VirtualHub.
    allowBranchToBranchTraffic Boolean
    Flag to control transit for VirtualRouter hub.
    azureFirewall SubResourceResponse
    The azureFirewall associated with this VirtualHub.
    expressRouteGateway SubResourceResponse
    The expressRouteGateway associated with this VirtualHub.
    hubRoutingPreference String
    The hubRoutingPreference of this VirtualHub.
    id String
    Resource ID.
    p2SVpnGateway SubResourceResponse
    The P2SVpnGateway associated with this VirtualHub.
    preferredRoutingGateway String
    The preferred gateway to route on-prem traffic
    routeTable VirtualHubRouteTableResponse
    The routeTable associated with this virtual hub.
    securityPartnerProvider SubResourceResponse
    The securityPartnerProvider associated with this VirtualHub.
    securityProviderName String
    The Security Provider name.
    sku String
    The sku of this VirtualHub.
    tags Map<String,String>
    Resource tags.
    virtualHubRouteTableV2s List<VirtualHubRouteTableV2Response>
    List of all virtual hub route table v2s associated with this VirtualHub.
    virtualRouterAsn Double
    VirtualRouter ASN.
    virtualRouterAutoScaleConfiguration VirtualRouterAutoScaleConfigurationResponse
    The VirtualHub Router autoscale configuration.
    virtualRouterIps List<String>
    VirtualRouter IPs.
    virtualWan SubResourceResponse
    The VirtualWAN to which the VirtualHub belongs.
    vpnGateway SubResourceResponse
    The VpnGateway associated with this VirtualHub.
    bgpConnections SubResourceResponse[]
    List of references to Bgp Connections.
    etag string
    A unique read-only string that changes whenever the resource is updated.
    ipConfigurations SubResourceResponse[]
    List of references to IpConfigurations.
    kind string
    Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
    location string
    Resource location.
    name string
    Resource name.
    provisioningState string
    The provisioning state of the virtual hub resource.
    routeMaps SubResourceResponse[]
    List of references to RouteMaps.
    routingState string
    The routing state.
    type string
    Resource type.
    addressPrefix string
    Address-prefix for this VirtualHub.
    allowBranchToBranchTraffic boolean
    Flag to control transit for VirtualRouter hub.
    azureFirewall SubResourceResponse
    The azureFirewall associated with this VirtualHub.
    expressRouteGateway SubResourceResponse
    The expressRouteGateway associated with this VirtualHub.
    hubRoutingPreference string
    The hubRoutingPreference of this VirtualHub.
    id string
    Resource ID.
    p2SVpnGateway SubResourceResponse
    The P2SVpnGateway associated with this VirtualHub.
    preferredRoutingGateway string
    The preferred gateway to route on-prem traffic
    routeTable VirtualHubRouteTableResponse
    The routeTable associated with this virtual hub.
    securityPartnerProvider SubResourceResponse
    The securityPartnerProvider associated with this VirtualHub.
    securityProviderName string
    The Security Provider name.
    sku string
    The sku of this VirtualHub.
    tags {[key: string]: string}
    Resource tags.
    virtualHubRouteTableV2s VirtualHubRouteTableV2Response[]
    List of all virtual hub route table v2s associated with this VirtualHub.
    virtualRouterAsn number
    VirtualRouter ASN.
    virtualRouterAutoScaleConfiguration VirtualRouterAutoScaleConfigurationResponse
    The VirtualHub Router autoscale configuration.
    virtualRouterIps string[]
    VirtualRouter IPs.
    virtualWan SubResourceResponse
    The VirtualWAN to which the VirtualHub belongs.
    vpnGateway SubResourceResponse
    The VpnGateway associated with this VirtualHub.
    bgp_connections Sequence[SubResourceResponse]
    List of references to Bgp Connections.
    etag str
    A unique read-only string that changes whenever the resource is updated.
    ip_configurations Sequence[SubResourceResponse]
    List of references to IpConfigurations.
    kind str
    Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
    location str
    Resource location.
    name str
    Resource name.
    provisioning_state str
    The provisioning state of the virtual hub resource.
    route_maps Sequence[SubResourceResponse]
    List of references to RouteMaps.
    routing_state str
    The routing state.
    type str
    Resource type.
    address_prefix str
    Address-prefix for this VirtualHub.
    allow_branch_to_branch_traffic bool
    Flag to control transit for VirtualRouter hub.
    azure_firewall SubResourceResponse
    The azureFirewall associated with this VirtualHub.
    express_route_gateway SubResourceResponse
    The expressRouteGateway associated with this VirtualHub.
    hub_routing_preference str
    The hubRoutingPreference of this VirtualHub.
    id str
    Resource ID.
    p2_s_vpn_gateway SubResourceResponse
    The P2SVpnGateway associated with this VirtualHub.
    preferred_routing_gateway str
    The preferred gateway to route on-prem traffic
    route_table VirtualHubRouteTableResponse
    The routeTable associated with this virtual hub.
    security_partner_provider SubResourceResponse
    The securityPartnerProvider associated with this VirtualHub.
    security_provider_name str
    The Security Provider name.
    sku str
    The sku of this VirtualHub.
    tags Mapping[str, str]
    Resource tags.
    virtual_hub_route_table_v2s Sequence[VirtualHubRouteTableV2Response]
    List of all virtual hub route table v2s associated with this VirtualHub.
    virtual_router_asn float
    VirtualRouter ASN.
    virtual_router_auto_scale_configuration VirtualRouterAutoScaleConfigurationResponse
    The VirtualHub Router autoscale configuration.
    virtual_router_ips Sequence[str]
    VirtualRouter IPs.
    virtual_wan SubResourceResponse
    The VirtualWAN to which the VirtualHub belongs.
    vpn_gateway SubResourceResponse
    The VpnGateway associated with this VirtualHub.
    bgpConnections List<Property Map>
    List of references to Bgp Connections.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    ipConfigurations List<Property Map>
    List of references to IpConfigurations.
    kind String
    Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
    location String
    Resource location.
    name String
    Resource name.
    provisioningState String
    The provisioning state of the virtual hub resource.
    routeMaps List<Property Map>
    List of references to RouteMaps.
    routingState String
    The routing state.
    type String
    Resource type.
    addressPrefix String
    Address-prefix for this VirtualHub.
    allowBranchToBranchTraffic Boolean
    Flag to control transit for VirtualRouter hub.
    azureFirewall Property Map
    The azureFirewall associated with this VirtualHub.
    expressRouteGateway Property Map
    The expressRouteGateway associated with this VirtualHub.
    hubRoutingPreference String
    The hubRoutingPreference of this VirtualHub.
    id String
    Resource ID.
    p2SVpnGateway Property Map
    The P2SVpnGateway associated with this VirtualHub.
    preferredRoutingGateway String
    The preferred gateway to route on-prem traffic
    routeTable Property Map
    The routeTable associated with this virtual hub.
    securityPartnerProvider Property Map
    The securityPartnerProvider associated with this VirtualHub.
    securityProviderName String
    The Security Provider name.
    sku String
    The sku of this VirtualHub.
    tags Map<String>
    Resource tags.
    virtualHubRouteTableV2s List<Property Map>
    List of all virtual hub route table v2s associated with this VirtualHub.
    virtualRouterAsn Number
    VirtualRouter ASN.
    virtualRouterAutoScaleConfiguration Property Map
    The VirtualHub Router autoscale configuration.
    virtualRouterIps List<String>
    VirtualRouter IPs.
    virtualWan Property Map
    The VirtualWAN to which the VirtualHub belongs.
    vpnGateway Property Map
    The VpnGateway associated with this VirtualHub.

    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.

    VirtualHubRouteResponse

    AddressPrefixes List<string>
    List of all addressPrefixes.
    NextHopIpAddress string
    NextHop ip address.
    AddressPrefixes []string
    List of all addressPrefixes.
    NextHopIpAddress string
    NextHop ip address.
    addressPrefixes List<String>
    List of all addressPrefixes.
    nextHopIpAddress String
    NextHop ip address.
    addressPrefixes string[]
    List of all addressPrefixes.
    nextHopIpAddress string
    NextHop ip address.
    address_prefixes Sequence[str]
    List of all addressPrefixes.
    next_hop_ip_address str
    NextHop ip address.
    addressPrefixes List<String>
    List of all addressPrefixes.
    nextHopIpAddress String
    NextHop ip address.

    VirtualHubRouteTableResponse

    routes List<Property Map>
    List of all routes.

    VirtualHubRouteTableV2Response

    Etag string
    A unique read-only string that changes whenever the resource is updated.
    ProvisioningState string
    The provisioning state of the virtual hub route table v2 resource.
    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.
    Routes List<Pulumi.AzureNative.Network.Inputs.VirtualHubRouteV2Response>
    List of all routes.
    Etag string
    A unique read-only string that changes whenever the resource is updated.
    ProvisioningState string
    The provisioning state of the virtual hub route table v2 resource.
    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.
    Routes []VirtualHubRouteV2Response
    List of all routes.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    provisioningState String
    The provisioning state of the virtual hub route table v2 resource.
    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.
    routes List<VirtualHubRouteV2Response>
    List of all routes.
    etag string
    A unique read-only string that changes whenever the resource is updated.
    provisioningState string
    The provisioning state of the virtual hub route table v2 resource.
    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.
    routes VirtualHubRouteV2Response[]
    List of all routes.
    etag str
    A unique read-only string that changes whenever the resource is updated.
    provisioning_state str
    The provisioning state of the virtual hub route table v2 resource.
    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.
    routes Sequence[VirtualHubRouteV2Response]
    List of all routes.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    provisioningState String
    The provisioning state of the virtual hub route table v2 resource.
    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.
    routes List<Property Map>
    List of all routes.

    VirtualHubRouteV2Response

    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.

    VirtualRouterAutoScaleConfigurationResponse

    MinCapacity int
    The minimum number of scale units for VirtualHub Router.
    MinCapacity int
    The minimum number of scale units for VirtualHub Router.
    minCapacity Integer
    The minimum number of scale units for VirtualHub Router.
    minCapacity number
    The minimum number of scale units for VirtualHub Router.
    min_capacity int
    The minimum number of scale units for VirtualHub Router.
    minCapacity Number
    The minimum number of scale units for VirtualHub Router.

    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