Skip to content

Commit

Permalink
Add globalReachEnabled, Add Get and list for peer express route circu…
Browse files Browse the repository at this point in the history
…it connections. Remove allowGlobalReach (#5266)

* Added GlobalReachEnabled field. Added GET and List apis for peer express route circuit connections. Removed AllowGlobalReach as it was a dead field and abandoned in favor for GlobalReachEnabled

* adding allow gloabl reach back

* fixed typo
  • Loading branch information
syfarogh authored and sergey-shandar committed Mar 1, 2019
1 parent ed6d838 commit 9052df9
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"parameters": {
"connectionName": "circuitConnectionUSAUS",
"resourceGroupName": "rg1",
"api-version": "2018-12-01",
"subscriptionId": "subid1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"connectionName": "60aee347-e889-4a42-8c1b-0aae8b1e4013",
"resourceGroupName": "rg1",
"api-version": "2018-12-01",
"subscriptionId": "subid1",
"circuitName": "ExpressRouteARMCircuitA",
"peeringName": "AzurePrivatePeering"
},
"responses": {
"200": {
"body": {
"name": "60aee347-e889-4a42-8c1b-0aae8b1e4013",
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/peerConnections/60aee347-e889-4a42-8c1b-0aae8b1e4013",
"etag": "W/\"6ffbbb06-da20-44ca-a34f-280c4653b1e9\"",
"properties": {
"provisioningState": "Succeeded",
"expressRouteCircuitPeering": {
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering"
},
"peerExpressRouteCircuitPeering": {
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitB/peerings/AzurePrivatePeering"
},
"addressPrefix": "20.0.0.0/29",
"circuitConnectionStatus": "Connected",
"connectionName": "circuitConnectionWestusEastus",
"authResourceGuid": ""
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"resourceGroupName": "rg1",
"api-version": "2018-12-01",
"subscriptionId": "subid1",
"circuitName": "ExpressRouteARMCircuitA",
"peeringName": "AzurePrivatePeering"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "60aee347-e889-4a42-8c1b-0aae8b1e4013",
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/peerConnections/60aee347-e889-4a42-8c1b-0aae8b1e4013",
"etag": "W/\"6ffbbb06-da20-44ca-a34f-280c4653b1e9\"",
"properties": {
"provisioningState": "Succeeded",
"expressRouteCircuitPeering": {
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering"
},
"peerExpressRouteCircuitPeering": {
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitB/peerings/AzurePrivatePeering"
},
"addressPrefix": "20.0.0.0/29",
"circuitConnectionStatus": "Connected",
"connectionName": "circuitConnectionWestusEastus",
"authResourceGuid": ""
}
},
{
"name": "c8b17193-8dd3-4f61-866d-8cdd2e2e268e",
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/peerConnections/c8b17193-8dd3-4f61-866d-8cdd2e2e268e",
"etag": "W/\"6ffbbb06-da20-44ca-a34f-280c4653b1e9\"",
"properties": {
"provisioningState": "Succeeded",
"expressRouteCircuitPeering": {
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering"
},
"peerExpressRouteCircuitPeering": {
"id": "/subscriptions/subid2/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitC/peerings/AzurePrivatePeering"
},
"addressPrefix": "30.0.0.0/29",
"circuitConnectionStatus": "Connected",
"connectionName": "circuitConnectionCentralusEastus",
"authResourceGuid": "64283012-d377-421d-8398-f6aeb2ac7ea0"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,116 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections/{connectionName}": {
"get": {
"tags": [
"PeerExpressRouteCircuitConnections"
],
"operationId": "PeerExpressRouteCircuitConnections_Get",
"description": "Gets the specified Peer Express Route Circuit Connection from the specified express route circuit.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "circuitName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the express route circuit."
},
{
"name": "peeringName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the peering."
},
{
"name": "connectionName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the peer express route circuit connection."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns the resulting Peer Express Route Circuit Connection resource.",
"schema": {
"$ref": "#/definitions/PeerExpressRouteCircuitConnection"
}
}
},
"x-ms-examples": {
"PeerExpressRouteCircuitConnectionGet": {
"$ref": "./examples/PeerExpressRouteCircuitConnectionGet.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections": {
"get": {
"tags": [
"PeerExpressRouteCircuitConnections"
],
"operationId": "PeerExpressRouteCircuitConnections_List",
"description": "Gets all global reach peer connections associated with a private peering in an express route circuit.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "circuitName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the circuit."
},
{
"name": "peeringName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the peering."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns a list of PeerExpressRouteCircuitConnections resources.",
"schema": {
"$ref": "#/definitions/PeerExpressRouteCircuitConnectionListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List Peer ExpressRouteCircuit Connection": { "$ref": "./examples/PeerExpressRouteCircuitConnectionList.json" }
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}": {
"delete": {
"tags": [
Expand Down Expand Up @@ -1510,6 +1620,14 @@
"$ref": "#/definitions/ExpressRouteCircuitConnection"
},
"description": "The list of circuit connections associated with Azure Private Peering for this circuit."
},
"peeredConnections": {
"type": "array",
"items": {
"$ref": "#/definitions/PeerExpressRouteCircuitConnection"
},
"readOnly": true,
"description": "The list of peered circuit connections associated with Azure Private Peering for this circuit."
}
}
},
Expand Down Expand Up @@ -1655,6 +1773,88 @@
},
"description": "Response for ListConnections API service call retrieves all global reach connections that belongs to a Private Peering for an ExpressRouteCircuit."
},
"PeerExpressRouteCircuitConnectionPropertiesFormat": {
"properties": {
"expressRouteCircuitPeering": {
"$ref": "./network.json#/definitions/SubResource",
"description": "Reference to Express Route Circuit Private Peering Resource of the circuit."
},
"peerExpressRouteCircuitPeering": {
"$ref": "./network.json#/definitions/SubResource",
"description": "Reference to Express Route Circuit Private Peering Resource of the peered circuit."
},
"addressPrefix": {
"type": "string",
"description": "/29 IP address space to carve out Customer addresses for tunnels."
},
"circuitConnectionStatus": {
"type": "string",
"description": "Express Route Circuit Connection State. Possible values are: 'Connected' and 'Disconnected'.",
"enum": [
"Connected",
"Connecting",
"Disconnected"
],
"readOnly": true,
"x-ms-enum": {
"name": "circuitConnectionStatus",
"modelAsString": true
}
},
"connectionName": {
"type": "string",
"description": "The name of the express route circuit connection resource."
},
"authResourceGuid": {
"type": "string",
"description": "The resource guid of the authorization used for the express route circuit connection."
},
"provisioningState": {
"type": "string",
"readOnly": true,
"description": "Provisioning state of the peer express route circuit connection resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'."
}
}
},
"PeerExpressRouteCircuitConnection": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/PeerExpressRouteCircuitConnectionPropertiesFormat"
},
"name": {
"type": "string",
"description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource."
},
"etag": {
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
}
},
"allOf": [
{
"$ref": "./network.json#/definitions/SubResource"
}
],
"description": "Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource."
},
"PeerExpressRouteCircuitConnectionListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/PeerExpressRouteCircuitConnection"
},
"description": "The global reach peer circuit connection associated with Private Peering in an ExpressRoute Circuit."
},
"nextLink": {
"type": "string",
"description": "The URL to get the next set of results."
}
},
"description": "Response for ListPeeredConnections API service call retrieves all global reach peer circuit connections that belongs to a Private Peering for an ExpressRouteCircuit."
},
"ExpressRouteCircuitSku": {
"properties": {
"name": {
Expand Down Expand Up @@ -1782,6 +1982,10 @@
"allowGlobalReach": {
"type": "boolean",
"description": "Flag to enable Global Reach on the circuit."
},
"globalReachEnabled": {
"type": "boolean",
"description": "Flag denoting Global reach status."
}
},
"description": "Properties of ExpressRouteCircuit."
Expand Down

0 comments on commit 9052df9

Please sign in to comment.