Skip to content

Commit

Permalink
Adding GET operaton for Network Virtual Appliance Inbound Secuirty Ru…
Browse files Browse the repository at this point in the history
…le (#29339) (#29375)
  • Loading branch information
ashutmi authored Jun 10, 2024
1 parent 6c3e430 commit 51433e1
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2024-01-01",
"ruleCollectionName": "rule1",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"networkVirtualApplianceName": "nva"
},
"responses": {
"200": {
"body": {
"name": "rule1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkVirtualAppliances/nva/InboundSecurityRules/rule1",
"etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"",
"properties": {
"ruleType": "Permanent",
"provisioningState": "Succeeded",
"rules": [
{
"name": "inboundRule1",
"protocol": "TCP",
"sourceAddressPrefix": "50.20.121.5/32",
"destinationPortRange": 22,
"destinationPortRanges": [
"80-100"
],
"appliesOn": [
"slbip1"
]
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,58 @@
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
}
},
"get": {
"operationId": "InboundSecurityRule_Get",
"description": "Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "networkVirtualApplianceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the Network Virtual Appliance."
},
{
"name": "ruleCollectionName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of security rule collection."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns the requested Network Virtual Appliance Inbound Security Rules Collection resource.",
"schema": {
"$ref": "#/definitions/InboundSecurityRule"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Create Network Virtual Appliance Inbound Security Rules": {
"$ref": "./examples/InboundSecurityRuleGet.json"
}
}
}
}
},
Expand Down

0 comments on commit 51433e1

Please sign in to comment.