From c6cfa0bf07bda6b87af6fad65710ba92cda93be3 Mon Sep 17 00:00:00 2001 From: Samir Solanki Date: Mon, 12 Apr 2021 18:33:37 -0700 Subject: [PATCH 1/2] test fixes --- .../AuthorizationServerTests.cs | 12 +- .../TenantAccessGitTests.cs | 6 +- .../CreateListUpdateDelete.json | 517 +++++++++++++++--- .../TenantAccessGitTests/GetUpdateKeys.json | 270 +++++++-- 4 files changed, 693 insertions(+), 112 deletions(-) diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/AuthorizationServerTests.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/AuthorizationServerTests.cs index 40766f48053a..6f9b8a4d0f20 100644 --- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/AuthorizationServerTests.cs +++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/AuthorizationServerTests.cs @@ -18,7 +18,7 @@ namespace ApiManagement.Tests.ManagementApiTests public class AuthorizationServerTests : TestBase { [Fact] - [Trait("owner", "vifedo")] + [Trait("owner", "sasolank")] public async Task CreateListUpdateDelete() { Environment.SetEnvironmentVariable("AZURE_TEST_MODE", "Playback"); @@ -94,8 +94,8 @@ public async Task CreateListUpdateDelete() Assert.Equal(authorizationServerContract.ClientId, getResponse.Body.ClientId); Assert.Equal(authorizationServerContract.ClientRegistrationEndpoint, getResponse.Body.ClientRegistrationEndpoint); Assert.Null(getResponse.Body.ClientSecret); - Assert.Equal(authorizationServerContract.ResourceOwnerPassword, getResponse.Body.ResourceOwnerPassword); - Assert.Equal(authorizationServerContract.ResourceOwnerUsername, getResponse.Body.ResourceOwnerUsername); + Assert.Null(getResponse.Body.ResourceOwnerPassword); + Assert.Null(getResponse.Body.ResourceOwnerUsername); Assert.Equal(authorizationServerContract.GrantTypes.Count, getResponse.Body.GrantTypes.Count); Assert.True(getResponse.Body.GrantTypes.All(gt => authorizationServerContract.GrantTypes.Contains(gt))); Assert.Equal(authorizationServerContract.AuthorizationMethods.Count, getResponse.Body.AuthorizationMethods.Count); @@ -111,6 +111,8 @@ public async Task CreateListUpdateDelete() testBase.serviceName, authsid); Assert.Equal(authorizationServerContract.ClientSecret, secretsResponse.ClientSecret); + Assert.Equal(authorizationServerContract.ResourceOwnerUsername, secretsResponse.ResourceOwnerUsername); + Assert.Equal(authorizationServerContract.ResourceOwnerPassword, secretsResponse.ResourceOwnerPassword); // list again listResponse = testBase.client.AuthorizationServer.ListByService( @@ -154,8 +156,8 @@ public async Task CreateListUpdateDelete() Assert.Equal(authorizationServerContract.ClientId, getResponse.Body.ClientId); Assert.Equal(authorizationServerContract.ClientRegistrationEndpoint, getResponse.Body.ClientRegistrationEndpoint); Assert.Null(getResponse.Body.ClientSecret); - Assert.Equal(authorizationServerContract.ResourceOwnerPassword, getResponse.Body.ResourceOwnerPassword); - Assert.Equal(authorizationServerContract.ResourceOwnerUsername, getResponse.Body.ResourceOwnerUsername); + Assert.Null(getResponse.Body.ResourceOwnerPassword); + Assert.Null(getResponse.Body.ResourceOwnerUsername); Assert.Equal(updateParameters.GrantTypes.Count, getResponse.Body.GrantTypes.Count); Assert.True(getResponse.Body.GrantTypes.All(gt => updateParameters.GrantTypes.Contains(gt))); Assert.Equal(authorizationServerContract.AuthorizationMethods.Count, getResponse.Body.AuthorizationMethods.Count); diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/TenantAccessGitTests.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/TenantAccessGitTests.cs index 74bbf0927621..34c62b2549d3 100644 --- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/TenantAccessGitTests.cs +++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ManagementApiTests/TenantAccessGitTests.cs @@ -14,7 +14,7 @@ namespace ApiManagement.Tests.ManagementApiTests public class TenantAccessGitTests : TestBase { [Fact] - [Trait("owner", "vifedo")] + [Trait("owner", "sasolank")] public async Task GetUpdateKeys() { Environment.SetEnvironmentVariable("AZURE_TEST_MODE", "Playback"); @@ -52,7 +52,7 @@ public async Task GetUpdateKeys() testBase.client.TenantAccessGit.RegeneratePrimaryKey( testBase.rgName, testBase.serviceName, - "gitAccess"); + "access"); var secretsResponse2 = await testBase.client.TenantAccess.ListSecretsAsync( testBase.rgName, @@ -66,7 +66,7 @@ public async Task GetUpdateKeys() testBase.client.TenantAccessGit.RegenerateSecondaryKey( testBase.rgName, testBase.serviceName, - "gitAccess"); + "access"); var getSecretsHttpResponse = await testBase.client.TenantAccess.ListSecretsWithHttpMessagesAsync( testBase.rgName, diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/AuthorizationServerTests/CreateListUpdateDelete.json b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/AuthorizationServerTests/CreateListUpdateDelete.json index 3cde21fd685d..3edbe1d4637a 100644 --- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/AuthorizationServerTests/CreateListUpdateDelete.json +++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/AuthorizationServerTests/CreateListUpdateDelete.json @@ -7,7 +7,7 @@ "RequestBody": "{\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"CentralUS\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "6c223a5a-afe0-4821-9bc1-1ca7aeec99bd" + "de5becfe-2677-4494-8181-11858d0323c9" ], "Accept-Language": [ "en-US" @@ -33,14 +33,14 @@ "no-cache" ], "ETag": [ - "\"AAAAAAAU2+c=\"" + "\"AAAAAAAU+d4=\"" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ - "e2286142-02c0-4316-8c6b-5835148fbc40", - "4dca28a9-ad21-417a-9fd5-ad3bfa419f8e" + "3a386823-36f1-4d9e-a706-96a37063312a", + "6c2b621f-1ce8-4244-88ad-72f5f715cd88" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -49,19 +49,19 @@ "1199" ], "x-ms-correlation-request-id": [ - "8cd81161-285f-4b15-b5a6-9857d778fb14" + "15e81b0c-e309-4b4e-8ad0-1f3fc1617141" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232953Z:8cd81161-285f-4b15-b5a6-9857d778fb14" + "WESTUS:20210413T001141Z:15e81b0c-e309-4b4e-8ad0-1f3fc1617141" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 08 Apr 2021 23:29:52 GMT" + "Tue, 13 Apr 2021 00:11:41 GMT" ], "Content-Length": [ - "2221" + "2220" ], "Content-Type": [ "application/json; charset=utf-8" @@ -70,7 +70,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU2+c=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.169.82\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU+d4=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.171.8\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", "StatusCode": 200 }, { @@ -80,7 +80,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "185d70d0-e0f1-48e7-b7d5-39a865bd9e97" + "d3a2d6f8-a629-4680-aaa6-d4a7d7e25023" ], "Accept-Language": [ "en-US" @@ -100,13 +100,13 @@ "no-cache" ], "ETag": [ - "\"AAAAAAAU2+c=\"" + "\"AAAAAAAU+d4=\"" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ - "134d3191-2457-4034-8265-f9f591028877" + "abc7db97-d64c-42c2-b96a-e8248c53b48a" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -115,19 +115,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "b60623c3-3034-4d28-8098-0313e24d63ab" + "c04f3640-de32-4720-a5a8-2a368745ba7b" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232953Z:b60623c3-3034-4d28-8098-0313e24d63ab" + "WESTUS:20210413T001141Z:c04f3640-de32-4720-a5a8-2a368745ba7b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 08 Apr 2021 23:29:53 GMT" + "Tue, 13 Apr 2021 00:11:41 GMT" ], "Content-Length": [ - "2221" + "2220" ], "Content-Type": [ "application/json; charset=utf-8" @@ -136,7 +136,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU2+c=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.169.82\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU+d4=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.171.8\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", "StatusCode": 200 }, { @@ -146,7 +146,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dc35ab0e-ee64-4869-b187-3a69daaf6c83" + "3ea90f0b-ed65-4e06-bd7f-20b84c1558fa" ], "Accept-Language": [ "en-US" @@ -172,7 +172,7 @@ "nosniff" ], "x-ms-request-id": [ - "f4a86fa7-387c-4e84-96ff-8a1b7285faa4" + "471a264b-e900-4ca2-bfa5-d58363ce66e2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -181,13 +181,13 @@ "11998" ], "x-ms-correlation-request-id": [ - "82fea631-88e7-4360-a862-6413472e7aff" + "a0d232e1-34f2-4af9-a7c5-1d9de7b32a01" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232953Z:82fea631-88e7-4360-a862-6413472e7aff" + "WESTUS:20210413T001142Z:a0d232e1-34f2-4af9-a7c5-1d9de7b32a01" ], "Date": [ - "Thu, 08 Apr 2021 23:29:53 GMT" + "Tue, 13 Apr 2021 00:11:41 GMT" ], "Content-Length": [ "34" @@ -203,13 +203,76 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid9652?api-version=2020-12-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkOTY1Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycz9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "02cef38d-76f8-4796-a6ac-81ab3b8dbd36" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "dfe88d18-697c-4030-b46e-78537dba951b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "8c0353da-4cd2-4a1a-b963-17a2d422cbff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T001143Z:8c0353da-4cd2-4a1a-b963-17a2d422cbff" + ], + "Date": [ + "Tue, 13 Apr 2021 00:11:42 GMT" + ], + "Content-Length": [ + "1303" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082\",\r\n \"type\": \"Microsoft.ApiManagement/service/authorizationServers\",\r\n \"name\": \"authsid1082\",\r\n \"properties\": {\r\n \"displayName\": \"authName6914\",\r\n \"description\": \"authdescription8566\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname2668\",\r\n \"value\": \"tokenvalue227\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope892\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"implicit\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"clientId\": \"clientid1900\"\r\n }\r\n }\r\n ],\r\n \"count\": 1\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"authdescription6957\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname9551\",\r\n \"value\": \"tokenvalue4975\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope2669\",\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"resourceOwnerUsername\": \"authresourceownerusername7497\",\r\n \"resourceOwnerPassword\": \"authresourceownerpwd3038\",\r\n \"displayName\": \"authName9989\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"implicit\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"clientId\": \"clientid2162\",\r\n \"clientSecret\": \"authclientsecret3914\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"authdescription8566\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname2668\",\r\n \"value\": \"tokenvalue227\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope892\",\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"resourceOwnerUsername\": \"authresourceownerusername6682\",\r\n \"resourceOwnerPassword\": \"authresourceownerpwd7198\",\r\n \"displayName\": \"authName6914\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"implicit\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"clientId\": \"clientid1900\",\r\n \"clientSecret\": \"authclientsecret6762\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "7fba4318-badb-441d-ba5e-70935be4b0e8" + "163e8c6e-e3c6-4838-936a-da8168679925" ], "Accept-Language": [ "en-US" @@ -224,7 +287,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "999" + "997" ] }, "ResponseHeaders": { @@ -235,7 +298,7 @@ "no-cache" ], "ETag": [ - "\"AAAAAAAAdpg=\"" + "\"AAAAAAAAfTA=\"" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -244,7 +307,7 @@ "nosniff" ], "x-ms-request-id": [ - "13c27a63-25de-4c9b-856d-f113b9764604" + "a19253b2-849f-4b79-aa37-5cbe3e7e89ef" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -253,16 +316,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "5053d2d2-6e4a-40a1-a9e0-a0eb699475db" + "a2be2d09-3f8c-4406-bbb4-7852116bc085" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232954Z:5053d2d2-6e4a-40a1-a9e0-a0eb699475db" + "WESTUS:20210413T001142Z:a2be2d09-3f8c-4406-bbb4-7852116bc085" ], "Date": [ - "Thu, 08 Apr 2021 23:29:53 GMT" + "Tue, 13 Apr 2021 00:11:42 GMT" ], "Content-Length": [ - "1283" + "1281" ], "Content-Type": [ "application/json; charset=utf-8" @@ -271,17 +334,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid9652\",\r\n \"type\": \"Microsoft.ApiManagement/service/authorizationServers\",\r\n \"name\": \"authsid9652\",\r\n \"properties\": {\r\n \"displayName\": \"authName9989\",\r\n \"description\": \"authdescription6957\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname9551\",\r\n \"value\": \"tokenvalue4975\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope2669\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"implicit\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"clientId\": \"clientid2162\",\r\n \"clientSecret\": \"authclientsecret3914\",\r\n \"resourceOwnerUsername\": \"authresourceownerusername7497\",\r\n \"resourceOwnerPassword\": \"authresourceownerpwd3038\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082\",\r\n \"type\": \"Microsoft.ApiManagement/service/authorizationServers\",\r\n \"name\": \"authsid1082\",\r\n \"properties\": {\r\n \"displayName\": \"authName6914\",\r\n \"description\": \"authdescription8566\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname2668\",\r\n \"value\": \"tokenvalue227\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope892\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"implicit\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"clientId\": \"clientid1900\",\r\n \"clientSecret\": \"authclientsecret6762\",\r\n \"resourceOwnerUsername\": \"authresourceownerusername6682\",\r\n \"resourceOwnerPassword\": \"authresourceownerpwd7198\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid9652?api-version=2020-12-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkOTY1Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "94d14a67-64ca-42fc-9d1d-80f2887a46cb" + "e2aebe9d-8f6c-4122-b261-48467dfce87f" ], "Accept-Language": [ "en-US" @@ -301,7 +364,7 @@ "no-cache" ], "ETag": [ - "\"AAAAAAAAdpg=\"" + "\"AAAAAAAAfTA=\"" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -310,7 +373,7 @@ "nosniff" ], "x-ms-request-id": [ - "c899c7bb-e6be-4ecd-837b-2fbbbd722a3c" + "30a6ee98-baf0-4954-86dd-be3b8ec31636" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -319,16 +382,16 @@ "11997" ], "x-ms-correlation-request-id": [ - "0b0b5a11-22a5-427c-8c45-d172d21bbf0f" + "aa1d5b38-dd74-4d0b-828c-49b41caef976" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232954Z:0b0b5a11-22a5-427c-8c45-d172d21bbf0f" + "WESTUS:20210413T001142Z:aa1d5b38-dd74-4d0b-828c-49b41caef976" ], "Date": [ - "Thu, 08 Apr 2021 23:29:53 GMT" + "Tue, 13 Apr 2021 00:11:42 GMT" ], "Content-Length": [ - "1117" + "1115" ], "Content-Type": [ "application/json; charset=utf-8" @@ -337,20 +400,290 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid9652\",\r\n \"type\": \"Microsoft.ApiManagement/service/authorizationServers\",\r\n \"name\": \"authsid9652\",\r\n \"properties\": {\r\n \"displayName\": \"authName9989\",\r\n \"description\": \"authdescription6957\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname9551\",\r\n \"value\": \"tokenvalue4975\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope2669\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"implicit\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"clientId\": \"clientid2162\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082\",\r\n \"type\": \"Microsoft.ApiManagement/service/authorizationServers\",\r\n \"name\": \"authsid1082\",\r\n \"properties\": {\r\n \"displayName\": \"authName6914\",\r\n \"description\": \"authdescription8566\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname2668\",\r\n \"value\": \"tokenvalue227\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope892\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"implicit\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"clientId\": \"clientid1900\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid9652?api-version=2020-12-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkOTY1Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a0b9693-6025-4dcf-addd-1b49668c6ea8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"AAAAAAAAfTE=\"" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "830852b2-ae0a-4b6b-82b6-7b13ae8812d6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "b004d060-39bc-4557-96bb-0a293baa82d4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T001143Z:b004d060-39bc-4557-96bb-0a293baa82d4" + ], + "Date": [ + "Tue, 13 Apr 2021 00:11:43 GMT" + ], + "Content-Length": [ + "1096" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082\",\r\n \"type\": \"Microsoft.ApiManagement/service/authorizationServers\",\r\n \"name\": \"authsid1082\",\r\n \"properties\": {\r\n \"displayName\": \"authName6914\",\r\n \"description\": \"authdescription8566\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname2668\",\r\n \"value\": \"tokenvalue227\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope892\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"clientId\": \"clientid1900\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5be5d19e-ce7e-41e5-82b4-2a6a1b13fc11" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "753ef677-daf6-4801-a6f3-0400e2bfd788" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "742f8fea-8ab3-4537-9778-2b37a59d3290" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T001144Z:742f8fea-8ab3-4537-9778-2b37a59d3290" + ], + "Date": [ + "Tue, 13 Apr 2021 00:11:43 GMT" + ], + "Content-Length": [ + "101" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"OAuth2AuthorizationServer not found.\",\r\n \"details\": null\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082/listSecrets?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mi9saXN0U2VjcmV0cz9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b8793294-7b50-4ecf-a7ee-ea33c7fc175a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"AAAAAAAAfTA=\"" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0f2a65dd-7e5a-4950-a9f3-f69a41971aa9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "736268bb-03b5-4961-80ea-e8a70e678ed7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T001142Z:736268bb-03b5-4961-80ea-e8a70e678ed7" + ], + "Date": [ + "Tue, 13 Apr 2021 00:11:42 GMT" + ], + "Content-Length": [ + "146" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"clientSecret\": \"authclientsecret6762\",\r\n \"resourceOwnerUsername\": \"authresourceownerusername6682\",\r\n \"resourceOwnerPassword\": \"authresourceownerpwd7198\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"resourceOwnerPassword\"\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "57fa3e8c-4f14-4fe7-9d68-def29e110847" + ], + "If-Match": [ + "\"AAAAAAAAfTA=\"" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "115" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"AAAAAAAAfTE=\"" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "6fde1e22-277a-4482-869b-7b5d85109adb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "604d1549-8273-4908-9d50-a875e1020856" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T001143Z:604d1549-8273-4908-9d50-a875e1020856" + ], + "Date": [ + "Tue, 13 Apr 2021 00:11:43 GMT" + ], + "Content-Length": [ + "1262" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082\",\r\n \"type\": \"Microsoft.ApiManagement/service/authorizationServers\",\r\n \"name\": \"authsid1082\",\r\n \"properties\": {\r\n \"displayName\": \"authName6914\",\r\n \"description\": \"authdescription8566\",\r\n \"clientRegistrationEndpoint\": \"https://contoso.com/clients/reg\",\r\n \"authorizationEndpoint\": \"https://contoso.com/auth\",\r\n \"authorizationMethods\": [\r\n \"POST\",\r\n \"GET\"\r\n ],\r\n \"clientAuthenticationMethod\": [\r\n \"Basic\"\r\n ],\r\n \"tokenBodyParameters\": [\r\n {\r\n \"name\": \"tokenname2668\",\r\n \"value\": \"tokenvalue227\"\r\n }\r\n ],\r\n \"tokenEndpoint\": \"https://contoso.com/token\",\r\n \"supportState\": true,\r\n \"defaultScope\": \"oauth2scope892\",\r\n \"grantTypes\": [\r\n \"authorizationCode\",\r\n \"resourceOwnerPassword\"\r\n ],\r\n \"bearerTokenSendingMethods\": [\r\n \"authorizationHeader\",\r\n \"query\"\r\n ],\r\n \"clientId\": \"clientid1900\",\r\n \"clientSecret\": \"authclientsecret6762\",\r\n \"resourceOwnerUsername\": \"authresourceownerusername6682\",\r\n \"resourceOwnerPassword\": \"authresourceownerpwd7198\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "61aca0c8-911e-42de-92c7-d8d325d6c17e" + "fc5f0aa7-d8a0-4edf-956d-aba7d526f261" ], "If-Match": [ - "*" + "\"AAAAAAAAfTE=\"" ], "Accept-Language": [ "en-US" @@ -376,7 +709,7 @@ "nosniff" ], "x-ms-request-id": [ - "9009a87a-4e2d-4e35-8594-74c6d93fc848" + "b67bc00a-951b-4200-9c98-384687d75b71" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -385,13 +718,13 @@ "14999" ], "x-ms-correlation-request-id": [ - "842539f1-08d2-4813-8f22-6e57220d2900" + "1d8161b8-d52c-4e6a-8302-49712a55ecc7" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232954Z:842539f1-08d2-4813-8f22-6e57220d2900" + "WESTUS:20210413T001143Z:1d8161b8-d52c-4e6a-8302-49712a55ecc7" ], "Date": [ - "Thu, 08 Apr 2021 23:29:53 GMT" + "Tue, 13 Apr 2021 00:11:43 GMT" ], "Expires": [ "-1" @@ -402,20 +735,80 @@ }, "ResponseBody": "", "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/authorizationServers/authsid1082?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS9hdXRob3JpemF0aW9uU2VydmVycy9hdXRoc2lkMTA4Mj9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a4d12720-dd5a-4812-ba75-e60ca6404c12" + ], + "If-Match": [ + "*" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0c7c1812-4087-46c4-ab24-ca715f3d9198" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "034e984f-8472-4f8b-ac1d-51c502aa9874" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T001144Z:034e984f-8472-4f8b-ac1d-51c502aa9874" + ], + "Date": [ + "Tue, 13 Apr 2021 00:11:43 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 } ], "Names": { "CreateListUpdateDelete": [ - "authsid9652", - "authName9989", - "oauth2scope2669", - "clientid2162", - "authdescription6957", - "authclientsecret3914", - "authresourceownerpwd3038", - "authresourceownerusername7497", - "tokenname9551", - "tokenvalue4975" + "authsid1082", + "authName6914", + "oauth2scope892", + "clientid1900", + "authdescription8566", + "authclientsecret6762", + "authresourceownerpwd7198", + "authresourceownerusername6682", + "tokenname2668", + "tokenvalue227" ] }, "Variables": { diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/TenantAccessGitTests/GetUpdateKeys.json b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/TenantAccessGitTests/GetUpdateKeys.json index 5d4c4f03b605..e9e2924c0764 100644 --- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/TenantAccessGitTests/GetUpdateKeys.json +++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/SessionRecords/TenantAccessGitTests/GetUpdateKeys.json @@ -7,7 +7,7 @@ "RequestBody": "{\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"CentralUS\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "4a118c9b-30a8-4e0f-b52f-9773e36bbb32" + "cb8b6bca-4e50-4b8b-8035-aeb479ff658d" ], "Accept-Language": [ "en-US" @@ -33,14 +33,14 @@ "no-cache" ], "ETag": [ - "\"AAAAAAAU2+c=\"" + "\"AAAAAAAU+d4=\"" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ - "85d0b673-8577-431b-815f-c662d12a630e", - "cb566b82-fe11-41b5-bba9-8cee03c0ef2c" + "aa10f11e-27ad-4e12-bd20-1258b464a66d", + "95100094-b875-455c-984b-6388ad287cbb" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -49,19 +49,19 @@ "1199" ], "x-ms-correlation-request-id": [ - "2595e727-2233-4944-bcd1-b3120e4f517c" + "dd4e35b0-691b-4915-b5e8-20b60c7d4361" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232958Z:2595e727-2233-4944-bcd1-b3120e4f517c" + "WESTUS:20210413T002506Z:dd4e35b0-691b-4915-b5e8-20b60c7d4361" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 08 Apr 2021 23:29:58 GMT" + "Tue, 13 Apr 2021 00:25:06 GMT" ], "Content-Length": [ - "2221" + "2220" ], "Content-Type": [ "application/json; charset=utf-8" @@ -70,7 +70,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU2+c=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.169.82\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU+d4=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.171.8\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", "StatusCode": 200 }, { @@ -80,7 +80,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "14421758-9164-41e8-ad8a-e56a188b9879" + "00a21949-4cd0-42a7-879e-d087fc80b7d7" ], "Accept-Language": [ "en-US" @@ -100,13 +100,13 @@ "no-cache" ], "ETag": [ - "\"AAAAAAAU2+c=\"" + "\"AAAAAAAU+d4=\"" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ - "bd0cd82a-e5c1-4573-9b03-b1b63b13877a" + "717df5de-b822-4c47-adf9-19c1a170167c" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -115,19 +115,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "081f2c19-7275-4a02-b783-fc6539102ff6" + "94e5d7ca-fa28-4fc1-b4e9-815bdd8e4f80" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232958Z:081f2c19-7275-4a02-b783-fc6539102ff6" + "WESTUS:20210413T002506Z:94e5d7ca-fa28-4fc1-b4e9-815bdd8e4f80" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 08 Apr 2021 23:29:58 GMT" + "Tue, 13 Apr 2021 00:25:06 GMT" ], "Content-Length": [ - "2221" + "2220" ], "Content-Type": [ "application/json; charset=utf-8" @@ -136,7 +136,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU2+c=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.169.82\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice\",\r\n \"name\": \"sdktestservice\",\r\n \"type\": \"Microsoft.ApiManagement/service\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"location\": \"Central US\",\r\n \"etag\": \"AAAAAAAU+d4=\",\r\n \"properties\": {\r\n \"publisherEmail\": \"apim@autorestsdk.com\",\r\n \"publisherName\": \"autorestsdk\",\r\n \"notificationSenderEmail\": \"apimgmt-noreply@mail.windowsazure.com\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"targetProvisioningState\": \"\",\r\n \"createdAtUtc\": \"2019-08-23T10:23:03.7042803Z\",\r\n \"gatewayUrl\": \"https://sdktestservice.azure-api.net\",\r\n \"gatewayRegionalUrl\": \"https://sdktestservice-centralus-01.regional.azure-api.net\",\r\n \"portalUrl\": \"https://sdktestservice.portal.azure-api.net\",\r\n \"developerPortalUrl\": \"https://sdktestservice.developer.azure-api.net\",\r\n \"managementApiUrl\": \"https://sdktestservice.management.azure-api.net\",\r\n \"scmUrl\": \"https://sdktestservice.scm.azure-api.net\",\r\n \"hostnameConfigurations\": [\r\n {\r\n \"type\": \"Proxy\",\r\n \"hostName\": \"sdktestservice.azure-api.net\",\r\n \"encodedCertificate\": null,\r\n \"keyVaultId\": null,\r\n \"certificatePassword\": null,\r\n \"negotiateClientCertificate\": false,\r\n \"certificate\": null,\r\n \"defaultSslBinding\": true,\r\n \"identityClientId\": null\r\n }\r\n ],\r\n \"publicIPAddresses\": [\r\n \"104.43.171.8\"\r\n ],\r\n \"privateIPAddresses\": null,\r\n \"additionalLocations\": null,\r\n \"virtualNetworkConfiguration\": null,\r\n \"customProperties\": {\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30\": \"False\",\r\n \"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2\": \"False\"\r\n },\r\n \"virtualNetworkType\": \"None\",\r\n \"certificates\": [],\r\n \"disableGateway\": false,\r\n \"apiVersionConstraint\": {\r\n \"minApiVersion\": null\r\n }\r\n },\r\n \"sku\": {\r\n \"name\": \"Developer\",\r\n \"capacity\": 1\r\n },\r\n \"identity\": null,\r\n \"zones\": null\r\n}", "StatusCode": 200 }, { @@ -146,7 +146,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e818e20b-8df5-4353-9cd6-84bfb975eb2b" + "176648d3-f21f-496f-85bb-810f404a2964" ], "Accept-Language": [ "en-US" @@ -175,7 +175,7 @@ "nosniff" ], "x-ms-request-id": [ - "e8e7fbef-895a-42a7-babf-c0a3a5534204" + "88910a4a-bea9-48d6-8680-43ceb85ba5f7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -184,13 +184,13 @@ "11998" ], "x-ms-correlation-request-id": [ - "3c0dfde6-0907-49fc-a0c2-fb2e3cab2cee" + "9f209761-54f1-4f85-9248-667a615b4df6" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232958Z:3c0dfde6-0907-49fc-a0c2-fb2e3cab2cee" + "WESTUS:20210413T002506Z:9f209761-54f1-4f85-9248-667a615b4df6" ], "Date": [ - "Thu, 08 Apr 2021 23:29:58 GMT" + "Tue, 13 Apr 2021 00:25:06 GMT" ], "Content-Length": [ "0" @@ -209,7 +209,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "58b88179-b237-4ad6-a104-df926751af01" + "02c4816a-5893-4878-bd83-928e0da6ee5d" ], "Accept-Language": [ "en-US" @@ -238,7 +238,7 @@ "nosniff" ], "x-ms-request-id": [ - "907a4642-ad71-4c5b-9f68-01d67b4ab2c5" + "6635aa76-9b57-4e5b-910d-41cd7458f46e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -247,13 +247,13 @@ "11997" ], "x-ms-correlation-request-id": [ - "ac13ae61-4a8c-4db8-9687-f8c1b4f353dc" + "14d49b23-5110-4504-b882-872033be06a6" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232958Z:ac13ae61-4a8c-4db8-9687-f8c1b4f353dc" + "WESTUS:20210413T002507Z:14d49b23-5110-4504-b882-872033be06a6" ], "Date": [ - "Thu, 08 Apr 2021 23:29:58 GMT" + "Tue, 13 Apr 2021 00:25:06 GMT" ], "Content-Length": [ "380" @@ -275,7 +275,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4f8577a8-0d0d-4f39-be21-29c618e54fa4" + "cc0c366b-c23c-48e9-a244-92e670351d2a" ], "Accept-Language": [ "en-US" @@ -304,7 +304,7 @@ "nosniff" ], "x-ms-request-id": [ - "2bd022ec-5fe7-4037-9e97-d212a37ca246" + "c020b251-88ae-467b-88f3-47d88eb304b4" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -313,13 +313,13 @@ "1199" ], "x-ms-correlation-request-id": [ - "136db555-6733-48b2-948c-e8f2e118dc4a" + "523c8604-692d-467c-b95a-570ffbcb012a" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232958Z:136db555-6733-48b2-948c-e8f2e118dc4a" + "WESTUS:20210413T002507Z:523c8604-692d-467c-b95a-570ffbcb012a" ], "Date": [ - "Thu, 08 Apr 2021 23:29:58 GMT" + "Tue, 13 Apr 2021 00:25:06 GMT" ], "Content-Length": [ "271" @@ -335,13 +335,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/tenant/gitAccess/git/regeneratePrimaryKey?api-version=2020-12-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS90ZW5hbnQvZ2l0QWNjZXNzL2dpdC9yZWdlbmVyYXRlUHJpbWFyeUtleT9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/tenant/gitAccess/listSecrets?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS90ZW5hbnQvZ2l0QWNjZXNzL2xpc3RTZWNyZXRzP2FwaS12ZXJzaW9uPTIwMjAtMTItMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7e0882b8-785c-42aa-acc2-ba1aa3886f6b" + "88b7cc94-ad8c-494a-905c-8d61a9c24e10" ], "Accept-Language": [ "en-US" @@ -360,6 +360,9 @@ "Pragma": [ "no-cache" ], + "ETag": [ + "\"AAAAAAAAfTIAAAAAAAAAAA==\"" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -367,32 +370,215 @@ "nosniff" ], "x-ms-request-id": [ - "b09bc15b-af1b-48d6-9b52-fddd47613966" + "a27c033b-26ec-421e-a9ce-fd730968883d" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-correlation-request-id": [ - "2bf24629-c0ce-4343-b858-5de0128a107c" + "1826eaa8-a0b6-4b1a-9489-2dff63ed556b" ], "x-ms-routing-request-id": [ - "WESTUS:20210408T232959Z:2bf24629-c0ce-4343-b858-5de0128a107c" + "WESTUS:20210413T002507Z:1826eaa8-a0b6-4b1a-9489-2dff63ed556b" ], "Date": [ - "Thu, 08 Apr 2021 23:29:59 GMT" + "Tue, 13 Apr 2021 00:25:07 GMT" + ], + "Content-Length": [ + "271" + ], + "Content-Type": [ + "application/json; charset=utf-8" ], "Expires": [ "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/tenant/gitAccess\",\r\n \"principalId\": \"git\",\r\n \"primaryKey\": \"+LZrFT2G6r7XLrSr/lQIELU16Rg0v5jsV401c6e7YzXhqp7uLiDgQ0swMKWqlw1Wx27rWaEyHahS8RAJaubaOw==\",\r\n \"secondaryKey\": \"JJycA2PEhrjEqZC3l1IZXPq8NwVGON2F1gzYmNnVH7vwpo/yZf6ZzuPTAYl3OIdwQIXCWql+U35SVMcdrFjHTQ==\",\r\n \"enabled\": true\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/tenant/gitAccess/listSecrets?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS90ZW5hbnQvZ2l0QWNjZXNzL2xpc3RTZWNyZXRzP2FwaS12ZXJzaW9uPTIwMjAtMTItMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "02cbfab0-0502-4d26-9a5c-cbfd4f17536f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"AAAAAAAAfTQAAAAAAAAAAA==\"" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0949abbe-6819-4471-b0a5-cac1572e4fe8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "5ba40771-5d8c-49d9-820f-9848ff8a6e9e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T002508Z:5ba40771-5d8c-49d9-820f-9848ff8a6e9e" + ], + "Date": [ + "Tue, 13 Apr 2021 00:25:07 GMT" ], "Content-Length": [ - "0" + "271" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/tenant/gitAccess\",\r\n \"principalId\": \"git\",\r\n \"primaryKey\": \"+LZrFT2G6r7XLrSr/lQIELU16Rg0v5jsV401c6e7YzXhqp7uLiDgQ0swMKWqlw1Wx27rWaEyHahS8RAJaubaOw==\",\r\n \"secondaryKey\": \"+V3TEvwEoKxrwEqHu2P/MgS73Iv2+tk+x7MXujEj8PHRR9HLOEKg3LfwPVKZdy+I1KzT5VwXEi8TXcoPF0S9VQ==\",\r\n \"enabled\": true\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/tenant/access/git/regeneratePrimaryKey?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS90ZW5hbnQvYWNjZXNzL2dpdC9yZWdlbmVyYXRlUHJpbWFyeUtleT9hcGktdmVyc2lvbj0yMDIwLTEyLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58480672-8239-4c0f-9baa-1059a1df82f2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "2025e240-21a7-4ede-8aea-bac170743408" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "aec596a2-9851-4454-bf5c-6effa1cf40eb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T002507Z:aec596a2-9851-4454-bf5c-6effa1cf40eb" + ], + "Date": [ + "Tue, 13 Apr 2021 00:25:07 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/bab08e11-7b12-4354-9fd1-4b5d64d40b68/resourceGroups/Api-Default-CentralUS/providers/Microsoft.ApiManagement/service/sdktestservice/tenant/access/git/regenerateSecondaryKey?api-version=2020-12-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiMDhlMTEtN2IxMi00MzU0LTlmZDEtNGI1ZDY0ZDQwYjY4L3Jlc291cmNlR3JvdXBzL0FwaS1EZWZhdWx0LUNlbnRyYWxVUy9wcm92aWRlcnMvTWljcm9zb2Z0LkFwaU1hbmFnZW1lbnQvc2VydmljZS9zZGt0ZXN0c2VydmljZS90ZW5hbnQvYWNjZXNzL2dpdC9yZWdlbmVyYXRlU2Vjb25kYXJ5S2V5P2FwaS12ZXJzaW9uPTIwMjAtMTItMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "df56a0e0-c7b6-437e-84c8-fe8cc58268e8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ApiManagement.ApiManagementClient/7.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ade18892-d08e-452f-9039-6c44d04a4d9e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "19890987-3a0b-4d4f-abdc-cb8a078f11c6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210413T002508Z:19890987-3a0b-4d4f-abdc-cb8a078f11c6" + ], + "Date": [ + "Tue, 13 Apr 2021 00:25:07 GMT" + ], + "Expires": [ + "-1" ] }, "ResponseBody": "", - "StatusCode": 404 + "StatusCode": 204 } ], "Names": {}, From 1f7202a6e1095559e211bf40327bd481493fa21c Mon Sep 17 00:00:00 2001 From: Samir Solanki Date: Mon, 12 Apr 2021 18:52:58 -0700 Subject: [PATCH 2/2] domain ownership identifier test --- .../tests/ResourceProviderTests/CreateMultiHostNameService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ResourceProviderTests/CreateMultiHostNameService.cs b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ResourceProviderTests/CreateMultiHostNameService.cs index d8344637383d..57b0afdaefee 100644 --- a/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ResourceProviderTests/CreateMultiHostNameService.cs +++ b/sdk/apimanagement/Microsoft.Azure.Management.ApiManagement/tests/ResourceProviderTests/CreateMultiHostNameService.cs @@ -27,6 +27,9 @@ public void CreateMultiHostNameService() { var testBase = new ApiManagementTestBase(context); + var domainOwnershipIdentifierResult = testBase.client.ApiManagementService.GetDomainOwnershipIdentifier(); + Assert.NotNull(domainOwnershipIdentifierResult); + testBase.serviceProperties.Sku.Name = SkuType.Premium; var hostnameConfig1 = new HostnameConfiguration() {