Skip to content

Commit

Permalink
Updated load balancer swagger with missing backendAddress property an…
Browse files Browse the repository at this point in the history
…d queryInboundNatRulePortMapping API
  • Loading branch information
irrogozh committed Oct 11, 2021
1 parent 4c7ec47 commit e3f5bb3
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2021-03-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_QueryInboundNatRulePortMapping",
"description": "Query inbound Nat rule port mapping.",
"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.",
"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": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Check connectivity": {
"$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,13 @@
"readOnly": false,
"$ref": "./network.json#/definitions/SubResource",
"description": "Reference to the frontend ip address configuration defined in regional loadbalancer."
},
"inboundNatRulesPortMapping": {
"type": "array",
"items": {
"$ref": "#/definitions/NatRulePortMapping"
},
"description": "Collection of inboound Nat rule port mappings."
}
},
"description": "Properties of the load balancer backend addresses."
Expand Down Expand Up @@ -2441,6 +2524,73 @@
}
},
"description": "The properties of VIP swap request's frontend IP configuration object."
},
"NatRulePortMapping": {
"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."
},
"QueryInboundNatRulePortMappingRequest": {
"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."
},
"BackendAddressInboundNatRulePortMappings": {
"properties": {
"inboundNatRulePortMappings": {
"type": "array",
"items": {
"$ref": "#/definitions/InboundNatRulePortMapping"
},
"description": "Collection of inboound Nat rule port mappings."
}
},
"description": "The response for a QueryInboundNatRulePortMapping API."
},
"InboundNatRulePortMapping": {
"properties": {
"inboundNatRuleName": {
"type": "string",
"description": "Name of inbound Nat rule."
},
"protocol": {
"$ref": "#/definitions/TransportProtocol",
"description": "The reference to the transport protocol used by the 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."
}
}
}

0 comments on commit e3f5bb3

Please sign in to comment.