Load Balancers - List Inbound Nat Rule Port Mappings

List of inbound NAT rule port mappings.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendPoolName}/queryInboundNatRulePortMapping?api-version=2023-06-01

URI Parameters

Name In Required Type Description
backendPoolName
path True

string

The name of the load balancer backend address pool.

groupName
path True

string

The name of the resource group.

loadBalancerName
path True

string

The name of the load balancer.

subscriptionId
path True

string

The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client API version.

Request Body

Name Type Description
ipAddress

string

IP address set in load balancer backend address.

ipConfiguration

SubResource

NetworkInterfaceIPConfiguration set in load balancer backend address.

Responses

Name Type Description
200 OK

BackendAddressInboundNatRulePortMappings

Successful request for query inbound NAT rule port mapping.

202 Accepted

BackendAddressInboundNatRulePortMappings

Accepted and the operation will complete asynchronously.

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Query inbound NAT rule port mapping

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bp1/queryInboundNatRulePortMapping?api-version=2023-06-01

{
  "ipAddress": "10.0.0.4"
}

Sample Response

{
  "inboundNatRulePortMappings": [
    {
      "inboundNatRuleName": "natRule",
      "protocol": "Tcp",
      "frontendPort": 3389,
      "backendPort": 3389
    }
  ]
}
Location: https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bp1/queryInboundNatRulePortMapping?api-version=2023-06-01
{
  "inboundNatRulePortMappings": [
    {
      "inboundNatRuleName": "natRule",
      "protocol": "Tcp",
      "frontendPort": 3389,
      "backendPort": 3389
    }
  ]
}

Definitions

Name Description
BackendAddressInboundNatRulePortMappings

The response for a QueryInboundNatRulePortMapping API.

CloudError

An error response from the service.

CloudErrorBody

An error response from the service.

InboundNatRulePortMapping

Individual port mappings for inbound NAT rule created for backend pool.

QueryInboundNatRulePortMappingRequest

The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress should be set

SubResource

Reference to another subresource.

TransportProtocol

The transport protocol for the endpoint.

BackendAddressInboundNatRulePortMappings

The response for a QueryInboundNatRulePortMapping API.

Name Type Description
inboundNatRulePortMappings

InboundNatRulePortMapping[]

Collection of inbound NAT rule port mappings.

CloudError

An error response from the service.

Name Type Description
error

CloudErrorBody

Cloud error body.

CloudErrorBody

An error response from the service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

InboundNatRulePortMapping

Individual port mappings for inbound NAT rule created for backend pool.

Name Type Description
backendPort

integer

Backend port.

frontendPort

integer

Frontend port.

inboundNatRuleName

string

Name of inbound NAT rule.

protocol

TransportProtocol

The reference to the transport protocol used by the inbound NAT rule.

QueryInboundNatRulePortMappingRequest

The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress should be set

Name Type Description
ipAddress

string

IP address set in load balancer backend address.

ipConfiguration

SubResource

NetworkInterfaceIPConfiguration set in load balancer backend address.

SubResource

Reference to another subresource.

Name Type Description
id

string

Resource ID.

TransportProtocol

The transport protocol for the endpoint.

Name Type Description
All

string

Tcp

string

Udp

string