2019-08-01-preview Peering Service (#6886)

* Adding ew Api which adds a connection identifier.
This is a unique hash for each connection so we can determine when a connection is deleted or if it is updated.

* added 06-01 to readme

* added location to list Legacy example

* Updated Models

* Update readme.typescript.md

* Updated Swagger and api-version

* pretifies the json.

* Updated Docs

* removed \r\n from description.
This commit is contained in:
Riley McKenna 2019-08-22 13:56:40 -07:00 коммит произвёл Sergey Shandar
Родитель 66e284c601
Коммит 7eaa16abc6
32 изменённых файлов: 4039 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,15 @@
{
"parameters": {
"subscriptionId": "subId",
"api-version": "2019-08-01-preview",
"checkServiceProviderAvailabilityInput": {
"peeringServiceLocation": "peeringServiceLocation1",
"peeringServiceProvider": "peeringServiceProvider1"
}
},
"responses": {
"200": {
"body": "Available"
}
}
}

Просмотреть файл

@ -0,0 +1,185 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringName": "peeringName",
"api-version": "2019-08-01-preview",
"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,
"bgpSession": {
"sessionPrefixV4": "192.168.1.0/31",
"sessionPrefixV6": "fd00::2/127",
"maxPrefixesAdvertisedV4": 1000,
"maxPrefixesAdvertisedV6": 100,
"md5AuthenticationKey": "test-md5-auth-key"
},
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
}
],
"useForPeeringService": false,
"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": "Active",
"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"
},
{
"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": false,
"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",
"bgpSession": {
"sessionPrefixV4": "192.168.1.0/31",
"sessionPrefixV6": "fd00::2/127",
"sessionStateV4": "PendingAdd",
"sessionStateV6": "PendingAdd",
"maxPrefixesAdvertisedV4": 1000,
"maxPrefixesAdvertisedV6": 100,
"md5AuthenticationKey": "test-md5-auth-key"
},
"connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
}
],
"useForPeeringService": false,
"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"
}
}
}
}

Просмотреть файл

@ -0,0 +1,165 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringName": "peeringName",
"api-version": "2019-08-01-preview",
"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": "Active",
"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"
},
{
"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"
}
}
}
}

Просмотреть файл

@ -0,0 +1,66 @@
{
"parameters": {
"subscriptionId": "subId",
"peerAsnName": "peerAsnName",
"api-version": "2019-08-01-preview",
"peerAsn": {
"properties": {
"peerAsn": 65000,
"peerContactInfo": {
"emails": [
"abc@contoso.com",
"xyz@contoso.com"
],
"phone": [
"+1 (234) 567-8900"
]
},
"peerName": "Contoso"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"peerAsn": 65000,
"peerContactInfo": {
"emails": [
"abc@contoso.com",
"xyz@contoso.com"
],
"phone": [
"+1 (234) 567-8900"
]
},
"peerName": "Contoso",
"validationState": "Pending"
},
"name": "peerAsnName",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
"type": "Microsoft.Peering/peerAsns"
}
},
"201": {
"body": {
"properties": {
"peerAsn": 65000,
"peerContactInfo": {
"emails": [
"abc@contoso.com",
"xyz@contoso.com"
],
"phone": [
"+1 (234) 567-8900"
]
},
"peerName": "Contoso",
"validationState": "Pending"
},
"name": "peerAsnName",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
"type": "Microsoft.Peering/peerAsns"
}
}
}
}

Просмотреть файл

@ -0,0 +1,43 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"api-version": "2019-08-01-preview",
"peeringService": {
"properties": {
"peeringServiceLocation": "state1",
"peeringServiceProvider": "serviceProvider1"
},
"location": "eastus"
}
},
"responses": {
"200": {
"body": {
"properties": {
"peeringServiceLocation": "state1",
"peeringServiceProvider": "serviceProvider1",
"provisioningState": "Succeeded"
},
"location": "eastus",
"name": "peeringServiceName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
"type": "Microsoft.Peering/peeringServices"
}
},
"201": {
"body": {
"properties": {
"peeringServiceLocation": "state1",
"peeringServiceProvider": "serviceProvider1",
"provisioningState": "Succeeded"
},
"location": "eastus",
"name": "peeringServiceName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
"type": "Microsoft.Peering/peeringServices"
}
}
}
}

