diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/InboundSecurityRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/InboundSecurityRuleGet.json new file mode 100644 index 000000000000..a8e2baa3823b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/InboundSecurityRuleGet.json @@ -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" + ] + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json index d4dbe68071b0..811205ec51b1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json @@ -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" + } + } } } },