-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 2020-04-01 API specification for Microsoft.Peering (#9361)
* Remove readonly flag from microsoftSessionAddress properties in BgpSession; add an example for IxRs directPeeringType * Add 2020-04-01 API specification for Microsoft.Peering * Fix subId * Fix static validation issues * Fix GetPeeringReceivedRoutes example * Fix PeeringServiceSku * Add RPKI to custom-words * Update readme to include package-2020-04-01 * Fix input file path in package-2020-04-01 * Fix ErrorResponse data model Co-authored-by: Praneeth Sanapathi <[email protected]>
- Loading branch information
1 parent
3e8fb81
commit b345006
Showing
45 changed files
with
5,562 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...anager/Microsoft.Peering/stable/2020-04-01/examples/CheckServiceProviderAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subId", | ||
"api-version": "2020-04-01", | ||
"checkServiceProviderAvailabilityInput": { | ||
"peeringServiceLocation": "peeringServiceLocation1", | ||
"peeringServiceProvider": "peeringServiceProvider1" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": "Available" | ||
} | ||
} | ||
} |
169 changes: 169 additions & 0 deletions
169
...ng/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateDirectPeering.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rgName", | ||
"peeringName": "peeringName", | ||
"api-version": "2020-04-01", | ||
"peering": { | ||
"sku": { | ||
"name": "Basic_Direct_Free" | ||
}, | ||
"kind": "Direct", | ||
"properties": { | ||
"direct": { | ||
"connections": [ | ||
{ | ||
"bandwidthInMbps": 10000, | ||
"sessionAddressProvider": "Peer", | ||
"useForPeeringService": false, | ||
"peeringDBFacilityId": 99999, | ||
"bgpSession": { | ||
"sessionPrefixV4": "192.168.0.0/31", | ||
"sessionPrefixV6": "fd00::0/127", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16" | ||
}, | ||
{ | ||
"bandwidthInMbps": 10000, | ||
"sessionAddressProvider": "Microsoft", | ||
"useForPeeringService": true, | ||
"peeringDBFacilityId": 99999, | ||
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C" | ||
} | ||
], | ||
"peerAsn": { | ||
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" | ||
}, | ||
"directPeeringType": "Edge" | ||
}, | ||
"peeringLocation": "peeringLocation0" | ||
}, | ||
"location": "eastus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"sku": { | ||
"name": "Basic_Direct_Free", | ||
"tier": "Basic", | ||
"family": "Direct", | ||
"size": "Free" | ||
}, | ||
"kind": "Direct", | ||
"properties": { | ||
"direct": { | ||
"connections": [ | ||
{ | ||
"bandwidthInMbps": 10000, | ||
"provisionedBandwidthInMbps": 10000, | ||
"sessionAddressProvider": "Peer", | ||
"useForPeeringService": false, | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "ProvisioningFailed", | ||
"bgpSession": { | ||
"sessionPrefixV4": "192.168.0.0/31", | ||
"sessionPrefixV6": "fd00::0/127", | ||
"sessionStateV4": "Established", | ||
"sessionStateV6": "Established", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16", | ||
"errorMessage": "IPv4 address is already configured with a different ASN" | ||
}, | ||
{ | ||
"bandwidthInMbps": 10000, | ||
"provisionedBandwidthInMbps": 10000, | ||
"sessionAddressProvider": "Microsoft", | ||
"useForPeeringService": true, | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "Active", | ||
"bgpSession": { | ||
"sessionPrefixV4": "192.168.1.0/31", | ||
"sessionPrefixV6": "fd00::2/127", | ||
"sessionStateV4": "Established", | ||
"sessionStateV6": "Established", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C" | ||
} | ||
], | ||
"useForPeeringService": true, | ||
"peerAsn": { | ||
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" | ||
}, | ||
"directPeeringType": "Edge" | ||
}, | ||
"peeringLocation": "peeringLocation0", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"location": "eastus", | ||
"name": "peeringName", | ||
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName", | ||
"type": "Microsoft.Peering/peerings" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"sku": { | ||
"name": "Basic_Direct_Free", | ||
"tier": "Basic", | ||
"family": "Direct", | ||
"size": "Free" | ||
}, | ||
"kind": "Direct", | ||
"properties": { | ||
"direct": { | ||
"connections": [ | ||
{ | ||
"bandwidthInMbps": 10000, | ||
"provisionedBandwidthInMbps": 0, | ||
"sessionAddressProvider": "Peer", | ||
"useForPeeringService": false, | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "PendingApproval", | ||
"bgpSession": { | ||
"sessionPrefixV4": "192.168.0.0/31", | ||
"sessionPrefixV6": "fd00::0/127", | ||
"sessionStateV4": "PendingAdd", | ||
"sessionStateV6": "PendingAdd", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16" | ||
}, | ||
{ | ||
"bandwidthInMbps": 10000, | ||
"provisionedBandwidthInMbps": 0, | ||
"sessionAddressProvider": "Microsoft", | ||
"useForPeeringService": true, | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "PendingApproval", | ||
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C" | ||
} | ||
], | ||
"useForPeeringService": true, | ||
"peerAsn": { | ||
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" | ||
}, | ||
"directPeeringType": "Edge" | ||
}, | ||
"peeringLocation": "peeringLocation0", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"location": "eastus", | ||
"name": "peeringName", | ||
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName", | ||
"type": "Microsoft.Peering/peerings" | ||
} | ||
} | ||
} | ||
} |
166 changes: 166 additions & 0 deletions
166
.../resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateExchangePeering.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rgName", | ||
"peeringName": "peeringName", | ||
"api-version": "2020-04-01", | ||
"peering": { | ||
"sku": { | ||
"name": "Basic_Exchange_Free" | ||
}, | ||
"kind": "Exchange", | ||
"properties": { | ||
"exchange": { | ||
"connections": [ | ||
{ | ||
"peeringDBFacilityId": 99999, | ||
"bgpSession": { | ||
"peerSessionIPv4Address": "192.168.2.1", | ||
"peerSessionIPv6Address": "fd00::1", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D" | ||
}, | ||
{ | ||
"peeringDBFacilityId": 99999, | ||
"bgpSession": { | ||
"peerSessionIPv4Address": "192.168.2.2", | ||
"peerSessionIPv6Address": "fd00::2", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B" | ||
} | ||
], | ||
"peerAsn": { | ||
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" | ||
} | ||
}, | ||
"peeringLocation": "peeringLocation0" | ||
}, | ||
"location": "eastus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"sku": { | ||
"name": "Basic_Exchange_Free", | ||
"tier": "Basic", | ||
"family": "Exchange", | ||
"size": "Free" | ||
}, | ||
"kind": "Exchange", | ||
"properties": { | ||
"exchange": { | ||
"connections": [ | ||
{ | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "ProvisioningFailed", | ||
"bgpSession": { | ||
"microsoftSessionIPv4Address": "192.168.3.1", | ||
"microsoftSessionIPv6Address": "fd00::1:1", | ||
"peerSessionIPv4Address": "192.168.2.1", | ||
"peerSessionIPv6Address": "fd00::1", | ||
"sessionStateV4": "Established", | ||
"sessionStateV6": "Established", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D", | ||
"errorMessage": "IPv4 address is already configured with a different ASN" | ||
}, | ||
{ | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "Active", | ||
"bgpSession": { | ||
"microsoftSessionIPv4Address": "192.168.3.2", | ||
"microsoftSessionIPv6Address": "fd00::1:2", | ||
"peerSessionIPv4Address": "192.168.2.2", | ||
"peerSessionIPv6Address": "fd00::2", | ||
"sessionStateV4": "Established", | ||
"sessionStateV6": "Established", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B" | ||
} | ||
], | ||
"peerAsn": { | ||
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" | ||
} | ||
}, | ||
"peeringLocation": "peeringLocation0", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"location": "eastus", | ||
"name": "peeringName", | ||
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName", | ||
"type": "Microsoft.Peering/peerings" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"sku": { | ||
"name": "Basic_Exchange_Free", | ||
"tier": "Basic", | ||
"family": "Exchange", | ||
"size": "Free" | ||
}, | ||
"kind": "Exchange", | ||
"properties": { | ||
"exchange": { | ||
"connections": [ | ||
{ | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "PendingApproval", | ||
"bgpSession": { | ||
"microsoftSessionIPv4Address": "192.168.3.1", | ||
"microsoftSessionIPv6Address": "fd00::1:1", | ||
"peerSessionIPv4Address": "192.168.2.1", | ||
"peerSessionIPv6Address": "fd00::1", | ||
"sessionStateV4": "PendingAdd", | ||
"sessionStateV6": "PendingAdd", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D" | ||
}, | ||
{ | ||
"peeringDBFacilityId": 99999, | ||
"connectionState": "PendingApproval", | ||
"bgpSession": { | ||
"microsoftSessionIPv4Address": "192.168.3.2", | ||
"microsoftSessionIPv6Address": "fd00::1:2", | ||
"peerSessionIPv4Address": "192.168.2.2", | ||
"peerSessionIPv6Address": "fd00::2", | ||
"sessionStateV4": "PendingAdd", | ||
"sessionStateV6": "PendingAdd", | ||
"maxPrefixesAdvertisedV4": 1000, | ||
"maxPrefixesAdvertisedV6": 100, | ||
"md5AuthenticationKey": "test-md5-auth-key" | ||
}, | ||
"connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B" | ||
} | ||
], | ||
"peerAsn": { | ||
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" | ||
} | ||
}, | ||
"peeringLocation": "peeringLocation0", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"location": "eastus", | ||
"name": "peeringName", | ||
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName", | ||
"type": "Microsoft.Peering/peerings" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.