Просмотреть файл

@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"prefixName": "peeringServicePrefixName",
"api-version": "2019-08-01-preview",
"peeringServicePrefix": {
"properties": {
"prefix": "192.168.1.0/24"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"prefix": "192.168.1.0/24",
"prefixValidationState": "Pending",
"learnedType": "None",
"provisioningState": "Succeeded"
},
"name": "peeringServicePrefixName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName"
}
},
"201": {
"body": {
"properties": {
"prefix": "192.168.1.0/24",
"prefixValidationState": "Pending",
"learnedType": "None",
"provisioningState": "Succeeded"
},
"name": "peeringServicePrefixName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName"
}
}
}
}

Просмотреть файл

@ -0,0 +1,11 @@
{
"parameters": {
"subscriptionId": "subId",
"peerAsnName": "peerAsnName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringName": "peeringName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}

Просмотреть файл

@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}

Просмотреть файл

@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"prefixName": "peeringServicePrefixName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}

Просмотреть файл

@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "subId",
"peerAsnName": "peerAsnName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"peerAsn": 65000,
"peerContactInfo": {
"emails": [
"abc@contoso.com",
"xyz@contoso.com"
],
"phone": [
"+1 (234) 567-8900"
]
},
"peerName": "Contoso",
"validationState": "Approved"
},
"name": "peerAsnName",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
"type": "Microsoft.Peering/peerAsns"
}
}
}
}

Просмотреть файл

@ -0,0 +1,68 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringName": "peeringName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"sku": {
"name": "Basic_Exchange_Free",
"tier": "Basic",
"family": "Exchange",
"size": "Free"
},
"kind": "Exchange",
"properties": {
"exchange": {
"connections": [
{
"peeringDBFacilityId": 99999,
"connectionState": "Active",
"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"
},
{
"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"
}
}
}
}

Просмотреть файл

@ -0,0 +1,23 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"peeringServiceLocation": "state1",
"peeringServiceProvider": "serviceProvider1",
"provisioningState": "Succeeded"
},
"location": "eastus",
"name": "peeringServiceName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
"type": "Microsoft.Peering/peeringServices"
}
}
}
}

Просмотреть файл

@ -0,0 +1,23 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"prefixName": "peeringServicePrefixName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"prefix": "192.168.1.0/24",
"prefixValidationState": "Verified",
"learnedType": "None",
"provisioningState": "Succeeded"
},
"name": "peeringServicePrefixName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName"
}
}
}
}

Просмотреть файл

