Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed property added to LoadBalancerBackendAddress and new API #16334

Merged
merged 14 commits into from
Oct 14, 2021
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2021-05-01",
"subscriptionId": "subid",
"groupName": "rg1",
"loadBalancerName": "lb1",
"backendPoolName": "bp1",
"parameters": {
"ipAddress": "10.0.0.4"
}
},
"responses": {
"200": {
"body": {
"inboundNatRulePortMappings": [
{
"inboundNatRuleName": "natRule",
"protocol": "Tcp",
"frontendPort": 3389,
"backendPort": 3389
}
]
}
},
"202": {
"body": {
"inboundNatRulePortMappings": [
{
"inboundNatRuleName": "natRule",
"protocol": "Tcp",
"frontendPort": 3389,
"backendPort": 3389
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,82 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendPoolName}/queryInboundNatRulePortMapping": {
"post": {
"tags": [
"LoadBalancers"
],
"operationId": "LoadBalancers_ListInboundNatRulePortMappings",
"description": "List of inbound Nat rule port mappings.",
"parameters": [
{
"name": "groupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "loadBalancerName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the load balancer."
},
{
"name": "backendPoolName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the load balancer backend address pool."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/QueryInboundNatRulePortMappingRequest"
},
"description": "Query inbound NAT rule port mapping request."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Successful request for query inbound Nat rule port mapping.",
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"schema": {
"$ref": "#/definitions/BackendAddressInboundNatRulePortMappings"
}
},
"202": {
"description": "Accepted and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/BackendAddressInboundNatRulePortMappings"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Query inbound Nat rule port mapping": {
"$ref": "./examples/QueryInboundNatRulePortMapping.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -1639,6 +1715,14 @@
"readOnly": false,
"$ref": "./network.json#/definitions/SubResource",
"description": "Reference to the frontend ip address configuration defined in regional loadbalancer."
},
"inboundNatRulesPortMapping": {
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/NatRulePortMapping"
},
"description": "Collection of inbound Nat rule port mappings."
}
},
"description": "Properties of the load balancer backend addresses."
Expand Down Expand Up @@ -2441,6 +2525,81 @@
}
},
"description": "The properties of VIP swap request's frontend IP configuration object."
},
"NatRulePortMapping": {
"type": "object",
"properties": {
"inboundNatRuleName": {
"type": "string",
"description": "Name of inbound Nat rule."
},
"frontendPort": {
"type": "integer",
"format": "int32",
"description": "Frontend port."
},
"backendPort": {
"type": "integer",
"format": "int32",
"description": "Backend port."
}
},
"description": "Individual port mappings for inbound NAT rule created for backend pool."
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
},
"QueryInboundNatRulePortMappingRequest": {
"type": "object",
"properties": {
"ipConfiguration": {
"$ref": "./network.json#/definitions/SubResource",
"description": "NetworkInterfaceIPConfiguration set in load balancer backend address."
},
"ipAddress": {
"type": "string",
"description": "IP address set in load balancer backend address."
}
},
"description": "The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress should be set"
},
"BackendAddressInboundNatRulePortMappings": {
"type": "object",
"properties": {
"inboundNatRulePortMappings": {
"type": "array",
"items": {
"$ref": "#/definitions/InboundNatRulePortMapping"
},
"description": "Collection of inbound Nat rule port mappings."
}
},
"description": "The response for a QueryInboundNatRulePortMapping API."
},
"InboundNatRulePortMapping": {
"type": "object",
"properties": {
"inboundNatRuleName": {
"readOnly": true,
"type": "string",
"description": "Name of inbound Nat rule."
},
"protocol": {
"readOnly": true,
"$ref": "#/definitions/TransportProtocol",
"description": "The reference to the transport protocol used by the inbound Nat rule."
},
"frontendPort": {
"readOnly": true,
"type": "integer",
"format": "int32",
"description": "Frontend port."
},
"backendPort": {
"readOnly": true,
"type": "integer",
"format": "int32",
"description": "Backend port."
}
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
},
"description": "Individual port mappings for inbound NAT rule created for backend pool."
}
}
}