Skip to content

Commit bb4175d

Browse files
jjsridharanSridharan J
and
Sridharan J
authored
New API spec for peering microsoft.peering 2022 01 01 (#17280)
* Adding 2022-01-01 version for Peering * update Peering spec for 2022-01-01 * updating 2022-01-01 Peering spec * update swagger examples * Adds base for updating Microsoft.Peering from version stable/2021-06-01 to version 2022-01-01 * Updates readme * Updates API version in new specs and examples * Creating new API spec version 2022-01-01 for Peering * Fix staging lint issues * update as per comment - updating x-ms-enum names Co-authored-by: Sridharan J <[email protected]>
1 parent c7f452d commit bb4175d

File tree

51 files changed

+6558
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+6558
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subId",
4+
"api-version": "2022-01-01",
5+
"checkServiceProviderAvailabilityInput": {
6+
"peeringServiceLocation": "peeringServiceLocation1",
7+
"peeringServiceProvider": "peeringServiceProvider1"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": "Available"
13+
}
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subId",
4+
"resourceGroupName": "rgName",
5+
"peeringName": "peeringName",
6+
"api-version": "2022-01-01",
7+
"peering": {
8+
"sku": {
9+
"name": "Basic_Direct_Free"
10+
},
11+
"kind": "Direct",
12+
"properties": {
13+
"direct": {
14+
"connections": [
15+
{
16+
"bandwidthInMbps": 10000,
17+
"sessionAddressProvider": "Peer",
18+
"useForPeeringService": false,
19+
"peeringDBFacilityId": 99999,
20+
"bgpSession": {
21+
"sessionPrefixV4": "192.168.0.0/31",
22+
"sessionPrefixV6": "fd00::0/127",
23+
"maxPrefixesAdvertisedV4": 1000,
24+
"maxPrefixesAdvertisedV6": 100,
25+
"md5AuthenticationKey": "test-md5-auth-key"
26+
},
27+
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
28+
},
29+
{
30+
"bandwidthInMbps": 10000,
31+
"sessionAddressProvider": "Microsoft",
32+
"useForPeeringService": true,
33+
"peeringDBFacilityId": 99999,
34+
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
35+
}
36+
],
37+
"peerAsn": {
38+
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
39+
},
40+
"directPeeringType": "Edge"
41+
},
42+
"peeringLocation": "peeringLocation0"
43+
},
44+
"location": "eastus"
45+
}
46+
},
47+
"responses": {
48+
"200": {
49+
"body": {
50+
"sku": {
51+
"name": "Basic_Direct_Free",
52+
"tier": "Basic",
53+
"family": "Direct",
54+
"size": "Free"
55+
},
56+
"kind": "Direct",
57+
"properties": {
58+
"direct": {
59+
"connections": [
60+
{
61+
"bandwidthInMbps": 10000,
62+
"provisionedBandwidthInMbps": 10000,
63+
"sessionAddressProvider": "Peer",
64+
"useForPeeringService": false,
65+
"microsoftTrackingId": "test-microsoft-reference-id-1",
66+
"peeringDBFacilityId": 99999,
67+
"connectionState": "ProvisioningFailed",
68+
"bgpSession": {
69+
"sessionPrefixV4": "192.168.0.0/31",
70+
"sessionPrefixV6": "fd00::0/127",
71+
"sessionStateV4": "Established",
72+
"sessionStateV6": "Established",
73+
"maxPrefixesAdvertisedV4": 1000,
74+
"maxPrefixesAdvertisedV6": 100,
75+
"md5AuthenticationKey": "test-md5-auth-key"
76+
},
77+
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16",
78+
"errorMessage": "IPv4 address is already configured with a different ASN"
79+
},
80+
{
81+
"bandwidthInMbps": 10000,
82+
"provisionedBandwidthInMbps": 10000,
83+
"sessionAddressProvider": "Microsoft",
84+
"useForPeeringService": true,
85+
"microsoftTrackingId": "test-microsoft-reference-id-2",
86+
"peeringDBFacilityId": 99999,
87+
"connectionState": "Active",
88+
"bgpSession": {
89+
"sessionPrefixV4": "192.168.1.0/31",
90+
"sessionPrefixV6": "fd00::2/127",
91+
"sessionStateV4": "Established",
92+
"sessionStateV6": "Established",
93+
"maxPrefixesAdvertisedV4": 1000,
94+
"maxPrefixesAdvertisedV6": 100,
95+
"md5AuthenticationKey": "test-md5-auth-key"
96+
},
97+
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
98+
}
99+
],
100+
"useForPeeringService": true,
101+
"peerAsn": {
102+
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
103+
},
104+
"directPeeringType": "Edge"
105+
},
106+
"peeringLocation": "peeringLocation0",
107+
"provisioningState": "Succeeded"
108+
},
109+
"location": "eastus",
110+
"name": "peeringName",
111+
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
112+
"type": "Microsoft.Peering/peerings"
113+
}
114+
},
115+
"201": {
116+
"body": {
117+
"sku": {
118+
"name": "Basic_Direct_Free",
119+
"tier": "Basic",
120+
"family": "Direct",
121+
"size": "Free"
122+
},
123+
"kind": "Direct",
124+
"properties": {
125+
"direct": {
126+
"connections": [
127+
{
128+
"bandwidthInMbps": 10000,
129+
"provisionedBandwidthInMbps": 0,
130+
"sessionAddressProvider": "Peer",
131+
"useForPeeringService": false,
132+
"microsoftTrackingId": "test-microsoft-reference-id-1",
133+
"peeringDBFacilityId": 99999,
134+
"connectionState": "PendingApproval",
135+
"bgpSession": {
136+
"sessionPrefixV4": "192.168.0.0/31",
137+
"sessionPrefixV6": "fd00::0/127",
138+
"sessionStateV4": "PendingAdd",
139+
"sessionStateV6": "PendingAdd",
140+
"maxPrefixesAdvertisedV4": 1000,
141+
"maxPrefixesAdvertisedV6": 100,
142+
"md5AuthenticationKey": "test-md5-auth-key"
143+
},
144+
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
145+
},
146+
{
147+
"bandwidthInMbps": 10000,
148+
"provisionedBandwidthInMbps": 0,
149+
"sessionAddressProvider": "Microsoft",
150+
"useForPeeringService": true,
151+
"microsoftTrackingId": "test-microsoft-reference-id-2",
152+
"peeringDBFacilityId": 99999,
153+
"connectionState": "PendingApproval",
154+
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
155+
}
156+
],
157+
"useForPeeringService": true,
158+
"peerAsn": {
159+
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
160+
},
161+
"directPeeringType": "Edge"
162+
},
163+
"peeringLocation": "peeringLocation0",
164+
"provisioningState": "Succeeded"
165+
},
166+
"location": "eastus",
167+
"name": "peeringName",
168+
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
169+
"type": "Microsoft.Peering/peerings"
170+
}
171+
}
172+
}
173+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subId",
4+
"resourceGroupName": "rgName",
5+
"peeringName": "peeringName",
6+
"api-version": "2022-01-01",
7+
"peering": {
8+
"sku": {
9+
"name": "Basic_Exchange_Free"
10+
},
11+
"kind": "Exchange",
12+
"properties": {
13+
"exchange": {
14+
"connections": [
15+
{
16+
"peeringDBFacilityId": 99999,
17+
"bgpSession": {
18+
"peerSessionIPv4Address": "192.168.2.1",
19+
"peerSessionIPv6Address": "fd00::1",
20+
"maxPrefixesAdvertisedV4": 1000,
21+
"maxPrefixesAdvertisedV6": 100,
22+
"md5AuthenticationKey": "test-md5-auth-key"
23+
},
24+
"connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
25+
},
26+
{
27+
"peeringDBFacilityId": 99999,
28+
"bgpSession": {
29+
"peerSessionIPv4Address": "192.168.2.2",
30+
"peerSessionIPv6Address": "fd00::2",
31+
"maxPrefixesAdvertisedV4": 1000,
32+
"maxPrefixesAdvertisedV6": 100,
33+
"md5AuthenticationKey": "test-md5-auth-key"
34+
},
35+
"connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
36+
}
37+
],
38+
"peerAsn": {
39+
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
40+
}
41+
},
42+
"peeringLocation": "peeringLocation0"
43+
},
44+
"location": "eastus"
45+
}
46+
},
47+
"responses": {
48+
"200": {
49+
"body": {
50+
"sku": {
51+
"name": "Basic_Exchange_Free",
52+
"tier": "Basic",
53+
"family": "Exchange",
54+
"size": "Free"
55+
},
56+
"kind": "Exchange",
57+
"properties": {
58+
"exchange": {
59+
"connections": [
60+
{
61+
"peeringDBFacilityId": 99999,
62+
"connectionState": "ProvisioningFailed",
63+
"bgpSession": {
64+
"microsoftSessionIPv4Address": "192.168.3.1",
65+
"microsoftSessionIPv6Address": "fd00::1:1",
66+
"peerSessionIPv4Address": "192.168.2.1",
67+
"peerSessionIPv6Address": "fd00::1",
68+
"sessionStateV4": "Established",
69+
"sessionStateV6": "Established",
70+
"maxPrefixesAdvertisedV4": 1000,
71+
"maxPrefixesAdvertisedV6": 100,
72+
"md5AuthenticationKey": "test-md5-auth-key"
73+
},
74+
"connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D",
75+
"errorMessage": "IPv4 address is already configured with a different ASN"
76+
},
77+
{
78+
"peeringDBFacilityId": 99999,
79+
"connectionState": "Active",
80+
"bgpSession": {
81+
"microsoftSessionIPv4Address": "192.168.3.2",
82+
"microsoftSessionIPv6Address": "fd00::1:2",
83+
"peerSessionIPv4Address": "192.168.2.2",
84+
"peerSessionIPv6Address": "fd00::2",
85+
"sessionStateV4": "Established",
86+
"sessionStateV6": "Established",
87+
"maxPrefixesAdvertisedV4": 1000,
88+
"maxPrefixesAdvertisedV6": 100,
89+
"md5AuthenticationKey": "test-md5-auth-key"
90+
},
91+
"connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
92+
}
93+
],
94+
"peerAsn": {
95+
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
96+
}
97+
},
98+
"peeringLocation": "peeringLocation0",
99+
"provisioningState": "Succeeded"
100+
},
101+
"location": "eastus",
102+
"name": "peeringName",
103+
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
104+
"type": "Microsoft.Peering/peerings"
105+
}
106+
},
107+
"201": {
108+
"body": {
109+
"sku": {
110+
"name": "Basic_Exchange_Free",
111+
"tier": "Basic",
112+
"family": "Exchange",
113+
"size": "Free"
114+
},
115+
"kind": "Exchange",
116+
"properties": {
117+
"exchange": {
118+
"connections": [
119+
{
120+
"peeringDBFacilityId": 99999,
121+
"connectionState": "PendingApproval",
122+
"bgpSession": {
123+
"microsoftSessionIPv4Address": "192.168.3.1",
124+
"microsoftSessionIPv6Address": "fd00::1:1",
125+
"peerSessionIPv4Address": "192.168.2.1",
126+
"peerSessionIPv6Address": "fd00::1",
127+
"sessionStateV4": "PendingAdd",
128+
"sessionStateV6": "PendingAdd",
129+
"maxPrefixesAdvertisedV4": 1000,
130+
"maxPrefixesAdvertisedV6": 100,
131+
"md5AuthenticationKey": "test-md5-auth-key"
132+
},
133+
"connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
134+
},
135+
{
136+
"peeringDBFacilityId": 99999,
137+
"connectionState": "PendingApproval",
138+
"bgpSession": {
139+
"microsoftSessionIPv4Address": "192.168.3.2",
140+
"microsoftSessionIPv6Address": "fd00::1:2",
141+
"peerSessionIPv4Address": "192.168.2.2",
142+
"peerSessionIPv6Address": "fd00::2",
143+
"sessionStateV4": "PendingAdd",
144+
"sessionStateV6": "PendingAdd",
145+
"maxPrefixesAdvertisedV4": 1000,
146+
"maxPrefixesAdvertisedV6": 100,
147+
"md5AuthenticationKey": "test-md5-auth-key"
148+
},
149+
"connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
150+
}
151+
],
152+
"peerAsn": {
153+
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
154+
}
155+
},
156+
"peeringLocation": "peeringLocation0",
157+
"provisioningState": "Succeeded"
158+
},
159+
"location": "eastus",
160+
"name": "peeringName",
161+
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
162+
"type": "Microsoft.Peering/peerings"
163+
}
164+
}
165+
}
166+
}

0 commit comments

Comments
 (0)