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

[Merge from master] Add InboundSecurityRule, virtualRouterPeerAdvertisedRoute and virtualRouterPeerLearnedRoute #10736

Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"parameters": {
"api-version": "2020-06-01",
"ruleCollectionName": "rule1",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"networkVirtualApplianceName": "nva",
"parameters": {
"properties": {
"rules": [
{
"protocol": "TCP",
"sourceAddressPrefix": "50.20.121.5/32",
"destinationPortRange": 22
}
]
}
}
},
"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": {
"provisioningState": "Succeeded",
"rules": [
{
"protocol": "TCP",
"sourceAddressPrefix": "50.20.121.5/32",
"destinationPortRange": 22
}
]
}
}
},
"201": {
"body": {
"name": "rule1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkVirtualAppliances/nva/InboundSecurityRules/rule1",
"etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"",
"properties": {
"provisioningState": "Succeeded",
"rules": [
{
"protocol": "TCP",
"sourceAddressPrefix": "50.20.121.5/32",
"destinationPortRange": 22
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networtkVirtualAppliances/nva/virtualApplianceSites/site1"
}
],
"inboundSecurityRules": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkVirtualAppliances/nva/InboundSecurityRules/rule1"
}
],
"provisioningState": "Succeeded",
"bootStrapConfigurationBlobs": [
"https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networtkVirtualAppliances/nva/virtualApplianceSites/site1"
}
],
"inboundSecurityRules": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkVirtualAppliances/nva/InboundSecurityRules/rule1"
}
],
"provisioningState": "Succeeded",
"bootStrapConfigurationBlobs": [
"https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networtkVirtualAppliances/nva/virtualApplianceSites/site1"
}
],
"inboundSecurityRules": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkVirtualAppliances/nva/InboundSecurityRules/rule1"
}
],
"provisioningState": "Succeeded",
"bootStrapConfigurationBlobs": [
"https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networtkVirtualAppliances/nva/virtualApplianceSites/site1"
}
],
"inboundSecurityRules": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkVirtualAppliances/nva/InboundSecurityRules/rule1"
}
],
"provisioningState": "Succeeded",
"bootStrapConfigurationBlobs": [
"https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig"
Expand Down Expand Up @@ -119,6 +124,11 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networtkVirtualAppliances/nva/virtualApplianceSites/site1"
}
],
"inboundSecurityRules": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkVirtualAppliances/nva/InboundSecurityRules/rule1"
}
],
"provisioningState": "Succeeded",
"bootStrapConfigurationBlobs": [
"https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"hubName": "virtualRouter1",
"connectionName": "peer1"
},
"responses": {
"202": {},
"200": {
"body": {
"value": [
{
"localAddress": "10.85.3.4",
"network": "10.45.0.0/16",
"nextHop": "10.85.3.4",
"sourcePeer": "10.85.3.4",
"origin": "Igp",
"asPath": "65515",
"weight": 0
},
{
"localAddress": "10.85.3.4",
"network": "10.85.0.0/16",
"nextHop": "10.85.3.4",
"sourcePeer": "10.85.3.4",
"origin": "Igp",
"asPath": "65515",
"weight": 0
},
{
"localAddress": "10.85.3.4",
"network": "10.100.0.0/16",
"nextHop": "10.85.3.4",
"sourcePeer": "10.85.3.4",
"origin": "Igp",
"asPath": "65515",
"weight": 0
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"hubName": "virtualRouter1",
"connectionName": "peer1"
},
"responses": {
"202": {},
"200": {
"body": {
"value": [
{
"localAddress": "10.85.3.4",
"network": "10.101.0.0/16",
"nextHop": "10.85.4.4",
"sourcePeer": "10.85.4.4",
"origin": "EBgp",
"asPath": "65002-65001",
"weight": 32768
},
{
"localAddress": "10.85.3.5",
"network": "10.101.0.0/16",
"nextHop": "10.85.4.4",
"sourcePeer": "10.85.4.4",
"origin": "EBgp",
"asPath": "65002-65001",
"weight": 32768
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,79 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}": {
"put": {
"operationId": "InboundSecurityRule_CreateOrUpdate",
"description": "Creates or updates the specified Network Virtual Appliance Inbound Security Rules.",
"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."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/InboundSecurityRule"
},
"description": "Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules operation."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns the resulting Network Virtual Appliance Inbound Security Rules resource.",
"schema": {
"$ref": "#/definitions/InboundSecurityRule"
}
},
"201": {
"description": "Request received successfully. The operation returns the resulting Network Virtual Appliance Inbound Security Rules 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/InboundSecurityRulePut.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -771,6 +844,14 @@
"$ref": "./network.json#/definitions/SubResource"
}
},
"inboundSecurityRules": {
"type": "array",
"readOnly": true,
"description": "List of references to InboundSecurityRules.",
"items": {
"$ref": "./network.json#/definitions/SubResource"
}
},
"provisioningState": {
"description": "The provisioning state of the resource.",
"readOnly": true,
Expand Down Expand Up @@ -1009,6 +1090,81 @@
}
},
"description": "Response for ListNetworkVirtualApplianceSkus API service call."
},
"InboundSecurityRule": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/InboundSecurityRuleProperties",
"description": "The properties of the Inbound Security Rules."
},
"name": {
"type": "string",
"description": "Name of security rule collection."
},
"etag": {
"type": "string",
"readOnly": true,
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"readOnly": true,
"description": "NVA inbound security rule type."
}
},
"allOf": [
{
"$ref": "./network.json#/definitions/SubResource"
}
],
"description": "NVA Inbound Security Rule resource."
},
"InboundSecurityRuleProperties": {
"properties": {
"rules": {
"type": "array",
"readOnly": false,
"description": "List of allowed rules.",
"items": {
"$ref": "#/definitions/InboundSecurityRules"
}
},
"provisioningState": {
"description": "The provisioning state of the resource.",
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState"
}
},
"description": "Properties of the Inbound Security Rules resource."
},
"InboundSecurityRules": {
"properties": {
"protocol": {
"type": "string",
"enum": [
"TCP",
"UDP"
],
"x-ms-enum": {
"name": "InboundSecurityRulesProtocol",
"modelAsString": true
},
"description": "Protocol. This should be either TCP or UDP."
},
"sourceAddressPrefix": {
"type": "string",
"description": "The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed."
},
"destinationPortRange": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 65535,
"description": "NVA port ranges to be opened up. One needs to provide specific ports."
}
},
"description": "Properties of the Inbound Security Rules resource."
}
}
}
Loading