Skip to content

Commit

Permalink
Changes to add operation id for outbound rules (#4320)
Browse files Browse the repository at this point in the history
* Changes to add operation id for outbound rules

* Changes to make outbound rule similar to load balancing rule

* fix failures - add example json files

* fix failures

* Fixed line endings, specs, examples
  • Loading branch information
khannarhea authored and sergey-shandar committed Oct 29, 2018
1 parent 6c4312e commit e8f2b49
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "testrg",
"loadBalancerName": "lb1",
"outboundRuleName": "rule1",
"api-version": "2018-08-01"
},
"responses": {
"200": {
"body": {
"name": "rule1",
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1",
"etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"",
"properties": {
"provisioningState": "Succeeded",
"frontendIPConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend"
}
],
"allocatedOutboundPorts": 64,
"idleTimeoutInMinutes": 15,
"protocol": "Tcp",
"enableTcpReset": true,
"backendAddressPool": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "testrg",
"loadBalancerName": "lb1",
"api-version": "2018-08-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "rule1",
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1",
"etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"",
"properties": {
"provisioningState": "Succeeded",
"frontendIPConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend"
}
],
"allocatedOutboundPorts": 64,
"idleTimeoutInMinutes": 15,
"protocol": "Tcp",
"enableTcpReset": true,
"backendAddressPool": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"consumes": [
"application/json"
],

"produces": [
"application/json"
],
Expand Down Expand Up @@ -800,6 +801,100 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules": {
"get": {
"tags": [
"LoadBalancers"
],
"operationId": "LoadBalancerOutboundRules_List",
"description": "Gets all the outbound rules in a load balancer.",
"parameters": [
{
"name": "resourceGroupName",
"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."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns a list of LoadBalancer OutboundRule resources.",
"schema": {
"$ref": "#/definitions/LoadBalancerOutboundRuleListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"LoadBalancerOutboundRuleList": { "$ref": "./examples/LoadBalancerOutboundRuleList.json" }
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}": {
"get": {
"tags": [
"LoadBalancers"
],
"operationId": "LoadBalancerOutboundRules_Get",
"description": "Gets the specified load balancer outbound rule.",
"parameters": [
{
"name": "resourceGroupName",
"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": "outboundRuleName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the outbound rule."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns the resulting OutboundRule resource.",
"schema": {
"$ref": "#/definitions/OutboundRule"
}
}
},
"x-ms-examples": {
"LoadBalancerOutboundRuleGet": { "$ref": "./examples/LoadBalancerOutboundRuleGet.json" }
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces": {
"get": {
"tags": [
Expand Down Expand Up @@ -1658,6 +1753,23 @@
},
"description": "Response for ListLoadBalancingRule API service call."
},
"LoadBalancerOutboundRuleListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/OutboundRule"
},
"description": "A list of outbound rules in a load balancer."
},
"nextLink": {
"readOnly": true,
"type": "string",
"description": "The URL to get the next set of results."
}
},
"description": "Response for ListOutboundRule API service call."
},
"LoadBalancerProbeListResult": {
"properties": {
"value": {
Expand Down

0 comments on commit e8f2b49

Please sign in to comment.