@ -0,0 +1,81 @@
{
"parameters": {
"subscriptionId": "subId",
"kind": "Direct",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"kind": "Direct",
"properties": {
"direct": {
"peeringFacilities": [
{
"address": "address1",
"directPeeringType": "Edge",
"peeringDBFacilityId": 99999,
"peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999"
},
{
"address": "address3",
"directPeeringType": "Cdn",
"peeringDBFacilityId": 99999,
"peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999"
}
],
"bandwidthOffers": [
{
"offerName": "10Gbps",
"valueInMbps": 10000
},
{
"offerName": "100Gbps",
"valueInMbps": 100000
}
]
},
"peeringLocation": "peeringLocation1",
"country": "country1"
},
"name": "peeringLocation1",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation1",
"type": "Microsoft.Peering/peeringLocations"
},
{
"kind": "Direct",
"properties": {
"direct": {
"peeringFacilities": [
{
"address": "address2",
"directPeeringType": "Edge",
"peeringDBFacilityId": 99999,
"peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999"
}
],
"bandwidthOffers": [
{
"offerName": "10Gbps",
"valueInMbps": 10000
},
{
"offerName": "100Gbps",
"valueInMbps": 100000
}
]
},
"peeringLocation": "peeringLocation2",
"country": "country2"
},
"name": "peeringLocation2",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation2",
"type": "Microsoft.Peering/peeringLocations"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,73 @@
{
"parameters": {
"subscriptionId": "subId",
"kind": "Exchange",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"kind": "Exchange",
"properties": {
"exchange": {
"peeringFacilities": [
{
"exchangeName": "name1",
"bandwidthInMbps": 10000,
"microsoftIPv4Address": "192.168.131.1",
"microsoftIPv6Address": "fd00::1:1",
"facilityIPv4Prefix": "192.168.128.0/17",
"facilityIPv6Prefix": "fd00::1000:0/98",
"peeringDBFacilityId": 99999,
"peeringDBFacilityLink": "https://www.peeringdb.com/ix/99999"
},
{
"exchangeName": "name3",
"bandwidthInMbps": 10000,
"microsoftIPv4Address": "192.168.2.2",
"microsoftIPv6Address": "fd00::2",
"facilityIPv4Prefix": "192.168.0.0/17",
"facilityIPv6Prefix": "fd00::0/98",
"peeringDBFacilityId": 99999,
"peeringDBFacilityLink": "https://www.peeringdb.com/ix/99999"
}
]
},
"peeringLocation": "peeringLocation1",
"country": "country1"
},
"name": "peeringLocation1",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation1",
"type": "Microsoft.Peering/peeringLocations"
},
{
"kind": "Exchange",
"properties": {
"exchange": {
"peeringFacilities": [
{
"exchangeName": "name2",
"bandwidthInMbps": 10000,
"microsoftIPv4Address": "192.168.2.1",
"microsoftIPv6Address": "fd00::2",
"facilityIPv4Prefix": "192.168.0.0/16",
"facilityIPv6Prefix": "fd00::0/98",
"peeringDBFacilityId": 99999,
"peeringDBFacilityLink": "https://www.peeringdb.com/ix/99999"
}
]
},
"peeringLocation": "peeringLocation2",
"country": "country2"
},
"name": "peeringLocation2",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation2",
"type": "Microsoft.Peering/peeringLocations"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,72 @@
{
"parameters": {
"subscriptionId": "subId",
"kind": "Exchange",
"peeringLocation": "peeringLocation0",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"sku": {
"name": "Basic_Exchange_Free",
"tier": "Basic",
"family": "Exchange",
"size": "Free"
},
"kind": "Exchange",
"properties": {
"exchange": {
"connections": [
{
"peeringDBFacilityId": 99999,
"connectionState": "Active",
"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"
},
{
"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": "centralus",
"name": "peeringName",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerings/peeringName",
"type": "Microsoft.Peering/peerings"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "subId",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"peerAsn": 65000,
"peerContactInfo": {
"emails": [
"abc@contoso.com",
"xyz@contoso.com"
],
"phone": [
"+1 (234) 567-8900"
]
},
"peerName": "Contoso",
"validationState": "Approved"
},
"name": "peerAsnName",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
"type": "Microsoft.Peering/peerAsns"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,183 @@
{
"parameters": {
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Peering/register/action",
"display": {
"provider": "Microsoft.Peering",
"resource": "Peering Resource Provider",
"operation": "Registers the Peering Resource Provider",
"description": "Registers the subscription for the Peering Resource Provider and enables the creation of peerings"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peerAsns/write",
"display": {
"provider": "Microsoft.Peering",
"resource": "peerAsns",
"operation": "Write PeerAsn",
"description": "Write any peerAsns"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peerAsns/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "peerAsns",
"operation": "Read PeerAsn",
"description": "Read any peerAsns"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peerAsns/delete",
"display": {
"provider": "Microsoft.Peering",
"resource": "peerAsns",
"operation": "Delete PeerAsn",
"description": "Delete any peerAsns"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringLocations/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "peeringLocations",
"operation": "Read PeeringLocation",
"description": "Read any peeringLocations"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/legacyPeerings/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "legacyPeerings",
"operation": "Read LegacyPeering",
"description": "Read any legacyPeerings"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peerings/write",
"display": {
"provider": "Microsoft.Peering",
"resource": "peerings",
"operation": "Write Peering",
"description": "Write any peerings"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peerings/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "peerings",
"operation": "Read Peering",
"description": "Read any peerings"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peerings/delete",
"display": {
"provider": "Microsoft.Peering",
"resource": "peerings",
"operation": "Delete Peering",
"description": "Delete any peerings"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServiceLocations/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "peeringServiceLocations",
"operation": "Read PeeringServiceLocations",
"description": "Read any peeringServiceLocations"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServiceProviders/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "peeringServiceProviders",
"operation": "Read PeeringServiceProviders",
"description": "Read any peeringServiceProviders"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServices/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "peeringServices",
"operation": "Read PeeringServices",
"description": "Read any peeringServices"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServices/write",
"display": {
"provider": "Microsoft.Peering",
"resource": "peeringServices",
"operation": "Write PeeringService",
"description": "Write any peeringServices"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServices/delete",
"display": {
"provider": "Microsoft.Peering",
"resource": "peeringServices",
"operation": "Delete PeeringServices",
"description": "Delete any peeringServices"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServices/prefixes/read",
"display": {
"provider": "Microsoft.Peering",
"resource": "prefixes",
"operation": "Read PeeringServicePrefixes",
"description": "Read any prefixes"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServices/prefixes/write",
"display": {
"provider": "Microsoft.Peering",
"resource": "prefixes",
"operation": "Write PeeringServicePrefixes",
"description": "Write any prefixes"
},
"isDataAction": false
},
{
"name": "Microsoft.Peering/peeringServices/prefixes/delete",
"display": {
"provider": "Microsoft.Peering",
"resource": "prefixes",
"operation": "Delete PeeringServicePrefixes",
"description": "Delete any prefixes"
},
"isDataAction": false
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "subId",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"country": "country1",
"state": "state1"
},
"name": "peeringServiceLocation1",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceLocations/peeringServiceLocation1",
"type": "Microsoft.Peering/peeringServiceLocations"
},
{
"properties": {
"country": "country2",
"state": "state2"
},
"name": "peeringServiceLocation2",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceLocations/peeringServiceLocation2",
"type": "Microsoft.Peering/peeringServiceLocations"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "subId",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"serviceProviderName": "peeringServiceProvider1"
},
"name": "peeringServiceProvider1",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceProviders/peeringServiceProvider1",
"type": "Microsoft.Peering/peeringServiceProviders"
},
{
"properties": {
"serviceProviderName": "peeringServiceProvider2"
},
"name": "peeringServiceProvider2",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceProviders/peeringServiceProvider2",
"type": "Microsoft.Peering/peeringServiceProviders"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"peeringServiceLocation": "state1",
"peeringServiceProvider": "serviceProvider1",
"provisioningState": "Succeeded"
},
"location": "eastus",
"name": "peeringServiceName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
"type": "Microsoft.Peering/peeringServices"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "subId",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"peeringServiceLocation": "state1",
"peeringServiceProvider": "serviceProvider1",
"provisioningState": "Succeeded"
},
"location": "eastus",
"name": "peeringServiceName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
"type": "Microsoft.Peering/peeringServices"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,71 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"sku": {
"name": "Basic_Exchange_Free",
"tier": "Basic",
"family": "Exchange",
"size": "Free"
},
"kind": "Exchange",
"properties": {
"exchange": {
"connections": [
{
"peeringDBFacilityId": 99999,
"connectionState": "Active",
"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"
},
{
"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"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,70 @@
{
"parameters": {
"subscriptionId": "subId",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"sku": {
"name": "Basic_Exchange_Free",
"tier": "Basic",
"family": "Exchange",
"size": "Free"
},
"kind": "Exchange",
"properties": {
"exchange": {
"connections": [
{
"peeringDBFacilityId": 99999,
"connectionState": "Active",
"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"
},
{
"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"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"api-version": "2019-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"prefix": "192.168.1.0/24",
"prefixValidationState": "Verified",
"learnedType": "None",
"provisioningState": "Succeeded"
},
"name": "peeringServicePrefixName1",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName1"
},
{
"properties": {
"prefix": "192.168.2.0/24",
"prefixValidationState": "Verified",
"learnedType": "None",
"provisioningState": "Succeeded"
},
"name": "peeringServicePrefixName2",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName2"
}
]
}
}
}
}

Просмотреть файл

@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringServiceName": "peeringServiceName",
"api-version": "2019-08-01-preview",
"tags": {
"tags": {
"tag0": "value0",
"tag1": "value1"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"peeringServiceLocation": "state1",
"peeringServiceProvider": "serviceProvider1",
"provisioningState": "Succeeded"
},
"location": "eastus",
"tags": {
"tag0": "value0",
"tag1": "value1"
},
"name": "peeringServiceName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
"type": "Microsoft.Peering/peeringServices"
}
}
}
}

Просмотреть файл

@ -0,0 +1,78 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringName": "peeringName",
"api-version": "2019-08-01-preview",
"tags": {
"tags": {
"tag0": "value0",
"tag1": "value1"
}
}
},
"responses": {
"200": {
"body": {
"sku": {
"name": "Basic_Exchange_Free",
"tier": "Basic",
"family": "Exchange",
"size": "Free"
},
"kind": "Exchange",
"properties": {
"exchange": {
"connections": [
{
"peeringDBFacilityId": 99999,
"connectionState": "Active",
"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"
},
{
"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",
"tags": {
"tag0": "value0",
"tag1": "value1"
},
"name": "peeringName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
"type": "Microsoft.Peering/peerings"
}
}
}
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -26,3 +26,11 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-03-01-preview/$(namespace) output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-03-01-preview/$(namespace)
``` ```
### Tag: package-2019-08-01-preview and go
These settings apply only when `--tag=package-2019-08-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2019-08-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-08-01-preview/$(namespace)
```

Просмотреть файл

@ -36,6 +36,11 @@ or
openapi-type: arm openapi-type: arm
tag: package-2019-07-01-preview tag: package-2019-07-01-preview
``` ```
or
``` yaml
openapi-type: arm
tag: package-2019-08-01-preview
```
### Tag: package-2019-03-01-preview ### Tag: package-2019-03-01-preview
@ -62,6 +67,15 @@ These settings apply only when `--tag=package-2019-07-01-preview` is specified o
input-file: input-file:
- Microsoft.Peering/preview/2019-07-01-preview/peering.json - Microsoft.Peering/preview/2019-07-01-preview/peering.json
``` ```
### Tag: package-2019-08-01-preview
These settings apply only when `--tag=package-2019-08-01-preview` is specified on the command line.
``` yaml $(tag) == 'package-2019-08-01-preview'
input-file:
- Microsoft.Peering/preview/2019-08-01-preview/peering.json
```
# Code Generation # Code Generation
## Swagger to SDK ## Swagger to SDK

Просмотреть файл

@ -7,6 +7,12 @@ package-name: azure_mgmt_peering
package-version: "2019-03-01-preview" package-version: "2019-03-01-preview"
azure-arm: true azure-arm: true
``` ```
or
``` yaml
package-name: azure_mgmt_peering
package-version: "2019-08-01-preview"
azure-arm: true
```
### Ruby multi-api ### Ruby multi-api
@ -14,6 +20,11 @@ azure-arm: true
batch: batch:
- tag: package-2019-03-01-preview - tag: package-2019-03-01-preview
``` ```
or
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2019-08-01-preview
```
### Tag: package-2019-03-01-preview and ruby ### Tag: package-2019-03-01-preview and ruby
@ -24,3 +35,12 @@ Please also specify `--ruby-sdks-folder=<path to the root directory of your azur
namespace: "Azure::Peering::Mgmt::V2019_03_01_preview" namespace: "Azure::Peering::Mgmt::V2019_03_01_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_peering/lib output-folder: $(ruby-sdks-folder)/management/azure_mgmt_peering/lib
``` ```
### Tag: package-2019-08-01-preview and ruby
These settings apply only when `--tag=package-2019-08-01-preview --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.
``` yaml $(tag) == 'package-2019-08-01-preview' && $(ruby)
namespace: "Azure::Peering::Mgmt::V2019_08_01_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_peering/lib
```