1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. getLocalNetworkGateway
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

azure-native.network.getLocalNetworkGateway

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

    Gets the specified local network gateway in a resource group.

    Uses Azure REST API version 2024-05-01.

    Other available API versions: 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 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 getLocalNetworkGateway

    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 getLocalNetworkGateway(args: GetLocalNetworkGatewayArgs, opts?: InvokeOptions): Promise<GetLocalNetworkGatewayResult>
    function getLocalNetworkGatewayOutput(args: GetLocalNetworkGatewayOutputArgs, opts?: InvokeOptions): Output<GetLocalNetworkGatewayResult>
    def get_local_network_gateway(local_network_gateway_name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetLocalNetworkGatewayResult
    def get_local_network_gateway_output(local_network_gateway_name: Optional[pulumi.Input[str]] = None,
                                  resource_group_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetLocalNetworkGatewayResult]
    func LookupLocalNetworkGateway(ctx *Context, args *LookupLocalNetworkGatewayArgs, opts ...InvokeOption) (*LookupLocalNetworkGatewayResult, error)
    func LookupLocalNetworkGatewayOutput(ctx *Context, args *LookupLocalNetworkGatewayOutputArgs, opts ...InvokeOption) LookupLocalNetworkGatewayResultOutput

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

    public static class GetLocalNetworkGateway 
    {
        public static Task<GetLocalNetworkGatewayResult> InvokeAsync(GetLocalNetworkGatewayArgs args, InvokeOptions? opts = null)
        public static Output<GetLocalNetworkGatewayResult> Invoke(GetLocalNetworkGatewayInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLocalNetworkGatewayResult> getLocalNetworkGateway(GetLocalNetworkGatewayArgs args, InvokeOptions options)
    public static Output<GetLocalNetworkGatewayResult> getLocalNetworkGateway(GetLocalNetworkGatewayArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:network:getLocalNetworkGateway
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LocalNetworkGatewayName string
    The name of the local network gateway.
    ResourceGroupName string
    The name of the resource group.
    LocalNetworkGatewayName string
    The name of the local network gateway.
    ResourceGroupName string
    The name of the resource group.
    localNetworkGatewayName String
    The name of the local network gateway.
    resourceGroupName String
    The name of the resource group.
    localNetworkGatewayName string
    The name of the local network gateway.
    resourceGroupName string
    The name of the resource group.
    local_network_gateway_name str
    The name of the local network gateway.
    resource_group_name str
    The name of the resource group.
    localNetworkGatewayName String
    The name of the local network gateway.
    resourceGroupName String
    The name of the resource group.

    getLocalNetworkGateway Result

    The following output properties are available:

    AzureApiVersion string
    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.
    ProvisioningState string
    The provisioning state of the local network gateway resource.
    ResourceGuid string
    The resource GUID property of the local network gateway resource.
    Type string
    Resource type.
    BgpSettings Pulumi.AzureNative.Network.Outputs.BgpSettingsResponse
    Local network gateway's BGP speaker settings.
    Fqdn string
    FQDN of local network gateway.
    GatewayIpAddress string
    IP address of local network gateway.
    Id string
    Resource ID.
    LocalNetworkAddressSpace Pulumi.AzureNative.Network.Outputs.AddressSpaceResponse
    Local network site address space.
    Location string
    Resource location.
    Tags Dictionary<string, string>
    Resource tags.
    AzureApiVersion string
    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.
    ProvisioningState string
    The provisioning state of the local network gateway resource.
    ResourceGuid string
    The resource GUID property of the local network gateway resource.
    Type string
    Resource type.
    BgpSettings BgpSettingsResponse
    Local network gateway's BGP speaker settings.
    Fqdn string
    FQDN of local network gateway.
    GatewayIpAddress string
    IP address of local network gateway.
    Id string
    Resource ID.
    LocalNetworkAddressSpace AddressSpaceResponse
    Local network site address space.
    Location string
    Resource location.
    Tags map[string]string
    Resource tags.
    azureApiVersion String
    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.
    provisioningState String
    The provisioning state of the local network gateway resource.
    resourceGuid String
    The resource GUID property of the local network gateway resource.
    type String
    Resource type.
    bgpSettings BgpSettingsResponse
    Local network gateway's BGP speaker settings.
    fqdn String
    FQDN of local network gateway.
    gatewayIpAddress String
    IP address of local network gateway.
    id String
    Resource ID.
    localNetworkAddressSpace AddressSpaceResponse
    Local network site address space.
    location String
    Resource location.
    tags Map<String,String>
    Resource tags.
    azureApiVersion string
    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.
    provisioningState string
    The provisioning state of the local network gateway resource.
    resourceGuid string
    The resource GUID property of the local network gateway resource.
    type string
    Resource type.
    bgpSettings BgpSettingsResponse
    Local network gateway's BGP speaker settings.
    fqdn string
    FQDN of local network gateway.
    gatewayIpAddress string
    IP address of local network gateway.
    id string
    Resource ID.
    localNetworkAddressSpace AddressSpaceResponse
    Local network site address space.
    location string
    Resource location.
    tags {[key: string]: string}
    Resource tags.
    azure_api_version str
    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.
    provisioning_state str
    The provisioning state of the local network gateway resource.
    resource_guid str
    The resource GUID property of the local network gateway resource.
    type str
    Resource type.
    bgp_settings BgpSettingsResponse
    Local network gateway's BGP speaker settings.
    fqdn str
    FQDN of local network gateway.
    gateway_ip_address str
    IP address of local network gateway.
    id str
    Resource ID.
    local_network_address_space AddressSpaceResponse
    Local network site address space.
    location str
    Resource location.
    tags Mapping[str, str]
    Resource tags.
    azureApiVersion String
    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.
    provisioningState String
    The provisioning state of the local network gateway resource.
    resourceGuid String
    The resource GUID property of the local network gateway resource.
    type String
    Resource type.
    bgpSettings Property Map
    Local network gateway's BGP speaker settings.
    fqdn String
    FQDN of local network gateway.
    gatewayIpAddress String
    IP address of local network gateway.
    id String
    Resource ID.
    localNetworkAddressSpace Property Map
    Local network site address space.
    location String
    Resource location.
    tags Map<String>
    Resource tags.

    Supporting Types

    AddressSpaceResponse

    AddressPrefixes List<string>
    A list of address blocks reserved for this virtual network in CIDR notation.
    IpamPoolPrefixAllocations List<Pulumi.AzureNative.Network.Inputs.IpamPoolPrefixAllocationResponse>
    A list of IPAM Pools allocating IP address prefixes.
    AddressPrefixes []string
    A list of address blocks reserved for this virtual network in CIDR notation.
    IpamPoolPrefixAllocations []IpamPoolPrefixAllocationResponse
    A list of IPAM Pools allocating IP address prefixes.
    addressPrefixes List<String>
    A list of address blocks reserved for this virtual network in CIDR notation.
    ipamPoolPrefixAllocations List<IpamPoolPrefixAllocationResponse>
    A list of IPAM Pools allocating IP address prefixes.
    addressPrefixes string[]
    A list of address blocks reserved for this virtual network in CIDR notation.
    ipamPoolPrefixAllocations IpamPoolPrefixAllocationResponse[]
    A list of IPAM Pools allocating IP address prefixes.
    address_prefixes Sequence[str]
    A list of address blocks reserved for this virtual network in CIDR notation.
    ipam_pool_prefix_allocations Sequence[IpamPoolPrefixAllocationResponse]
    A list of IPAM Pools allocating IP address prefixes.
    addressPrefixes List<String>
    A list of address blocks reserved for this virtual network in CIDR notation.
    ipamPoolPrefixAllocations List<Property Map>
    A list of IPAM Pools allocating IP address prefixes.

    BgpSettingsResponse

    Asn double
    The BGP speaker's ASN.
    BgpPeeringAddress string
    The BGP peering address and BGP identifier of this BGP speaker.
    BgpPeeringAddresses List<Pulumi.AzureNative.Network.Inputs.IPConfigurationBgpPeeringAddressResponse>
    BGP peering address with IP configuration ID for virtual network gateway.
    PeerWeight int
    The weight added to routes learned from this BGP speaker.
    Asn float64
    The BGP speaker's ASN.
    BgpPeeringAddress string
    The BGP peering address and BGP identifier of this BGP speaker.
    BgpPeeringAddresses []IPConfigurationBgpPeeringAddressResponse
    BGP peering address with IP configuration ID for virtual network gateway.
    PeerWeight int
    The weight added to routes learned from this BGP speaker.
    asn Double
    The BGP speaker's ASN.
    bgpPeeringAddress String
    The BGP peering address and BGP identifier of this BGP speaker.
    bgpPeeringAddresses List<IPConfigurationBgpPeeringAddressResponse>
    BGP peering address with IP configuration ID for virtual network gateway.
    peerWeight Integer
    The weight added to routes learned from this BGP speaker.
    asn number
    The BGP speaker's ASN.
    bgpPeeringAddress string
    The BGP peering address and BGP identifier of this BGP speaker.
    bgpPeeringAddresses IPConfigurationBgpPeeringAddressResponse[]
    BGP peering address with IP configuration ID for virtual network gateway.
    peerWeight number
    The weight added to routes learned from this BGP speaker.
    asn float
    The BGP speaker's ASN.
    bgp_peering_address str
    The BGP peering address and BGP identifier of this BGP speaker.
    bgp_peering_addresses Sequence[IPConfigurationBgpPeeringAddressResponse]
    BGP peering address with IP configuration ID for virtual network gateway.
    peer_weight int
    The weight added to routes learned from this BGP speaker.
    asn Number
    The BGP speaker's ASN.
    bgpPeeringAddress String
    The BGP peering address and BGP identifier of this BGP speaker.
    bgpPeeringAddresses List<Property Map>
    BGP peering address with IP configuration ID for virtual network gateway.
    peerWeight Number
    The weight added to routes learned from this BGP speaker.

    IPConfigurationBgpPeeringAddressResponse

    DefaultBgpIpAddresses List<string>
    The list of default BGP peering addresses which belong to IP configuration.
    TunnelIpAddresses List<string>
    The list of tunnel public IP addresses which belong to IP configuration.
    CustomBgpIpAddresses List<string>
    The list of custom BGP peering addresses which belong to IP configuration.
    IpconfigurationId string
    The ID of IP configuration which belongs to gateway.
    DefaultBgpIpAddresses []string
    The list of default BGP peering addresses which belong to IP configuration.
    TunnelIpAddresses []string
    The list of tunnel public IP addresses which belong to IP configuration.
    CustomBgpIpAddresses []string
    The list of custom BGP peering addresses which belong to IP configuration.
    IpconfigurationId string
    The ID of IP configuration which belongs to gateway.
    defaultBgpIpAddresses List<String>
    The list of default BGP peering addresses which belong to IP configuration.
    tunnelIpAddresses List<String>
    The list of tunnel public IP addresses which belong to IP configuration.
    customBgpIpAddresses List<String>
    The list of custom BGP peering addresses which belong to IP configuration.
    ipconfigurationId String
    The ID of IP configuration which belongs to gateway.
    defaultBgpIpAddresses string[]
    The list of default BGP peering addresses which belong to IP configuration.
    tunnelIpAddresses string[]
    The list of tunnel public IP addresses which belong to IP configuration.
    customBgpIpAddresses string[]
    The list of custom BGP peering addresses which belong to IP configuration.
    ipconfigurationId string
    The ID of IP configuration which belongs to gateway.
    default_bgp_ip_addresses Sequence[str]
    The list of default BGP peering addresses which belong to IP configuration.
    tunnel_ip_addresses Sequence[str]
    The list of tunnel public IP addresses which belong to IP configuration.
    custom_bgp_ip_addresses Sequence[str]
    The list of custom BGP peering addresses which belong to IP configuration.
    ipconfiguration_id str
    The ID of IP configuration which belongs to gateway.
    defaultBgpIpAddresses List<String>
    The list of default BGP peering addresses which belong to IP configuration.
    tunnelIpAddresses List<String>
    The list of tunnel public IP addresses which belong to IP configuration.
    customBgpIpAddresses List<String>
    The list of custom BGP peering addresses which belong to IP configuration.
    ipconfigurationId String
    The ID of IP configuration which belongs to gateway.

    IpamPoolPrefixAllocationResponse

    AllocatedAddressPrefixes List<string>
    List of assigned IP address prefixes in the IpamPool of the associated resource.
    Id string
    Resource id of the associated Azure IpamPool resource.
    NumberOfIpAddresses string
    Number of IP addresses to allocate.
    AllocatedAddressPrefixes []string
    List of assigned IP address prefixes in the IpamPool of the associated resource.
    Id string
    Resource id of the associated Azure IpamPool resource.
    NumberOfIpAddresses string
    Number of IP addresses to allocate.
    allocatedAddressPrefixes List<String>
    List of assigned IP address prefixes in the IpamPool of the associated resource.
    id String
    Resource id of the associated Azure IpamPool resource.
    numberOfIpAddresses String
    Number of IP addresses to allocate.
    allocatedAddressPrefixes string[]
    List of assigned IP address prefixes in the IpamPool of the associated resource.
    id string
    Resource id of the associated Azure IpamPool resource.
    numberOfIpAddresses string
    Number of IP addresses to allocate.
    allocated_address_prefixes Sequence[str]
    List of assigned IP address prefixes in the IpamPool of the associated resource.
    id str
    Resource id of the associated Azure IpamPool resource.
    number_of_ip_addresses str
    Number of IP addresses to allocate.
    allocatedAddressPrefixes List<String>
    List of assigned IP address prefixes in the IpamPool of the associated resource.
    id String
    Resource id of the associated Azure IpamPool resource.
    numberOfIpAddresses String
    Number of IP addresses to allocate.

    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 v2 docs if using the v2 version of this package.
    Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi