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

Adding GET operation for Network Virtual Appliance Inbound Secuirty Rules #29339

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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