From 56fd59c6ad890eb9e4a854f209ad13f9670af2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Arild=20T=C3=B8rresdal?= Date: Wed, 19 Sep 2018 13:17:51 +0200 Subject: [PATCH 1/4] Added missing 202 Accepted response code to Api Management --- .../stable/2017-03-01/apimdeployment.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json index 28fe8eedda8b..4008049ff1b6 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json @@ -215,6 +215,12 @@ "schema": { "$ref": "#/definitions/ApiManagementServiceResource" } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/ApiManagementServiceResource" + } } }, "x-ms-long-running-operation": true @@ -1389,4 +1395,4 @@ } }, "parameters": {} -} \ No newline at end of file +} From 4c9523da2d383d75eebec2f45557ed9251bc6622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Arild=20T=C3=B8rresdal?= Date: Wed, 19 Sep 2018 18:07:06 +0200 Subject: [PATCH 2/4] Updated example for Api Management Service using response code 202 --- .../examples/ApiManagementCreateService.json | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json index bfe0ff2b9d3d..4d0e49141605 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json @@ -72,6 +72,35 @@ "capacity": 1 } } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "tags": {}, + "location": "West US", + "etag": "AAAAAAAV8XM=", + "properties": { + "publisherEmail": "admin@live.com", + "publisherName": "Contoso", + "provisioningState": "Succeeded", + "targetProvisioningState": "", + "createdAtUtc": "2015-09-22T01:52:02.4307221Z", + "gatewayUrl": "https://apimService1.azure-api.net", + "portalUrl": "https://apimService1.portal.azure-api.net", + "managementApiUrl": "https://apimService1.management.azure-api.net", + "scmUrl": "https://apimService1.scm.azure-api.net", + "staticIps": [ + "xx.xx.250.222" + ], + "virtualNetworkType": "None" + }, + "sku": { + "name": "Premium", + "capacity": 1 + } + } } } -} \ No newline at end of file +} From 18f46c6f9d2cd42ee2c4b2dff0d7ff3fcea50a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Arild=20T=C3=B8rresdal?= Date: Wed, 19 Sep 2018 18:16:17 +0200 Subject: [PATCH 3/4] Updated example for Api Management Service MSI using response code 202 --- .../ApiManagementCreateServiceHavingMsi.json | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json index bdf94c12d374..77f2c3b89f3d 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json @@ -81,6 +81,35 @@ "tenantId": "72f988bf-xxxx-41af-xxxx-2d7cd011db47" } } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2017-03-01" + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "location": "Japan East", + "etag": "AAAAAAC268k=", + "properties": { + "publisherEmail": "admin@contoso.com", + "publisherName": "Contoso", + "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", + "provisioningState": "Created", + "targetProvisioningState": "Activating", + "createdAtUtc": "2017-10-27T23:41:41.7231779Z" + }, + "sku": { + "name": "Developer", + "capacity": 1 + }, + "identity": { + "type": "SystemAssigned", + "principalId": "f4b0f1c2-xxxx-43db-xxxx-ccd99e1afd22", + "tenantId": "72f988bf-xxxx-41af-xxxx-2d7cd011db47" + } + } } } -} \ No newline at end of file +} From 1c708b2d11eabb1d7908bb304d05394c0e6439ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Arild=20T=C3=B8rresdal?= Date: Wed, 19 Sep 2018 18:35:54 +0200 Subject: [PATCH 4/4] Updated example for Api Management Service with Custom Hostname using response code 202 --- ...eMultiRegionServiceWithCustomHostname.json | 83 ++++++++++++++++++- 1 file changed, 81 insertions(+), 2 deletions(-) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json index 26a8150d2a20..70ddf19e8d14 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "api-version": "2017-03-01", "subscriptionId": "subid", - "parameters": { + "parameters": { "location": "Central US", "sku": { "name": "Premium", @@ -206,6 +206,85 @@ "capacity": 1 } } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "tags": {}, + "location": "Central US", + "etag": "AAAAAAAXXwI=", + "properties": { + "publisherEmail": "admin@live.com", + "publisherName": "contoso", + "provisioningState": "Succeeded", + "targetProvisioningState": "", + "createdAtUtc": "2017-05-30T19:00:47.1121713Z", + "gatewayUrl": "https://apimService1.azure-api.net", + "portalUrl": "https://apimService1.portal.azure-api.net", + "managementApiUrl": "https://apimService1.management.azure-api.net", + "scmUrl": "https://apimService1.scm.azure-api.net", + "hostnameConfigurations": [ + { + "type": "Proxy", + "hostName": "proxyhostname1.contoso.com", + "negotiateClientCertificate": false, + "certificate": { + "expiry": "2018-03-17T21:55:07+00:00", + "thumbprint": "918D7785B926AC5AEE66322778A147BCE7237CF3", + "subject": "CN=proxyhostname1.contoso.com" + } + }, + { + "type": "Proxy", + "hostName": "proxyhostname2.contoso.com", + "negotiateClientCertificate": true, + "certificate": { + "expiry": "2018-03-17T21:55:07+00:00", + "thumbprint": "918D7785B926AC5AEE66322778A147BCE7237CF3", + "subject": "CN=proxyhostname2.contoso.com" + } + }, + { + "type": "Portal", + "hostName": "portalhostname1.contoso.com", + "negotiateClientCertificate": false, + "certificate": { + "expiry": "2018-03-17T21:55:07+00:00", + "thumbprint": "918D7785B926AC5AEE66322778A147BCE7237CF3", + "subject": "CN=portalhostname1.contoso.com" + } + } + ], + "staticIps": [ + "52.173.193.207" + ], + "additionalLocations": [ + { + "location": "West US", + "sku": { + "name": "Premium", + "capacity": 1 + }, + "staticIps": [ + "104.210.41.234" + ], + "virtualNetworkConfiguration": { + "subnetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/westUsVirtualNetwork/subnets/apimSubnet" + } + } + ], + "virtualNetworkConfiguration": { + "subnetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/centralUsVirtualNetwork/subnets/apimSubnet" + }, + "virtualNetworkType": "External" + }, + "sku": { + "name": "Premium", + "capacity": 1 + } + } } } -} \ No newline at end of file +}