From 7991a753a1d682cf07b156bd2494834daa580fea Mon Sep 17 00:00:00 2001 From: Karl Augsten Date: Wed, 30 Nov 2016 10:23:32 -0800 Subject: [PATCH 1/8] KeyVault: Add soft delete capability to C# SDK. - Includes session recording changes. --- .../KeyVault_KeyResolver_ResolveKey.json | 110 +- ...lt_KeyResolver_ResolveSecret128Base64.json | 132 +- ...lt_KeyResolver_ResolveSecret192Base64.json | 132 +- ...lt_KeyResolver_ResolveSecret256Base64.json | 132 +- .../Tests/KeyVaultKeyResolverTests.cs | 28 +- .../appsettings.json | 3 +- .../KeyVaultTestFixture.cs | 44 +- .../SoftDeleteErrorDetectionStrategy.cs | 34 + .../KeyVaultOperationsTest.cs | 490 +- .../ObjectIdentifierTests.cs | 52 + .../KeyVaultBackupRestoreTest.json | 149 +- ...ltCertificateAsyncDeleteOperationTest.json | 116 +- ...rtificateAsyncRequestCancellationTest.json | 103 +- .../KeyVaultCertificateContactsTest.json | 109 +- ...ltCertificateCreateLongSelfSignedTest.json | 116 +- ...ltCertificateCreateManualEnrolledTest.json | 63 +- ...yVaultCertificateCreateSelfSignedTest.json | 116 +- ...yVaultCertificateCreateTestIssuerTest.json | 135 +- .../KeyVaultCertificateImportTest.json | 120 +- .../KeyVaultCertificateImportTest2.json | 105 +- .../KeyVaultCertificateImportTest3.json | 113 +- .../KeyVaultCertificateIssuersTest.json | 151 +- .../KeyVaultCertificateListTest.json | 99 +- .../KeyVaultCertificateListVersionsTest.json | 88 +- .../KeyVaultCertificatePolicyTest.json | 99 +- .../KeyVaultCertificateUpdateTest.json | 99 +- .../KeyVaultConstructor.json | 18 +- .../KeyVaultCreateGetDeleteKeyTest.json | 82 +- .../KeyVaultCreateHsmKeyTest.json | 61 +- .../KeyVaultEncryptDecryptRsa15Test.json | 48 +- .../KeyVaultEncryptDecryptRsaOaepTest.json | 44 +- ...ncryptDecryptWithDifferentKeyVersions.json | 69 +- ...aultEncryptDecryptWithOlderKeyVersion.json | 63 +- .../KeyVaultGetDeletedKeyTest.json | 650 ++ .../KeyVaultGetDeletedSecretTest.json | 458 ++ .../KeyVaultGetSecretVersionTest.json | 118 +- .../KeyVaultImportSoftKeyTest.json | 63 +- ...yVaultKeyCreateDeleteRecoverPurgeTest.json | 1290 ++++ .../KeyVaultListDeletedKeysTest.json | 1866 ++++++ .../KeyVaultListDeletedSecretsTest.json | 1930 ++++++ .../KeyVaultListKeyVersionsTest.json | 553 +- .../KeyVaultListKeysTest.json | 175 +- .../KeyVaultListSecretVersionsTest.json | 553 +- .../KeyVaultListSecretsTest.json | 171 +- ...ultSecretCreateDeleteRecoverPurgeTest.json | 1482 +++++ .../KeyVaultSecretCreateUpdateDeleteTest.json | 135 +- .../KeyVaultSignVerifyRS256Test.json | 42 +- .../KeyVaultSignVerifyRS384Test.json | 42 +- .../KeyVaultSignVerifyRS512Test.json | 42 +- .../KeyVaultTestSecretExtendedAttributes.json | 42 +- .../KeyVaultUpdateKeyAttributesTest.json | 99 +- ...ltUpdateKeyAttributesWithNoChangeTest.json | 67 +- .../KeyVaultWrapUnwrapRsa15Test.json | 48 +- .../KeyVaultWrapUnwrapRsaOaepTest.json | 44 +- .../appsettings.json | 3 +- .../Customized/DeletedKeyBundle.cs | 24 + .../Customized/DeletedKeyItem.cs | 24 + .../Customized/DeletedSecretBundle.cs | 24 + .../Customized/DeletedSecretItem.cs | 24 + .../Customized/KeyVaultClientExtensions.cs | 88 +- .../Customized/ObjectIdentifier.cs | 80 +- .../Generated/IKeyVaultClient.cs | 179 +- .../Generated/KeyVaultClient.cs | 5421 +++++++++++------ .../Generated/KeyVaultClientExtensions.cs | 621 +- .../Generated/Models/DeletedKeyBundle.cs | 77 + .../Generated/Models/DeletedKeyItem.cs | 76 + .../Generated/Models/DeletedSecretBundle.cs | 81 + .../Generated/Models/DeletedSecretItem.cs | 77 + 68 files changed, 15099 insertions(+), 4893 deletions(-) create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/SoftDeleteErrorDetectionStrategy.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedKeyTest.json create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedSecretTest.json create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultKeyCreateDeleteRecoverPurgeTest.json create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedKeysTest.json create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedSecretsTest.json create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateDeleteRecoverPurgeTest.json create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyBundle.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyItem.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretBundle.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretItem.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs create mode 100644 src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveKey.json b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveKey.json index be269b1d60d1..e6630cc6f3a7 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveKey.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveKey.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/TestKey/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1Rlc3RLZXkvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/TestKey/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVGVzdEtleS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "20" ], "x-ms-client-request-id": [ - "99215b0b-0317-4a6c-8e94-90fdd5f2d9d0" + "656a604c-c0b1-440f-b660-10d5a8500214" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"xo8QY0dc5cLy2ZkvhtKqGzZmGwKSo_MJLmA6rN7mG55lraft_3sH-IAbFvyf7IUxq6IuAOF5Vq3uR47XriI3e1-FA81jaaVSz3yTPsDS5Ct1yMnBMrxc4Ji19-tCa84HQgV4-XJ4K3q9dmQOlwvPMm5p5Vo6ZfhviBBiRohIXb9BFcnH09MXTKseZ_e7bA5AdUAjPOfMJekepqv3ezdzuor0YlzDkGF-ic327fdvV-kFppDJ3j6W3b_oR2hvuR48Fi1pLqFmE1WIgV60njOq_Vwp3zc4dck2O8EdonuDwWZ53i8O3q_lvX5Yf5F456NFtWI-XFPTyfv0oK03MWFAlQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"ygGn88nucVPRRC2Aox6WieLX-CJQQPmusNFNWpHR5P8547aF1YX--okRZSkyF7iJDug-On0hxrwYE4iY6K1GOmh9Fc6wOJFeKib9_znl9-j7KiM_aA9MC9p7wc9WE3q7jdEexE9wVmGSE4LMnA8CSK_dQxFmXXSBvJZM7wk10bfOA8qLi8DXtLkaGr2haTg-yeSq6PMZcPXIoSH8DZ-f_4LU_76mT4-EMc93y445hsZxL0_LfFWP_PWPJwZVm1xJ3mSzfDuir3S1lUiioTpvRvmr8PkFNx9hhVHM-Lwt09_reeuEK7ERX6nEWJoV_K97UEZl6acjsBBoCQ3l72yCvw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188936,\r\n \"updated\": 1482188936\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "615" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:51 GMT" + "Mon, 19 Dec 2016 23:08:56 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "4901265c-e126-4b99-b4b3-a557b71ca2a6" + "f9027a8c-2be6-4723-bdfa-7a75c90218d1" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -76,16 +77,17 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8d5ae255-d7b2-4116-9e8d-16ed0f73ab0b" + "68ce5289-c427-4bbc-a673-72f359001ea2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"xo8QY0dc5cLy2ZkvhtKqGzZmGwKSo_MJLmA6rN7mG55lraft_3sH-IAbFvyf7IUxq6IuAOF5Vq3uR47XriI3e1-FA81jaaVSz3yTPsDS5Ct1yMnBMrxc4Ji19-tCa84HQgV4-XJ4K3q9dmQOlwvPMm5p5Vo6ZfhviBBiRohIXb9BFcnH09MXTKseZ_e7bA5AdUAjPOfMJekepqv3ezdzuor0YlzDkGF-ic327fdvV-kFppDJ3j6W3b_oR2hvuR48Fi1pLqFmE1WIgV60njOq_Vwp3zc4dck2O8EdonuDwWZ53i8O3q_lvX5Yf5F456NFtWI-XFPTyfv0oK03MWFAlQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"ygGn88nucVPRRC2Aox6WieLX-CJQQPmusNFNWpHR5P8547aF1YX--okRZSkyF7iJDug-On0hxrwYE4iY6K1GOmh9Fc6wOJFeKib9_znl9-j7KiM_aA9MC9p7wc9WE3q7jdEexE9wVmGSE4LMnA8CSK_dQxFmXXSBvJZM7wk10bfOA8qLi8DXtLkaGr2haTg-yeSq6PMZcPXIoSH8DZ-f_4LU_76mT4-EMc93y445hsZxL0_LfFWP_PWPJwZVm1xJ3mSzfDuir3S1lUiioTpvRvmr8PkFNx9hhVHM-Lwt09_reeuEK7ERX6nEWJoV_K97UEZl6acjsBBoCQ3l72yCvw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188936,\r\n \"updated\": 1482188936\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "615" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:51 GMT" + "Mon, 19 Dec 2016 23:08:56 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0f80412d-3940-4a36-9380-68a170eedefa" + "4477fe19-4a13-43b0-ac74-a3b0de285c72" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,16 +141,17 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "163fdf22-2715-4718-bea4-9f89ced03d51" + "dfec0b9c-b6eb-4e12-9a9b-785cc1bf6dcf" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"xo8QY0dc5cLy2ZkvhtKqGzZmGwKSo_MJLmA6rN7mG55lraft_3sH-IAbFvyf7IUxq6IuAOF5Vq3uR47XriI3e1-FA81jaaVSz3yTPsDS5Ct1yMnBMrxc4Ji19-tCa84HQgV4-XJ4K3q9dmQOlwvPMm5p5Vo6ZfhviBBiRohIXb9BFcnH09MXTKseZ_e7bA5AdUAjPOfMJekepqv3ezdzuor0YlzDkGF-ic327fdvV-kFppDJ3j6W3b_oR2hvuR48Fi1pLqFmE1WIgV60njOq_Vwp3zc4dck2O8EdonuDwWZ53i8O3q_lvX5Yf5F456NFtWI-XFPTyfv0oK03MWFAlQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"ygGn88nucVPRRC2Aox6WieLX-CJQQPmusNFNWpHR5P8547aF1YX--okRZSkyF7iJDug-On0hxrwYE4iY6K1GOmh9Fc6wOJFeKib9_znl9-j7KiM_aA9MC9p7wc9WE3q7jdEexE9wVmGSE4LMnA8CSK_dQxFmXXSBvJZM7wk10bfOA8qLi8DXtLkaGr2haTg-yeSq6PMZcPXIoSH8DZ-f_4LU_76mT4-EMc93y445hsZxL0_LfFWP_PWPJwZVm1xJ3mSzfDuir3S1lUiioTpvRvmr8PkFNx9hhVHM-Lwt09_reeuEK7ERX6nEWJoV_K97UEZl6acjsBBoCQ3l72yCvw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188936,\r\n \"updated\": 1482188936\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "615" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:51 GMT" + "Mon, 19 Dec 2016 23:08:56 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "9c5d5bab-d4e7-4ec7-beaa-972f4b77ecf5" + "dea1e86e-d548-41c5-951a-327c608e215f" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,22 +199,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvVGVzdEtleS8zMjUyMDIwYTRjZTc0YzI3OGNmM2Y3Yjk3NDYwZjM0Yj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVGVzdEtleS82ZTM2N2Q1YzRmN2U0YzliYTQ5YmQ1ODI1YmRkNmIxNT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "91f9946e-b0af-4ff8-91a9-feb20c7d3c74" + "205e20be-00e1-4884-8801-cf96d8ef7b1f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"xo8QY0dc5cLy2ZkvhtKqGzZmGwKSo_MJLmA6rN7mG55lraft_3sH-IAbFvyf7IUxq6IuAOF5Vq3uR47XriI3e1-FA81jaaVSz3yTPsDS5Ct1yMnBMrxc4Ji19-tCa84HQgV4-XJ4K3q9dmQOlwvPMm5p5Vo6ZfhviBBiRohIXb9BFcnH09MXTKseZ_e7bA5AdUAjPOfMJekepqv3ezdzuor0YlzDkGF-ic327fdvV-kFppDJ3j6W3b_oR2hvuR48Fi1pLqFmE1WIgV60njOq_Vwp3zc4dck2O8EdonuDwWZ53i8O3q_lvX5Yf5F456NFtWI-XFPTyfv0oK03MWFAlQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"ygGn88nucVPRRC2Aox6WieLX-CJQQPmusNFNWpHR5P8547aF1YX--okRZSkyF7iJDug-On0hxrwYE4iY6K1GOmh9Fc6wOJFeKib9_znl9-j7KiM_aA9MC9p7wc9WE3q7jdEexE9wVmGSE4LMnA8CSK_dQxFmXXSBvJZM7wk10bfOA8qLi8DXtLkaGr2haTg-yeSq6PMZcPXIoSH8DZ-f_4LU_76mT4-EMc93y445hsZxL0_LfFWP_PWPJwZVm1xJ3mSzfDuir3S1lUiioTpvRvmr8PkFNx9hhVHM-Lwt09_reeuEK7ERX6nEWJoV_K97UEZl6acjsBBoCQ3l72yCvw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188936,\r\n \"updated\": 1482188936\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "615" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:51 GMT" + "Mon, 19 Dec 2016 23:08:56 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "2af6a7d5-545d-4b44-a172-89831b5ff7b1" + "f287e155-88f6-42ac-8329-0fb3803b8c4e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -259,22 +263,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvVGVzdEtleS8zMjUyMDIwYTRjZTc0YzI3OGNmM2Y3Yjk3NDYwZjM0Yj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVGVzdEtleS82ZTM2N2Q1YzRmN2U0YzliYTQ5YmQ1ODI1YmRkNmIxNT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "76686a57-3215-4c34-ad05-2025531cde43" + "a1f4a79a-d170-4a53-881a-c1b8e7f54bad" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"xo8QY0dc5cLy2ZkvhtKqGzZmGwKSo_MJLmA6rN7mG55lraft_3sH-IAbFvyf7IUxq6IuAOF5Vq3uR47XriI3e1-FA81jaaVSz3yTPsDS5Ct1yMnBMrxc4Ji19-tCa84HQgV4-XJ4K3q9dmQOlwvPMm5p5Vo6ZfhviBBiRohIXb9BFcnH09MXTKseZ_e7bA5AdUAjPOfMJekepqv3ezdzuor0YlzDkGF-ic327fdvV-kFppDJ3j6W3b_oR2hvuR48Fi1pLqFmE1WIgV60njOq_Vwp3zc4dck2O8EdonuDwWZ53i8O3q_lvX5Yf5F456NFtWI-XFPTyfv0oK03MWFAlQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"ygGn88nucVPRRC2Aox6WieLX-CJQQPmusNFNWpHR5P8547aF1YX--okRZSkyF7iJDug-On0hxrwYE4iY6K1GOmh9Fc6wOJFeKib9_znl9-j7KiM_aA9MC9p7wc9WE3q7jdEexE9wVmGSE4LMnA8CSK_dQxFmXXSBvJZM7wk10bfOA8qLi8DXtLkaGr2haTg-yeSq6PMZcPXIoSH8DZ-f_4LU_76mT4-EMc93y445hsZxL0_LfFWP_PWPJwZVm1xJ3mSzfDuir3S1lUiioTpvRvmr8PkFNx9hhVHM-Lwt09_reeuEK7ERX6nEWJoV_K97UEZl6acjsBBoCQ3l72yCvw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188936,\r\n \"updated\": 1482188936\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "615" @@ -289,7 +294,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:51 GMT" + "Mon, 19 Dec 2016 23:08:56 GMT" ], "Pragma": [ "no-cache" @@ -298,13 +303,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "23265ac9-e504-4411-96aa-a94c91f6fd2e" + "deeccf75-2b4f-4a93-a523-2df2cec072a9" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -322,22 +327,23 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/TestKey?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1Rlc3RLZXk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/TestKey?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVGVzdEtleT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1075db8b-af53-4e29-a670-34d74c5c20ca" + "b958219b-96de-4e1f-b3f0-9afd62c4db73" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/TestKey/3252020a4ce74c278cf3f7b97460f34b\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"xo8QY0dc5cLy2ZkvhtKqGzZmGwKSo_MJLmA6rN7mG55lraft_3sH-IAbFvyf7IUxq6IuAOF5Vq3uR47XriI3e1-FA81jaaVSz3yTPsDS5Ct1yMnBMrxc4Ji19-tCa84HQgV4-XJ4K3q9dmQOlwvPMm5p5Vo6ZfhviBBiRohIXb9BFcnH09MXTKseZ_e7bA5AdUAjPOfMJekepqv3ezdzuor0YlzDkGF-ic327fdvV-kFppDJ3j6W3b_oR2hvuR48Fi1pLqFmE1WIgV60njOq_Vwp3zc4dck2O8EdonuDwWZ53i8O3q_lvX5Yf5F456NFtWI-XFPTyfv0oK03MWFAlQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/TestKey/6e367d5c4f7e4c9ba49bd5825bdd6b15\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"ygGn88nucVPRRC2Aox6WieLX-CJQQPmusNFNWpHR5P8547aF1YX--okRZSkyF7iJDug-On0hxrwYE4iY6K1GOmh9Fc6wOJFeKib9_znl9-j7KiM_aA9MC9p7wc9WE3q7jdEexE9wVmGSE4LMnA8CSK_dQxFmXXSBvJZM7wk10bfOA8qLi8DXtLkaGr2haTg-yeSq6PMZcPXIoSH8DZ-f_4LU_76mT4-EMc93y445hsZxL0_LfFWP_PWPJwZVm1xJ3mSzfDuir3S1lUiioTpvRvmr8PkFNx9hhVHM-Lwt09_reeuEK7ERX6nEWJoV_K97UEZl6acjsBBoCQ3l72yCvw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188936,\r\n \"updated\": 1482188936\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "615" @@ -352,7 +358,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:52 GMT" + "Mon, 19 Dec 2016 23:08:58 GMT" ], "Pragma": [ "no-cache" @@ -361,13 +367,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "8cbd4a9c-f7df-4baf-8a89-65a925e3a6d0" + "e5e7bdf4-5042-42aa-97e4-86b80015e21e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -387,8 +393,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "78f1ce45c15047b99f90e7dd0d02d59c" + "KeyVersion": "555b0da502934f30a0d284ddd9e2a861" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret128Base64.json b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret128Base64.json index 41927029ea02..7603b1f0bbd0 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret128Base64.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret128Base64.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "//secrets/TestSecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL1Rlc3RTZWNyZXQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret128Base64?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDEyOEJhc2U2ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"value\": \"JNn1RDsbjsUpw5fpefzGCQ==\",\r\n \"contentType\": \"application/octet-stream\"\r\n}", + "RequestBody": "{\r\n \"value\": \"vQv47OVnwOXSVHZx5vTWPw==\",\r\n \"contentType\": \"application/octet-stream\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,19 +13,20 @@ "89" ], "x-ms-client-request-id": [ - "ba9b8438-5945-402f-8dff-3fec062555a4" + "f8084df0-5818-41a7-9a8d-2218f75bbed2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"JNn1RDsbjsUpw5fpefzGCQ==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082028,\r\n \"updated\": 1477082028\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"vQv47OVnwOXSVHZx5vTWPw==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188932,\r\n \"updated\": 1482188932\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "246" + "258" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:48 GMT" + "Mon, 19 Dec 2016 23:08:52 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a5e6fff0-b454-4fc5-90dd-bbe1dcfa18a3" + "f3c92cf4-8ec6-4c4c-83c3-1d4dcfbe3ee0" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,25 +71,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret128Base64/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDEyOEJhc2U2NC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9de94e01-772d-4ead-b558-fd6e616cc822" + "16601944-4c7a-4aeb-91da-9a2fca740fb5" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"JNn1RDsbjsUpw5fpefzGCQ==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082028,\r\n \"updated\": 1477082028\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"vQv47OVnwOXSVHZx5vTWPw==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188932,\r\n \"updated\": 1482188932\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "246" + "258" ], "Content-Type": [ "application/json; charset=utf-8" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:48 GMT" + "Mon, 19 Dec 2016 23:08:52 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "1a362bc6-5576-4253-b8c4-653a599038fb" + "b8168af8-ee11-47fd-ab67-02070d152f09" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,25 +135,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret128Base64/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDEyOEJhc2U2NC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0de1c085-9fb9-434a-adc0-2769d7717847" + "fab8ab6f-d332-4541-86a7-7325bda1c330" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"JNn1RDsbjsUpw5fpefzGCQ==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082028,\r\n \"updated\": 1477082028\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"vQv47OVnwOXSVHZx5vTWPw==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188932,\r\n \"updated\": 1482188932\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "246" + "258" ], "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:48 GMT" + "Mon, 19 Dec 2016 23:08:52 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0ce7ffc0-097f-4a94-8f11-16a3f29daff0" + "ed67b9bc-380b-45a6-8214-c99a757204ff" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,25 +199,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC9lZjk5ODE0YjA5MTY0MjFmOTk3Y2MwZDc5NmQyZWEyNz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDEyOEJhc2U2NC8yMTY3NjZjMWFiNzY0MmRkYTM0OWRhNjcwZmZiNjAwZj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b18aad9e-a35c-4f93-91b0-e26fb443b174" + "70799be2-fb86-4bd2-be23-3bc4c9a3325f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"JNn1RDsbjsUpw5fpefzGCQ==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082028,\r\n \"updated\": 1477082028\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"vQv47OVnwOXSVHZx5vTWPw==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188932,\r\n \"updated\": 1482188932\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "246" + "258" ], "Content-Type": [ "application/json; charset=utf-8" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:48 GMT" + "Mon, 19 Dec 2016 23:08:52 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "d5cc28d4-ff61-497d-8ca6-12d577c37c31" + "654db453-2f40-4efc-9eed-80883e8a2843" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -259,25 +263,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC9lZjk5ODE0YjA5MTY0MjFmOTk3Y2MwZDc5NmQyZWEyNz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDEyOEJhc2U2NC8yMTY3NjZjMWFiNzY0MmRkYTM0OWRhNjcwZmZiNjAwZj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bc32acb7-4fd7-4937-9362-02c11cfb12cf" + "09725f0b-dccf-4e91-a26d-916bcb56e809" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"JNn1RDsbjsUpw5fpefzGCQ==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082028,\r\n \"updated\": 1477082028\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"vQv47OVnwOXSVHZx5vTWPw==\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188932,\r\n \"updated\": 1482188932\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "246" + "258" ], "Content-Type": [ "application/json; charset=utf-8" @@ -289,7 +294,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:48 GMT" + "Mon, 19 Dec 2016 23:08:52 GMT" ], "Pragma": [ "no-cache" @@ -298,13 +303,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "157047d5-8569-47db-ac9d-426aac70f703" + "aff48031-d92c-4e5f-9ced-3353e2ad2525" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -322,25 +327,26 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/TestSecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL1Rlc3RTZWNyZXQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret128Base64?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDEyOEJhc2U2ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f19cea38-481e-4f00-b6cf-e12ca69008d2" + "81274ef9-0922-4677-a37c-2cc597678d4b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/ef99814b0916421f997cc0d796d2ea27\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082028,\r\n \"updated\": 1477082028\r\n }\r\n}", + "ResponseBody": "{\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret128Base64/216766c1ab7642dda349da670ffb600f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188932,\r\n \"updated\": 1482188932\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "211" + "223" ], "Content-Type": [ "application/json; charset=utf-8" @@ -352,7 +358,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:49 GMT" + "Mon, 19 Dec 2016 23:08:53 GMT" ], "Pragma": [ "no-cache" @@ -361,13 +367,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "54f1f7d1-ed77-4e42-8752-db8618b67efb" + "f5e89231-898c-43b6-bafb-d0e253e06ef3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -387,8 +393,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "78f1ce45c15047b99f90e7dd0d02d59c" + "KeyVersion": "555b0da502934f30a0d284ddd9e2a861" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret192Base64.json b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret192Base64.json index 3adc3d144ece..6abdf733641d 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret192Base64.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret192Base64.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "//secrets/TestSecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL1Rlc3RTZWNyZXQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret192Base64?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDE5MkJhc2U2ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"value\": \"eMj9yf/6mULKG0NM2QWNww98Lm4ilzE7\",\r\n \"contentType\": \"application/octet-stream\"\r\n}", + "RequestBody": "{\r\n \"value\": \"MUq9WZ0NjGOhLpP9OkPMYypaxtehyvOT\",\r\n \"contentType\": \"application/octet-stream\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,19 +13,20 @@ "97" ], "x-ms-client-request-id": [ - "a5a33460-b573-4432-a12a-c6b1c9daeb6b" + "42a96702-0e3d-4fb8-b1e5-3eaccc5a8288" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"eMj9yf/6mULKG0NM2QWNww98Lm4ilzE7\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082030,\r\n \"updated\": 1477082030\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"MUq9WZ0NjGOhLpP9OkPMYypaxtehyvOT\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188934,\r\n \"updated\": 1482188934\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "254" + "266" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:49 GMT" + "Mon, 19 Dec 2016 23:08:54 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ee53105e-a30c-467f-9726-f40d2113d34a" + "d9bc704d-37d8-409f-9c49-2ec0a422ca74" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,25 +71,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret192Base64/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDE5MkJhc2U2NC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fa677860-ff64-4c0c-8718-9852dac73d89" + "d7659651-380e-4a13-b9a7-db6b781aa9e8" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"eMj9yf/6mULKG0NM2QWNww98Lm4ilzE7\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082030,\r\n \"updated\": 1477082030\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"MUq9WZ0NjGOhLpP9OkPMYypaxtehyvOT\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188934,\r\n \"updated\": 1482188934\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "254" + "266" ], "Content-Type": [ "application/json; charset=utf-8" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:50 GMT" + "Mon, 19 Dec 2016 23:08:54 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e0bd7c39-ac86-4ab8-8d83-8f81245b8244" + "65e90200-a6c9-4062-bb7e-9d3b337125bd" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,25 +135,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret192Base64/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDE5MkJhc2U2NC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "995b869c-34bd-43aa-8030-ace913dad9fb" + "5ea53e20-fda0-463d-b5c0-b2b3047bc28b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"eMj9yf/6mULKG0NM2QWNww98Lm4ilzE7\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082030,\r\n \"updated\": 1477082030\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"MUq9WZ0NjGOhLpP9OkPMYypaxtehyvOT\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188934,\r\n \"updated\": 1482188934\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "254" + "266" ], "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:50 GMT" + "Mon, 19 Dec 2016 23:08:55 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "8f575cf3-e33a-40c9-97c6-01b839d0170e" + "8b6756fd-34c0-4c15-b6d5-3926e673644c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,25 +199,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC82ODI2OGVhODg1ZDI0Y2Y3OGU1ZmZiYTgzZWQ2ZWE4MT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDE5MkJhc2U2NC8zMDY5YzU4NjI5YTM0MTZhOGVhNTdjMDNmYThjMzcyZj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b4018e13-50a4-4b23-ace1-1158d507bff6" + "26f7d9d5-3a73-470c-85ea-3d741db100b0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"eMj9yf/6mULKG0NM2QWNww98Lm4ilzE7\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082030,\r\n \"updated\": 1477082030\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"MUq9WZ0NjGOhLpP9OkPMYypaxtehyvOT\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188934,\r\n \"updated\": 1482188934\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "254" + "266" ], "Content-Type": [ "application/json; charset=utf-8" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:50 GMT" + "Mon, 19 Dec 2016 23:08:54 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "051b14f4-bc07-4812-809b-09c812ccf7cc" + "bc902d29-6a93-4cf6-b9eb-2f48a7ac8e35" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -259,25 +263,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC82ODI2OGVhODg1ZDI0Y2Y3OGU1ZmZiYTgzZWQ2ZWE4MT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDE5MkJhc2U2NC8zMDY5YzU4NjI5YTM0MTZhOGVhNTdjMDNmYThjMzcyZj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6953a4d1-16ac-4d85-ad24-630945e23acd" + "f91b7fc9-1e35-43f3-95e7-cb7f52591eac" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"eMj9yf/6mULKG0NM2QWNww98Lm4ilzE7\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082030,\r\n \"updated\": 1477082030\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"MUq9WZ0NjGOhLpP9OkPMYypaxtehyvOT\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188934,\r\n \"updated\": 1482188934\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "254" + "266" ], "Content-Type": [ "application/json; charset=utf-8" @@ -289,7 +294,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:50 GMT" + "Mon, 19 Dec 2016 23:08:55 GMT" ], "Pragma": [ "no-cache" @@ -298,13 +303,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ca9bb6ed-c65c-469a-9890-cf6cc0e07f1b" + "d30ef45e-b23e-4798-becd-e7d9aa5c7988" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -322,25 +327,26 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/TestSecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL1Rlc3RTZWNyZXQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret192Base64?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDE5MkJhc2U2ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b9d60691-331b-4877-a277-1bdf695d82bb" + "c08f70c3-03f2-45ec-aa53-9b5f46aff451" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/68268ea885d24cf78e5ffba83ed6ea81\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082030,\r\n \"updated\": 1477082030\r\n }\r\n}", + "ResponseBody": "{\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret192Base64/3069c58629a3416a8ea57c03fa8c372f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188934,\r\n \"updated\": 1482188934\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "211" + "223" ], "Content-Type": [ "application/json; charset=utf-8" @@ -352,7 +358,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:50 GMT" + "Mon, 19 Dec 2016 23:08:55 GMT" ], "Pragma": [ "no-cache" @@ -361,13 +367,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "1f1fba35-60d7-4f50-9851-d9c7288c620f" + "3fcf13e1-665e-437d-a001-1e6acd55238a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -387,8 +393,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "78f1ce45c15047b99f90e7dd0d02d59c" + "KeyVersion": "555b0da502934f30a0d284ddd9e2a861" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret256Base64.json b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret256Base64.json index 22ccf19f5334..715577f5e241 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret256Base64.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/SessionRecords/Microsoft.Azure.KeyVault.Extensions.Tests.KeyVaultKeyResolverTests/KeyVault_KeyResolver_ResolveSecret256Base64.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "//secrets/TestSecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL1Rlc3RTZWNyZXQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret256Base64?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDI1NkJhc2U2ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"value\": \"8SEskHRR0RjJtJMNQ71olPkhl7qFymmM2z7dF7JJDz0=\",\r\n \"contentType\": \"application/octet-stream\"\r\n}", + "RequestBody": "{\r\n \"value\": \"6vepnVZZ+Y+K/JbUOWu14qFVhbQ4xjteTaMrf3BaNdA=\",\r\n \"contentType\": \"application/octet-stream\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,19 +13,20 @@ "109" ], "x-ms-client-request-id": [ - "05d65943-9622-48f4-874d-14bb5845a0f0" + "b0ea2acb-e61a-4fd9-8824-f52abbf2f06c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"8SEskHRR0RjJtJMNQ71olPkhl7qFymmM2z7dF7JJDz0=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"6vepnVZZ+Y+K/JbUOWu14qFVhbQ4xjteTaMrf3BaNdA=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188939,\r\n \"updated\": 1482188939\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "266" + "278" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:52 GMT" + "Mon, 19 Dec 2016 23:08:59 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "48282025-8215-4831-af08-5c98ed57d6b4" + "97fbcdfd-0774-4693-903b-73f64e7685d2" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,25 +71,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret256Base64/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDI1NkJhc2U2NC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f6befc77-cba1-4d48-be9f-a7510926922c" + "fbed12ed-0724-4266-9b4f-8188a964f159" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"8SEskHRR0RjJtJMNQ71olPkhl7qFymmM2z7dF7JJDz0=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"6vepnVZZ+Y+K/JbUOWu14qFVhbQ4xjteTaMrf3BaNdA=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188939,\r\n \"updated\": 1482188939\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "266" + "278" ], "Content-Type": [ "application/json; charset=utf-8" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:52 GMT" + "Mon, 19 Dec 2016 23:08:59 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "6f6bf913-4ce1-4283-879f-ab94da18b057" + "0875cf78-862a-4018-b2d5-87e0bad2a654" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,25 +135,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret256Base64/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDI1NkJhc2U2NC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6f988a69-0542-40d3-bfcb-7263797ab8b9" + "ed608c5d-31cd-4acb-a93d-708885f270a0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"8SEskHRR0RjJtJMNQ71olPkhl7qFymmM2z7dF7JJDz0=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"6vepnVZZ+Y+K/JbUOWu14qFVhbQ4xjteTaMrf3BaNdA=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188939,\r\n \"updated\": 1482188939\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "266" + "278" ], "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:52 GMT" + "Mon, 19 Dec 2016 23:08:59 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "f6451c7f-e6f8-4da8-a2b4-199acaccc9b3" + "14591347-ed18-4e8c-912b-be6a2a384b2b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,25 +199,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC81OTZmMjQ4ZGI2ODU0MDRiYWM4ZDMwZWM4ZmY3NWUyYz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDI1NkJhc2U2NC82NjhkNjBlMmMxNjU0OWZjOTVlZmZiNWU4ZmFkZGVmYz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4bdeeeab-8f46-4fba-aa42-29740689dcb5" + "361748aa-7942-4f85-a470-563e74d0da63" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"8SEskHRR0RjJtJMNQ71olPkhl7qFymmM2z7dF7JJDz0=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"6vepnVZZ+Y+K/JbUOWu14qFVhbQ4xjteTaMrf3BaNdA=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188939,\r\n \"updated\": 1482188939\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "266" + "278" ], "Content-Type": [ "application/json; charset=utf-8" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:52 GMT" + "Mon, 19 Dec 2016 23:08:59 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cd175faa-4b91-4049-b935-078db7d14c54" + "3191b002-8aff-4770-b4cf-548d95bbe961" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -259,25 +263,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvVGVzdFNlY3JldC81OTZmMjQ4ZGI2ODU0MDRiYWM4ZDMwZWM4ZmY3NWUyYz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDI1NkJhc2U2NC82NjhkNjBlMmMxNjU0OWZjOTVlZmZiNWU4ZmFkZGVmYz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a6349d3c-b73b-4407-911e-30687e466ff8" + "2969b888-6fd2-4973-a5f4-364b8fbafad2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"8SEskHRR0RjJtJMNQ71olPkhl7qFymmM2z7dF7JJDz0=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"6vepnVZZ+Y+K/JbUOWu14qFVhbQ4xjteTaMrf3BaNdA=\",\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188939,\r\n \"updated\": 1482188939\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "266" + "278" ], "Content-Type": [ "application/json; charset=utf-8" @@ -289,7 +294,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:52 GMT" + "Mon, 19 Dec 2016 23:08:59 GMT" ], "Pragma": [ "no-cache" @@ -298,13 +303,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "bb41f83b-3007-4f34-8545-8b6581196749" + "0c207cfb-0f93-4747-bc91-209c8650e1c2" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -322,25 +327,26 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/TestSecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL1Rlc3RTZWNyZXQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/ResolveSecret256Base64?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvUmVzb2x2ZVNlY3JldDI1NkJhc2U2ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f7e6e1af-74a5-4a50-a0c8-cb0610e4cf0c" + "eb862830-b420-4d44-8c5c-2bdba98299d9" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/TestSecret/596f248db685404bac8d30ec8ff75e2c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082032,\r\n \"updated\": 1477082032\r\n }\r\n}", + "ResponseBody": "{\r\n \"contentType\": \"application/octet-stream\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/ResolveSecret256Base64/668d60e2c16549fc95effb5e8faddefc\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188939,\r\n \"updated\": 1482188939\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "211" + "223" ], "Content-Type": [ "application/json; charset=utf-8" @@ -352,7 +358,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:52 GMT" + "Mon, 19 Dec 2016 23:09:00 GMT" ], "Pragma": [ "no-cache" @@ -361,13 +367,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "30ca3fae-52e6-475a-9962-7e55f433c577" + "f518388e-f4fa-4afa-aabf-d8b116e0fa36" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -387,8 +393,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "78f1ce45c15047b99f90e7dd0d02d59c" + "KeyVersion": "555b0da502934f30a0d284ddd9e2a861" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/Tests/KeyVaultKeyResolverTests.cs b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/Tests/KeyVaultKeyResolverTests.cs index 32170ab61f00..32a4fb3fbdb7 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/Tests/KeyVaultKeyResolverTests.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/Tests/KeyVaultKeyResolverTests.cs @@ -32,6 +32,7 @@ public KeyVaultKeyResolverTests(KeyVaultTestFixture fixture) { this.fixture = fixture; _standardVaultOnly = fixture.standardVaultOnly; + _softDeleteEnabled = fixture.softDeleteEnabled; _vaultAddress = fixture.vaultAddress; _keyName = fixture.keyName; _keyVersion = fixture.keyVersion; @@ -43,6 +44,7 @@ public KeyVaultKeyResolverTests(KeyVaultTestFixture fixture) private string _keyName = ""; private string _keyVersion = ""; private KeyIdentifier _keyIdentifier; + private bool _softDeleteEnabled = false; private KeyVaultClient GetKeyVaultClient() { @@ -86,6 +88,13 @@ public void KeyVault_KeyResolver_ResolveKey() { // Delete the key client.DeleteKeyAsync(vault, "TestKey").GetAwaiter().GetResult(); + + if(_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, vault, "TestKey"); + + client.PurgeDeletedKeyAsync(vault, "TestKey").GetAwaiter().GetResult(); + } } } } @@ -99,7 +108,7 @@ public void KeyVault_KeyResolver_ResolveSecret128Base64() { using (MockContext context = MockContext.Start(this.GetType().FullName)) { - VerifyResolveSecretBase64(128, VerifyResolver); + VerifyResolveSecretBase64(128, VerifyResolver, "ResolveSecret128Base64"); } } @@ -111,7 +120,7 @@ public void KeyVault_KeyResolver_ResolveSecret192Base64() { using (MockContext context = MockContext.Start(this.GetType().FullName)) { - VerifyResolveSecretBase64(192, VerifyResolver); + VerifyResolveSecretBase64(192, VerifyResolver, "ResolveSecret192Base64"); } } @@ -123,12 +132,12 @@ public void KeyVault_KeyResolver_ResolveSecret256Base64() { using (MockContext context = MockContext.Start(this.GetType().FullName)) { - VerifyResolveSecretBase64(256, VerifyResolver); + VerifyResolveSecretBase64(256, VerifyResolver, "ResolveSecret256Base64"); } } private void VerifyResolveSecretBase64(int secretSize, - Action verifyResolverCallback) + Action verifyResolverCallback, string secretName = "TestSecret") { // Arrange var client = GetKeyVaultClient(); @@ -139,7 +148,7 @@ private void VerifyResolveSecretBase64(int secretSize, RandomNumberGenerator.Create().GetBytes(keyBytes); var secret = - client.SetSecretAsync(vault, "TestSecret", Convert.ToBase64String(keyBytes), null, + client.SetSecretAsync(vault, secretName, Convert.ToBase64String(keyBytes), null, "application/octet-stream").GetAwaiter().GetResult(); if (secret != null) @@ -152,7 +161,14 @@ private void VerifyResolveSecretBase64(int secretSize, finally { // Delete the key - client.DeleteSecretAsync(vault, "TestSecret").GetAwaiter().GetResult(); + client.DeleteSecretAsync(vault, secretName).GetAwaiter().GetResult(); + + if(_softDeleteEnabled) + { + this.fixture.WaitOnDeletedSecret(client, vault, secretName); + + client.PurgeDeletedSecretAsync(vault, secretName).GetAwaiter().GetResult(); + } } } } diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/appsettings.json b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/appsettings.json index dfe2c47dab1a..651cd3c044db 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/appsettings.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/appsettings.json @@ -3,6 +3,7 @@ "VaultUrl": "", "AuthClientId": "", "AuthClientSecret": "", - "StandardVaultOnly": "false" + "StandardVaultOnly": "false", + "SoftDeleteEnabled": "false" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/KeyVaultTestFixture.cs b/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/KeyVaultTestFixture.cs index 96e29c56cf13..15830252c5a0 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/KeyVaultTestFixture.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/KeyVaultTestFixture.cs @@ -15,6 +15,8 @@ using Microsoft.IdentityModel.Clients.ActiveDirectory; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using Microsoft.Azure.Management.ResourceManager; +using System.Net; +using Microsoft.Rest.TransientFaultHandling; namespace KeyVault.TestFramework { @@ -23,10 +25,12 @@ public class KeyVaultTestFixture : IDisposable // Required in test code public string vaultAddress; public bool standardVaultOnly; + public bool softDeleteEnabled; public string keyName; public string keyVersion; public KeyIdentifier keyIdentifier; public ClientCredential clientCredential; + public RetryPolicy retryExecutor; // Required for cleaning up at the end of the test private string rgName = "", appObjectId = ""; @@ -49,6 +53,10 @@ public KeyVaultTestFixture() keyName = keyIdentifier.Name; keyVersion = keyIdentifier.Version; tokenCache = new TokenCache(); + retryExecutor = new RetryPolicy(new ExponentialBackoffRetryStrategy(8, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(60), TimeSpan.FromSeconds(5))); + } else + { + retryExecutor = new RetryPolicy(new FixedIntervalRetryStrategy(0)); } } @@ -118,10 +126,17 @@ private bool FromConfiguration() string authClientId = TestConfigurationManager.TryGetEnvironmentOrAppSetting("AuthClientId"); string authSecret = TestConfigurationManager.TryGetEnvironmentOrAppSetting("AuthClientSecret"); string standardVaultOnlyString = TestConfigurationManager.TryGetEnvironmentOrAppSetting("StandardVaultOnly"); - bool result; - if (!bool.TryParse(standardVaultOnlyString, out result)) + string softDeleteEnabledString = TestConfigurationManager.TryGetEnvironmentOrAppSetting("SoftDeleteEnabled"); + bool standardVaultOnlyresult; + if (!bool.TryParse(standardVaultOnlyString, out standardVaultOnlyresult)) + { + standardVaultOnlyresult = false; + } + + bool softDeleteEnabledresult; + if (!bool.TryParse(softDeleteEnabledString, out softDeleteEnabledresult)) { - result = false; + softDeleteEnabledresult = false; } if (string.IsNullOrWhiteSpace(vault) || string.IsNullOrWhiteSpace(authClientId) || string.IsNullOrWhiteSpace(authSecret)) @@ -130,7 +145,8 @@ private bool FromConfiguration() { this.vaultAddress = vault; this.clientCredential = new ClientCredential(authClientId, authSecret); - this.standardVaultOnly = result; + this.standardVaultOnly = standardVaultOnlyresult; + this.softDeleteEnabled = softDeleteEnabledresult; return true; } } @@ -149,6 +165,26 @@ public KeyVaultClient CreateKeyVaultClient() return myclient; } + public void WaitOnDeletedKey(KeyVaultClient client, string vaultAddress, string keyName) + { + this.retryExecutor.ExecuteAction(() => client.GetDeletedKeyAsync(vaultAddress, keyName).GetAwaiter().GetResult()); + } + + public void WaitOnDeletedSecret(KeyVaultClient client, string vaultAddress, string secretName) + { + this.retryExecutor.ExecuteAction(() => client.GetDeletedSecretAsync(vaultAddress, secretName).GetAwaiter().GetResult()); + } + + public void WaitOnKey(KeyVaultClient client, string vaultAddress, string keyName) + { + this.retryExecutor.ExecuteAction(() => client.GetKeyAsync(vaultAddress, keyName).GetAwaiter().GetResult()); + } + + public void WaitOnSecret(KeyVaultClient client, string vaultAddress, string secretName) + { + this.retryExecutor.ExecuteAction(() => client.GetSecretAsync(vaultAddress, secretName).GetAwaiter().GetResult()); + } + public DelegatingHandler[] GetHandlers() { HttpMockServer server = HttpMockServer.CreateInstance(); diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/SoftDeleteErrorDetectionStrategy.cs b/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/SoftDeleteErrorDetectionStrategy.cs new file mode 100644 index 000000000000..f396fd643bfa --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/SoftDeleteErrorDetectionStrategy.cs @@ -0,0 +1,34 @@ +using Microsoft.Azure.KeyVault.Models; +using Microsoft.Rest.TransientFaultHandling; +using System; +using System.Net; + +namespace KeyVault.TestFramework +{ + /// + /// A retry strategy that will wait until keys/secrets have been deleted or purged entirely. + /// Since this is a long running operation that is not guaranteed to complete immediately. + /// + public class SoftDeleteErrorDetectionStrategy : ITransientErrorDetectionStrategy + { + public bool IsTransient(Exception ex) + { + if (ex != null) + { + // Key vault will use this error type for all exceptions. + KeyVaultErrorException kvException; + if((kvException = ex as KeyVaultErrorException) != null) + { + // Retry on not found and conflict while object is in transitioning state. + if (kvException.Response.StatusCode == HttpStatusCode.NotFound || + kvException.Response.StatusCode == HttpStatusCode.Conflict) + { + return true; + } + } + } + return false; + + } + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs index c30380be078d..0fe676305d9e 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs @@ -31,6 +31,7 @@ public KeyVaultOperationsTest(KeyVaultTestFixture fixture) { this.fixture = fixture; _standardVaultOnly = fixture.standardVaultOnly; + _softDeleteEnabled = fixture.softDeleteEnabled; _vaultAddress = fixture.vaultAddress; _keyName = fixture.keyName; _keyVersion = fixture.keyVersion; @@ -38,6 +39,7 @@ public KeyVaultOperationsTest(KeyVaultTestFixture fixture) } private bool _standardVaultOnly = false; + private bool _softDeleteEnabled = false; private string _vaultAddress = ""; private string _keyName = ""; private string _keyVersion = ""; @@ -249,6 +251,13 @@ public void KeyVaultCreateGetDeleteKeyTest() if (ex.Response.StatusCode != HttpStatusCode.NotFound || ex.Body.Error.Message != ex.Message) throw ex; } + + if (_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, "CreateSoftKeyTest"); + + client.PurgeDeletedKeyAsync(_vaultAddress, "CreateSoftKeyTest").GetAwaiter().GetResult(); + } } } } @@ -286,6 +295,13 @@ public void KeyVaultCreateHsmKeyTest() VerifyKeyAttributesAreEqual(deletedKey.Attributes, createdKey.Attributes); VerifyWebKeysAreEqual(deletedKey.Key, createdKey.Key); + + if (_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, "CreateHsmKeyTest"); + + client.PurgeDeletedKeyAsync(_vaultAddress, "CreateHsmKeyTest").Wait(); + } } } } @@ -324,6 +340,13 @@ public void KeyVaultImportSoftKeyTest() finally { client.DeleteKeyAsync(_vaultAddress, "ImportSoftKeyTest").Wait(); + + if(_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, "ImportSoftKeyTest"); + + client.PurgeDeletedKeyAsync(_vaultAddress, "ImportSoftKeyTest").GetAwaiter().GetResult(); + } } } } @@ -381,6 +404,13 @@ public void KeyVaultUpdateKeyAttributesTest() finally { client.DeleteKeyAsync(_vaultAddress, keyName).Wait(); + + if(_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + client.PurgeDeletedKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + } } } } @@ -425,6 +455,13 @@ public void KeyVaultUpdateKeyAttributesWithNoChangeTest() finally { client.DeleteKeyAsync(_vaultAddress, keyName).Wait(); + + if (_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + client.PurgeDeletedKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + } } } } @@ -451,13 +488,21 @@ public void KeyVaultBackupRestoreTest() try { - // Restore a deleted key + // Backup the key var backupResponse = client.BackupKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); client.DeleteKeyAsync(_vaultAddress, keyName).Wait(); + if (_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + client.PurgeDeletedKeyAsync(_vaultAddress, keyName).Wait(); + } + + // Restore the backedup key var restoredDeletedKey = - client.RestoreKeyAsync(_vaultAddress, backupResponse.Value).GetAwaiter().GetResult(); + this.fixture.retryExecutor.ExecuteAction(() => client.RestoreKeyAsync(_vaultAddress, backupResponse.Value).GetAwaiter().GetResult()); VerifyKeyAttributesAreEqual(restoredDeletedKey.Attributes, createdKey.Attributes); Assert.Equal(restoredDeletedKey.Key.Kty, createdKey.Key.Kty); @@ -465,7 +510,16 @@ public void KeyVaultBackupRestoreTest() } finally { + this.fixture.WaitOnKey(client, _vaultAddress, keyName); + client.DeleteKeyAsync(_vaultAddress, keyName).Wait(); + + if(_softDeleteEnabled) + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + client.PurgeDeletedKeyAsync(_vaultAddress, keyName).Wait(); + } } } } @@ -575,6 +629,210 @@ public void KeyVaultListKeyVersionsTest() } #endregion + #region Deleted Key Operations + + [Fact] + public void KeyVaultGetDeletedKeyTest() + { + if (!_softDeleteEnabled) return; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var client = GetKeyVaultClient(); + + var keyName = "GetDeletedKeyTest"; + var attributes = new KeyAttributes(); + var tags = new Dictionary() { { "purpose", "unit test" }, { "test name ", "GetDeletedKeyTest" } }; + var createdKey = client.CreateKeyAsync(_vaultAddress, keyName, JsonWebKeyType.Rsa, 2048, + JsonWebKeyOperation.AllOperations, attributes, tags).GetAwaiter().GetResult(); + var deletedKey = client.DeleteKeyAsync(_vaultAddress, createdKey.KeyIdentifier.Name).GetAwaiter().GetResult(); + + try + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + // Get the deleted key using its recovery identifier + var getDeletedKey = client.GetDeletedKeyAsync(_vaultAddress, createdKey.KeyIdentifier.Name).GetAwaiter().GetResult(); + VerifyIdsAreEqual(createdKey.Key.Kid, getDeletedKey.Key.Kid); + VerifyIdsAreEqual(deletedKey.RecoveryId, getDeletedKey.RecoveryId); + } + finally + { + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + // Purge the key + client.PurgeDeletedKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + } + } + } + + [Fact] + public void KeyVaultKeyCreateDeleteRecoverPurgeTest() + { + if (!_softDeleteEnabled) return; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + + var client = GetKeyVaultClient(); + + var keyName = "CreateDeleteRecoverPurgeTest"; + var attributes = new KeyAttributes(); + var tags = new Dictionary() { { "purpose", "unit test" }, { "test name ", "CreateDeleteRecoverPurgeTest" } }; + var createdKey = client.CreateKeyAsync(_vaultAddress, keyName, JsonWebKeyType.Rsa, 2048, + JsonWebKeyOperation.AllOperations, attributes, tags).GetAwaiter().GetResult(); + var originalKey = client.GetKeyAsync(_vaultAddress, createdKey.KeyIdentifier.Name).GetAwaiter().GetResult(); + + try + { + // Delete the key + var deletedKey = client.DeleteKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + + //verify the key is deleted + try + { + client.GetKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + } + catch (KeyVaultErrorException ex) + { + if (ex.Response.StatusCode != HttpStatusCode.NotFound || ex.Body.Error.Message != ex.Message) + throw ex; + } + + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + // Recover the key + var recoveredKey = client.RecoverDeletedKeyAsync(deletedKey.RecoveryId).GetAwaiter().GetResult(); + VerifyKeyAttributesAreEqual(recoveredKey.Attributes, originalKey.Attributes); + VerifyKeyOperationsAreEqual(recoveredKey.Key.KeyOps, originalKey.Key.KeyOps); + Assert.Equal(keyName, recoveredKey.KeyIdentifier.Name); + Assert.Equal(originalKey.Key.Kid, recoveredKey.Key.Kid); + + this.fixture.WaitOnKey(client, _vaultAddress, keyName); + + var recoveredGetKey = client.GetKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + VerifyKeyAttributesAreEqual(recoveredGetKey.Attributes, originalKey.Attributes); + VerifyKeyOperationsAreEqual(recoveredGetKey.Key.KeyOps, originalKey.Key.KeyOps); + Assert.Equal(keyName, recoveredGetKey.KeyIdentifier.Name); + Assert.Equal(originalKey.Key.Kid, recoveredGetKey.Key.Kid); + } + finally + { + this.fixture.WaitOnKey(client, _vaultAddress, keyName); + + // Delete the key + var deletedKey = client.DeleteKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + + //verify the key is deleted + try + { + client.GetKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + } + catch (KeyVaultErrorException ex) + { + if (ex.Response.StatusCode != HttpStatusCode.NotFound || ex.Body.Error.Message != ex.Message) + throw ex; + } + + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + // Purge the key + client.PurgeDeletedKeyAsync(deletedKey.RecoveryId).GetAwaiter().GetResult(); + + //verify the key is purged + try + { + client.GetDeletedKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + } + catch (KeyVaultErrorException ex) + { + if (ex.Response.StatusCode != HttpStatusCode.NotFound || ex.Body.Error.Message != ex.Message) + throw ex; + } + } + } + } + + [Fact] + public void KeyVaultListDeletedKeysTest() + { + if (!_softDeleteEnabled) return; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var client = GetKeyVaultClient(); + string keyNamePrefix = "listdeletedkeytest"; + int numKeys = 3; + int maxResults = 1; + + var addedObjects = new HashSet(); + var removedObjects = new HashSet(); + + //Create and delete the keys + for (int i = 0; i < numKeys; i++) + { + string keyName = keyNamePrefix + i.ToString(); + + var addedKey = + client.CreateKeyAsync(_vaultAddress, keyName, JsonWebKeyType.Rsa).GetAwaiter().GetResult(); + client.DeleteKeyAsync(_vaultAddress, keyName).GetAwaiter().GetResult(); + + this.fixture.WaitOnDeletedKey(client, _vaultAddress, keyName); + + addedObjects.Add(GetKidWithoutVersion(addedKey.Key.Kid)); + } + + //List the deleted keys + var listResponse = client.GetDeletedKeysAsync(_vaultAddress, maxResults).GetAwaiter().GetResult(); + Assert.NotNull(listResponse); + foreach (DeletedKeyItem m in listResponse) + { + if (addedObjects.Contains(m.Kid)) + { + Assert.True(m.Identifier.Name.StartsWith(keyNamePrefix)); + Assert.NotNull(m.RecoveryId); + Assert.NotNull(m.ScheduledPurgeDate); + Assert.NotNull(m.DeletedDate); + Assert.Equal(m.RecoveryIdentifier.Name, m.Identifier.Name); + Assert.True(m.RecoveryIdentifier.Name.StartsWith(keyNamePrefix)); + addedObjects.Remove(m.Kid); + removedObjects.Add(m.RecoveryId); + } + } + + var nextLink = listResponse.NextPageLink; + while (!string.IsNullOrEmpty(nextLink)) + { + var listNextResponse = client.GetDeletedKeysNextAsync(nextLink).GetAwaiter().GetResult(); + Assert.NotNull(listNextResponse); + foreach (DeletedKeyItem m in listNextResponse) + { + if (addedObjects.Contains(m.Kid)) + { + Assert.True(m.Identifier.Name.StartsWith(keyNamePrefix)); + Assert.NotNull(m.RecoveryId); + Assert.NotNull(m.ScheduledPurgeDate); + Assert.NotNull(m.DeletedDate); + Assert.Equal(m.RecoveryIdentifier.Name, m.Identifier.Name); + Assert.True(m.RecoveryIdentifier.Name.StartsWith(keyNamePrefix)); + + addedObjects.Remove(m.Kid); + removedObjects.Add(m.RecoveryId); + } + } + nextLink = listNextResponse.NextPageLink; + } + + Assert.True(addedObjects.Count == 0); + + foreach(string recoveryId in removedObjects) + { + client.PurgeDeletedKeyAsync(recoveryId).Wait(); + } + } + } + #endregion + #region Secret Operations [Fact] @@ -622,6 +880,13 @@ public void KeyVaultSecretCreateUpdateDeleteTest() // Delete the secret var deletedSecret = client.DeleteSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + if(_softDeleteEnabled) + { + this.fixture.WaitOnDeletedSecret(client, _vaultAddress, secretName); + + client.PurgeDeletedSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + } + //verify the secret is deleted try { @@ -680,6 +945,13 @@ public void KeyVaultGetSecretVersionTest() { // Delete the secret client.DeleteSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + + if (_softDeleteEnabled) + { + this.fixture.WaitOnDeletedSecret(client, _vaultAddress, secretName); + + client.PurgeDeletedSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + } } } } @@ -842,6 +1114,212 @@ public void KeyVaultTestSecretExtendedAttributes() #endregion + #region Deleted Secret Operations + + [Fact] + public void KeyVaultGetDeletedSecretTest() + { + if (!_softDeleteEnabled) return; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var client = GetKeyVaultClient(); + + var secretName = "GetDeletedSecretTest"; + var secretValue = "mysecretvalue"; + var secretOlder = client.SetSecretAsync(_vaultAddress, secretName, secretValue).GetAwaiter().GetResult(); + var deletedSecret = client.DeleteSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + + this.fixture.WaitOnDeletedSecret(client, _vaultAddress, secretName); + + try + { + // Get the deleted secret using its recovery identifier + var getDeletedSecret = client.GetDeletedSecretAsync(_vaultAddress, secretOlder.SecretIdentifier.Name).GetAwaiter().GetResult(); + VerifyIdsAreEqual(secretOlder.Id, getDeletedSecret.Id); + VerifyIdsAreEqual(deletedSecret.RecoveryId, getDeletedSecret.RecoveryId); + } + finally + { + this.fixture.WaitOnDeletedSecret(client, _vaultAddress, secretName); + + // Purge the secret + client.PurgeDeletedSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + } + } + } + + [Fact] + public void KeyVaultSecretCreateDeleteRecoverPurgeTest() + { + if (!_softDeleteEnabled) return; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + + var client = GetKeyVaultClient(); + + string secretName = "SecretCreateDeleteRecoverPurgeTest"; + string originalSecretValue = "mysecretvalue"; + + var originalSecret = + client.SetSecretAsync(_vaultAddress, secretName, originalSecretValue).GetAwaiter().GetResult(); + + VerifySecretValuesAreEqual(originalSecret.Value, originalSecretValue); + Assert.Equal(secretName, originalSecret.SecretIdentifier.Name); + try + { + // Delete the secret + var deletedSecret = client.DeleteSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + + //verify the secret is deleted + try + { + client.GetSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + } + catch (KeyVaultErrorException ex) + { + if (ex.Response.StatusCode != HttpStatusCode.NotFound || ex.Body.Error.Message != ex.Message) + throw ex; + } + + this.fixture.WaitOnDeletedSecret(client, _vaultAddress, secretName); + + // Recover the secret + var recoveredSecret = client.RecoverDeletedSecretAsync(deletedSecret.RecoveryId).GetAwaiter().GetResult(); + VerifySecretValuesAreEqual(recoveredSecret.Value, null); + Assert.Equal(secretName, recoveredSecret.SecretIdentifier.Name); + + this.fixture.WaitOnSecret(client, _vaultAddress, secretName); + + // Read the recovered secret using full identifier + var recoveredReadSecret = client.GetSecretAsync(recoveredSecret.Id).GetAwaiter().GetResult(); + VerifySecretValuesAreEqual(recoveredReadSecret.Value, originalSecretValue); + VerifyIdsAreEqual(recoveredReadSecret.Id, recoveredSecret.Id); + VerifyTagsAreEqual(originalSecret.Tags, recoveredReadSecret.Tags); + + // Read the recovered secret with the version independent identifier + recoveredReadSecret = client.GetSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + VerifySecretValuesAreEqual(recoveredReadSecret.Value, originalSecretValue); + VerifyIdsAreEqual(recoveredReadSecret.Id, recoveredSecret.Id); + VerifyTagsAreEqual(originalSecret.Tags, recoveredReadSecret.Tags); + } + finally + { + this.fixture.WaitOnSecret(client, _vaultAddress, secretName); + + // Delete the secret + var deletedSecret = client.DeleteSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + + //verify the secret is deleted + try + { + client.GetSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + } + catch (KeyVaultErrorException ex) + { + if (ex.Response.StatusCode != HttpStatusCode.NotFound || ex.Body.Error.Message != ex.Message) + throw ex; + } + + this.fixture.WaitOnDeletedSecret(client, _vaultAddress, secretName); + + // Purge the secret + client.PurgeDeletedSecretAsync(deletedSecret.RecoveryId).GetAwaiter().GetResult(); + + //verify the secret is purged + try + { + client.GetDeletedSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + } + catch (KeyVaultErrorException ex) + { + if (ex.Response.StatusCode != HttpStatusCode.NotFound || ex.Body.Error.Message != ex.Message) + throw ex; + } + } + } + } + + [Fact] + public void KeyVaultListDeletedSecretsTest() + { + if (!_softDeleteEnabled) return; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var client = GetKeyVaultClient(); + + int numSecrets = 3; + int maxResults = 1; + + var addedObjects = new HashSet(); + var removedObjects = new HashSet(); + string secretValue = "mysecretvalue"; + + //Create and delete the secrets + for (int i = 0; i < numSecrets; i++) + { + string secretName = "listdeletedsecrettest" + i.ToString(); + + var addedSecret = + client.SetSecretAsync(_vaultAddress, secretName, secretValue, contentType: "plainText").GetAwaiter().GetResult(); + addedObjects.Add(addedSecret.Id.Substring(0, addedSecret.Id.LastIndexOf("/"))); + + client.DeleteSecretAsync(_vaultAddress, secretName).GetAwaiter().GetResult(); + + this.fixture.WaitOnDeletedSecret(client, _vaultAddress, secretName); + } + + //List the secrets + var listResponse = client.GetDeletedSecretsAsync(_vaultAddress, maxResults).GetAwaiter().GetResult(); + Assert.NotNull(listResponse); + foreach (DeletedSecretItem m in listResponse) + { + if (addedObjects.Contains(m.Id)) + { + Assert.True(m.Identifier.Name.StartsWith("listdeletedsecrettest")); + Assert.NotNull(m.RecoveryId); + Assert.NotNull(m.ScheduledPurgeDate); + Assert.NotNull(m.DeletedDate); + Assert.True(m.RecoveryIdentifier.Name.StartsWith("listdeletedsecrettest")); + addedObjects.Remove(m.Id); + removedObjects.Add(m.RecoveryId); + } + } + + var nextLink = listResponse.NextPageLink; + while (!string.IsNullOrEmpty(nextLink)) + { + var listNextResponse = client.GetDeletedSecretsNextAsync(nextLink).GetAwaiter().GetResult(); + Assert.NotNull(listNextResponse); + foreach (DeletedSecretItem m in listNextResponse) + { + if (addedObjects.Contains(m.Id)) + { + Assert.True(m.Identifier.Name.StartsWith("listdeletedsecrettest")); + Assert.NotNull(m.RecoveryId); + Assert.NotNull(m.ScheduledPurgeDate); + Assert.NotNull(m.DeletedDate); + Assert.True(m.RecoveryIdentifier.Name.StartsWith("listdeletedsecrettest")); + addedObjects.Remove(m.Id); + removedObjects.Add(m.RecoveryId); + } + } + nextLink = listNextResponse.NextPageLink; + } + + Assert.True(addedObjects.Count == 0); + + foreach (string recoveryId in removedObjects) + { + client.PurgeDeletedSecretAsync(recoveryId).Wait(); + } + } + } + + #endregion + #region Certificate Operations [Fact] public void KeyVaultCertificateImportTest() @@ -2322,11 +2800,6 @@ private void VerifyIdsAreNotEqual(string id1, string id2) Assert.NotEqual(id1, id2); } - private void ListSecrets(int secrets, int? maxResults) - { - - } - protected static byte[] RandomBytes(int length) { if (HttpMockServer.Mode == HttpRecorderMode.Record) @@ -2520,13 +2993,12 @@ private static string ToHexString(byte[] input) public static class WellKnownIssuers { public const string Self = "Self"; - + public const string Unknown = "Unknown"; public static readonly string[] AllIssuers = { Self, Unknown }; } #endregion - } } diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/ObjectIdentifierTests.cs b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/ObjectIdentifierTests.cs index 60115d8d0453..5673b017f4f7 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/ObjectIdentifierTests.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/ObjectIdentifierTests.cs @@ -3,6 +3,7 @@ // license information. using Microsoft.Azure.KeyVault; +using System; using Xunit; namespace Microsoft.Azure.KeyVault.Tests @@ -12,6 +13,7 @@ public class ObjectIdentifierTests string vault = "https://myvault.vault.azure.net:443"; string name = "myname"; string version = "myversion"; + [Fact] public void KeyIdentifierTest() { @@ -37,6 +39,31 @@ public void KeyIdentifierTest() Assert.True(KeyIdentifier.IsKeyIdentifier(versionedId)); } + [Fact] + public void DeletedKeyIdentifierTest() + { + string baseId = string.Format("{0}/deletedkeys/{1}", vault, name); + string versionedId = string.Format("{0}/{1}", baseId, version); + + //unversioned + var id = new DeletedKeyIdentifier(baseId); + Assert.Equal(baseId, id.BaseIdentifier); + Assert.Equal(baseId, id.Identifier); + Assert.Equal(vault, id.Vault); + Assert.Equal(name, id.Name); + Assert.Equal(string.Empty, id.Version); + Assert.True(DeletedKeyIdentifier.IsDeletedKeyIdentifier(baseId)); + + //versioned + id = new DeletedKeyIdentifier(versionedId); + Assert.Equal(baseId, id.BaseIdentifier); + Assert.Equal(baseId, id.Identifier); + Assert.Equal(vault, id.Vault); + Assert.Equal(name, id.Name); + Assert.Equal(string.Empty, id.Version); + Assert.True(DeletedKeyIdentifier.IsDeletedKeyIdentifier(versionedId)); + } + [Fact] public void SecretIdentifierTest() { @@ -61,6 +88,31 @@ public void SecretIdentifierTest() Assert.Equal(version, id.Version); Assert.True(SecretIdentifier.IsSecretIdentifier(versionedId)); } + + [Fact] + public void DeletedSecretIdentifierTest() + { + string baseId = string.Format("{0}/deletedsecrets/{1}", vault, name); + string versionedId = string.Format("{0}/{1}", baseId, version); + + // unversioned + var id = new DeletedSecretIdentifier(baseId); + Assert.Equal(baseId, id.BaseIdentifier); + Assert.Equal(baseId, id.Identifier); + Assert.Equal(vault, id.Vault); + Assert.Equal(name, id.Name); + Assert.Equal(string.Empty, id.Version); + Assert.True(DeletedSecretIdentifier.IsDeletedSecretIdentifier(baseId)); + + // versioned + id = new DeletedSecretIdentifier(versionedId); + Assert.Equal(baseId, id.BaseIdentifier); + Assert.Equal(baseId, id.Identifier); + Assert.Equal(vault, id.Vault); + Assert.Equal(name, id.Name); + Assert.Equal(string.Empty, id.Version); + Assert.True(DeletedSecretIdentifier.IsDeletedSecretIdentifier(versionedId)); + } [Fact] public void CertificateIdentifierTest() diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultBackupRestoreTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultBackupRestoreTest.json index b3241ab83f0f..3626b3bdf558 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultBackupRestoreTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultBackupRestoreTest.json @@ -13,16 +13,17 @@ "251" ], "x-ms-client-request-id": [ - "5166ac0f-b0f9-4bb3-b2db-372ff14faf80" + "d6a61411-869f-4ab3-a2ac-bef3385bfbb2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/BackupRestoreTest/ca1b3304124d42048dc931669190f7b7\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"g60mOugoSwfCZecx4imcSwd12D0a3ivntZmTpXqijfrO3Bfu2K8NjF54z0si5fWj_jekR538BAODTAaDrDMwdZFnZrxZinmmOaZ6UaUPGb5pQZlii5_Kq5rTKxnWhSM5s7axhrHfZXGrt-OANS6P00AT5w9Vpteo-kDY86iQ-tCf-2clXVoboKyxw0AABasUUX--wT3sbGj1rNRpsdhrzqaGfpo8xsTcmqTfwcCO0Z-wDbyQ334FbmKlPRR4Qy6YIeh_ssJwVbxyVbY1uOZnnqSoZV1TM01rAwpR5KH6Rpu-EV_BwNbwOaDQs_e8LZwjPjdSVsvjwVrDaSg6XRZqLQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1477082133,\r\n \"updated\": 1477082133\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/BackupRestoreTest/de83072dee6d4f7886947b6776e66d1a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"qIJMru9B0l7lPVzdxoYXMnRmKZnodMkXRoBTTmUSgeV3FWZcEnOQ_OKrP1UJJF2nrhYU3ExcAqf8Z86flgSMhQrlSIe1V49r8psggNHgtWrI_gCNs0HOp4JPlwaCTp1i1GscnKAYXoDuEg7a3X5yAW7bwYxV_UQREOodFz9QYpMjt4nvKHLajGO6h2jJ5W71fXMUpsuhAR3BL9GFfBq6uJmdl-MwOZZanQGqcqZMt5gThUXS2g_7Xnm7aiKtEaztXlr3S9LLfA791sZW5lWv5WaHcVilKybBVfR0Y0urCEC9GykfE3Epkm0boKRj6BudaBMk0t-VWNRgCP2sXySP5w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1483991568,\r\n \"updated\": 1483991568\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "660" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 09 Jan 2017 19:52:48 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "97cf2404-b1bb-446d-9ab0-3fa057fa12a8" + "c97d79f0-6dde-4564-bd48-e7849d2429e6" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -76,19 +77,20 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "45da2a2a-0a92-46b2-a379-d72b2ef946a4" + "d6bd6eef-6724-40ec-bb36-6cf1b71f1811" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"JkF6dXJlS2V5VmF1bHRLZXlCYWNrdXBWMS5taWNyb3NvZnQuY29tZXlKcmFXUWlPaUkwTXpnMVlqQTNZaTFrTlRRM0xUUXlaVFV0WVdVNVpTMDJNVEJrWXpNNVpHWmhaamdpTENKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V4TWpoRFFrTXRTRk15TlRZaWZRLlRhWmVRTk5MT2w4Ui1lUkN2NG1QdjVKaWVGOElxaGFma09QNER6Y2c4SjRWUXlPRFNjc204d1dJTExRMENPLW4xQ2FLMktFZTJXVFU1X1B5eUE3UkNEM2dlQUx3clRBWVZYdmxnYmxqS1BaWjc5elNNZFNxTjFPWkNlalhnR0FqR2o4S3IwcHBtdHU1RW42T0lOdV94d1VXRFBJSVlhaGZhRnRfVjAwWmJLTEtud2ZTenJyQWx3cHhBQVNtS3U4VzN6TjdrR1gtWlAwMU8yNEpGblhIRE1pak5PeFRHTlBVZmVPTnc1ZFA0ZVBsX2phU2tTVFVudk5vNUtoRGZnOXNyWjJ3UVZRdFBYcGkzWldaTmJ0Q250ZEQxYl92MnROeGxUNFRjbnNtNlJlanRGQnBWXzZ4RnlWZHdpSTU1QThSWlJfS05ndG5aTXMtVUhJMGE3a0lHQS5NbndEUUt2TUxYdnA2Nng2UHZaNFVRLlFhRWZ4QUdxMXE1c0swTGlHUjVFUWFkVGNWb1I3XzBoYlJNNXNsWFZkVGw5eWFHcy1zdEllTjRWVlNOMlNKZHhIRElwVDZVREpTeUdRZktFYzd4ZU1hLXd6MXFyWUZBYWJZZG5FeHlpd3JpckdpYjI5b1VLZnBUNVZDcTY3VGVPS1RHZDFBZTlIMVZBM2ZlaExtTTlTV194MzJyOHppbDE4TFEyMnhITW1uSWFxX2RYaTJmNURyX2tWdmUyM0h1dUN1cy1VZWdNWDVqM0NHRjBDMmpPNXNhN0llamJBZnJKa0VRbWlaSHZFaEJmTk05YnFIdkZPbEpydzQ2MUtuZnZUOGhIN1MxY3BKR3VlTUZkSUpfYU5nNkV1MFY4VHlxVjM1QnJta2ttdTF4Ymh6Z2gyUmNZSUpnQU8tY2RHOG1BYkNmMGt4QUVPNnJMNEthSkQzUENDRmExQUJ1MmVIR2JTY0JIMGZ2eXllSER3a3VMeUQzYkNadjFnNFlPcUFFWGY0Y2J2dlVXczFNVlFNN19IVnRNclVLOXdaOUtUaElCbDR0R0RSRmJmamRVM2tYV2o5RWY2VGd6OEo4ME9HVTJ3eC1xbXYzbHl4UnBVRXV2WnZ5SUNVRUE2eXZka2dUNW1FTTExWHVNRHBMa3VjYkdkMGltcVhJVFplamYtZWZRRTJtU21QZGpCd3U4WHJ4a1hBa1V3bk5iM1F0Mlk3ZWk3Z2xvZVdvbHIxU0Q1cDZONlBvejFMd2ZyY3NpQmJkNWwyUFFXcGNHUi1TV3I0V21Sb3lCMWtzR3RhbU1mdDVTMkpTM2xmcGxHelRpbUpQa3F1cUpmUGlZNG9vLVZTY3FqYU4wOElxZEZnc2pvNnptem5Wektnbm82ekZIcW5jME10N3NoNFdqU0FtVDVJOURpY1RrNmhqbVRzV21xMFlFallkZHZzR1EzdWdQdlFiYVFWXzhIMlRLTHJVWWNFbVpLMXBraDNsNmhLMURtM0hfQzI4alotU2czRkJXRENGZEJ5anByZWFKV0tESFdSSVpTS1NLaWJBdHI4RHJIVVRSVUxLQ3hpMjJsSmtCdFhrdEVhb0tveUNRamFYTU52OHg4WGtVeGdmUFpCbGZfTzZmaGctZTBOY0NUNGVYdHBGS3lXbG5wY1NkRDUzT2t3NkNaRTN2RHhaUjJEb3pzTXVTN0NSdmI0Rzg0M0FDck4ybnVMRTBoVzJVRHF4R0xJMlJPTWN5UldoUDBCRjNQcVFMWUR4MkZ2MjlrdGI3M2pJckgxN2h3emVuUzNmVFNWVGpndnVpWTJHeEtvSEpabXdGRXJubGVQUGhNNkpQVFkwYzUwQU52RkZoaE90eC1kV3hnN01OTm5pVE9fRlNWMmQtY0FiOU1pQXVtUlBFaGR6S1Z1dzkzLTRmNEVxS3A5M1hIaGlIRDc3ZGJSZHFVdTdoMElON3FWOTlrbkRKd2Jvc043X1BtSzQ4WnlXcnRFckQwRTUwTkcyLWxqaHg4YVUySlhxQmFncW9LNU01NVhYV0xMZG5PYmdIMnppTFNiOXhmc2pBUm1oc0RRYi1vVDRBMm5Yb0ZaVDJYUTN0QWM0VFFqbGVpYkdycTVIekh5RnZLSElvYTR3OGx0THY0LUk3aXhxVF85SlF0MHhZeTVOYy1VWDFtTmt6cHY4WGpUOUFtOHBxZWRoQktRN1dYckNQS2FqS1dCUlFBZXNOOXR1TTY4Y0U1YWJ1MlVTclloM2NseklNbDVvOElKUHkxR2ZfYjUyREVmOXBXRDFERGl6UUFaNUZNUTBOSlpFeTJoWjBXY1FvbFgwV0ROTm4zTFo0bjU1RkFlZ0Nuc0NXN0F5eHUweFJsUUNPbC1BVFJpZVdkLXdaY1picGhaMnV6S0RxYXl6bThDWE1YSlNaZE1yUjg0YjV4THg1MG5zLXNjQ2sxWU5fWGRkZ096Q2dqN2Ruc0RIUVdpdHVpLUt4bjUwTldhdnBmYXo5NXBUdlZlUlRIanROei1vQWVZVWF4VWZzUnRuUE52ZnB4TlFoempkOVJuU2g4aXBOQ2lKN25BMmV0aXJtYUNrZ3VMYmVwMGpUei13azBlLXVjWFpGalotdkNYQV9VTExuZlhnQzJaWnZmalgyTEdpejhtRm9fSWJjeDRBZ3I1TGlUMTJwYnNNaV9femZLcHFnQnlsZ3VrVWhGNlZrekE0M2o3aENITnJfaWJTeVJ4U0RPMHRvZTlXWFVsaDFKam9VMXVHMVNmaG1WR1htYkhqUjYtelIzMHl4S3U3cTNDOVQ1a1Y1MEplNGgxMVR3YXFQNkQxSUF5WUlRdW9VVDY0ajV0TEdiU0tJS29qLXpQMWRSbVRoMVlyOEJNY1NxR25vOGpiUUZEdmFhS0JGV2pRZHNsa0xEdjZDMVpqRFVqZmNWRE9wOTU5UUFKNUZWTnB6TllaU3pjQUV5WndBTy0wbVZEZjF1LWhKS1BBa09nb2VncW9KMl94UElzNW5DMHZhRHdmVWNWTHZaa3NMY2V3d1JybTc2WjliSGVhN3QzM0xLTDBSTXU5blVBeGFPcGVXNGs0czNtdjFCTnJNcXE4UWVSeDk4alZJX0lLSU9kbnAwYVFDbXE1cWZWWWhrU2t4dEhyTEFhY2hDc0Rzc0NnaDZIODcybHRYeXlyV0p4NE9mcnhjVV9uYzl5ZHdTMUVrdDVvWnE1ZlZWZ0hONmJtWU42SDRTVWg2VnFjYW5oRGZrUHRqcE1zQkpDTHZRMFJWMHJibzY2cWtkbnktbnBFcEQyUWU1Z3NNbnBMODJvaTFNSUExaGduZFZQdURFX09RdE5uUVZpT1hmYThPd1BGRlduM3VWLUQtU21QTXdYVXdKOFMtc1ZSOEZGbDI2TE84c1pqclMwNi12ZW4zUVdKZ3RZSDl6d21xNGc5dGZxY083ZThDT2RLSHAtOWRuTjdwdVNaNVF2dlI4eGhPOUswQjlwaG9hRHRoeFpET3NjUG1hSy1valBuTGZvZVNCUk1RYkhJNko5cjdqNHJCZkVDNXFVSFpwZFdvMWZ2X1h5YzZBb01iMnNXWVBYYURSeURUblNQNjdOTEVnY2NROFEyc1pMSV9UMkhEaVNMMzFuczJtS3daUnNUblJkNWhndmZ2NmhFcm4xV1F3ZDJ0cEZ3R1VTUlpDLW1UZWVZMnk4OHdIei1rRUZyaGVFRldVbVBVVnRsOVBGbk45RDZOM200REc1RlZ1aC11bWdiRE9SclBJQTNrR1BSM0NvWENkRHVuYkNUTkpRMEFqemExMnBHM1k4amROVXgyM0pzZUhiVWdjT0hfMW5EM2d2bWZGem1IenNqeDJ2Y19WWDgyTUE2WTBwaGo0X2ZieTJKRGxIWVo0d2lyVlpiZjNHT1Y2VHk4UlEyRnNHU3hoMVU3aVNoeVZJYU1LNjRlQy1sdWt4OFZUY29ybkxtQVlvZk9lRndZX0FRQkZzLU5QbmdGdEIteDZkRHdON2JXQjNLNm5oQ2pNNDFOUllXOVd3dFNtay1Ub2hZMFJsQmwxSHpQX0ZVYzQ0WnFlX0IwQXBWTmFHVGl5bkFDRGdQLVA5V1p3RGdVOXNGcXFNZXZSMFNlLURYNW1BdHZWdWlyX3VUNHVta0pqRll2d3lqTnRjN2kySzBrSUlhTVZjLXRoLXZsRk9ZbjU3TmswYzdNOEV5TlZOYl9mcGdtcW1ZMUg1ZmF5bms3RmRBckMzRUlFTjVDa1dPNFZEMzRXcmU0a0lLbUc0d1ZSYkxUV2JLa0J6NmRhLWJsTFpOeENUdFBpTHdpU0R5Z0ZPNEZfbGxmV3JmWWFlMDc2Z0p3OVAyRzJyZXl2bVFSa25FaDNUSXBjNzhZWWsyeWpSbmQ1V3VaTHJpb2EzeXdpVm4wYlUtTFhOWlduYWhfV0c1R0NzZlQ5dVh0QTM0OURLcVBDa3pIMGg2VUpNREtHbkVpWVIzWXJLRi1IelR4anJIRW84M2FmRHMzSnpRd1FhVFJlQVdEMXc2LWgyZzMzeHZxZGdFZGVlblR5ZmtWY3BsdFJub1dLN2k4REtnVmVhTjJrS3l0a3RLckFZRDl3dEl5bGk4WFM5bUxYMlctbjVudS03R0o2NUNldDZJa0VXVWlkOFlKcVpJTHJNRlNyMmdkS1c4b1A2VlZLOHdtVGsyblVqLXIzOHpPX0xLa0ZDVjRFZE9KMS1WcFY3WnRxY2l3NklBLTVxM09jZVowcXhJcHdvemFzek5OS2o4SndyLUphRmFRTTlzOE5kT2ZzWUxXZnFLR0s5Vk80M2J3ZHlmZVhRNzBXRTRsNjRWcjBIakZZNTN1U3BmWl9iLWxkWkxwdWJuYUlqWHo2MnlNTUtFSy00VkZUQUtlMTZURjlMMUw3RWxSTDdqVUs3bFAxMUdHUjZud21kYUlBRFlLRnlSd2hibEoxTkFqU09GZlFBZF9tb1VnZUJfVTE0eXo1dUF2T3RRUTBVMHlYRnJTN3ozc3lDYXNnS3p6MlA3NGxDM3JuTVhyRk1GR3VxWnk0aDFXNHl4Tl93M3lXbnl1eHE4WVVzQ2xTQzNDV1R6cG1TeTZJRXV4UzVWUTVJYUFBa0lQOTVuSjNRMlVBYWdCamxUSVR2YW1xZXFxSi1qMldEeERBUl9xYUVNWnZiTkN0U1JrMlZNZGdoRGtFN3BibkU5eFRHaGpXWXlDLXRoUnF3TVo1UmZralBJWVU2ZFp6RHBrXzJTa3NQUTVoWnZLLW9kVk9RSWtQV2xRc2tObHp4YWRWOGM0cks3QkdtTUR5LTRYaHAtVlBySzZWSTdjUUNUVkFxeVNBc3p3OHEtcEVyNGIxQS0xVk9nYk9SOUxLazNOMmU3alNWMzFZZURnNnVrNVNWbVoxUlpsRUhWVUNsaWpRZG9Ebm9ENTZyekJnYURrM3hFUC1GNmVKNlJBLVJ5MGdDSUg4S0FWNHlfX25la0U0Mm1ZQVBvMWRHaWk0ZUVsekxuRG93WEp0Q2hGRTdTZXJodWFzQXBmYUw4b3c4dUtPU0pIQVhDZkdSYnBFaS1uZmZaUF9uakdXVXNIODN6LVlLQXJBN1NwcFB1NUdwR0FCNmRFZ0hFemFCOERZLUNIczNTUmZyOW0zV002eGNBeUVqZnA4SkRzTmZveXk5UUFEUElpdmtFT0hwczVDdG54cDI5Z1pmZTNZMmZraHFaWFl2VmtYOGFXYU1rVDZBQUNDWGEtVDZMUmRadXljcFp1NTd0WkZKZHVpdzk4WGNTV1VoY2NpdUxLRTRxRXViZG1SU0lwMGg0UjB3WEZ3Y2k0WW1paE5BcmItcDl0QVhSbzhXMS15MDBxU1Nsc3lnT1BRVlAxUXBJYmZ6RHE0Nnk4QVRzR0pxR3RHYjNRMWIxZEJJY1c3SjZiUE56RC1tR1ZlWW1oLVJBLUdDalRvTnBkRlBFWThVekdwQTBWLU9aSTlqcXg5N21LOWNzTUZFckR5SnR5NzV4X1NoUzRCLVVpQmRsdzRzU0pHbWJBdTg3VlNuQktzckZxSlR5RzJxWnIybHd4N0RTd3BOU2xLTFJRZnR0aXBUcVFIN1JxdDlMeTJPQm40bmRPeEVNLWQwWHZ5NzhnMHpQWVZ4T3RKdUtkN2s0dGVnTHpZdUN4eVoxSTd4V0RYeVlZdE1hb055U3pBUWhzaUhBc0kwWnJrdzJQeUpNWFFWay1Ga1BlNzZENGlTcXl4V3NNZEU0a2dITUhrQ3FXYklZLWpkdTNuU2xsMi1McWNHbDFRMWNkWVNvX3RLX0RaQVJLT0pNb21XT09LYVkydmV4eHFXQ3FDNFNqZm9VbHYzYVV5QU5WNEplMEIzbENPU3I5a2pFS2k3bmhlMHpCdGdrVUNjNU00TFZVSnhKQURCNzNZNUpCaDFCdUlmN1Rna1RFTmp2VDFXQmk1bVZQOHR4bXNlZVVHV1JLSVNMMW1mT0RlUE9RMG1RQkFla3F6eGJGcVlLRXB5YUJCMkpTcVZ0OVJtdi1oQnV1bEplYTc2YzV1bi13U0dON3NaVDM5YUNaaWtjdTdZT0NDa0tFTkRMbG1wbG9ELWxTNlRIaE55RDFKLWxGQW44aGpJbnQ0ejdqbUVYM19COUFLcnd3Qi1BczR4aHNxV0REM0pjV0g0RWJvZkxYd1RySm1wUEkzTElMS1VheWppcUhUNGlfajF2X3NjbzhaNkhVWVNHYjd3aV9JTTA0ajZBd29aWW5qaVlCdUZkTjBZWEVCZHBtTzlPNV85VTc5TE1YT2ttdjJLeXROWkVUamdBdkR3QU9IbllPV24xaENjMms0TjlhZnB5b01iS1Z2VlJ5NEFFSE9SeUVrRzctc3dxZklQQmFlT3hXVWhCZU1BVjVOZjJ0a2pkc19yOFJPTjJhQnpOVndGTXJvZFV5d1VncnRvZ0hFMlN0Um1hTXhRNFUxYUhzb0RqZmJsRVEzR3YzSEpRaG5qQU5ET0dkYy14T3gwNktCY2N4a2d0YlU3MnBVMVhVMWZIOURmT3pmSDNxY0JJOEVEZnN1dHoyZERTVm5KSV9tdDZMRWR4bFUtWVhabm5QSlc0ellxSEQwQ0g2bGExUFd1SEZPZm5OdXRKZjFBdHRVQjhCRXFMaUFHaEh3SnBfZTRKekdJMUdfMzk2ZHNUR01EeUxkbWRsc2lCZE1HemVEdl9XdmxyVk1xQ0w4MFctUzUycVVpUXdJc1FCcEVjLWFWRS1IN21tNDc1b3Y5em1nVExBVHRuS3RwTkE1dFl0ejVYWXRRVno5SGZ0R0pEUXhIZmZkVk41LVdyc3ZEcG9oRmdkWDdTblRMUmJFNlYteVNaWFBaWmMzeFp0ZW85ZF9UbU5rOUx2YWdsdGZSMlJDQTFMVWg2Rkcxb1BadEJxV1VrV2Z1cFQ0NWVFNUluT2w2ZUd6NWcwN0JWOTFHenlBWDB5ay1LYlp6bHJsQ2ZyeHM1T3FUbHpQbG1aRjRodlFuQlZ6OUhibXhLcEc1YTlmdHpDWHlzRFhzd20waVRsOExfVm51b0otSGtJejVfNnVCcXdGVWhGTjRjeG5sMVFETWVYREhYVEVmNHJGYVllcWpLR1dqVDZvMDJlUlNmY0ZhRDZtVmdmVkdKbDhfOXlEaFRUcGFiZHZUazJvaE9tREZwTHRBdnNKOGRweVhvYW9oQVhMOWVfenllT2ZGQXhKOU15QXJZM21hTHB2cXhGRlBsblZDVkJYWmJOSjcyLTZYbXdhQjhENmhrWlR2UXRXTTZjQTdFZ1MwN2hjSkxWaWNzenJOR2tSOXdsLVBsWTgwVmUzVkloRml2bkFydzJycFFZRVkzXzZLVjUyZnBma3Q2VmhnN2s0djZzSkMydEYxb2J0bVVvM1Nrd1pYY2NvQmZ3YWlPaHFibDhDX2RrZVlPeVVjajZJWjZDSmNwd0VvRWttc3ZEZnlLR0Z1UkxVNEdIVEtJYXY1Wm93dXY2akR4VDZfYkZPRThpMlFHT1B1bmc0b1F6OXZTMU0tZUtuY1BSV2U5V1RRQndpYV9IbjAySjltN0gyWVJvbWhoazhnM1pIbmV0UjVpR0RRVTNPWDdjZXFEZUxnT0o3c3dNUjlwaDJHeTdqVDdKS3Rac0UtbF91RjJLdTVrWkhnVkF1MVBHaDRQaWVpcmRqbDVqSDlTSlNleUUyYll3SkZVUlp5N21FZmowWHUwWmNibFVrR2lGbTdwaVZSLUlQbFYzYXJFT0VPWlE0SVczcGoxX3J4alljSlNFS0ZiVzRVSThHOHJaZHVHeUN1bGFUR1NsTkJXSThWd0ZRcEN6UFgwYjR3bUZYeUZrSTlhdVZ1VEZsSUs5VVZrYklUNHZXSGtwRDFnanVaTGNNc2d1N2czODQ4UTJzOWZCRS1VdHp5QUp1WExuRFBWaVdSMFBMc3Z2NUc2MndtMVhkTE5WTzhSTXJfeWV0VzdXbzlRTDlIaFFSTjU0c3FCREpEaFRZa0hJTzVEVU5JYnFZdDFmcTg2czg2VzNqcEFPQUJqRG9pQ3lzemNhdmd4RFMxQzRLTFYyQkVKemhPVk83VlgwV3pPaTNQblVKWE12dFltYkdvMjM0aDREeDhvZE9sR0M1c0hFVXlmSFROX0pVZmNYbzFsemhYa05jdXpFY0ZSbW5YN056RU15cjJuSmFidGRHNGFwMUdLNzcyZlc3alFqc1ZTUENXRFpQc09NQXUzakRmRElIUzJPN3d0dm9LdzVSSmtQRmtJN3FoQVhaRjVIQXc2X242XzJ3cUlCQjBQZm81c09tXy1OT3pOell4b2xocGFDN1M0dDBKYnlIYTdBd3V1VEd5RU1ZRlJ4Y2JlNElmbTQwdGRSYWxhRmlnVC0tdmN5aVhPQ0d2VE5uRlBoS1ZzRXFiQ1g0YUx0SHF3OTlkeTR5bUJxMFRldlFhcndEcTROaXRyT3dIR05hR0dSWUdwbjBJU3kzZDdObG5ieVNVdWZ0NzFtV0RmbnRsd0RWa1JVWkVFWTZZNGlnb3FPa0ZoeC1SUEhNeEFwcFN1b2R3QWUuZXBKWFRuU2syOWxmR0hFajktSHI2QQ\"\r\n}", + "ResponseBody": "{\r\n \"value\": \"JkF6dXJlS2V5VmF1bHRLZXlCYWNrdXBWMS5taWNyb3NvZnQuY29tZXlKcmFXUWlPaUkwTXpnMVlqQTNZaTFrTlRRM0xUUXlaVFV0WVdVNVpTMDJNVEJrWXpNNVpHWmhaamdpTENKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V4TWpoRFFrTXRTRk15TlRZaWZRLkg3Q2dzYktfejRVMExDOEFtRXJyamtvOTZlcUpmX1U2R252b2hrTGdUMllXdWQ1dFlVSnlmQWlMbDZ1Y2VVc28wX29xc3N0TktzT3dYZU9nX3FVWUQtV194aDlkOFR5RE9iZ0k0eWxROEg0bXd2TU95cGlOSzJoQUtSQ1JzUFpTVWlESGJLa3lPSEI1bGFscVZyV3IwQUhoX3RGQ3pUTWE5ejVHd2E1My1HbWxid3VYLUhvZG5LNkJncVVWUWktdFlhRjc1UlJXZHBaZGg3Ti1naHBCWG4wVDhaWlRDN0ZscDJaNnE1RlotYjNxQll2RWhPVjlwUVFtTXVHSTBNQl9vRzFQSWY2MXhIN2VlbDZkSWVtRGZobHpvMlJSSGdUVFFJWFBfSFQtZnQ5T0pXdkh1MUhUNE41ZURrUnY0ZFFfbzg1MWRpZFRxdVZhV2FNTTJYd2pzZy42N0w1a0ZSdXU3MDdHbHpiaTNMV1RRLmZSb194T0hiVVMtbTlaRnNVVkpyTFpCaTg1eGxFX1JDMHBQRy1ZdXZyN3Q4TVctN1JBd0NkTldDazVpT1VMaXZpWlRORktfQUxTeFJTLVY4U1c2SDMzY0FuUWNKdUhnZTRFaGxyYklfQkZqWE5LdUlsTkNhS1Fpc2lVdkx4RGpTQkpFaGpxNHBVTUl1anROMVFqSVk1aDB1aHN5LW94WnVULXgtX2RuU2F6dkwtWGF5RWZieTM1dU9Wb1JfWFNoUU1DeEY1MEF2aS1FZE1IbWJwdmd3aXlIYVpkLXR6SGtyOXg1cXo2TlV6TG15SVZyX1d3RUNaUkZLM1RILU1nZ05zd1Q4SHNiRGxlN0txU1JkNVk5Z2RzNUxGUVFWN2pfMGpob0pjb3BnOEFyNFM2by1FMVZDQ296azU2bDdreHNvTU40blRGd2ZKVElzTUg5QU5QdXlMM0RLalZuOXAxc2lzRER4ZktSb2lYZTdMVC1vT1Q3QmM0dU4zOFZiSVdIaktMLUxVSjBzYTBKM2ZXRllKUTVWMUgyU3JPNkNrQWQ3akMtcmpsSFpsUWIwLWNvcDU2T3EyRXR6YU40Vi05REQ2LTNya0ZfcUxsekpDUG1kZm5jU211eG9FZmJDcnFuQTN0c044XzZMUTJpUHdLTE5HWnpCMUFaRGlaeWtYTDA2RUdwZUVPMWJzTFd6Y3ozaEV4TVVNejlRZDdCWnEwT1RtMG5hZ0k0S3hpaXdNRUtfcU14RlZGSGhtZTNNcEJnaE50NnhJT2lCSTlOdnhUd2M2MTV3VEtXT0tmZVZfNkhtcndjMmJLellwOVJoM09xM3dYWUtnbzFyTVJCdnpJQ3BhZ0FGSEFrek1wRlNxZ25lbnRKQV9rRnNRWWVfdHVsODNUN0FhZ2Q4eF9nTE1COEdyc1ExLURvcTVIWjJRM3hHaUUtS3hRRkRYYnVEWkhBbzR0VC1ZWjR5b0c1SE91OEVSZGRUcllJVHJMVW9lMlB4a0FQSXR0ejREZVduRU4tYmp5QUdnOVpPUG9Md3JZS1V4eTVYU2FFTHRhM2o4RTV6UTU0eXg5TmY5UGlPMTFFWi1DVW9DVlpyenRZNXRWaUFHOUdVWGhEdTdEZjZUbTk4YXZaRGMyOFl2VHpaaGNfaVY2Tk1JUUVmYkI1dEVJb3JYRE5LdkVLWW45akFGRTc2MldQejJ0VUNDMExZcjgzbXZzcEtja1dReE9IR2ZBcUNSZWFxa3EtN3U5QU9zVzVxRnhFa2FoZTlwWjZ5ZzJaaTBmUW9uVkNrcFZIdDhGWGFhWWcwb05aMTNvRk1MbWY3ZnBlVG5Ta3VVdmZScVJKcjVTS09vX0czdG12bkc1V2dtaDVRSEJPcnYxb0QyekhUSF9sTnBXQ0JVZnRGYS1HY1BhUkdlYk1OMm9NY1ZJUUNzSDdwVHVwTHJkdEphRVQ2aHNxYm5QeTJPWlo1OXRkaE9yb3A5TEdEMDJSckRpR3VFTDBpYmZ4aThLOVpaQlk3cnRJeEo0N1hpWlBpejFrbWM0eWRsdFZtaUdWVGExbFV5ZlFTeWphcE1pckY4YUxFUHk4amxXTjZ6ell4aHd6dUQtMWhKbFVWX3ZjV3dBcDJvQXNLTXA5NnZJRmxhQmp4bVN2TXdUckhHcDlOeldnOHo3WWJrUDh2SWl6anZ5eGNfVnNGRDFNODFVS284RHhwTDFVeVItY3RCWHg0aTJJVDRBLXVkeWtYcURiN0o5X2RUOGFfeFl4NHJ3ZngyTHI1cHpjbS1RNGl0U3JHUVdfX3Z4cnVXWTZlOHRrM284UUZoemNtQzh6Smh0X25jb2c5UlAtR2s0Q3RDVEgxTWdXa1lpQ0NzMGdFUG9NOWU0MUtLak9IMUFRcERqTnRhMGpGZm03aFBRYU5odXpjaEJ2eHZLT3JhT1RCaGZLS2FjbkJJSVBQS0E3c2pqTFdza3lIM3FhNGo4ZFZBUUVQSEE0eWhZS1cxMGFJS2lCLTdoeXU3dEV0S1NkVDh5SXlKSzRfaXlzanFzTmZ4REZPMU5QbzVlVVlza1V0c1B2TXFNSGR2dWh6RWg3bEI4czVheFVjZjAzeThQd3Y2TVBHU1YxVXVIaGhsNURaSHRSdURJaThWMUJFcm9SMWZzRUlxTGZlRTZtRFRmdDl2UDFUOEJjTl9XQUM4djNYVGo5TWwxY05wZnFlQ3RQRVl0U3JCeFdpQ08wMVpYVEJVbm5LMGc5allrTVJWWGJCRkxPZUVGWVYwdkxpbUt4bmVvdjhNNTZZOVk3S3VHOE1LWlVVeXA1bjBpbTc2RXZLMXd4cVNGTFNzY0JIS3VPRzJfeF8wNE54U2x2ZXo0aGluNy1vUW9IOHhLOUpvR2Y2dVlLZFJBY201S0hZbGNPRkVscFk3ZUxPNmtBSFhvQ0RJSlpaXzF5dnlNV29GeHVlUjF2b28wU1BLWWc5V1gyczk0aVI5MWhvSkZfZ2tVSjN5eFdGQmVFVk9GQ0VINmdyWTN5X2pObzRIeTY1MnE1QlcxampkUHhCRXlkVVRUenhWeG5lOFV2Qk4ydUtBYkhyTXZkT2ZYcjNfa3FvSUg5RS1VLXNzVENpeUVIS185VWpMLTBEOUpkYmVyMl8zdlZVUmVWTTRaTWVFY3pucU8xRFJhYlJDVzQ5Uy1GaGFsT0t5bzNsVExMSlR2OXZpcjFnYVNFcU1ZNGYwN3ZXZmJtcTFWNDRYMFVmakhLYmpWYlZaYldjVmZpbVZGeEY4cl90blBVcnExZVUzM2hxNGJtVmlFQkZLOFZSZ1N2eTF3WXZRZHBVbFlTamgxTThVNlNOZVktRGFPOTA5SXJUQThzZmFOR3pOcTlLNkljaVgwWFhJMnEzeGw5RVhOWVByQWg4M1UxSXY1a0c3Tmx6eXZhMkxWLV9SUnVMUjF3YjJ5ZnhUTy1BSXZ1UUx3VnJqa2tmXy1uNVltc2t4aW8xRFp3ZzlPYzBYYzFjZGNOS1RBb1NTdlUwUV9zNWFWNi02QzE0cV93SjhzZXJtR05mUnlJVm9tb0tBZ3hVdTdTSkZCQjg4TWg0dEJJN25fa2x6UGVReXZjMU8wV2EzTlRfOFd6Q2I5YUdiZlQxYXhTaEY1RlZBMXRpTzNSdkNBZjBjM0VzLUQyc1BONHp5M09RNWRIY2xBV09VRGtHakliVFlzVnc2ajlCalo5V0txSTdXbk9aeXBXOWZjeTZIU0JwWDlwUHB0XzFya1RDbkxWTXdCU0htTXZTLVlTTVZjWVlSZjN0a2UzMFRIMjV2NUh5MVpwRnBWa1RkTm82WkhWNEROeWJNeHNWQzBlZmpCeFNCUFNUSjdoZmw1Wm1JLVJfd2RpbkZGUGY5WFE2ZlF3OW9oV1ZBVWhEZ1pBVVVleHV4MjZsYVUxYktrY2luMm15RE51M2U5aGtZSTVSOWxQclJCOFo2c3JkRmxiU0RPSVg1UENnVTVQYU1TZml1SmNnNmVfVC1Bd3pvRTJoZGVNaTZOVVpxSzA3S1gzOWJoRkp1b1NjVm5mNmpTdVpGbDlQSG5pZUJuZnVMV1F5cW9WTm9jdmpfV2pYZng0ZGVmcHQ4MzVDNkxpRVhaR2pFZTFiR3pJcnNXTW9ZeXVIcGoyRDFsM19rZi1pdEdPYkhlVm9NV3lJS2pLZnZBbFlMNmtUMmVjRFVhNEtKRnFCSmhnM3pKWkYwb2F2S2dKc0JDSkhXenV2RXR0T1F0R3hGQUozSmE4ZmdDNTA0cXJJYVlsVVdYaUdvcGxLNVI5bkZHdEFXQnV4MUpYYkhMNVVfUE00YUw4UmFKNVl3ZThyQkktby0zR1FITFFXX3RJS2xjQzdyUm5pZTgwSjFOTUNXVTVxejl2QWExbXhZQ2VVU2Y0VHlMcXk0eHpBNEp6VTlKWW5EWGxid1N4VE8wQUNKSUIteGVjN0lTWDdzS21SYmoxOE44X0ZJYnEzaTEtQTd6VWM3UExXd0pqWlFoS2p4ODdoUkN0djRmNzE0V2w2dDF0djhvczF6UkdTZURKMWgteHZ2dW44RUxadTdQeGJVZzBla0plRVhnX09tc3NPMzlXYUpNMHkxNVM2YTlIQ2xsZ3ctWjhqT1dzanQwVlhBOEhhNmpJOEROb2tiZTVTSXp0amRGQTV3Wkc1Y3BZbHN1b3R6YmlPbHFqSWNxSS1hZkcxMzFLSUdDbU02bC1QbnQzNUdqSHJkVzlnd3RUSkE4Q0FfdUdlRHJuUnlQWlVDX2luUlpycl9DRFcxN19nT0xOSnhuampKM0g1VTRzaDBoanZYVk1nY1BkdllFOXlFcU84Z0pYQWk0b1FRSUMtM2loYm9qYWtpblBNdjV1US05aG02XzdUVk1mTlFMejN6b09tT0l5emprQnpPV1RmUmpPSFhJRjgzYjYwaGNJWmhwVm85Y3ZvbWtzT2ktWTc0TjlOVUlDVUdvdmxNdldVSG1aYWJTNmd1VHRFczZSTm13akYyNzQ0cDhxTnNmMVJ0V2x0TEY3UXpwaS1XaW9WUm5tT0pqQVJ0Q29Wcy1BSjdvcVNnN0l3OEhYUVJDdXc1NXk0T1NWRW54Wm9NZ0tsdTNXVlBCUHN5NU5YODN1YTNwVjZwSzNKMDRMZE4zQk1WbWV6MkRDcUV0ZWdJT1J5WTljT0NZM1NtbUQtM3dEUzdXd3ZQSFp6U3JBbWt3X05CMUZLZkZDWkJ0T3liN2lCNDRkVDRxVjlVcHAybDEwcHJ0LVJxMjRwZlRaU0dqZFJ3MWJtcXJ2RGo0WjBiNWFCaHFYMVFCckoxZXdYSjIwcUJZekdLMERoLTRLUG9BcVBJSXVjc2lWLTV4YVI2TVFJVXVXbC1OS3VKZkZBamFsd2hYU2x5QXZycl9EUGFNWkhYOGxxd0VtdHBubmZPUGpiR1dNc1pLWW1LY3pGVGViaEVUb2V0R3FmWGQ0bXpQaGkyX240by1RTjU0YThvMFdJWWxwaE5kT0pNNGZ3ejdhZVMyMGFxYnZKc05iSi1BYVZ6VFJCc0tRSEZSMzhlcTk4aWNKc1hSd2FQcmpKTUtzbDlrT0ctZEFKNWZYR282eGlINUt2MUVWNGVya1FkTFRrLXhva1hlb3ZuNmx3QkNfMVF3MzJPUWNmQWh0UExFcDRaaHREdEVKWkZrTmxrRmlvZGFKNFBJa2lOdkdGMzlwVWNLNnlHeElIWThUejAyeC1pd2xhR2pPZU9CbkRzZjM4UVg1STNWTUczOE0zaDN6V3UzdUVYZnBkOVg0UlMybngxb3VTdEtrdFZFcjZuSHhSTmhNdTVMcFZ2bzBWa1JvS1ZIdkJaeWF3STI2Yno2RkdPaTgyUlMzU3Q5VXdsWkpndmI4X08xZmFIUlZhbEh0MHpJSDYxRlhNdXA4Wl9LanJ2Q0dYdEYxV2FWRlJMNjBOMFVBQVpSaFc1ejU4dmpsLU14RC1za2FhUlBlZzd3S0Y1QVB3RlBBb21KZy1NTzA3TW9ZajhLcDdVOE5Ybzg0dXQ5b0pDN0diYi1USndXbHQ5QllLN0d6Y2NhMU9VU1ZESlVkYk55Y3dwWGlieDNKdkljUTZwbHFVSlpzVW9mX2xySUtqZ1VGTjR5ajdzSlJmdUNZZmdHSU5yLWRTNXRqTEpucWZpRjBHUk56MEZZU3lfNmtTdFJEa3pwQ09Xam1LNDhZaHhLa3dUSktFVG9GNXp2T2o5WDRHX0t1YmFFZ0p2dDlwNkZvWkRVTEhlVTRHdFVTRnRyRVdNVGFRT3FPeWJDSHA2NGxydXdQSFJuN2k0VjJaa1lFa1p3WUw5dGRQMzFicEdOSkhGVlJjYU1fYlpFZnpCVTdaVzFfMktUQVY5ZWFza085TUpGZTlraVg2X2xydVNMQWlXMjFmUEhfZEZWR0VLeVozOE1DS1dKZHIwZDRGanBkWUhyYXU3bFJ0bUdjSWtTcWZ4NXhCdkR1dERmdXFkM1hSMnUzMXVzUVJRcVVMOGJJZTRkUFlZX2p1YmpLRjNDbWJRa01QNXlkZmlRaTdjc19qanZnVGVIYUxrc056bmoyUjlFa082dWMwaFhEdGRoMUZDbDZSTU1pTTJBZDd5MDJ2RU9raG1GU2RraDFieUQ2eWJvYUN0T2JrcEdXYTI2TjlTNWFQMk5DUS1HQmVhTF83SXc1NkhQN1lYN0VxWngxOVRBYVNNQWM1WGFZZVFtUEc1WXRqSEliOXdOMTVjQ2tkcmNQWDlxTUp4clNwdm9zbXRHc3FrTjhLTWFyUEJEempRMm4tUENYOTB2Y05sUk9kZFg5a2M0dUNaSnRkUXFIbG5WMHhDa0lpWXJBbjl6Um9kdW52eTRLQVM5OGdwZmdzcVV3QVN6LWFmQ3lOSDFMVGZQakZPTEIyLVFuQjBYWWZqcjdVbG9Ba0JMZ1Rla3ZOM0hCcXB3Um1ydUpQQVRmdG4tUUNtNUpFSmlQaUpRM0UxZzQtX3h5RnlTeFRNMXdQVmR1THhqRDNZd0lEZ3hsRE5hSTBBY2pHRGNXdmhyU2dmcmpVU2xWWjZ5NXRXaWtrTE01TENpMEZYUmxlYWdNZXJKQVhmQTVtdE1MQ1o5T3BMVFMxOFRIOTVJTHNXbG10cXlXRUthOFRqYTBYYVVHeWdOLTN6d3FCNXFjYXFiNUJLUUM4TTlRcmJrTE5neENVUDdlREVEdktoVnNIYVpFUm5MYldmMUNTQXFIcDRRN2Eza0toNEVDRW5tQ1F2VHAyM3JPclZlRG0xUVJFQVRZVy1YRzMwZHAyT1BCRW51dmlpU2U1Tl9JUGpoWktidEI4QW1FcVFKUUpMZ3dtZmRtdWNhb25NdTRfMFI4elVwX1Z5MkFibnI4elJsUTVrcTlSVnI0R3c5UkdOdDRFeTZ0ZU1RNnNPcW5BaXk4NkZ0Q0txRm8wTTZ2NENHdjFpUzI3MUVDTkRjZFNIYVJNUFVDNFEtQjdMZjVIYlRBdTNTcUc3NHZPYmF1YXRrODhJRkNNWEI4Z3MtMEdtZWVfemFxTlNGTDd1aWlrOGltcEt2Q1NIYi13THBfWXBRWnMwRGVYdjdYWTBWV0xFd1VVeW53XzUwNkNBVFlTYk9FV08xeTVWc0JuNmxuSWxSUEVNdlA0QV9aQ1pPWERQWk9KMWFsU0F5MXlLdUhqb0k5RzZsWnNLTEt0eElBZ2U1bjNvb1Q3c211WVdfUU9MSzgzaEdTMy0yc2tob0dXWkF2SkxUM3Y4RldyVFZ4R3FYanR2WjhEMk5UUHNjNGVmVGJ6Y0pfZnJ2UlJEZUtGSkhseVFDU3N0MldOdllfNTFtczRHam1WMzNYWDFmZjdMTzNWVVcwNV9uX0NlWThKMkt4MGhFZTlmNnFpaUpzYXd2OHhXNDZvS0pOU2dPZGFLV0g0d0Exb0dVVURFSVczclBsU2hkUGpDYl9tOEdGZHd0VlRDcEtVVjhlTFJPbnEyZ3hiSUFPQmF6MVVVdm91clZtX25WTHRTSTlxdjlVVWdLbGNOOU1qUlk2dkpEdllma21tMk9QbTNkTGRIeUhDc08zR3d5MGJoUFlScVZ3MFoySUw1dkNLT2JuZVA4UkRxMmp0aXBTTkZrajdlbl8xa1lyc3lnd1lXWVRsU2NXSGE4VlpYUTM0T1JLMVZ1cUppMVpYUHlmbGFEN2RIQ0JSV2JacHQ4cE5TUkJCMGNNdWNTd3pDdGhrczVGclQ5U1NpU2Nob0Y2a2VudGZtZ3c4ck9OVzRfa1JJaEVNbXpCNnd6dnlMeHAzSFdvV2Zac2t1ZDRXWEpTTk16VDMyMUl6TkE3aXRRZ2ozQ3djRjk3SG9zWGdpczFhSzNNYThSMUl0U0dwRmhVTGZFT25oeVBURDhwTWo2ZWdrcjZ1WWFHSEVSNmhmNVdoNFJScU1DNkQ5RDdTeTBESWp1NzgxN2RVVE1SMXFXTkhBbDZJNEk5R2pHaXZnRlZKZEViREtJXzBaaGVFbmFOUHA2S1ROZnItTkZIUDhzYmllQVZBcC1RSUNqOXdGRG13OTBqTTZsWklhOXpYbkFMSGI4SlBSOEtLUzJrT3JJaXFLUjhJSEhXd3NlcF9nOXJwTnA4YVBxRDF6N3pGdExMSjFLdEFIMDRJWkFEbndmZmxTdkF1WVlaY2R4OU1saTlON1RDbkV3TllSRnFFMHZiR182ZE9wdmQtV21KbVBHWXRqYTN0dTJ6M1lsUnZqaTJaSHlCVTdZaEt3RG80bDBaTjIxQ3c2T0ZiV09JVFR5Z3haRjdDVEZlaW05Z2dXQjUxWkFrSWtuM2J6bHpkTkxycnhHaTdxb0pjeHMxMUhmdkREcXZ0eThhN2kzWjBJblNTX0lnajlmaXlrNlBueUZkRlJNM25ZMWhQVHI4Yk9wMDhGYVI2TFRaN3JYSmZ2UkZaRzZNR3haSjZNS2dQVHpEZDZycmFmQWJtZlZuenZNY3k0cnlwZm9CLVhuTVZzb2NTYUU1UXhQbkNPV3FRVzNaLXdIR0JrZWM3Q1dacjNlVUdEWmhqUWstR0k4UFA1bEpWUTBCT25aclFBWktCMHkyMERjaWMyUm9JeHdnSnhMUzAtakVMMmRvVm1EaTJTUGY5eXVxYmNIVEpLLW9Ba0o4MC1yNzk5N2JNSGpCUWpHd2JiV2ZLdnEtNDBxYVpBYVNqNGZicGc1TkJteVNhNVNFaXBmemR0a0lYc2Jfb08xUWRGbGxxenowZGNCRG1HbE9FaENpb3lxWHpoNVFkeEEuRkFfYzA3ZTR3ODNoaURQMERrTGNQZw\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "9270" + "9470" ], "Content-Type": [ "application/json; charset=utf-8" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 09 Jan 2017 19:52:48 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e380ef1d-0f57-4284-9839-4590aa3fc952" + "79e421a0-cbd9-466e-a476-cdbc9cbf21c4" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,16 +141,17 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3c8f89d9-7419-4a69-a99e-c3be7dfb368b" + "89d1800d-0b4a-49a4-ad41-e62e51cf841c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/BackupRestoreTest/ca1b3304124d42048dc931669190f7b7\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"g60mOugoSwfCZecx4imcSwd12D0a3ivntZmTpXqijfrO3Bfu2K8NjF54z0si5fWj_jekR538BAODTAaDrDMwdZFnZrxZinmmOaZ6UaUPGb5pQZlii5_Kq5rTKxnWhSM5s7axhrHfZXGrt-OANS6P00AT5w9Vpteo-kDY86iQ-tCf-2clXVoboKyxw0AABasUUX--wT3sbGj1rNRpsdhrzqaGfpo8xsTcmqTfwcCO0Z-wDbyQ334FbmKlPRR4Qy6YIeh_ssJwVbxyVbY1uOZnnqSoZV1TM01rAwpR5KH6Rpu-EV_BwNbwOaDQs_e8LZwjPjdSVsvjwVrDaSg6XRZqLQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1477082133,\r\n \"updated\": 1477082133\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/BackupRestoreTest/de83072dee6d4f7886947b6776e66d1a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"qIJMru9B0l7lPVzdxoYXMnRmKZnodMkXRoBTTmUSgeV3FWZcEnOQ_OKrP1UJJF2nrhYU3ExcAqf8Z86flgSMhQrlSIe1V49r8psggNHgtWrI_gCNs0HOp4JPlwaCTp1i1GscnKAYXoDuEg7a3X5yAW7bwYxV_UQREOodFz9QYpMjt4nvKHLajGO6h2jJ5W71fXMUpsuhAR3BL9GFfBq6uJmdl-MwOZZanQGqcqZMt5gThUXS2g_7Xnm7aiKtEaztXlr3S9LLfA791sZW5lWv5WaHcVilKybBVfR0Y0urCEC9GykfE3Epkm0boKRj6BudaBMk0t-VWNRgCP2sXySP5w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1483991568,\r\n \"updated\": 1483991568\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "660" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 09 Jan 2017 19:52:48 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "c30e85c9-ea4a-4a8a-b1d5-79d205447f42" + "a60587f9-3934-49d0-a496-8cc749fe9bbe" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -202,16 +205,17 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2e69d0d4-ad7c-41a5-8055-f70160a4b61f" + "afaf0483-abce-44e2-b08b-b86a5a1d7c35" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/BackupRestoreTest/ca1b3304124d42048dc931669190f7b7\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"g60mOugoSwfCZecx4imcSwd12D0a3ivntZmTpXqijfrO3Bfu2K8NjF54z0si5fWj_jekR538BAODTAaDrDMwdZFnZrxZinmmOaZ6UaUPGb5pQZlii5_Kq5rTKxnWhSM5s7axhrHfZXGrt-OANS6P00AT5w9Vpteo-kDY86iQ-tCf-2clXVoboKyxw0AABasUUX--wT3sbGj1rNRpsdhrzqaGfpo8xsTcmqTfwcCO0Z-wDbyQ334FbmKlPRR4Qy6YIeh_ssJwVbxyVbY1uOZnnqSoZV1TM01rAwpR5KH6Rpu-EV_BwNbwOaDQs_e8LZwjPjdSVsvjwVrDaSg6XRZqLQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1477082133,\r\n \"updated\": 1477082133\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/BackupRestoreTest/de83072dee6d4f7886947b6776e66d1a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"qIJMru9B0l7lPVzdxoYXMnRmKZnodMkXRoBTTmUSgeV3FWZcEnOQ_OKrP1UJJF2nrhYU3ExcAqf8Z86flgSMhQrlSIe1V49r8psggNHgtWrI_gCNs0HOp4JPlwaCTp1i1GscnKAYXoDuEg7a3X5yAW7bwYxV_UQREOodFz9QYpMjt4nvKHLajGO6h2jJ5W71fXMUpsuhAR3BL9GFfBq6uJmdl-MwOZZanQGqcqZMt5gThUXS2g_7Xnm7aiKtEaztXlr3S9LLfA791sZW5lWv5WaHcVilKybBVfR0Y0urCEC9GykfE3Epkm0boKRj6BudaBMk0t-VWNRgCP2sXySP5w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1483991568,\r\n \"updated\": 1483991568\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "660" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 09 Jan 2017 19:52:48 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "6753b20d-1c18-4c34-a9ed-b99e3d5885c8" + "fd17307a-0be6-49fa-8e08-f1ecc8e6a6dc" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -262,25 +266,26 @@ "RequestUri": "//keys/restore?api-version=2016-10-01", "EncodedRequestUri": "Ly9rZXlzL3Jlc3RvcmU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"value\": \"JkF6dXJlS2V5VmF1bHRLZXlCYWNrdXBWMS5taWNyb3NvZnQuY29tZXlKcmFXUWlPaUkwTXpnMVlqQTNZaTFrTlRRM0xUUXlaVFV0WVdVNVpTMDJNVEJrWXpNNVpHWmhaamdpTENKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V4TWpoRFFrTXRTRk15TlRZaWZRLlRhWmVRTk5MT2w4Ui1lUkN2NG1QdjVKaWVGOElxaGFma09QNER6Y2c4SjRWUXlPRFNjc204d1dJTExRMENPLW4xQ2FLMktFZTJXVFU1X1B5eUE3UkNEM2dlQUx3clRBWVZYdmxnYmxqS1BaWjc5elNNZFNxTjFPWkNlalhnR0FqR2o4S3IwcHBtdHU1RW42T0lOdV94d1VXRFBJSVlhaGZhRnRfVjAwWmJLTEtud2ZTenJyQWx3cHhBQVNtS3U4VzN6TjdrR1gtWlAwMU8yNEpGblhIRE1pak5PeFRHTlBVZmVPTnc1ZFA0ZVBsX2phU2tTVFVudk5vNUtoRGZnOXNyWjJ3UVZRdFBYcGkzWldaTmJ0Q250ZEQxYl92MnROeGxUNFRjbnNtNlJlanRGQnBWXzZ4RnlWZHdpSTU1QThSWlJfS05ndG5aTXMtVUhJMGE3a0lHQS5NbndEUUt2TUxYdnA2Nng2UHZaNFVRLlFhRWZ4QUdxMXE1c0swTGlHUjVFUWFkVGNWb1I3XzBoYlJNNXNsWFZkVGw5eWFHcy1zdEllTjRWVlNOMlNKZHhIRElwVDZVREpTeUdRZktFYzd4ZU1hLXd6MXFyWUZBYWJZZG5FeHlpd3JpckdpYjI5b1VLZnBUNVZDcTY3VGVPS1RHZDFBZTlIMVZBM2ZlaExtTTlTV194MzJyOHppbDE4TFEyMnhITW1uSWFxX2RYaTJmNURyX2tWdmUyM0h1dUN1cy1VZWdNWDVqM0NHRjBDMmpPNXNhN0llamJBZnJKa0VRbWlaSHZFaEJmTk05YnFIdkZPbEpydzQ2MUtuZnZUOGhIN1MxY3BKR3VlTUZkSUpfYU5nNkV1MFY4VHlxVjM1QnJta2ttdTF4Ymh6Z2gyUmNZSUpnQU8tY2RHOG1BYkNmMGt4QUVPNnJMNEthSkQzUENDRmExQUJ1MmVIR2JTY0JIMGZ2eXllSER3a3VMeUQzYkNadjFnNFlPcUFFWGY0Y2J2dlVXczFNVlFNN19IVnRNclVLOXdaOUtUaElCbDR0R0RSRmJmamRVM2tYV2o5RWY2VGd6OEo4ME9HVTJ3eC1xbXYzbHl4UnBVRXV2WnZ5SUNVRUE2eXZka2dUNW1FTTExWHVNRHBMa3VjYkdkMGltcVhJVFplamYtZWZRRTJtU21QZGpCd3U4WHJ4a1hBa1V3bk5iM1F0Mlk3ZWk3Z2xvZVdvbHIxU0Q1cDZONlBvejFMd2ZyY3NpQmJkNWwyUFFXcGNHUi1TV3I0V21Sb3lCMWtzR3RhbU1mdDVTMkpTM2xmcGxHelRpbUpQa3F1cUpmUGlZNG9vLVZTY3FqYU4wOElxZEZnc2pvNnptem5Wektnbm82ekZIcW5jME10N3NoNFdqU0FtVDVJOURpY1RrNmhqbVRzV21xMFlFallkZHZzR1EzdWdQdlFiYVFWXzhIMlRLTHJVWWNFbVpLMXBraDNsNmhLMURtM0hfQzI4alotU2czRkJXRENGZEJ5anByZWFKV0tESFdSSVpTS1NLaWJBdHI4RHJIVVRSVUxLQ3hpMjJsSmtCdFhrdEVhb0tveUNRamFYTU52OHg4WGtVeGdmUFpCbGZfTzZmaGctZTBOY0NUNGVYdHBGS3lXbG5wY1NkRDUzT2t3NkNaRTN2RHhaUjJEb3pzTXVTN0NSdmI0Rzg0M0FDck4ybnVMRTBoVzJVRHF4R0xJMlJPTWN5UldoUDBCRjNQcVFMWUR4MkZ2MjlrdGI3M2pJckgxN2h3emVuUzNmVFNWVGpndnVpWTJHeEtvSEpabXdGRXJubGVQUGhNNkpQVFkwYzUwQU52RkZoaE90eC1kV3hnN01OTm5pVE9fRlNWMmQtY0FiOU1pQXVtUlBFaGR6S1Z1dzkzLTRmNEVxS3A5M1hIaGlIRDc3ZGJSZHFVdTdoMElON3FWOTlrbkRKd2Jvc043X1BtSzQ4WnlXcnRFckQwRTUwTkcyLWxqaHg4YVUySlhxQmFncW9LNU01NVhYV0xMZG5PYmdIMnppTFNiOXhmc2pBUm1oc0RRYi1vVDRBMm5Yb0ZaVDJYUTN0QWM0VFFqbGVpYkdycTVIekh5RnZLSElvYTR3OGx0THY0LUk3aXhxVF85SlF0MHhZeTVOYy1VWDFtTmt6cHY4WGpUOUFtOHBxZWRoQktRN1dYckNQS2FqS1dCUlFBZXNOOXR1TTY4Y0U1YWJ1MlVTclloM2NseklNbDVvOElKUHkxR2ZfYjUyREVmOXBXRDFERGl6UUFaNUZNUTBOSlpFeTJoWjBXY1FvbFgwV0ROTm4zTFo0bjU1RkFlZ0Nuc0NXN0F5eHUweFJsUUNPbC1BVFJpZVdkLXdaY1picGhaMnV6S0RxYXl6bThDWE1YSlNaZE1yUjg0YjV4THg1MG5zLXNjQ2sxWU5fWGRkZ096Q2dqN2Ruc0RIUVdpdHVpLUt4bjUwTldhdnBmYXo5NXBUdlZlUlRIanROei1vQWVZVWF4VWZzUnRuUE52ZnB4TlFoempkOVJuU2g4aXBOQ2lKN25BMmV0aXJtYUNrZ3VMYmVwMGpUei13azBlLXVjWFpGalotdkNYQV9VTExuZlhnQzJaWnZmalgyTEdpejhtRm9fSWJjeDRBZ3I1TGlUMTJwYnNNaV9femZLcHFnQnlsZ3VrVWhGNlZrekE0M2o3aENITnJfaWJTeVJ4U0RPMHRvZTlXWFVsaDFKam9VMXVHMVNmaG1WR1htYkhqUjYtelIzMHl4S3U3cTNDOVQ1a1Y1MEplNGgxMVR3YXFQNkQxSUF5WUlRdW9VVDY0ajV0TEdiU0tJS29qLXpQMWRSbVRoMVlyOEJNY1NxR25vOGpiUUZEdmFhS0JGV2pRZHNsa0xEdjZDMVpqRFVqZmNWRE9wOTU5UUFKNUZWTnB6TllaU3pjQUV5WndBTy0wbVZEZjF1LWhKS1BBa09nb2VncW9KMl94UElzNW5DMHZhRHdmVWNWTHZaa3NMY2V3d1JybTc2WjliSGVhN3QzM0xLTDBSTXU5blVBeGFPcGVXNGs0czNtdjFCTnJNcXE4UWVSeDk4alZJX0lLSU9kbnAwYVFDbXE1cWZWWWhrU2t4dEhyTEFhY2hDc0Rzc0NnaDZIODcybHRYeXlyV0p4NE9mcnhjVV9uYzl5ZHdTMUVrdDVvWnE1ZlZWZ0hONmJtWU42SDRTVWg2VnFjYW5oRGZrUHRqcE1zQkpDTHZRMFJWMHJibzY2cWtkbnktbnBFcEQyUWU1Z3NNbnBMODJvaTFNSUExaGduZFZQdURFX09RdE5uUVZpT1hmYThPd1BGRlduM3VWLUQtU21QTXdYVXdKOFMtc1ZSOEZGbDI2TE84c1pqclMwNi12ZW4zUVdKZ3RZSDl6d21xNGc5dGZxY083ZThDT2RLSHAtOWRuTjdwdVNaNVF2dlI4eGhPOUswQjlwaG9hRHRoeFpET3NjUG1hSy1valBuTGZvZVNCUk1RYkhJNko5cjdqNHJCZkVDNXFVSFpwZFdvMWZ2X1h5YzZBb01iMnNXWVBYYURSeURUblNQNjdOTEVnY2NROFEyc1pMSV9UMkhEaVNMMzFuczJtS3daUnNUblJkNWhndmZ2NmhFcm4xV1F3ZDJ0cEZ3R1VTUlpDLW1UZWVZMnk4OHdIei1rRUZyaGVFRldVbVBVVnRsOVBGbk45RDZOM200REc1RlZ1aC11bWdiRE9SclBJQTNrR1BSM0NvWENkRHVuYkNUTkpRMEFqemExMnBHM1k4amROVXgyM0pzZUhiVWdjT0hfMW5EM2d2bWZGem1IenNqeDJ2Y19WWDgyTUE2WTBwaGo0X2ZieTJKRGxIWVo0d2lyVlpiZjNHT1Y2VHk4UlEyRnNHU3hoMVU3aVNoeVZJYU1LNjRlQy1sdWt4OFZUY29ybkxtQVlvZk9lRndZX0FRQkZzLU5QbmdGdEIteDZkRHdON2JXQjNLNm5oQ2pNNDFOUllXOVd3dFNtay1Ub2hZMFJsQmwxSHpQX0ZVYzQ0WnFlX0IwQXBWTmFHVGl5bkFDRGdQLVA5V1p3RGdVOXNGcXFNZXZSMFNlLURYNW1BdHZWdWlyX3VUNHVta0pqRll2d3lqTnRjN2kySzBrSUlhTVZjLXRoLXZsRk9ZbjU3TmswYzdNOEV5TlZOYl9mcGdtcW1ZMUg1ZmF5bms3RmRBckMzRUlFTjVDa1dPNFZEMzRXcmU0a0lLbUc0d1ZSYkxUV2JLa0J6NmRhLWJsTFpOeENUdFBpTHdpU0R5Z0ZPNEZfbGxmV3JmWWFlMDc2Z0p3OVAyRzJyZXl2bVFSa25FaDNUSXBjNzhZWWsyeWpSbmQ1V3VaTHJpb2EzeXdpVm4wYlUtTFhOWlduYWhfV0c1R0NzZlQ5dVh0QTM0OURLcVBDa3pIMGg2VUpNREtHbkVpWVIzWXJLRi1IelR4anJIRW84M2FmRHMzSnpRd1FhVFJlQVdEMXc2LWgyZzMzeHZxZGdFZGVlblR5ZmtWY3BsdFJub1dLN2k4REtnVmVhTjJrS3l0a3RLckFZRDl3dEl5bGk4WFM5bUxYMlctbjVudS03R0o2NUNldDZJa0VXVWlkOFlKcVpJTHJNRlNyMmdkS1c4b1A2VlZLOHdtVGsyblVqLXIzOHpPX0xLa0ZDVjRFZE9KMS1WcFY3WnRxY2l3NklBLTVxM09jZVowcXhJcHdvemFzek5OS2o4SndyLUphRmFRTTlzOE5kT2ZzWUxXZnFLR0s5Vk80M2J3ZHlmZVhRNzBXRTRsNjRWcjBIakZZNTN1U3BmWl9iLWxkWkxwdWJuYUlqWHo2MnlNTUtFSy00VkZUQUtlMTZURjlMMUw3RWxSTDdqVUs3bFAxMUdHUjZud21kYUlBRFlLRnlSd2hibEoxTkFqU09GZlFBZF9tb1VnZUJfVTE0eXo1dUF2T3RRUTBVMHlYRnJTN3ozc3lDYXNnS3p6MlA3NGxDM3JuTVhyRk1GR3VxWnk0aDFXNHl4Tl93M3lXbnl1eHE4WVVzQ2xTQzNDV1R6cG1TeTZJRXV4UzVWUTVJYUFBa0lQOTVuSjNRMlVBYWdCamxUSVR2YW1xZXFxSi1qMldEeERBUl9xYUVNWnZiTkN0U1JrMlZNZGdoRGtFN3BibkU5eFRHaGpXWXlDLXRoUnF3TVo1UmZralBJWVU2ZFp6RHBrXzJTa3NQUTVoWnZLLW9kVk9RSWtQV2xRc2tObHp4YWRWOGM0cks3QkdtTUR5LTRYaHAtVlBySzZWSTdjUUNUVkFxeVNBc3p3OHEtcEVyNGIxQS0xVk9nYk9SOUxLazNOMmU3alNWMzFZZURnNnVrNVNWbVoxUlpsRUhWVUNsaWpRZG9Ebm9ENTZyekJnYURrM3hFUC1GNmVKNlJBLVJ5MGdDSUg4S0FWNHlfX25la0U0Mm1ZQVBvMWRHaWk0ZUVsekxuRG93WEp0Q2hGRTdTZXJodWFzQXBmYUw4b3c4dUtPU0pIQVhDZkdSYnBFaS1uZmZaUF9uakdXVXNIODN6LVlLQXJBN1NwcFB1NUdwR0FCNmRFZ0hFemFCOERZLUNIczNTUmZyOW0zV002eGNBeUVqZnA4SkRzTmZveXk5UUFEUElpdmtFT0hwczVDdG54cDI5Z1pmZTNZMmZraHFaWFl2VmtYOGFXYU1rVDZBQUNDWGEtVDZMUmRadXljcFp1NTd0WkZKZHVpdzk4WGNTV1VoY2NpdUxLRTRxRXViZG1SU0lwMGg0UjB3WEZ3Y2k0WW1paE5BcmItcDl0QVhSbzhXMS15MDBxU1Nsc3lnT1BRVlAxUXBJYmZ6RHE0Nnk4QVRzR0pxR3RHYjNRMWIxZEJJY1c3SjZiUE56RC1tR1ZlWW1oLVJBLUdDalRvTnBkRlBFWThVekdwQTBWLU9aSTlqcXg5N21LOWNzTUZFckR5SnR5NzV4X1NoUzRCLVVpQmRsdzRzU0pHbWJBdTg3VlNuQktzckZxSlR5RzJxWnIybHd4N0RTd3BOU2xLTFJRZnR0aXBUcVFIN1JxdDlMeTJPQm40bmRPeEVNLWQwWHZ5NzhnMHpQWVZ4T3RKdUtkN2s0dGVnTHpZdUN4eVoxSTd4V0RYeVlZdE1hb055U3pBUWhzaUhBc0kwWnJrdzJQeUpNWFFWay1Ga1BlNzZENGlTcXl4V3NNZEU0a2dITUhrQ3FXYklZLWpkdTNuU2xsMi1McWNHbDFRMWNkWVNvX3RLX0RaQVJLT0pNb21XT09LYVkydmV4eHFXQ3FDNFNqZm9VbHYzYVV5QU5WNEplMEIzbENPU3I5a2pFS2k3bmhlMHpCdGdrVUNjNU00TFZVSnhKQURCNzNZNUpCaDFCdUlmN1Rna1RFTmp2VDFXQmk1bVZQOHR4bXNlZVVHV1JLSVNMMW1mT0RlUE9RMG1RQkFla3F6eGJGcVlLRXB5YUJCMkpTcVZ0OVJtdi1oQnV1bEplYTc2YzV1bi13U0dON3NaVDM5YUNaaWtjdTdZT0NDa0tFTkRMbG1wbG9ELWxTNlRIaE55RDFKLWxGQW44aGpJbnQ0ejdqbUVYM19COUFLcnd3Qi1BczR4aHNxV0REM0pjV0g0RWJvZkxYd1RySm1wUEkzTElMS1VheWppcUhUNGlfajF2X3NjbzhaNkhVWVNHYjd3aV9JTTA0ajZBd29aWW5qaVlCdUZkTjBZWEVCZHBtTzlPNV85VTc5TE1YT2ttdjJLeXROWkVUamdBdkR3QU9IbllPV24xaENjMms0TjlhZnB5b01iS1Z2VlJ5NEFFSE9SeUVrRzctc3dxZklQQmFlT3hXVWhCZU1BVjVOZjJ0a2pkc19yOFJPTjJhQnpOVndGTXJvZFV5d1VncnRvZ0hFMlN0Um1hTXhRNFUxYUhzb0RqZmJsRVEzR3YzSEpRaG5qQU5ET0dkYy14T3gwNktCY2N4a2d0YlU3MnBVMVhVMWZIOURmT3pmSDNxY0JJOEVEZnN1dHoyZERTVm5KSV9tdDZMRWR4bFUtWVhabm5QSlc0ellxSEQwQ0g2bGExUFd1SEZPZm5OdXRKZjFBdHRVQjhCRXFMaUFHaEh3SnBfZTRKekdJMUdfMzk2ZHNUR01EeUxkbWRsc2lCZE1HemVEdl9XdmxyVk1xQ0w4MFctUzUycVVpUXdJc1FCcEVjLWFWRS1IN21tNDc1b3Y5em1nVExBVHRuS3RwTkE1dFl0ejVYWXRRVno5SGZ0R0pEUXhIZmZkVk41LVdyc3ZEcG9oRmdkWDdTblRMUmJFNlYteVNaWFBaWmMzeFp0ZW85ZF9UbU5rOUx2YWdsdGZSMlJDQTFMVWg2Rkcxb1BadEJxV1VrV2Z1cFQ0NWVFNUluT2w2ZUd6NWcwN0JWOTFHenlBWDB5ay1LYlp6bHJsQ2ZyeHM1T3FUbHpQbG1aRjRodlFuQlZ6OUhibXhLcEc1YTlmdHpDWHlzRFhzd20waVRsOExfVm51b0otSGtJejVfNnVCcXdGVWhGTjRjeG5sMVFETWVYREhYVEVmNHJGYVllcWpLR1dqVDZvMDJlUlNmY0ZhRDZtVmdmVkdKbDhfOXlEaFRUcGFiZHZUazJvaE9tREZwTHRBdnNKOGRweVhvYW9oQVhMOWVfenllT2ZGQXhKOU15QXJZM21hTHB2cXhGRlBsblZDVkJYWmJOSjcyLTZYbXdhQjhENmhrWlR2UXRXTTZjQTdFZ1MwN2hjSkxWaWNzenJOR2tSOXdsLVBsWTgwVmUzVkloRml2bkFydzJycFFZRVkzXzZLVjUyZnBma3Q2VmhnN2s0djZzSkMydEYxb2J0bVVvM1Nrd1pYY2NvQmZ3YWlPaHFibDhDX2RrZVlPeVVjajZJWjZDSmNwd0VvRWttc3ZEZnlLR0Z1UkxVNEdIVEtJYXY1Wm93dXY2akR4VDZfYkZPRThpMlFHT1B1bmc0b1F6OXZTMU0tZUtuY1BSV2U5V1RRQndpYV9IbjAySjltN0gyWVJvbWhoazhnM1pIbmV0UjVpR0RRVTNPWDdjZXFEZUxnT0o3c3dNUjlwaDJHeTdqVDdKS3Rac0UtbF91RjJLdTVrWkhnVkF1MVBHaDRQaWVpcmRqbDVqSDlTSlNleUUyYll3SkZVUlp5N21FZmowWHUwWmNibFVrR2lGbTdwaVZSLUlQbFYzYXJFT0VPWlE0SVczcGoxX3J4alljSlNFS0ZiVzRVSThHOHJaZHVHeUN1bGFUR1NsTkJXSThWd0ZRcEN6UFgwYjR3bUZYeUZrSTlhdVZ1VEZsSUs5VVZrYklUNHZXSGtwRDFnanVaTGNNc2d1N2czODQ4UTJzOWZCRS1VdHp5QUp1WExuRFBWaVdSMFBMc3Z2NUc2MndtMVhkTE5WTzhSTXJfeWV0VzdXbzlRTDlIaFFSTjU0c3FCREpEaFRZa0hJTzVEVU5JYnFZdDFmcTg2czg2VzNqcEFPQUJqRG9pQ3lzemNhdmd4RFMxQzRLTFYyQkVKemhPVk83VlgwV3pPaTNQblVKWE12dFltYkdvMjM0aDREeDhvZE9sR0M1c0hFVXlmSFROX0pVZmNYbzFsemhYa05jdXpFY0ZSbW5YN056RU15cjJuSmFidGRHNGFwMUdLNzcyZlc3alFqc1ZTUENXRFpQc09NQXUzakRmRElIUzJPN3d0dm9LdzVSSmtQRmtJN3FoQVhaRjVIQXc2X242XzJ3cUlCQjBQZm81c09tXy1OT3pOell4b2xocGFDN1M0dDBKYnlIYTdBd3V1VEd5RU1ZRlJ4Y2JlNElmbTQwdGRSYWxhRmlnVC0tdmN5aVhPQ0d2VE5uRlBoS1ZzRXFiQ1g0YUx0SHF3OTlkeTR5bUJxMFRldlFhcndEcTROaXRyT3dIR05hR0dSWUdwbjBJU3kzZDdObG5ieVNVdWZ0NzFtV0RmbnRsd0RWa1JVWkVFWTZZNGlnb3FPa0ZoeC1SUEhNeEFwcFN1b2R3QWUuZXBKWFRuU2syOWxmR0hFajktSHI2QQ\"\r\n}", + "RequestBody": "{\r\n \"value\": \"JkF6dXJlS2V5VmF1bHRLZXlCYWNrdXBWMS5taWNyb3NvZnQuY29tZXlKcmFXUWlPaUkwTXpnMVlqQTNZaTFrTlRRM0xUUXlaVFV0WVdVNVpTMDJNVEJrWXpNNVpHWmhaamdpTENKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V4TWpoRFFrTXRTRk15TlRZaWZRLkg3Q2dzYktfejRVMExDOEFtRXJyamtvOTZlcUpmX1U2R252b2hrTGdUMllXdWQ1dFlVSnlmQWlMbDZ1Y2VVc28wX29xc3N0TktzT3dYZU9nX3FVWUQtV194aDlkOFR5RE9iZ0k0eWxROEg0bXd2TU95cGlOSzJoQUtSQ1JzUFpTVWlESGJLa3lPSEI1bGFscVZyV3IwQUhoX3RGQ3pUTWE5ejVHd2E1My1HbWxid3VYLUhvZG5LNkJncVVWUWktdFlhRjc1UlJXZHBaZGg3Ti1naHBCWG4wVDhaWlRDN0ZscDJaNnE1RlotYjNxQll2RWhPVjlwUVFtTXVHSTBNQl9vRzFQSWY2MXhIN2VlbDZkSWVtRGZobHpvMlJSSGdUVFFJWFBfSFQtZnQ5T0pXdkh1MUhUNE41ZURrUnY0ZFFfbzg1MWRpZFRxdVZhV2FNTTJYd2pzZy42N0w1a0ZSdXU3MDdHbHpiaTNMV1RRLmZSb194T0hiVVMtbTlaRnNVVkpyTFpCaTg1eGxFX1JDMHBQRy1ZdXZyN3Q4TVctN1JBd0NkTldDazVpT1VMaXZpWlRORktfQUxTeFJTLVY4U1c2SDMzY0FuUWNKdUhnZTRFaGxyYklfQkZqWE5LdUlsTkNhS1Fpc2lVdkx4RGpTQkpFaGpxNHBVTUl1anROMVFqSVk1aDB1aHN5LW94WnVULXgtX2RuU2F6dkwtWGF5RWZieTM1dU9Wb1JfWFNoUU1DeEY1MEF2aS1FZE1IbWJwdmd3aXlIYVpkLXR6SGtyOXg1cXo2TlV6TG15SVZyX1d3RUNaUkZLM1RILU1nZ05zd1Q4SHNiRGxlN0txU1JkNVk5Z2RzNUxGUVFWN2pfMGpob0pjb3BnOEFyNFM2by1FMVZDQ296azU2bDdreHNvTU40blRGd2ZKVElzTUg5QU5QdXlMM0RLalZuOXAxc2lzRER4ZktSb2lYZTdMVC1vT1Q3QmM0dU4zOFZiSVdIaktMLUxVSjBzYTBKM2ZXRllKUTVWMUgyU3JPNkNrQWQ3akMtcmpsSFpsUWIwLWNvcDU2T3EyRXR6YU40Vi05REQ2LTNya0ZfcUxsekpDUG1kZm5jU211eG9FZmJDcnFuQTN0c044XzZMUTJpUHdLTE5HWnpCMUFaRGlaeWtYTDA2RUdwZUVPMWJzTFd6Y3ozaEV4TVVNejlRZDdCWnEwT1RtMG5hZ0k0S3hpaXdNRUtfcU14RlZGSGhtZTNNcEJnaE50NnhJT2lCSTlOdnhUd2M2MTV3VEtXT0tmZVZfNkhtcndjMmJLellwOVJoM09xM3dYWUtnbzFyTVJCdnpJQ3BhZ0FGSEFrek1wRlNxZ25lbnRKQV9rRnNRWWVfdHVsODNUN0FhZ2Q4eF9nTE1COEdyc1ExLURvcTVIWjJRM3hHaUUtS3hRRkRYYnVEWkhBbzR0VC1ZWjR5b0c1SE91OEVSZGRUcllJVHJMVW9lMlB4a0FQSXR0ejREZVduRU4tYmp5QUdnOVpPUG9Md3JZS1V4eTVYU2FFTHRhM2o4RTV6UTU0eXg5TmY5UGlPMTFFWi1DVW9DVlpyenRZNXRWaUFHOUdVWGhEdTdEZjZUbTk4YXZaRGMyOFl2VHpaaGNfaVY2Tk1JUUVmYkI1dEVJb3JYRE5LdkVLWW45akFGRTc2MldQejJ0VUNDMExZcjgzbXZzcEtja1dReE9IR2ZBcUNSZWFxa3EtN3U5QU9zVzVxRnhFa2FoZTlwWjZ5ZzJaaTBmUW9uVkNrcFZIdDhGWGFhWWcwb05aMTNvRk1MbWY3ZnBlVG5Ta3VVdmZScVJKcjVTS09vX0czdG12bkc1V2dtaDVRSEJPcnYxb0QyekhUSF9sTnBXQ0JVZnRGYS1HY1BhUkdlYk1OMm9NY1ZJUUNzSDdwVHVwTHJkdEphRVQ2aHNxYm5QeTJPWlo1OXRkaE9yb3A5TEdEMDJSckRpR3VFTDBpYmZ4aThLOVpaQlk3cnRJeEo0N1hpWlBpejFrbWM0eWRsdFZtaUdWVGExbFV5ZlFTeWphcE1pckY4YUxFUHk4amxXTjZ6ell4aHd6dUQtMWhKbFVWX3ZjV3dBcDJvQXNLTXA5NnZJRmxhQmp4bVN2TXdUckhHcDlOeldnOHo3WWJrUDh2SWl6anZ5eGNfVnNGRDFNODFVS284RHhwTDFVeVItY3RCWHg0aTJJVDRBLXVkeWtYcURiN0o5X2RUOGFfeFl4NHJ3ZngyTHI1cHpjbS1RNGl0U3JHUVdfX3Z4cnVXWTZlOHRrM284UUZoemNtQzh6Smh0X25jb2c5UlAtR2s0Q3RDVEgxTWdXa1lpQ0NzMGdFUG9NOWU0MUtLak9IMUFRcERqTnRhMGpGZm03aFBRYU5odXpjaEJ2eHZLT3JhT1RCaGZLS2FjbkJJSVBQS0E3c2pqTFdza3lIM3FhNGo4ZFZBUUVQSEE0eWhZS1cxMGFJS2lCLTdoeXU3dEV0S1NkVDh5SXlKSzRfaXlzanFzTmZ4REZPMU5QbzVlVVlza1V0c1B2TXFNSGR2dWh6RWg3bEI4czVheFVjZjAzeThQd3Y2TVBHU1YxVXVIaGhsNURaSHRSdURJaThWMUJFcm9SMWZzRUlxTGZlRTZtRFRmdDl2UDFUOEJjTl9XQUM4djNYVGo5TWwxY05wZnFlQ3RQRVl0U3JCeFdpQ08wMVpYVEJVbm5LMGc5allrTVJWWGJCRkxPZUVGWVYwdkxpbUt4bmVvdjhNNTZZOVk3S3VHOE1LWlVVeXA1bjBpbTc2RXZLMXd4cVNGTFNzY0JIS3VPRzJfeF8wNE54U2x2ZXo0aGluNy1vUW9IOHhLOUpvR2Y2dVlLZFJBY201S0hZbGNPRkVscFk3ZUxPNmtBSFhvQ0RJSlpaXzF5dnlNV29GeHVlUjF2b28wU1BLWWc5V1gyczk0aVI5MWhvSkZfZ2tVSjN5eFdGQmVFVk9GQ0VINmdyWTN5X2pObzRIeTY1MnE1QlcxampkUHhCRXlkVVRUenhWeG5lOFV2Qk4ydUtBYkhyTXZkT2ZYcjNfa3FvSUg5RS1VLXNzVENpeUVIS185VWpMLTBEOUpkYmVyMl8zdlZVUmVWTTRaTWVFY3pucU8xRFJhYlJDVzQ5Uy1GaGFsT0t5bzNsVExMSlR2OXZpcjFnYVNFcU1ZNGYwN3ZXZmJtcTFWNDRYMFVmakhLYmpWYlZaYldjVmZpbVZGeEY4cl90blBVcnExZVUzM2hxNGJtVmlFQkZLOFZSZ1N2eTF3WXZRZHBVbFlTamgxTThVNlNOZVktRGFPOTA5SXJUQThzZmFOR3pOcTlLNkljaVgwWFhJMnEzeGw5RVhOWVByQWg4M1UxSXY1a0c3Tmx6eXZhMkxWLV9SUnVMUjF3YjJ5ZnhUTy1BSXZ1UUx3VnJqa2tmXy1uNVltc2t4aW8xRFp3ZzlPYzBYYzFjZGNOS1RBb1NTdlUwUV9zNWFWNi02QzE0cV93SjhzZXJtR05mUnlJVm9tb0tBZ3hVdTdTSkZCQjg4TWg0dEJJN25fa2x6UGVReXZjMU8wV2EzTlRfOFd6Q2I5YUdiZlQxYXhTaEY1RlZBMXRpTzNSdkNBZjBjM0VzLUQyc1BONHp5M09RNWRIY2xBV09VRGtHakliVFlzVnc2ajlCalo5V0txSTdXbk9aeXBXOWZjeTZIU0JwWDlwUHB0XzFya1RDbkxWTXdCU0htTXZTLVlTTVZjWVlSZjN0a2UzMFRIMjV2NUh5MVpwRnBWa1RkTm82WkhWNEROeWJNeHNWQzBlZmpCeFNCUFNUSjdoZmw1Wm1JLVJfd2RpbkZGUGY5WFE2ZlF3OW9oV1ZBVWhEZ1pBVVVleHV4MjZsYVUxYktrY2luMm15RE51M2U5aGtZSTVSOWxQclJCOFo2c3JkRmxiU0RPSVg1UENnVTVQYU1TZml1SmNnNmVfVC1Bd3pvRTJoZGVNaTZOVVpxSzA3S1gzOWJoRkp1b1NjVm5mNmpTdVpGbDlQSG5pZUJuZnVMV1F5cW9WTm9jdmpfV2pYZng0ZGVmcHQ4MzVDNkxpRVhaR2pFZTFiR3pJcnNXTW9ZeXVIcGoyRDFsM19rZi1pdEdPYkhlVm9NV3lJS2pLZnZBbFlMNmtUMmVjRFVhNEtKRnFCSmhnM3pKWkYwb2F2S2dKc0JDSkhXenV2RXR0T1F0R3hGQUozSmE4ZmdDNTA0cXJJYVlsVVdYaUdvcGxLNVI5bkZHdEFXQnV4MUpYYkhMNVVfUE00YUw4UmFKNVl3ZThyQkktby0zR1FITFFXX3RJS2xjQzdyUm5pZTgwSjFOTUNXVTVxejl2QWExbXhZQ2VVU2Y0VHlMcXk0eHpBNEp6VTlKWW5EWGxid1N4VE8wQUNKSUIteGVjN0lTWDdzS21SYmoxOE44X0ZJYnEzaTEtQTd6VWM3UExXd0pqWlFoS2p4ODdoUkN0djRmNzE0V2w2dDF0djhvczF6UkdTZURKMWgteHZ2dW44RUxadTdQeGJVZzBla0plRVhnX09tc3NPMzlXYUpNMHkxNVM2YTlIQ2xsZ3ctWjhqT1dzanQwVlhBOEhhNmpJOEROb2tiZTVTSXp0amRGQTV3Wkc1Y3BZbHN1b3R6YmlPbHFqSWNxSS1hZkcxMzFLSUdDbU02bC1QbnQzNUdqSHJkVzlnd3RUSkE4Q0FfdUdlRHJuUnlQWlVDX2luUlpycl9DRFcxN19nT0xOSnhuampKM0g1VTRzaDBoanZYVk1nY1BkdllFOXlFcU84Z0pYQWk0b1FRSUMtM2loYm9qYWtpblBNdjV1US05aG02XzdUVk1mTlFMejN6b09tT0l5emprQnpPV1RmUmpPSFhJRjgzYjYwaGNJWmhwVm85Y3ZvbWtzT2ktWTc0TjlOVUlDVUdvdmxNdldVSG1aYWJTNmd1VHRFczZSTm13akYyNzQ0cDhxTnNmMVJ0V2x0TEY3UXpwaS1XaW9WUm5tT0pqQVJ0Q29Wcy1BSjdvcVNnN0l3OEhYUVJDdXc1NXk0T1NWRW54Wm9NZ0tsdTNXVlBCUHN5NU5YODN1YTNwVjZwSzNKMDRMZE4zQk1WbWV6MkRDcUV0ZWdJT1J5WTljT0NZM1NtbUQtM3dEUzdXd3ZQSFp6U3JBbWt3X05CMUZLZkZDWkJ0T3liN2lCNDRkVDRxVjlVcHAybDEwcHJ0LVJxMjRwZlRaU0dqZFJ3MWJtcXJ2RGo0WjBiNWFCaHFYMVFCckoxZXdYSjIwcUJZekdLMERoLTRLUG9BcVBJSXVjc2lWLTV4YVI2TVFJVXVXbC1OS3VKZkZBamFsd2hYU2x5QXZycl9EUGFNWkhYOGxxd0VtdHBubmZPUGpiR1dNc1pLWW1LY3pGVGViaEVUb2V0R3FmWGQ0bXpQaGkyX240by1RTjU0YThvMFdJWWxwaE5kT0pNNGZ3ejdhZVMyMGFxYnZKc05iSi1BYVZ6VFJCc0tRSEZSMzhlcTk4aWNKc1hSd2FQcmpKTUtzbDlrT0ctZEFKNWZYR282eGlINUt2MUVWNGVya1FkTFRrLXhva1hlb3ZuNmx3QkNfMVF3MzJPUWNmQWh0UExFcDRaaHREdEVKWkZrTmxrRmlvZGFKNFBJa2lOdkdGMzlwVWNLNnlHeElIWThUejAyeC1pd2xhR2pPZU9CbkRzZjM4UVg1STNWTUczOE0zaDN6V3UzdUVYZnBkOVg0UlMybngxb3VTdEtrdFZFcjZuSHhSTmhNdTVMcFZ2bzBWa1JvS1ZIdkJaeWF3STI2Yno2RkdPaTgyUlMzU3Q5VXdsWkpndmI4X08xZmFIUlZhbEh0MHpJSDYxRlhNdXA4Wl9LanJ2Q0dYdEYxV2FWRlJMNjBOMFVBQVpSaFc1ejU4dmpsLU14RC1za2FhUlBlZzd3S0Y1QVB3RlBBb21KZy1NTzA3TW9ZajhLcDdVOE5Ybzg0dXQ5b0pDN0diYi1USndXbHQ5QllLN0d6Y2NhMU9VU1ZESlVkYk55Y3dwWGlieDNKdkljUTZwbHFVSlpzVW9mX2xySUtqZ1VGTjR5ajdzSlJmdUNZZmdHSU5yLWRTNXRqTEpucWZpRjBHUk56MEZZU3lfNmtTdFJEa3pwQ09Xam1LNDhZaHhLa3dUSktFVG9GNXp2T2o5WDRHX0t1YmFFZ0p2dDlwNkZvWkRVTEhlVTRHdFVTRnRyRVdNVGFRT3FPeWJDSHA2NGxydXdQSFJuN2k0VjJaa1lFa1p3WUw5dGRQMzFicEdOSkhGVlJjYU1fYlpFZnpCVTdaVzFfMktUQVY5ZWFza085TUpGZTlraVg2X2xydVNMQWlXMjFmUEhfZEZWR0VLeVozOE1DS1dKZHIwZDRGanBkWUhyYXU3bFJ0bUdjSWtTcWZ4NXhCdkR1dERmdXFkM1hSMnUzMXVzUVJRcVVMOGJJZTRkUFlZX2p1YmpLRjNDbWJRa01QNXlkZmlRaTdjc19qanZnVGVIYUxrc056bmoyUjlFa082dWMwaFhEdGRoMUZDbDZSTU1pTTJBZDd5MDJ2RU9raG1GU2RraDFieUQ2eWJvYUN0T2JrcEdXYTI2TjlTNWFQMk5DUS1HQmVhTF83SXc1NkhQN1lYN0VxWngxOVRBYVNNQWM1WGFZZVFtUEc1WXRqSEliOXdOMTVjQ2tkcmNQWDlxTUp4clNwdm9zbXRHc3FrTjhLTWFyUEJEempRMm4tUENYOTB2Y05sUk9kZFg5a2M0dUNaSnRkUXFIbG5WMHhDa0lpWXJBbjl6Um9kdW52eTRLQVM5OGdwZmdzcVV3QVN6LWFmQ3lOSDFMVGZQakZPTEIyLVFuQjBYWWZqcjdVbG9Ba0JMZ1Rla3ZOM0hCcXB3Um1ydUpQQVRmdG4tUUNtNUpFSmlQaUpRM0UxZzQtX3h5RnlTeFRNMXdQVmR1THhqRDNZd0lEZ3hsRE5hSTBBY2pHRGNXdmhyU2dmcmpVU2xWWjZ5NXRXaWtrTE01TENpMEZYUmxlYWdNZXJKQVhmQTVtdE1MQ1o5T3BMVFMxOFRIOTVJTHNXbG10cXlXRUthOFRqYTBYYVVHeWdOLTN6d3FCNXFjYXFiNUJLUUM4TTlRcmJrTE5neENVUDdlREVEdktoVnNIYVpFUm5MYldmMUNTQXFIcDRRN2Eza0toNEVDRW5tQ1F2VHAyM3JPclZlRG0xUVJFQVRZVy1YRzMwZHAyT1BCRW51dmlpU2U1Tl9JUGpoWktidEI4QW1FcVFKUUpMZ3dtZmRtdWNhb25NdTRfMFI4elVwX1Z5MkFibnI4elJsUTVrcTlSVnI0R3c5UkdOdDRFeTZ0ZU1RNnNPcW5BaXk4NkZ0Q0txRm8wTTZ2NENHdjFpUzI3MUVDTkRjZFNIYVJNUFVDNFEtQjdMZjVIYlRBdTNTcUc3NHZPYmF1YXRrODhJRkNNWEI4Z3MtMEdtZWVfemFxTlNGTDd1aWlrOGltcEt2Q1NIYi13THBfWXBRWnMwRGVYdjdYWTBWV0xFd1VVeW53XzUwNkNBVFlTYk9FV08xeTVWc0JuNmxuSWxSUEVNdlA0QV9aQ1pPWERQWk9KMWFsU0F5MXlLdUhqb0k5RzZsWnNLTEt0eElBZ2U1bjNvb1Q3c211WVdfUU9MSzgzaEdTMy0yc2tob0dXWkF2SkxUM3Y4RldyVFZ4R3FYanR2WjhEMk5UUHNjNGVmVGJ6Y0pfZnJ2UlJEZUtGSkhseVFDU3N0MldOdllfNTFtczRHam1WMzNYWDFmZjdMTzNWVVcwNV9uX0NlWThKMkt4MGhFZTlmNnFpaUpzYXd2OHhXNDZvS0pOU2dPZGFLV0g0d0Exb0dVVURFSVczclBsU2hkUGpDYl9tOEdGZHd0VlRDcEtVVjhlTFJPbnEyZ3hiSUFPQmF6MVVVdm91clZtX25WTHRTSTlxdjlVVWdLbGNOOU1qUlk2dkpEdllma21tMk9QbTNkTGRIeUhDc08zR3d5MGJoUFlScVZ3MFoySUw1dkNLT2JuZVA4UkRxMmp0aXBTTkZrajdlbl8xa1lyc3lnd1lXWVRsU2NXSGE4VlpYUTM0T1JLMVZ1cUppMVpYUHlmbGFEN2RIQ0JSV2JacHQ4cE5TUkJCMGNNdWNTd3pDdGhrczVGclQ5U1NpU2Nob0Y2a2VudGZtZ3c4ck9OVzRfa1JJaEVNbXpCNnd6dnlMeHAzSFdvV2Zac2t1ZDRXWEpTTk16VDMyMUl6TkE3aXRRZ2ozQ3djRjk3SG9zWGdpczFhSzNNYThSMUl0U0dwRmhVTGZFT25oeVBURDhwTWo2ZWdrcjZ1WWFHSEVSNmhmNVdoNFJScU1DNkQ5RDdTeTBESWp1NzgxN2RVVE1SMXFXTkhBbDZJNEk5R2pHaXZnRlZKZEViREtJXzBaaGVFbmFOUHA2S1ROZnItTkZIUDhzYmllQVZBcC1RSUNqOXdGRG13OTBqTTZsWklhOXpYbkFMSGI4SlBSOEtLUzJrT3JJaXFLUjhJSEhXd3NlcF9nOXJwTnA4YVBxRDF6N3pGdExMSjFLdEFIMDRJWkFEbndmZmxTdkF1WVlaY2R4OU1saTlON1RDbkV3TllSRnFFMHZiR182ZE9wdmQtV21KbVBHWXRqYTN0dTJ6M1lsUnZqaTJaSHlCVTdZaEt3RG80bDBaTjIxQ3c2T0ZiV09JVFR5Z3haRjdDVEZlaW05Z2dXQjUxWkFrSWtuM2J6bHpkTkxycnhHaTdxb0pjeHMxMUhmdkREcXZ0eThhN2kzWjBJblNTX0lnajlmaXlrNlBueUZkRlJNM25ZMWhQVHI4Yk9wMDhGYVI2TFRaN3JYSmZ2UkZaRzZNR3haSjZNS2dQVHpEZDZycmFmQWJtZlZuenZNY3k0cnlwZm9CLVhuTVZzb2NTYUU1UXhQbkNPV3FRVzNaLXdIR0JrZWM3Q1dacjNlVUdEWmhqUWstR0k4UFA1bEpWUTBCT25aclFBWktCMHkyMERjaWMyUm9JeHdnSnhMUzAtakVMMmRvVm1EaTJTUGY5eXVxYmNIVEpLLW9Ba0o4MC1yNzk5N2JNSGpCUWpHd2JiV2ZLdnEtNDBxYVpBYVNqNGZicGc1TkJteVNhNVNFaXBmemR0a0lYc2Jfb08xUWRGbGxxenowZGNCRG1HbE9FaENpb3lxWHpoNVFkeEEuRkFfYzA3ZTR3ODNoaURQMERrTGNQZw\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "9277" + "9477" ], "x-ms-client-request-id": [ - "e221a49a-18de-4caa-a151-47ffe7cd60bb" + "a833808e-138d-4026-9afe-427872f293a6" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/BackupRestoreTest/ca1b3304124d42048dc931669190f7b7\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"g60mOugoSwfCZecx4imcSwd12D0a3ivntZmTpXqijfrO3Bfu2K8NjF54z0si5fWj_jekR538BAODTAaDrDMwdZFnZrxZinmmOaZ6UaUPGb5pQZlii5_Kq5rTKxnWhSM5s7axhrHfZXGrt-OANS6P00AT5w9Vpteo-kDY86iQ-tCf-2clXVoboKyxw0AABasUUX--wT3sbGj1rNRpsdhrzqaGfpo8xsTcmqTfwcCO0Z-wDbyQ334FbmKlPRR4Qy6YIeh_ssJwVbxyVbY1uOZnnqSoZV1TM01rAwpR5KH6Rpu-EV_BwNbwOaDQs_e8LZwjPjdSVsvjwVrDaSg6XRZqLQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1477082133,\r\n \"updated\": 1477082133\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/BackupRestoreTest/de83072dee6d4f7886947b6776e66d1a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"qIJMru9B0l7lPVzdxoYXMnRmKZnodMkXRoBTTmUSgeV3FWZcEnOQ_OKrP1UJJF2nrhYU3ExcAqf8Z86flgSMhQrlSIe1V49r8psggNHgtWrI_gCNs0HOp4JPlwaCTp1i1GscnKAYXoDuEg7a3X5yAW7bwYxV_UQREOodFz9QYpMjt4nvKHLajGO6h2jJ5W71fXMUpsuhAR3BL9GFfBq6uJmdl-MwOZZanQGqcqZMt5gThUXS2g_7Xnm7aiKtEaztXlr3S9LLfA791sZW5lWv5WaHcVilKybBVfR0Y0urCEC9GykfE3Epkm0boKRj6BudaBMk0t-VWNRgCP2sXySP5w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1483991568,\r\n \"updated\": 1483991568\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "660" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 09 Jan 2017 19:52:48 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,77 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "54e28905-8f29-4a19-bd56-08e59f51adb8" + "dffff270-81e4-4625-83b3-05f298298f94" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "//keys/BackupRestoreTest/?api-version=2016-10-01", + "EncodedRequestUri": "Ly9rZXlzL0JhY2t1cFJlc3RvcmVUZXN0Lz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bc00621f-9444-4495-9863-e9cef8075b72" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/BackupRestoreTest/de83072dee6d4f7886947b6776e66d1a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"qIJMru9B0l7lPVzdxoYXMnRmKZnodMkXRoBTTmUSgeV3FWZcEnOQ_OKrP1UJJF2nrhYU3ExcAqf8Z86flgSMhQrlSIe1V49r8psggNHgtWrI_gCNs0HOp4JPlwaCTp1i1GscnKAYXoDuEg7a3X5yAW7bwYxV_UQREOodFz9QYpMjt4nvKHLajGO6h2jJ5W71fXMUpsuhAR3BL9GFfBq6uJmdl-MwOZZanQGqcqZMt5gThUXS2g_7Xnm7aiKtEaztXlr3S9LLfA791sZW5lWv5WaHcVilKybBVfR0Y0urCEC9GykfE3Epkm0boKRj6BudaBMk0t-VWNRgCP2sXySP5w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1483991568,\r\n \"updated\": 1483991568\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "660" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 09 Jan 2017 19:52:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "eastus" + ], + "x-ms-request-id": [ + "5babc4b0-993a-4584-945a-5461d97cb694" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -330,8 +399,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net/", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "d015b4371d884032b7138b49e82102c8" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncDeleteOperationTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncDeleteOperationTest.json index 11e511ed1bda..ebc6b72100f7 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncDeleteOperationTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncDeleteOperationTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/issuers/issuer03?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer03?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"provider\": \"Test\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "26" ], "x-ms-client-request-id": [ - "ca55ff28-9d14-4962-9a67-8d0a1f68925f" + "e04fc919-8bf6-43dd-86df-3eddf23d5405" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer03\",\r\n \"provider\": \"Test\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477015823,\r\n \"updated\": 1477082042\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/issuers/issuer03\",\r\n \"provider\": \"Test\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1481851672,\r\n \"updated\": 1482188952\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:02 GMT" + "Mon, 19 Dec 2016 23:09:12 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "6f301083-0bd6-4dd8-b380-f4aa75865e44" + "3ac27a78-cf1b-4a10-9554-3a017080ad15" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/deletedRequestedCert01/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvZGVsZXRlZFJlcXVlc3RlZENlcnQwMS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/deletedRequestedCert01/create?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9kZWxldGVkUmVxdWVzdGVkQ2VydDAxL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"validity_months\": 24\r\n },\r\n \"issuer\": {\r\n \"name\": \"issuer03\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "506" ], "x-ms-client-request-id": [ - "a7446013-b059-4e07-8cbf-a1401811e123" + "4a4a9529-eabb-432c-a2f2-49e3ac4b4082" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/deletedRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer03\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnTRdwoypd5RPyN4eJzssodvXe0LSAPsuAet+Wb7eJv6+Sxonr3r3xltz0jh8wiRvdJ3ASp9xyyT46LxBkNbtSf7BqZRX5uxfSLX+jCX+iH8Zt+5M0KGv0Ngp3OJBdVlgZvp40c43bhiwP8R0GohMe3+hawTTElqjSKehd72CcVp27fXcMyswwBfZSJJKh/CdbDAfcmlGYYswcGU1BZNn6EMj1cAa7wMsY6RubAwqP3+Qk21vzWUqqRj/hX8scgZiL4HSu01i5LThniO++yNTXQO1q2vXAca7mc0zPXzGn1oNr6LqHhPcRqPpZAZfy4DU2lcuEsZNohkDZDc1gOmlAQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAJLs4M85RTxQnVlCK6pj6P/WvZhLtjr2wbwlpb/tpELrpoearmcwNGuqa54B7H2SlhfpO1msCl4DIOAXAanAELFPDsjx8tIO+FumlhjZWiIqD874njpWN4Ywycq8NCXarJmm230q0pGwcnmf0fDCPNoRqKZ6IIzvRSxGdgRokEgAXZ246sLppbXQ5kGxGzvJaAN7EYgbXwDUyDSf5nDEP7Tpjc0lA8j9xBz54GzecrEFl3Vy5sI21BKPF+SnVQgE50dCfIWpnQpKvNhEpE/IbBpNqYq+Jdc23UIPaSzDZcQ0MB7k1MACiQ5AKBOacOKxKfIDnofnIbhgJV2vBq4hv/4=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"606362bb9be44d1e8ac8dc32774cc4cb\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/deletedRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer03\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApf+kGcL+5uivj/ToYbQ15zcx3caEnpzXaX2eJgL0/Kwaz4u2/bNJ9+hoXnlOFFbCp4canVoNvgu8fw5NOu9U3gJNFQwjHeAqfsg8okZGkIk0riIpp4MMb/4GQb2y3B28AcTu2FANdzLoZzBqmQs51KBe1RONkdtqDYXIvnb5G+9+P7PCy5G//Ga0JAP6Y6P8+TrE9JLEj6Sny0ljLMpMyt4rIRAtNfKYSeiWVQmYX4jZfImIW3iq91zwMsRlrzTm80mNfHPCv7V/8NmYuh0MQgCr49lLbbKCgzDyo9h8sblVQvR5TAylpIk7bSQNf4tSdVNHnsF6CJWu6Pg31hyMpQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAHVjmYFs3FmecaJ1ExhK1WCFJaQJUTVbPJ1xJ93UJlLivhzI1yhQO9nMC2DKV+E+UCxceqjae6OG5LUhXfYAziS0HTc80+ZcUqrZRb5ZRt+8HU0TPbTDDqjj8wMZ4VlgQ3eXGAGesMfZV3AqWwa5itofvqm8KAmL4Yn/XMSHcKfRx3h9WnC6RXgZ8WNYK+r5o+gHlmuF7/AaNFh8UjIsjjOZQ0Yin/vA4yBEYTt1/OC7pScs3bdL9CIf4rC98qaMSf4B2W/vfrXUo0gGPYcep25jy7xnIltSY80Trn3Mty5YQ0IT+KPQcJKhbryGg6bIy4jJDwS7zkn51MR1q3kNoOA=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"b88791e33d9c4d609d3e3cc3d2d40d11\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1385" @@ -106,25 +108,25 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:03 GMT" + "Mon, 19 Dec 2016 23:09:13 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://testvault1020.vault.azure.net/certificates/deletedRequestedCert01/pending?api-version=2016-10-01&request_id=606362bb9be44d1e8ac8dc32774cc4cb" + "https://testvault1021.vault.azure.net/certificates/deletedRequestedCert01/pending?api-version=2016-10-01&request_id=b88791e33d9c4d609d3e3cc3d2d40d11" ], "Server": [ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a0c472bd-7886-462a-8008-6ec07b30cf4e" + "ee262cbb-c50a-4b0a-b3f4-e9b9d841f198" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -142,22 +144,23 @@ "StatusCode": 202 }, { - "RequestUri": "//certificates/deletedRequestedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvZGVsZXRlZFJlcXVlc3RlZENlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/deletedRequestedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9kZWxldGVkUmVxdWVzdGVkQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "81a214a1-476b-4909-af38-2b6d9478ab28" + "e1f14d7d-a9be-45ab-84bd-49b0135d10a1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/deletedRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer03\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnTRdwoypd5RPyN4eJzssodvXe0LSAPsuAet+Wb7eJv6+Sxonr3r3xltz0jh8wiRvdJ3ASp9xyyT46LxBkNbtSf7BqZRX5uxfSLX+jCX+iH8Zt+5M0KGv0Ngp3OJBdVlgZvp40c43bhiwP8R0GohMe3+hawTTElqjSKehd72CcVp27fXcMyswwBfZSJJKh/CdbDAfcmlGYYswcGU1BZNn6EMj1cAa7wMsY6RubAwqP3+Qk21vzWUqqRj/hX8scgZiL4HSu01i5LThniO++yNTXQO1q2vXAca7mc0zPXzGn1oNr6LqHhPcRqPpZAZfy4DU2lcuEsZNohkDZDc1gOmlAQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAJLs4M85RTxQnVlCK6pj6P/WvZhLtjr2wbwlpb/tpELrpoearmcwNGuqa54B7H2SlhfpO1msCl4DIOAXAanAELFPDsjx8tIO+FumlhjZWiIqD874njpWN4Ywycq8NCXarJmm230q0pGwcnmf0fDCPNoRqKZ6IIzvRSxGdgRokEgAXZ246sLppbXQ5kGxGzvJaAN7EYgbXwDUyDSf5nDEP7Tpjc0lA8j9xBz54GzecrEFl3Vy5sI21BKPF+SnVQgE50dCfIWpnQpKvNhEpE/IbBpNqYq+Jdc23UIPaSzDZcQ0MB7k1MACiQ5AKBOacOKxKfIDnofnIbhgJV2vBq4hv/4=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"606362bb9be44d1e8ac8dc32774cc4cb\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/deletedRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer03\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApf+kGcL+5uivj/ToYbQ15zcx3caEnpzXaX2eJgL0/Kwaz4u2/bNJ9+hoXnlOFFbCp4canVoNvgu8fw5NOu9U3gJNFQwjHeAqfsg8okZGkIk0riIpp4MMb/4GQb2y3B28AcTu2FANdzLoZzBqmQs51KBe1RONkdtqDYXIvnb5G+9+P7PCy5G//Ga0JAP6Y6P8+TrE9JLEj6Sny0ljLMpMyt4rIRAtNfKYSeiWVQmYX4jZfImIW3iq91zwMsRlrzTm80mNfHPCv7V/8NmYuh0MQgCr49lLbbKCgzDyo9h8sblVQvR5TAylpIk7bSQNf4tSdVNHnsF6CJWu6Pg31hyMpQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAHVjmYFs3FmecaJ1ExhK1WCFJaQJUTVbPJ1xJ93UJlLivhzI1yhQO9nMC2DKV+E+UCxceqjae6OG5LUhXfYAziS0HTc80+ZcUqrZRb5ZRt+8HU0TPbTDDqjj8wMZ4VlgQ3eXGAGesMfZV3AqWwa5itofvqm8KAmL4Yn/XMSHcKfRx3h9WnC6RXgZ8WNYK+r5o+gHlmuF7/AaNFh8UjIsjjOZQ0Yin/vA4yBEYTt1/OC7pScs3bdL9CIf4rC98qaMSf4B2W/vfrXUo0gGPYcep25jy7xnIltSY80Trn3Mty5YQ0IT+KPQcJKhbryGg6bIy4jJDwS7zkn51MR1q3kNoOA=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"b88791e33d9c4d609d3e3cc3d2d40d11\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1385" @@ -172,7 +175,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:03 GMT" + "Mon, 19 Dec 2016 23:09:13 GMT" ], "Pragma": [ "no-cache" @@ -181,13 +184,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "4f4c6a18-2ed5-4d1a-87d0-7567f5d1020b" + "dd1a2395-bd2e-4e5c-b4eb-f22639a53bd8" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -205,19 +208,20 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/deletedRequestedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvZGVsZXRlZFJlcXVlc3RlZENlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/deletedRequestedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9kZWxldGVkUmVxdWVzdGVkQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "990c54fe-8ce3-4fdc-8fcc-5292f9bafae8" + "76af9e59-4b94-4bb9-b8b3-3efb3b2d5a7e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"PendingCertificateNotFound\",\r\n \"message\": \"Pending certificate not found: deletedRequestedCert01\"\r\n }\r\n}", @@ -235,7 +239,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:03 GMT" + "Mon, 19 Dec 2016 23:09:13 GMT" ], "Pragma": [ "no-cache" @@ -244,13 +248,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "4d2b607e-cb5b-49fd-acba-4ff492972cd4" + "11b90b1f-7307-42ef-a421-132ffb93c125" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -268,22 +272,23 @@ "StatusCode": 404 }, { - "RequestUri": "//certificates/deletedRequestedCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvZGVsZXRlZFJlcXVlc3RlZENlcnQwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/deletedRequestedCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9kZWxldGVkUmVxdWVzdGVkQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1c251cdb-20e4-4f72-a394-8165bcd37fb1" + "d8bf688c-876f-48d9-9e82-03d87c719253" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/deletedRequestedCert01/f03fa482f8d148899392432b822cb475\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081442,\r\n \"exp\": 1540154042,\r\n \"created\": 1477082042,\r\n \"updated\": 1477082042\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/deletedRequestedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer03\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082043,\r\n \"updated\": 1477082043\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/deletedRequestedCert01/3fda1a30386f4eb5889dc715deab22be\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188353,\r\n \"exp\": 1545260953,\r\n \"created\": 1482188953,\r\n \"updated\": 1482188953\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/deletedRequestedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer03\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188953,\r\n \"updated\": 1482188953\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "919" @@ -298,7 +303,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:03 GMT" + "Mon, 19 Dec 2016 23:09:13 GMT" ], "Pragma": [ "no-cache" @@ -307,13 +312,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0cdd33d7-77f2-484d-a1e5-30e9416dce76" + "27e0f80e-7a26-48cc-b564-73d3788b9d3f" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -331,19 +336,20 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/deletedRequestedCert01/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvZGVsZXRlZFJlcXVlc3RlZENlcnQwMS8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/deletedRequestedCert01/?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9kZWxldGVkUmVxdWVzdGVkQ2VydDAxLz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "939e090f-8704-4203-8ce9-0a4fc35c80bb" + "ed9a4abc-e769-4ea0-8feb-4cc69cafc41a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"CertificateNotFound\",\r\n \"message\": \"Certificate deletedRequestedCert01 not found\"\r\n }\r\n}", @@ -361,7 +367,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:04 GMT" + "Mon, 19 Dec 2016 23:09:13 GMT" ], "Pragma": [ "no-cache" @@ -370,13 +376,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "83a3ed46-8455-4db2-9c50-01dfe1d17c48" + "1d39b9fb-89ce-4e10-b91b-ca0abafa14f2" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -396,8 +402,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncRequestCancellationTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncRequestCancellationTest.json index c59dd6b1fc13..61a10d92da35 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncRequestCancellationTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateAsyncRequestCancellationTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/issuers/issuer02?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer02?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAyP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"provider\": \"Test\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "26" ], "x-ms-client-request-id": [ - "aa309905-2dfe-4f4e-826f-8dc868414647" + "8e2deed5-09e4-438f-b632-b7a271d25bed" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082070\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188985,\r\n \"updated\": 1482188985\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:45 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "3f9eb8b8-2606-44a4-a456-615b04203a23" + "e7851bcd-56e4-4d3f-b97e-cf8ca2ac76ca" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/cancellationRequestedCert01/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY2FuY2VsbGF0aW9uUmVxdWVzdGVkQ2VydDAxL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/cancellationRequestedCert01/create?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jYW5jZWxsYXRpb25SZXF1ZXN0ZWRDZXJ0MDEvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"validity_months\": 24\r\n },\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "506" ], "x-ms-client-request-id": [ - "5e6ab892-9107-4831-8357-7ebee7a50aae" + "0bd3a906-b281-4862-92f0-bf75b082541f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/cancellationRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8yaoC5UA5iOFwOgW+7zv6q0+NJ8+cQXaJ4ltC23HWwFQo6C0+Cln8VKo3IZoyj7EqQ/KQAdMmeE86hJ/O+PEuAOH3Cd8mEIW00X50IAb3Kg9acc8zB2Se7TodlLumQWfXsZfJw4G5O9QZifYjzmCSgYGCnuXh67shb+q5IGx70LlldmQPI/3NAWrxYrKor4h8xltk11ADsCvpHXQKxZT6O5OO8qqAtb3Wz/5Omid7jQCOz547iE4OgVUha0jv4Hqd/zyJvifKF2C+nPX1xJWG1s4yPf1vPYrheUrPmAjZrb+mSWW/idjYpqyGOoFj8b/dyXGIYQTHiEOdjrv5ZHwOQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBALohxuJ17bpv7AIWmUVuorYmItyxvASU2IPuGLL6DXmCtSwLRokUmrgGtoU5iUBU+Y+V7t/xaEAE6gboPrxF77re8Jiohv4P1PSbTnHDj8BWHIO7QRUVI9OSA3ciMk/uDRLaZYcWFbGX16KoIzLLY/BFESgWJ/4vIGv2XQ8uLLWmUZ1t+oY+uQedis8pz7xBoaLgaofUORs84cRkIqSnXGvT5QBC7EqCCIKuQP2InGghEryOXgSzleaS6xkGOie+uk4bJtJ2F66htrn8zMFltYvf3nv/8noL2v0Q01zYgne+A5zvYdKWTlptsBlZmOtkUrqjlj2P0/YCxHIv5MZkeog=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"67da04636d0c428e9639b38cd63b9cb2\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/cancellationRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxxM2zqnPtpH8aiHX5TdEoZLO0Y6fsjk9QcjKgnHomrwUc9vK20UYYEPKt9aGOT7HNx0do8OulPCnLPrKowci8UHu1qRW/qHvsOJQ/UrQoMCHxtXptVc7Avx8WQb045sCdgp/Cl4xO8LMZa70kE4dghZU9zmNZk8wqDIxyYdh1lqqfGe49EWOxcfszTeeKs8KCsQznjExbsudBHLLWoX4VFTGMe3VcIPcV6iFf70buHKznDMXFiRC0IYwkc/GyWIadB1CSEae8k/0evsPI5lYYZLaO/kLffEUtzysqxZNCQR+S0eVPTGTLHa+fndnPPs65XZDzSZi2fZL01oXUfCAQQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKto/ZF9+02fQ3sLuIsRuap/O/AZz3IhAubNfyCaWvVGVAQz/Aqpf5c/liyKhxqRG6LR9Zu50oxRK5222ezR+56vJikjdXRVShf2xYsMm1CbCM1JuzsnkTeoUHHE12xx1srH/9TH+DVZIk6NXxc4wVIagbpwxiS5gR3Nly5k0ZVv7R1B79J0GUqSwK6qjuooWrBsYMEx319hz8fB/Y4jnPE8p+Cnn3AGEqnebVngXncq/QnHxnrRVfvKFVySqRvlsvM8buILmBbIaywEUqwhNtZX2i9E7reEJ8aeZcf+lAeKF3YDvffaXGTc75aiZlBk30Lv/hn0vs9T0/FedUnIae4=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"3dd81d528cc84c5a837c607f1a50f2e1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1390" @@ -106,25 +108,25 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:32 GMT" + "Mon, 19 Dec 2016 23:09:46 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://testvault1020.vault.azure.net/certificates/cancellationRequestedCert01/pending?api-version=2016-10-01&request_id=67da04636d0c428e9639b38cd63b9cb2" + "https://testvault1021.vault.azure.net/certificates/cancellationRequestedCert01/pending?api-version=2016-10-01&request_id=3dd81d528cc84c5a837c607f1a50f2e1" ], "Server": [ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "60e897fd-aed1-4213-9b86-19870766b9fb" + "e967a147-c336-4e86-86d9-d5a27bbf9775" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -142,8 +144,8 @@ "StatusCode": 202 }, { - "RequestUri": "//certificates/cancellationRequestedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY2FuY2VsbGF0aW9uUmVxdWVzdGVkQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/cancellationRequestedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jYW5jZWxsYXRpb25SZXF1ZXN0ZWRDZXJ0MDEvcGVuZGluZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"cancellation_requested\": true\r\n}", "RequestHeaders": { @@ -154,16 +156,17 @@ "38" ], "x-ms-client-request-id": [ - "6bb9977d-a5ad-43e1-bacf-da0937b28ed3" + "7cce8584-66e8-41e8-aad5-2471eddc25eb" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/cancellationRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8yaoC5UA5iOFwOgW+7zv6q0+NJ8+cQXaJ4ltC23HWwFQo6C0+Cln8VKo3IZoyj7EqQ/KQAdMmeE86hJ/O+PEuAOH3Cd8mEIW00X50IAb3Kg9acc8zB2Se7TodlLumQWfXsZfJw4G5O9QZifYjzmCSgYGCnuXh67shb+q5IGx70LlldmQPI/3NAWrxYrKor4h8xltk11ADsCvpHXQKxZT6O5OO8qqAtb3Wz/5Omid7jQCOz547iE4OgVUha0jv4Hqd/zyJvifKF2C+nPX1xJWG1s4yPf1vPYrheUrPmAjZrb+mSWW/idjYpqyGOoFj8b/dyXGIYQTHiEOdjrv5ZHwOQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBALohxuJ17bpv7AIWmUVuorYmItyxvASU2IPuGLL6DXmCtSwLRokUmrgGtoU5iUBU+Y+V7t/xaEAE6gboPrxF77re8Jiohv4P1PSbTnHDj8BWHIO7QRUVI9OSA3ciMk/uDRLaZYcWFbGX16KoIzLLY/BFESgWJ/4vIGv2XQ8uLLWmUZ1t+oY+uQedis8pz7xBoaLgaofUORs84cRkIqSnXGvT5QBC7EqCCIKuQP2InGghEryOXgSzleaS6xkGOie+uk4bJtJ2F66htrn8zMFltYvf3nv/8noL2v0Q01zYgne+A5zvYdKWTlptsBlZmOtkUrqjlj2P0/YCxHIv5MZkeog=\",\r\n \"cancellation_requested\": true,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"67da04636d0c428e9639b38cd63b9cb2\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/cancellationRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxxM2zqnPtpH8aiHX5TdEoZLO0Y6fsjk9QcjKgnHomrwUc9vK20UYYEPKt9aGOT7HNx0do8OulPCnLPrKowci8UHu1qRW/qHvsOJQ/UrQoMCHxtXptVc7Avx8WQb045sCdgp/Cl4xO8LMZa70kE4dghZU9zmNZk8wqDIxyYdh1lqqfGe49EWOxcfszTeeKs8KCsQznjExbsudBHLLWoX4VFTGMe3VcIPcV6iFf70buHKznDMXFiRC0IYwkc/GyWIadB1CSEae8k/0evsPI5lYYZLaO/kLffEUtzysqxZNCQR+S0eVPTGTLHa+fndnPPs65XZDzSZi2fZL01oXUfCAQQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKto/ZF9+02fQ3sLuIsRuap/O/AZz3IhAubNfyCaWvVGVAQz/Aqpf5c/liyKhxqRG6LR9Zu50oxRK5222ezR+56vJikjdXRVShf2xYsMm1CbCM1JuzsnkTeoUHHE12xx1srH/9TH+DVZIk6NXxc4wVIagbpwxiS5gR3Nly5k0ZVv7R1B79J0GUqSwK6qjuooWrBsYMEx319hz8fB/Y4jnPE8p+Cnn3AGEqnebVngXncq/QnHxnrRVfvKFVySqRvlsvM8buILmBbIaywEUqwhNtZX2i9E7reEJ8aeZcf+lAeKF3YDvffaXGTc75aiZlBk30Lv/hn0vs9T0/FedUnIae4=\",\r\n \"cancellation_requested\": true,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"3dd81d528cc84c5a837c607f1a50f2e1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1389" @@ -178,7 +181,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:32 GMT" + "Mon, 19 Dec 2016 23:09:46 GMT" ], "Pragma": [ "no-cache" @@ -187,13 +190,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cdd1541f-4707-4470-879a-ba72531e4128" + "d0281975-5851-4508-b40c-32a82024e43b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -211,22 +214,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/cancellationRequestedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY2FuY2VsbGF0aW9uUmVxdWVzdGVkQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/cancellationRequestedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jYW5jZWxsYXRpb25SZXF1ZXN0ZWRDZXJ0MDEvcGVuZGluZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "84367df3-3c0e-4fab-b015-02be6b2d8719" + "f9fb796a-7286-4040-a771-e6df0a711563" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/cancellationRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8yaoC5UA5iOFwOgW+7zv6q0+NJ8+cQXaJ4ltC23HWwFQo6C0+Cln8VKo3IZoyj7EqQ/KQAdMmeE86hJ/O+PEuAOH3Cd8mEIW00X50IAb3Kg9acc8zB2Se7TodlLumQWfXsZfJw4G5O9QZifYjzmCSgYGCnuXh67shb+q5IGx70LlldmQPI/3NAWrxYrKor4h8xltk11ADsCvpHXQKxZT6O5OO8qqAtb3Wz/5Omid7jQCOz547iE4OgVUha0jv4Hqd/zyJvifKF2C+nPX1xJWG1s4yPf1vPYrheUrPmAjZrb+mSWW/idjYpqyGOoFj8b/dyXGIYQTHiEOdjrv5ZHwOQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBALohxuJ17bpv7AIWmUVuorYmItyxvASU2IPuGLL6DXmCtSwLRokUmrgGtoU5iUBU+Y+V7t/xaEAE6gboPrxF77re8Jiohv4P1PSbTnHDj8BWHIO7QRUVI9OSA3ciMk/uDRLaZYcWFbGX16KoIzLLY/BFESgWJ/4vIGv2XQ8uLLWmUZ1t+oY+uQedis8pz7xBoaLgaofUORs84cRkIqSnXGvT5QBC7EqCCIKuQP2InGghEryOXgSzleaS6xkGOie+uk4bJtJ2F66htrn8zMFltYvf3nv/8noL2v0Q01zYgne+A5zvYdKWTlptsBlZmOtkUrqjlj2P0/YCxHIv5MZkeog=\",\r\n \"cancellation_requested\": true,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"67da04636d0c428e9639b38cd63b9cb2\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/cancellationRequestedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxxM2zqnPtpH8aiHX5TdEoZLO0Y6fsjk9QcjKgnHomrwUc9vK20UYYEPKt9aGOT7HNx0do8OulPCnLPrKowci8UHu1qRW/qHvsOJQ/UrQoMCHxtXptVc7Avx8WQb045sCdgp/Cl4xO8LMZa70kE4dghZU9zmNZk8wqDIxyYdh1lqqfGe49EWOxcfszTeeKs8KCsQznjExbsudBHLLWoX4VFTGMe3VcIPcV6iFf70buHKznDMXFiRC0IYwkc/GyWIadB1CSEae8k/0evsPI5lYYZLaO/kLffEUtzysqxZNCQR+S0eVPTGTLHa+fndnPPs65XZDzSZi2fZL01oXUfCAQQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKto/ZF9+02fQ3sLuIsRuap/O/AZz3IhAubNfyCaWvVGVAQz/Aqpf5c/liyKhxqRG6LR9Zu50oxRK5222ezR+56vJikjdXRVShf2xYsMm1CbCM1JuzsnkTeoUHHE12xx1srH/9TH+DVZIk6NXxc4wVIagbpwxiS5gR3Nly5k0ZVv7R1B79J0GUqSwK6qjuooWrBsYMEx319hz8fB/Y4jnPE8p+Cnn3AGEqnebVngXncq/QnHxnrRVfvKFVySqRvlsvM8buILmBbIaywEUqwhNtZX2i9E7reEJ8aeZcf+lAeKF3YDvffaXGTc75aiZlBk30Lv/hn0vs9T0/FedUnIae4=\",\r\n \"cancellation_requested\": true,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"3dd81d528cc84c5a837c607f1a50f2e1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1389" @@ -241,7 +245,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:32 GMT" + "Mon, 19 Dec 2016 23:09:46 GMT" ], "Pragma": [ "no-cache" @@ -250,13 +254,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "dda3a11b-04f9-4d1d-b43e-38dd643eedd4" + "ea3c8bf3-2201-4145-a1d8-c5b844cce56d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -274,25 +278,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/cancellationRequestedCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY2FuY2VsbGF0aW9uUmVxdWVzdGVkQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/cancellationRequestedCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jYW5jZWxsYXRpb25SZXF1ZXN0ZWRDZXJ0MDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d2ffb533-f4f1-4801-9425-850e57da4e97" + "2af34bf1-ba5f-452c-9969-9bf09bb74ec2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/cancellationRequestedCert01/76e44ff2d87949609d6ca86ab461be95\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/cancellationRequestedCert01/76e44ff2d87949609d6ca86ab461be95\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/cancellationRequestedCert01/76e44ff2d87949609d6ca86ab461be95\",\r\n \"x5t\": \"-4-7y-Un73YP6XEX0vVCnT75NgE\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQOhpjlfkTR/OpwqSdeYki9jANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMDIxMTcxMDAyWhcNMTgxMDIxMTcyMDAyWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDTDnxefPcuEydMtf62zqleFMt/g2wiA7ffRiwOYEPyxiD4bp1uaoCl82ofiP7fTY6gzAgAFntL+LeSBQleUPHVTafr4BjdnTiEFhM1+5n6M3SvAr6QXGsPmoFgF3e18893QNvZNXC5gmcxZZsiDPw3eQoKQhGW764zxn70teRcWGtv1wUBPvpakGJEf45jSM4H8KAtjbFwKq1u3/YKHeMofrLAFM/VYPIHD7DdTtl390kTbVjuwreJJnt86CMebxQ39zhEMd06IwYzvF3xPbf06rraLFeUxA2jQhR1gO9l0S8+wbI5bqmGXKl1rfC4kmiZNVNmyKPchZaSuoxQT+jhAgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBQfOoGVh/em6ul3Ve6tTuiPzBiK7zAdBgNVHQ4EFgQURfC+s6leBifggSIvus8c7A4J/LAwDQYJKoZIhvcNAQELBQADggEBAI5CV4FLDx4rUriaLN394wrbYfJqI2Y1+mpQ3WocDTKaqz21LbtMAIemI4ntzq4uTev3uHVmXwElDZoCOf/EHeupCE43oW9c2/preXB0caETO4SUpmNU5tdRK4YrSxeHxz9VoJJPPjqanWUfX3LgJn3WRNa+wX01Ds+7waeDAEZJLqGShQMjqnUFfaeiORfTxh6m2dS8Ni7bHNPqRQWBSNk3XEyw3p+A4MBcGIEVJD0LWUG+ZNX+P8VqlpJEFc9OkRDpgwMG7yU9QDUrpYFkaLp9VUFN3+IFrxkbX+QQX5vgnexiEHip9dpIes1iVNKH6OC5JMChSdnRr3iEuU0FP3U=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477069802,\r\n \"exp\": 1540142402,\r\n \"created\": 1477070403,\r\n \"updated\": 1477070403\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/cancellationRequestedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082071,\r\n \"updated\": 1477082071\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/cancellationRequestedCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/cancellationRequestedCert01/c1d7c70cee414744a34909368aa01b82\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188385,\r\n \"exp\": 1545260985,\r\n \"created\": 1482188985,\r\n \"updated\": 1482188985\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/cancellationRequestedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer02\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188986,\r\n \"updated\": 1482188986\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/cancellationRequestedCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "2491" + "1035" ], "Content-Type": [ "application/json; charset=utf-8" @@ -304,7 +309,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:32 GMT" + "Mon, 19 Dec 2016 23:09:47 GMT" ], "Pragma": [ "no-cache" @@ -313,13 +318,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e5b16137-dbd6-40bd-abde-5e221fd4fe31" + "59e2621b-9018-48e6-ae2d-ccfab7a50b5e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -339,8 +344,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateContactsTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateContactsTest.json index 0f5259fc9e55..5de831cfa859 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateContactsTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateContactsTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/contacts?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY29udGFjdHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/contacts?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jb250YWN0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n }\r\n ]\r\n}", "RequestHeaders": { @@ -13,19 +13,20 @@ "133" ], "x-ms-client-request-id": [ - "fa6fc760-0f83-48b6-bdc6-cf1663926abd" + "26da16eb-ba5e-4eaa-aabb-339cc660160d" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "150" + "165" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:39 GMT" + "Mon, 19 Dec 2016 23:18:59 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "7d55ced1-6bf7-4a7d-84aa-5c24890f1b85" + "b3213f02-8ba7-4bc2-a025-aa00a36b930e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/contacts?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY29udGFjdHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/contacts?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jb250YWN0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n },\r\n {\r\n \"email\": \"admin@contoso2.com\",\r\n \"name\": \"Johnathan Doeman\",\r\n \"phone\": \"2222222222\"\r\n }\r\n ]\r\n}", "RequestHeaders": { @@ -82,19 +83,20 @@ "250" ], "x-ms-client-request-id": [ - "c7d82cb2-dbf7-413b-8c54-f1a2f5d8bcb3" + "a692f59a-00db-45eb-995e-0c8fbf7e20b8" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n },\r\n {\r\n \"email\": \"admin@contoso2.com\",\r\n \"name\": \"Johnathan Doeman\",\r\n \"phone\": \"2222222222\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n },\r\n {\r\n \"email\": \"admin@contoso2.com\",\r\n \"name\": \"Johnathan Doeman\",\r\n \"phone\": \"2222222222\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "228" + "243" ], "Content-Type": [ "application/json; charset=utf-8" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:39 GMT" + "Mon, 19 Dec 2016 23:18:59 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "e3ee5420-769c-4f49-9541-c961772a9412" + "abb75f11-2cb6-4366-b3ac-c6e3b12e5df5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,25 +141,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/contacts?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY29udGFjdHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/contacts?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jb250YWN0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "17fbbe1d-704c-4992-b653-3c5d3f202348" + "20b23e97-30ac-40b8-8fa6-6d7325f98792" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "150" + "165" ], "Content-Type": [ "application/json; charset=utf-8" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:39 GMT" + "Mon, 19 Dec 2016 23:18:59 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "2a82d8af-9a6b-4ea0-b679-ecd36af79b67" + "731d26a1-ef08-41ac-b9b5-f2f36361097e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -202,25 +205,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/contacts?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY29udGFjdHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/contacts?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jb250YWN0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f970a768-3ccd-4067-93e0-28279cd57969" + "893c23f8-6dd1-4d5c-a45c-ed49b8562143" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n },\r\n {\r\n \"email\": \"admin@contoso2.com\",\r\n \"name\": \"Johnathan Doeman\",\r\n \"phone\": \"2222222222\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n },\r\n {\r\n \"email\": \"admin@contoso2.com\",\r\n \"name\": \"Johnathan Doeman\",\r\n \"phone\": \"2222222222\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "228" + "243" ], "Content-Type": [ "application/json; charset=utf-8" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:39 GMT" + "Mon, 19 Dec 2016 23:18:59 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "d5459ad1-3636-4610-832a-6ddba2a711dd" + "81d7c886-142d-4e3c-929e-8e7b0c467855" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -265,25 +269,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/contacts?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvY29udGFjdHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/contacts?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9jb250YWN0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3f7533cf-f1cc-4f15-a7d6-714d7f5be43f" + "7f0174ce-5ec9-45ca-bc9b-a7d5dae8360b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n },\r\n {\r\n \"email\": \"admin@contoso2.com\",\r\n \"name\": \"Johnathan Doeman\",\r\n \"phone\": \"2222222222\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/contacts\",\r\n \"contacts\": [\r\n {\r\n \"email\": \"admin@contoso.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"1111111111\"\r\n },\r\n {\r\n \"email\": \"admin@contoso2.com\",\r\n \"name\": \"Johnathan Doeman\",\r\n \"phone\": \"2222222222\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "228" + "243" ], "Content-Type": [ "application/json; charset=utf-8" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:39 GMT" + "Mon, 19 Dec 2016 23:19:00 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "a2b6280d-b62b-47a6-ba43-482d2bac094a" + "043caa97-e64d-4687-9470-c9abb87d8969" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -330,8 +335,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateLongSelfSignedTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateLongSelfSignedTest.json index 8614ba1090bf..cccdcf292aef 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateLongSelfSignedTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateLongSelfSignedTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/longSelfSignedCert01/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbG9uZ1NlbGZTaWduZWRDZXJ0MDEvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/longSelfSignedCert01/create?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9sb25nU2VsZlNpZ25lZENlcnQwMS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"validity_months\": 24\r\n },\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "502" ], "x-ms-client-request-id": [ - "98e6d742-8be1-427a-9a55-3303ce5c61a3" + "7aa0c368-721c-4eb1-93a3-5ad7201802ed" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6uA+sZTL64v8cElM12AyhKrHRfTu++zRPSAoUFd2QIhSK9tFXF3Jv5V2sTeamdSGgw7BCSzEhYR57MYdOa5842Y4Zc961LFciv1CrZmbmx6HZBbM8MBgCzyIjl9jZySDwt0zIjn7rldvl6ujyj6vO7st0aTn3uYzLFJtPF6TgqJnOPcQPbTUKPG3Ty81SszOFSY8oV2d4rjrsUNSjB+s0RVBfXvp9sG/jCHvsI1Gk7FugSUVDAkNORrWv6NaPEjWRYAZaOaXgGbqYNuUlFochgEyd/MODWGPO2tcr7uWcglTqqJDmsUgd0rIZyQ5BJG4nbdStmU8yFKpRyQSIeSlowIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAJqmbjyOoBW900cF5v4u/jalgOYc8BueU9f4CdffaeN/tzUOttQ4vt4qGQZSuILHej52rpz1X+36ySE4L2unZs7CsKrLb/+HaummSQUmS+gTQ9UEzD6WOUV7L3wTRImLEzvmC/YRCni+Yu9Vr+l6COvu24RiviJCuBA6t5VMxt8eh++Gqhfq1/OBZSFyiJzHZ7xYkU4AM81HImx8WJKEvV3rd8q/nOS47atWv1KGtQ6tvFpX4vJYiRvM2IWphtIFVYfg7gcRLAMWMI13jEbqwy3xtgBCzSUGOauZd+ZQtknZc5oDDewWZOO9EJL27uPG7dEVa4hsqckunCUTjo9Z0/M=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"ad1f27b40f3c47b69946b6c0c8699ba6\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyYs0UBNvj6qMoJR3I5pdtEAncICkMmFVupRC5DifN5gHqmQLRMzKa9TwEdYn6EEQsU9h4dYojS7Aab9pb3zItjZLTvE6nwOQ6sHySc3bOxXDMFL13yvSFJwjV01WK3ja9d100Hv8HpkTS0cYRYU8fszUQ9MBeGABDw5jhhrXQ6m/H66SPZ7lGdr3rUGVGC2CQoxayfOMCCN9Q8KMsVktHd6tRPWX3tbSqzORJhWNY1tUVgIYHL0y2Am5cdPOFP6A9D03BlKtgOiPbpbIxxOXSloOphwM5wkpUPRilqu6XpF6wvqS0gC88/KegAsl/zrhoy+BUMx8eoR9FNLAtlpY9wIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAEyPQJdYUf8VVG4iUhHwIwLQCrNZ1ykP/HcCW1bDYehvLpmJXaTGf3ucnL3dmXpFESNEPAU8Qnkpe1UDExujs32J2cA1bV5Nif8JrRBnoDl/gKoTTGqZskngGQqH6hpCsqgqBxxmPpAp3DENKPnRW5+ZbDnZD6+/vKSeLvFO915/ZBZ5NQOXMI/eG3DrOoEx0bDvZt4ML3Rr9ykfMVOI0Td6PKM5+mSmhQUCkGSPfsLqPVVE9Oi0ZFteR2lCVJ6RBmY0IX/iOOB7UqIA5mmEE/3Fa2gHiEpP4bbinGJoqTYe/vkZxMV7NGUhGe2uusK9EBwoMIcsNn8bKABl22Wj/ec=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"f6496e5e4b464617834a86849123d67a\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1379" @@ -37,25 +38,25 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:42 GMT" + "Mon, 19 Dec 2016 23:09:58 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/pending?api-version=2016-10-01&request_id=ad1f27b40f3c47b69946b6c0c8699ba6" + "https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/pending?api-version=2016-10-01&request_id=f6496e5e4b464617834a86849123d67a" ], "Server": [ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "fa27aae3-3121-4bcc-a988-f56f5e34376c" + "18145011-fa5e-4ee1-a68c-aab1a693e508" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -73,22 +74,23 @@ "StatusCode": 202 }, { - "RequestUri": "//certificates/longSelfSignedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbG9uZ1NlbGZTaWduZWRDZXJ0MDEvcGVuZGluZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/longSelfSignedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9sb25nU2VsZlNpZ25lZENlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "504bb07a-fe2e-4503-83c7-cb40a362a6a9" + "4182d7f7-fde3-4ff3-bc35-a1063ead8f73" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6uA+sZTL64v8cElM12AyhKrHRfTu++zRPSAoUFd2QIhSK9tFXF3Jv5V2sTeamdSGgw7BCSzEhYR57MYdOa5842Y4Zc961LFciv1CrZmbmx6HZBbM8MBgCzyIjl9jZySDwt0zIjn7rldvl6ujyj6vO7st0aTn3uYzLFJtPF6TgqJnOPcQPbTUKPG3Ty81SszOFSY8oV2d4rjrsUNSjB+s0RVBfXvp9sG/jCHvsI1Gk7FugSUVDAkNORrWv6NaPEjWRYAZaOaXgGbqYNuUlFochgEyd/MODWGPO2tcr7uWcglTqqJDmsUgd0rIZyQ5BJG4nbdStmU8yFKpRyQSIeSlowIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAJqmbjyOoBW900cF5v4u/jalgOYc8BueU9f4CdffaeN/tzUOttQ4vt4qGQZSuILHej52rpz1X+36ySE4L2unZs7CsKrLb/+HaummSQUmS+gTQ9UEzD6WOUV7L3wTRImLEzvmC/YRCni+Yu9Vr+l6COvu24RiviJCuBA6t5VMxt8eh++Gqhfq1/OBZSFyiJzHZ7xYkU4AM81HImx8WJKEvV3rd8q/nOS47atWv1KGtQ6tvFpX4vJYiRvM2IWphtIFVYfg7gcRLAMWMI13jEbqwy3xtgBCzSUGOauZd+ZQtknZc5oDDewWZOO9EJL27uPG7dEVa4hsqckunCUTjo9Z0/M=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"ad1f27b40f3c47b69946b6c0c8699ba6\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyYs0UBNvj6qMoJR3I5pdtEAncICkMmFVupRC5DifN5gHqmQLRMzKa9TwEdYn6EEQsU9h4dYojS7Aab9pb3zItjZLTvE6nwOQ6sHySc3bOxXDMFL13yvSFJwjV01WK3ja9d100Hv8HpkTS0cYRYU8fszUQ9MBeGABDw5jhhrXQ6m/H66SPZ7lGdr3rUGVGC2CQoxayfOMCCN9Q8KMsVktHd6tRPWX3tbSqzORJhWNY1tUVgIYHL0y2Am5cdPOFP6A9D03BlKtgOiPbpbIxxOXSloOphwM5wkpUPRilqu6XpF6wvqS0gC88/KegAsl/zrhoy+BUMx8eoR9FNLAtlpY9wIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAEyPQJdYUf8VVG4iUhHwIwLQCrNZ1ykP/HcCW1bDYehvLpmJXaTGf3ucnL3dmXpFESNEPAU8Qnkpe1UDExujs32J2cA1bV5Nif8JrRBnoDl/gKoTTGqZskngGQqH6hpCsqgqBxxmPpAp3DENKPnRW5+ZbDnZD6+/vKSeLvFO915/ZBZ5NQOXMI/eG3DrOoEx0bDvZt4ML3Rr9ykfMVOI0Td6PKM5+mSmhQUCkGSPfsLqPVVE9Oi0ZFteR2lCVJ6RBmY0IX/iOOB7UqIA5mmEE/3Fa2gHiEpP4bbinGJoqTYe/vkZxMV7NGUhGe2uusK9EBwoMIcsNn8bKABl22Wj/ec=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"f6496e5e4b464617834a86849123d67a\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1379" @@ -103,7 +105,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:42 GMT" + "Mon, 19 Dec 2016 23:09:58 GMT" ], "Pragma": [ "no-cache" @@ -112,13 +114,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "91bad590-856e-4a7d-8788-3ba7e3f210ae" + "106571db-c623-4b60-860b-7c20f538f227" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -136,22 +138,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/longSelfSignedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbG9uZ1NlbGZTaWduZWRDZXJ0MDEvcGVuZGluZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/longSelfSignedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9sb25nU2VsZlNpZ25lZENlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4c7972bf-4203-4493-af67-48dcca765cf4" + "65c0eefb-b9c2-4977-962c-0f5ee032e087" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6uA+sZTL64v8cElM12AyhKrHRfTu++zRPSAoUFd2QIhSK9tFXF3Jv5V2sTeamdSGgw7BCSzEhYR57MYdOa5842Y4Zc961LFciv1CrZmbmx6HZBbM8MBgCzyIjl9jZySDwt0zIjn7rldvl6ujyj6vO7st0aTn3uYzLFJtPF6TgqJnOPcQPbTUKPG3Ty81SszOFSY8oV2d4rjrsUNSjB+s0RVBfXvp9sG/jCHvsI1Gk7FugSUVDAkNORrWv6NaPEjWRYAZaOaXgGbqYNuUlFochgEyd/MODWGPO2tcr7uWcglTqqJDmsUgd0rIZyQ5BJG4nbdStmU8yFKpRyQSIeSlowIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAJqmbjyOoBW900cF5v4u/jalgOYc8BueU9f4CdffaeN/tzUOttQ4vt4qGQZSuILHej52rpz1X+36ySE4L2unZs7CsKrLb/+HaummSQUmS+gTQ9UEzD6WOUV7L3wTRImLEzvmC/YRCni+Yu9Vr+l6COvu24RiviJCuBA6t5VMxt8eh++Gqhfq1/OBZSFyiJzHZ7xYkU4AM81HImx8WJKEvV3rd8q/nOS47atWv1KGtQ6tvFpX4vJYiRvM2IWphtIFVYfg7gcRLAMWMI13jEbqwy3xtgBCzSUGOauZd+ZQtknZc5oDDewWZOO9EJL27uPG7dEVa4hsqckunCUTjo9Z0/M=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"completed\",\r\n \"target\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01\",\r\n \"request_id\": \"ad1f27b40f3c47b69946b6c0c8699ba6\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyYs0UBNvj6qMoJR3I5pdtEAncICkMmFVupRC5DifN5gHqmQLRMzKa9TwEdYn6EEQsU9h4dYojS7Aab9pb3zItjZLTvE6nwOQ6sHySc3bOxXDMFL13yvSFJwjV01WK3ja9d100Hv8HpkTS0cYRYU8fszUQ9MBeGABDw5jhhrXQ6m/H66SPZ7lGdr3rUGVGC2CQoxayfOMCCN9Q8KMsVktHd6tRPWX3tbSqzORJhWNY1tUVgIYHL0y2Am5cdPOFP6A9D03BlKtgOiPbpbIxxOXSloOphwM5wkpUPRilqu6XpF6wvqS0gC88/KegAsl/zrhoy+BUMx8eoR9FNLAtlpY9wIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAEyPQJdYUf8VVG4iUhHwIwLQCrNZ1ykP/HcCW1bDYehvLpmJXaTGf3ucnL3dmXpFESNEPAU8Qnkpe1UDExujs32J2cA1bV5Nif8JrRBnoDl/gKoTTGqZskngGQqH6hpCsqgqBxxmPpAp3DENKPnRW5+ZbDnZD6+/vKSeLvFO915/ZBZ5NQOXMI/eG3DrOoEx0bDvZt4ML3Rr9ykfMVOI0Td6PKM5+mSmhQUCkGSPfsLqPVVE9Oi0ZFteR2lCVJ6RBmY0IX/iOOB7UqIA5mmEE/3Fa2gHiEpP4bbinGJoqTYe/vkZxMV7NGUhGe2uusK9EBwoMIcsNn8bKABl22Wj/ec=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"completed\",\r\n \"target\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01\",\r\n \"request_id\": \"f6496e5e4b464617834a86849123d67a\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1297" @@ -166,7 +169,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:03 GMT" + "Mon, 19 Dec 2016 23:10:19 GMT" ], "Pragma": [ "no-cache" @@ -175,13 +178,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cac2fc3f-b303-45d9-82b8-7c1a293f6eea" + "e4db16f6-bcd4-48df-9de8-52dd09c8954c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -205,16 +208,17 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c057408e-7a09-4d29-81a3-e253def8b075" + "630cf45e-4b5a-4046-a5b6-3e500c85777e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\",\r\n \"x5t\": \"WbKidbWJU-o_XD-ZwUIzLYp8Vrg\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQc5nVETnzQmaHLUj4r6Y37zANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMDIxMjAyNDQ5WhcNMTgxMDIxMjAzNDQ5WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDq4D6xlMvri/xwSUzXYDKEqsdF9O777NE9IChQV3ZAiFIr20VcXcm/lXaxN5qZ1IaDDsEJLMSFhHnsxh05rnzjZjhlz3rUsVyK/UKtmZubHodkFszwwGALPIiOX2NnJIPC3TMiOfuuV2+Xq6PKPq87uy3RpOfe5jMsUm08XpOComc49xA9tNQo8bdPLzVKzM4VJjyhXZ3iuOuxQ1KMH6zRFUF9e+n2wb+MIe+wjUaTsW6BJRUMCQ05Gta/o1o8SNZFgBlo5peAZupg25SUWhyGATJ38w4NYY87a1yvu5ZyCVOqokOaxSB3SshnJDkEkbidt1K2ZTzIUqlHJBIh5KWjAgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBRTNs66rw6P/AZ9Jc3RVGatddIS7DAdBgNVHQ4EFgQUUzbOuq8Oj/wGfSXN0VRmrXXSEuwwDQYJKoZIhvcNAQELBQADggEBAM7VcwXI4B+V9z2kSTrPCnZeR+KPlWIHEVN+UGhHyRM4b+rW4D2Iq3yTJ/3JRgnbHoreBk6fH0UFg1t5No+ciDwa9NSs/AM4xDQlLHqB2F7nYgnyDsWZMncY8GnDAVbSy2NYD3A76f+pnYAB7/QVTryuklF6PcIY/I7QaSYaA8A9iaV0W39RtEUmTeuNoaSPCgMrziL3xkbCgPzb+fO3D2jGN+Q0MfzeMY1FDv7XH/5p4gdbXD7oO15+O6+0sQCSjnOdg1+MKyLNHk+AIDuhc9bmzGapGy18jxmXPm2kF2eSImC/aTqxyyW66wybuaj78kcZuUdlhP1Czf0muthEvls=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081489,\r\n \"exp\": 1540154089,\r\n \"created\": 1477082089,\r\n \"updated\": 1477082089\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082082,\r\n \"updated\": 1477082082\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\",\r\n \"x5t\": \"AHRzeVzkRAPJe3VX6Wg-_Y4tblw\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQP67LkHCuS+W67oLumOkVcjANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMjE5MjMwMDE1WhcNMTgxMjE5MjMxMDE1WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDJizRQE2+PqoyglHcjml20QCdwgKQyYVW6lELkOJ83mAeqZAtEzMpr1PAR1ifoQRCxT2Hh1iiNLsBpv2lvfMi2NktO8TqfA5DqwfJJzds7FcMwUvXfK9IUnCNXTVYreNr13XTQe/wemRNLRxhFhTx+zNRD0wF4YAEPDmOGGtdDqb8frpI9nuUZ2vetQZUYLYJCjFrJ84wII31DwoyxWS0d3q1E9Zfe1tKrM5EmFY1jW1RWAhgcvTLYCblx084U/oD0PTcGUq2A6I9ulsjHE5dKWg6mHAznCSlQ9GKWq7pekXrC+pLSALzz8p6ACyX/OuGjL4FQzHx6hH0U0sC2Wlj3AgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBRFBZgo1tZFswYLInoYvgXBaUZULjAdBgNVHQ4EFgQURQWYKNbWRbMGCyJ6GL4FwWlGVC4wDQYJKoZIhvcNAQELBQADggEBABFIlF498XOKBgrzHlvbj5eAMhmg9gwmIXySY+Micw5hsUrsIryi8Y26yjMnJYwPDR4b8Mqs2eFPmU4AwKWpA9ljuTa+y4BV0u+7WWR6GnoauzuY4Na34t+5R5/yRLHImBz44+QjVe7c0KoJ7x0Gn+4E8mWFxDULyKcEwHwJhFFB7TzuZmcA3EZfQCfl0CDIaVF1s6cjnzAW6cp+/RtC2f7GFW1Xhye+t4mru2BZ3pMsLKDKbO2mw9yipR23Fss1SOOp+8me18MF1QhO9Me20qOkjYOKoNuM2eTqd33obepoLhHAL1dxKPED4eDta2eO15DxrBGclm5BGl1byUNRxxw=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188415,\r\n \"exp\": 1545261015,\r\n \"created\": 1482189016,\r\n \"updated\": 1482189016\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188999,\r\n \"updated\": 1482188999\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "2452" @@ -229,7 +233,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:03 GMT" + "Mon, 19 Dec 2016 23:10:19 GMT" ], "Pragma": [ "no-cache" @@ -238,13 +242,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "f1c70f49-90ba-42af-9516-5d7d4c4d4976" + "7f5a3942-6230-4121-8257-6cfde341d17d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -262,22 +266,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvbG9uZ1NlbGZTaWduZWRDZXJ0MDEvNWIyMDc5Y2FlNDg0NDllNWI0YTAzZGQzYTBiYTNiMTg/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbG9uZ1NlbGZTaWduZWRDZXJ0MDEvMGY0Yzc5NDMyMTVlNDg3Yjg1Y2Q3NjlkZDg5MWRkMDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7cbdf079-1d5d-457a-ad96-6ee23f105c8e" + "0df215ee-62cd-445f-8655-42c9bfe4d785" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"MIIKfAIBAzCCCjwGCSqGSIb3DQEHAaCCCi0EggopMIIKJTCCBhYGCSqGSIb3DQEHAaCCBgcEggYDMIIF/zCCBfsGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAg+WW9jdi9CSwICB9AEggTY+gOsbNwzZPs53S6ASZ6u9ULn/Dp2lgLGUL8FACdniApJiVZUhDJTWLTbGpBnaYhshvj4IfJ8Y5f7HFW4moNxKqVSXIygTCwUrZtS5cMJJNPKJ4dFmSjQVPnr/iMkqHhOQdQRpUgaITMGBwa3+lcw6HKvmnC1zMeRV4uCZ57r3LAQ3PGUHdIO5uyhIMxnyGaef40rCTiEiRDdlQk9HBwnyt8/ZxDrJ3hbFOrc+oq1qW2RY+dLWfoMXpnpoL1bOP8nMzHaQqK4gcjEdFMnCyGiVMFNy3k1rtgLciZjEZ4t/v8KTd7Ja15LBnxW5A5fE53GgIuccQcGzFsIP5lmOq/OMWWb5g1LjBsphGLVQ+OjIaWljNaxxI4dQkTQDl5fZ8h+a26VkZPPnv4WfFMvk0r2N/JNKls7XmeaE7NJMLr5zveNozZrrbqrqu/HpaVHhkWBhPCYpfOl9fj2g+WvE/iUAhIGvfd/nQza6uMHkG73jvnX8++rKWBDFSAGEucyg8RLqRcrKf9kZ55d7+Ob4nVNfFeqFIGB8Jve2iRBcf7Qaq15yjeGaAk51iXRzTPP0vTCiXpPMElO42N2uxi54dmU/I3kOdSZzzDscMTQIjgZfob/AUr54KRCJJBFFSkWDWkkPWKSlOlOt5wVGCuCDGkvRb0uyi0tJuE3ieS3TICC54+/FqjcoEDRogin29Mb3+xF3OVSyGf/AAaKKasVjZAHEWjXO7wS5Apc37bWtoYddSC7jm4RwcHl1rCHlHk/LIEa4OqpYTtdeeabWMTQSV/f6j+3goMFP1hQONUUEA/GzGJ3Xq+NaNZuxW0HOuaNHRpd36qNX5am9CL7WrPeFRNw5J/Uv3h5V+9jcZ9yrv/eObbF2bSISPFQjUlTp88G3JqAMCWR99bart7r+ahQveFh5IVCJZrj4CdZCpFkYQS+nfh7+KUD9zyb7A+hMs6JQrEbFeGIY0nABdMEvSDbjg2V9oR3qQp5kk9F60ioo3FHqW31PQeLZPw7C8blIWrhrrqQ1oHYSZLUwQ4M4+rk4aNfvp3NG4o4lEXAuGyt1dZ1H//aAlEqWCBc4DcrIGnsRve4oBaEpHEBhXChaMEDuEYIkzDnKshszv/Jw6k0jEJWUF9SsiNS5bSCb+Y/njzjLCYzxLuHwl1CLo3CUb+4oLXSWLS6IR5hZeQAhiYGqo2h6rcnhajrndt4Y7lGLIjGoKSTMN5VrpmhjwZkF/DGUx3lR06GeZwY+B+tJLjgNKN/zb82JEl1/gEw9uBfEXIRqR2I3M6PKYaBerpSVFZKb9gDVMZ/1+noqpcv9stcUgbMJ+CFQew/QEy5jTZSFR1VtgoxUIMmWOocFIBrxCR89nplj8KdRryNigywe2Im+jYVBcuxZK9fBwpEhGvRIdMi19maSA1HL62I/lVJEuJYI1pp+j7JM30bV1+Muk8q+n24QQT0H/tsMAlAjwlzrMX4LPMCN9T5c6uyA3IhQIKu8Upef+6dAIQEw6TMkmiIdQlTHJ0JHXYBEuw2FLPqigdE57ZYHbUove53D1sBlNxKbnLYRlLOH9XSUK5gq3ulRzyBZyjX+j0HwGMOz3RGmWJ+V60W6dRTkvj1IFbnEZygkM+PjDt2No4FVaC1sg0T9KiWlSc+VG+LVanEiTGB6TATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADIAZAA2AGQAMwBjAGYAOQAtADEAZgA4ADQALQA0AGQAZABiAC0AOQAzADgAZAAtAGYAOABiADkANwBkAGMAZAA2AGQAYwBkMHkGCSsGAQQBgjcRATFsHmoATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABSAFMAQQAgAGEAbgBkACAAQQBFAFMAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIIEBwYJKoZIhvcNAQcGoIID+DCCA/QCAQAwggPtBgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAg9veeCjc9ElgICB9CAggPAKYmZB8uK6XqoVga/n7nUdY3nC0mBQLCXpmVxtLrcasJWLWW4F78z5OzstbM/ScwJXN/vxoQaJN1Nlueci90eVdZnXal+Rh7BNflg67lMhOzpRRV9/QpJ+4TTfHaxQS823/eFOWX4+AnfpgVdR7PxYLVYp5W8utAUOTV15emPYvzhWZquzhoA1Um2ympDs6gIDNAhRb2t/s97c5rZsNDgL6jGOdSpdOd2i19PHONuZk5TA1oiyAYvYuJU02bx6KLPpilhyGcquq9U2vnbXdYygUt7eXJM0xi+KNKNZSVfJzbpJSqiIJW4jtidQx9Smd7NL5F2D84//qLXrpENgXAOH+L4kAJO0vt4s2vfpRBV6BYBMEIHMGC4laJhiVLzqWQQK3Jcd9N7BY5vgsnYXk6fcyn0tzh0B1HpYlepH9Uqu0+UzaW/WezYRQUoQIG3XueutCP6ARpPtWwFzxRIWlRj8MXDsgxPn9FG2C8GGqBXUuqy/2RMwhQHhuSkaNMIFo3HU26Taj/CNom8QfKortbRQnOwHYmDcET+YnQX6O4OmtNjjL7mF2ppLd+ZNr9SMQSMqGoAa/sIO3VtD60orKlTsgXMWiv4jlOwEjnZVoTO9ys4njTdfJ9UX4xxCfBqm4T1XGWhsc4fsFB4oS1w8X0hVVB+aKI1DElT5xogEdss0VzIEGUPtTT646RnSHxXpnbgAKKvJZIXy8Bed7kU/unixcM6gbA0/ATtuPJDOEokT0J1qTy74ZZ2qP98PARpjL0aDE7LqfSKZYEvQAdQQrDxt2y71yZvES5+0fXFwTY6MUFCO/94ZObtapq2/A8zo6B1X4HzXsF0KsQ+xRCXQPssn6GRG2LfCJHMixSlxOBu7M6/025T/FYUcNu1DuojHtv29rgJQyRPDL9eHaTsOIE96BBe53bX1rQYFsDC0WWMDcvrhSsO3gEo1qGLhBfaW825P00Knl0Qdvqv4ac+YXoWFXbSHKeNjPo+eL56elANGqrkk4DHga9xQdHHS8O0N78pS4CUM4p0xWJ0P9UTdwilbapuKyV3Zjk8wH9EMS3PaFfigdgn5Lig9mEJEFPOd6nHrw6VGerq8b69MjgvAfc/2nrIfohkpRhO3T3lunQacGsXk4lf20HfkZgOkTd7fNUzZo45rnnNRZ+xmdIJKLB/ZmgaWOBSbPjIpMp8trS0988bsw9gTV3aHCcaL9VjD195vhFum1BkamZyLelHqyYLU/RODFqvfr8XhwmkjUPDt9/krsj2AVZsbfXPUNKlP7t8MDcwHzAHBgUrDgMCGgQURt1EMAU9kbrir2LGBBimonFtPoIEFCx/vMRAtl/kgPD+3DXjHt6Rwgjv\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081489,\r\n \"exp\": 1540154089,\r\n \"created\": 1477082089,\r\n \"updated\": 1477082089\r\n },\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\"\r\n}", + "ResponseBody": "{\r\n \"value\": \"MIIKfAIBAzCCCjwGCSqGSIb3DQEHAaCCCi0EggopMIIKJTCCBhYGCSqGSIb3DQEHAaCCBgcEggYDMIIF/zCCBfsGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAhlvfoT2pS8OAICB9AEggTYp1n2Pq/pQv6mOOmnMUaqN+thNKJwGomD36VsH8AStPCU3H7qNHrcNzM3e5vvUzKfho3uaB1xiuKoO5LiLEo90smL0aqVZeoCnbPgQtukaLqLwGCyyKI7HYdJgu1Bzc4vN8uttbV1DWGNm+hTJUPGTmvvKTTsgfEA7rAUPKGxWzvod7lmPkBoljkvWggO3RMs2ZOb0ZdLU39CWSaecOC2flfTboPT6KqIyKevbWrd2weF+Abzhkjp/ciw5Ydenu+lB4+tiMQ1529n4RTeZ0Af9mKHcidL6M6t7eUJoV5tXztmuO8T2XSsXqzpENgb+MHUYANa0rdQwMWNuTPeajndLuULPEmjoLYZKscmDBr+u1GjYvy6i5SFMzRpi4dOlWFDXc2wceXtBWsG2gf8BWsS6kYBmkCR7rinv5UE1seuCmiTs8COyEfAY7KLvBLJpxMRPIouS2G2rK+stYwDHM516wRiS0xM7irpU0LgqYlhLYYUml9yYDBYsnntMUJXKWMMGkKqKtfBmOYEXTblxqS5soAAl+JiK2t+A0hU9AK0oOFsZ3RzlrBpEDS6xFbS9NQiy6JtY7BfEqMY15zxAJa3kqsBRfSU8Ll2f7qu39q/JkCUVYMgPGOKXmNkaaXjfSPWYnp9+OqiQ8tr6ezXAX3DOB2PmldRUuSaNVd17Doi40PVMUl7mG9ofHzEYkAgXgT54dZFxBfAn3hDYzy8PY3RXz+Iy3sLK9DNdM/kHS0Ngbb3hok0Hw9EWjGUMFCng1J+k775zvR5Jk+uoLwHLiLKaYeoUE6Es2LHJ1qGFl+PdRC8FDtRWPx+zQ2RZCSrvcDdnlpWdzJZ1tLLymRow549W0R6ozDBxQxGBLZG/vVsDIxWGhddDj0z87Fwc2miEVZptWaRUdB3MkLLZuuU0AmQVYchuOT2lRJeW6psLmwjn2fo4k0aS9I0mXNTaWGFrNOmtBd8GU/JaZonGyO2Iksx5GdJrqK/im7OvVM2wNHqWJwDuEyRxUnp0HdETWFgtHfzP86Jo8TmnRIxC9GW1vqtRcWzzQdYbzD11PiJQrrmyoV/MQgyoidy1369eqhQ8S2vOl4d81OsTnQGaXMmzEX5MC67oq09u7s8g5zwBqUkCbz063Z2K15YFO9vmFjXur+JIZhJHJxz0Cc75RLNXUV5vAMje/oJFwOZys/7Ar167q1iBvkMdUPeB2zTk3ciwE/fldmwe0y1A9+n1XjfGzp+EnMcge5r88aScaK6aGC+x6zS+KcnXnzwGLQtKtV6EzDKxSzRRNQ7Y8U4p6sIiypmIJS5AP5dNmFq6E53jqetv0F4e9YQHVtqGh32maFxDKLlL+O/1LcolaXiG+ywwnyq9XGwl/c6ID3TIh4GBnyH7YMrhu3wnwCNkg0PTDeEGbxwgoPzbT2+i31N3MKmHPULrz83zMOu7M1VZiCaBiTPQoFjm+jv/gq4c+EZI0oMh6mjAvlpOI/i/xNoDe3qa6s2zUY13qE0bahB+A3UKjO0aoiFiVRaQV9KEM0opagjAwyunH3Qlbl3IG1LSZBroV1G/aMp28/cLWH6rtYq2udSXFOf1eI9aIN+n5cH+wOQ/qHidjveTAQMtUwmyv0wIikt0UIm38KA3vyoiXNqse4cDycZ6JHHcZPUmjGB6TATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADgAZABhADkANQAyAGYAZgAtADgAMQBjADEALQA0AGIANwBkAC0AOAAwADEAOAAtADAANwAxADkAOQAwAGIAOQBmADMAZQA1MHkGCSsGAQQBgjcRATFsHmoATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABSAFMAQQAgAGEAbgBkACAAQQBFAFMAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIIEBwYJKoZIhvcNAQcGoIID+DCCA/QCAQAwggPtBgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAjLT09xL/VEvAICB9CAggPA3/5BdfJosSMyjyT1vGtUjdpSQNFlrnwLvao+PGGuOkLCmeFtCL6k/IGdtQyrIwTu5+kjYWdgCXYgvGVuhA8tlmfqkj2HJ2PmARUcS0VF3HOl72kF4StIrbGDGQhBKkifOVAD7osMg8Kf75flqrUZO1gFJCK7MXOvKyJ9JM0jiHJ3A7FKioeWezxxdugQ12dzIKjj6/OOEnp5KzfwuSONwOja4eI86iJKO3lhncvc+2Ar/OuRCNYY1RWWHNvCYb1xq5ce7p9WDmmeiGqaRTqYWJ6NpD0C34sL9p1sAWe+aR0Vpgize/tVRF+OFWUSUkG1o6UMZtPmH0/7/UFzRJgIo5d4zVdpYz5y5BVEyWxrJ4W+FAOyagtmOfknu/uDEOH55IzwNubHawwtSB56giynPj2NPj3b7TyABseO5XyLuWAi/ZsosZa/BTx0HjyF0fMuf+X2d5hAvl6Pu36t+h84DutPhHliB5cPbBNbbhEHFTLPI1nTJP6Lhc9fl/7npl5D5wq8ND9+IBSDgcPkVubX26UtawFATZfjc3pSULs3csWExcw4MBevdV2JHQ+83laVQ8wx0s3gOHYdAU4NQLH9HDuQUWMexazhMDNNXLvN72zhrfcfACKtpsuSpu1q/hEPS8vjBj4nsXA95pfgzGsJuOQliySU88d/4NfdtvOtp6Qvc8KUeI3QmNoKZRAQf6At+lZvt+qHzG7ZmKpcmU7EJ/N8askacp59rXVreFhBi9HAWpjLyqyNnGyNWH2upwOGcljOzPyw/EkFKp/lvU9sQu76Hf8u/nnl/N5JYIAANspzyZbkuenqmPoyxtWOzihjTZcgctcfp+O1MFJMpzDL6+/b+sv9cdTVa/tAgiELZEh5IRS3Aya/g3cuNdoyfX/e3ls+Cv9voQAEHj22GO3D/OtRwHw4QB9HbrUekoNpaQ2G8/W60z+7yO8a/L5blLRtKqgiYjpGhKesH9H5FQJ9j6C1Rf1i72wYbwIIUB7P2Da4pEvtrvYtXTaC1dtWViGFiVxnrOVGIUfZK/cuTfrZs3ZA7JF31JsjGclhQwlr6RyLBivQI7VmKpI6j2oT6jDKuBIWRLxRElxLUVURiZUGuodyGESjpS8k+noxnbm6UUZ1UJkUnYjz+4EpRrAtrXSNORPhh+ACctCfmpvAW+15A1YUx/FYIBnbKGOL85UqI4BoZooAm8ZFGRZ5TBR4gsiOHBfPtpEJiKZ2Y0lvsb/CFO3JlgZDuVzgitDZF5MWRIigDOzYWyHepcMvJampLyWUMDcwHzAHBgUrDgMCGgQU4nm7mmYqm7pKEuLLxH+xS4ai1VMEFLr8Cmmtz9aFU2OI4bJfAtf++7+m\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188415,\r\n \"exp\": 1545261015,\r\n \"created\": 1482189016,\r\n \"updated\": 1482189016\r\n },\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\"\r\n}", "ResponseHeaders": { "Content-Length": [ "3966" @@ -292,7 +297,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:03 GMT" + "Mon, 19 Dec 2016 23:10:19 GMT" ], "Pragma": [ "no-cache" @@ -301,13 +306,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "abe2a50f-0a47-4b81-a2d0-f3b52d6553cd" + "ad7f3f80-a1fe-4621-87fd-ce95decd478e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -325,22 +330,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/longSelfSignedCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbG9uZ1NlbGZTaWduZWRDZXJ0MDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/longSelfSignedCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9sb25nU2VsZlNpZ25lZENlcnQwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eb5044a5-e14a-435a-9681-e07ec4cd89eb" + "6e7c7c3b-f76d-45e5-8ae0-97ed2eed3875" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/longSelfSignedCert01/5b2079cae48449e5b4a03dd3a0ba3b18\",\r\n \"x5t\": \"WbKidbWJU-o_XD-ZwUIzLYp8Vrg\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQc5nVETnzQmaHLUj4r6Y37zANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMDIxMjAyNDQ5WhcNMTgxMDIxMjAzNDQ5WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDq4D6xlMvri/xwSUzXYDKEqsdF9O777NE9IChQV3ZAiFIr20VcXcm/lXaxN5qZ1IaDDsEJLMSFhHnsxh05rnzjZjhlz3rUsVyK/UKtmZubHodkFszwwGALPIiOX2NnJIPC3TMiOfuuV2+Xq6PKPq87uy3RpOfe5jMsUm08XpOComc49xA9tNQo8bdPLzVKzM4VJjyhXZ3iuOuxQ1KMH6zRFUF9e+n2wb+MIe+wjUaTsW6BJRUMCQ05Gta/o1o8SNZFgBlo5peAZupg25SUWhyGATJ38w4NYY87a1yvu5ZyCVOqokOaxSB3SshnJDkEkbidt1K2ZTzIUqlHJBIh5KWjAgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBRTNs66rw6P/AZ9Jc3RVGatddIS7DAdBgNVHQ4EFgQUUzbOuq8Oj/wGfSXN0VRmrXXSEuwwDQYJKoZIhvcNAQELBQADggEBAM7VcwXI4B+V9z2kSTrPCnZeR+KPlWIHEVN+UGhHyRM4b+rW4D2Iq3yTJ/3JRgnbHoreBk6fH0UFg1t5No+ciDwa9NSs/AM4xDQlLHqB2F7nYgnyDsWZMncY8GnDAVbSy2NYD3A76f+pnYAB7/QVTryuklF6PcIY/I7QaSYaA8A9iaV0W39RtEUmTeuNoaSPCgMrziL3xkbCgPzb+fO3D2jGN+Q0MfzeMY1FDv7XH/5p4gdbXD7oO15+O6+0sQCSjnOdg1+MKyLNHk+AIDuhc9bmzGapGy18jxmXPm2kF2eSImC/aTqxyyW66wybuaj78kcZuUdlhP1Czf0muthEvls=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081489,\r\n \"exp\": 1540154089,\r\n \"created\": 1477082089,\r\n \"updated\": 1477082089\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082082,\r\n \"updated\": 1477082082\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/longSelfSignedCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/longSelfSignedCert01/0f4c7943215e487b85cd769dd891dd01\",\r\n \"x5t\": \"AHRzeVzkRAPJe3VX6Wg-_Y4tblw\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQP67LkHCuS+W67oLumOkVcjANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMjE5MjMwMDE1WhcNMTgxMjE5MjMxMDE1WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDJizRQE2+PqoyglHcjml20QCdwgKQyYVW6lELkOJ83mAeqZAtEzMpr1PAR1ifoQRCxT2Hh1iiNLsBpv2lvfMi2NktO8TqfA5DqwfJJzds7FcMwUvXfK9IUnCNXTVYreNr13XTQe/wemRNLRxhFhTx+zNRD0wF4YAEPDmOGGtdDqb8frpI9nuUZ2vetQZUYLYJCjFrJ84wII31DwoyxWS0d3q1E9Zfe1tKrM5EmFY1jW1RWAhgcvTLYCblx084U/oD0PTcGUq2A6I9ulsjHE5dKWg6mHAznCSlQ9GKWq7pekXrC+pLSALzz8p6ACyX/OuGjL4FQzHx6hH0U0sC2Wlj3AgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBRFBZgo1tZFswYLInoYvgXBaUZULjAdBgNVHQ4EFgQURQWYKNbWRbMGCyJ6GL4FwWlGVC4wDQYJKoZIhvcNAQELBQADggEBABFIlF498XOKBgrzHlvbj5eAMhmg9gwmIXySY+Micw5hsUrsIryi8Y26yjMnJYwPDR4b8Mqs2eFPmU4AwKWpA9ljuTa+y4BV0u+7WWR6GnoauzuY4Na34t+5R5/yRLHImBz44+QjVe7c0KoJ7x0Gn+4E8mWFxDULyKcEwHwJhFFB7TzuZmcA3EZfQCfl0CDIaVF1s6cjnzAW6cp+/RtC2f7GFW1Xhye+t4mru2BZ3pMsLKDKbO2mw9yipR23Fss1SOOp+8me18MF1QhO9Me20qOkjYOKoNuM2eTqd33obepoLhHAL1dxKPED4eDta2eO15DxrBGclm5BGl1byUNRxxw=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188415,\r\n \"exp\": 1545261015,\r\n \"created\": 1482189016,\r\n \"updated\": 1482189016\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188999,\r\n \"updated\": 1482188999\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/longSelfSignedCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "2452" @@ -355,7 +361,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:03 GMT" + "Mon, 19 Dec 2016 23:10:19 GMT" ], "Pragma": [ "no-cache" @@ -364,13 +370,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "73250df9-76b3-49a5-8349-712e16ca74bd" + "58e29d46-b90b-4880-8f48-42cab9ad6cea" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -390,8 +396,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateManualEnrolledTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateManualEnrolledTest.json index 65d1113b5af3..509d81b1c065 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateManualEnrolledTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateManualEnrolledTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/manualCert01/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbWFudWFsQ2VydDAxL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/manualCert01/create?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9tYW51YWxDZXJ0MDEvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n }\r\n },\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "475" ], "x-ms-client-request-id": [ - "7a2809da-adaf-441f-a562-a2d8a46ed54d" + "c46b4d09-e8d7-48f2-9d6d-9201e3386072" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/manualCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkKuQG1Rji26RMERuUbmeCREkxdYPFvENPr7SMWTFzmpDCGDenu9qynYBNUbCKWLV1FyVJw4b0xuK46zsIj6GbbvtP69OddlkKTvSLlLBSk9/M1Q0Bx4ub19EvLFsapfXnVa4dRHwVLqTmI+E4zx8ca+VBpfnK50whhl5Pw4vTvWGg7I4GvrR3huNUsFdluCmN3P71tLI/t7aQNQc1uciUDYI8uqM4QNeZocu5L3xShwTAlZz7ZfDFQg8nKh6oNSLf3yh2I4Nj06VCm6GAoGvXgorKYZ9QAe8RrvgLNhT5eg0G6fwLqJM6KeS6jrxIFhxQcQiagT5E/ptpTQpDQeqgQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAFOImrwz1aZzbrUuRHMleV9ITubf0Dv6dfr6kpovh4lsXuyNTNp4XqrIlZWEviXF426LXS/VMFg1TKK+cnH+wmbcPuqoKW5jrmWjdMoMiOnKQX0C6HGTj7YhB7HkHAFopo7yBRFOndjScZDa54D/d+8u7FUsjtqbSh0fdzAz6JVpn9dqKvSQEjC72PDSa6htoV2plaBOGH9L/ANsoqXlGsns1fIUq9i30b6ReC6+RoLpLKS99sKO8g4ph8TPi2BYz1L7lRTy/4NhF1O52bTTCktM5DFtdBCONE/WX1p1TJ+CrKtjMlI9LJq1cOCC+XRyqUrPqQslhLpc9dvPFR+oRTo=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Please Perform Merge to complete the request.\",\r\n \"request_id\": \"4ad1a094a27f4a1f99ddffa90838ad37\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/manualCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnUVi29AP28rrz7PTp11NYc3BfdUsLZM7Eg24ni3moliLu5n0Y6R2rxZV65N1ZCXqC9P/FD5610Apy6lj/28d7GXae+emmHLtWsVDPeT6+WwBguVN9xJQf5nGdhmwSXWbpAI1z6dGwDhstqITlOexqunRNEqkqN86SWp63Tlxwn1me2g+JLq4sFm1Oa6N76WxhE92EhBnWOPeNtiQ/spfYYRZdue7i/VvEugPCUXsaUFVjJ/Ka4YZbpscEycyVuLX5BJycg8TvrCEDeZ8F5o8iuV91k+k5pXeOiRcsW5yCwkqoQCcqhdyNxw+U1Gne6/U6I0UkP26pwhf2CCpIP1VAQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADTLoHCOrq/x+BOW4N6yMTPAJHCKN8ASoxG0G2kG79h45LWIGPndYGrlRZexxuIyVpIh/GAaTPT6PTyWhf702fAXk0E+j1PHeEHGUwd7OEDrN4lDEeGLlstbXMrDAj8ZFSaJ8Py29+ikxG3XF+o/lYvvqgV+UwRkfMgOYFL7C7//4rxoUXrwy+vud0IlaWpudrBnR2FXbNeGI1ewFKYPcU0r9OI6gr2jkIS2hQQ16RY+dmnL7xGeezSKDUV/5Q/seNk0tB4o4A+manDUJUpoBT0h/hUKlI5XnqTraMz/usmjHBBtGhll2n1mb5lSsFCs4f0il+7ysPHTLQTI6ndYI34=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Please Perform Merge to complete the request.\",\r\n \"request_id\": \"0e67e2bd62c54723948f2a18c87335af\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1304" @@ -37,25 +38,25 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:27 GMT" + "Mon, 19 Dec 2016 23:10:44 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://testvault1020.vault.azure.net/certificates/manualCert01/pending?api-version=2016-10-01&request_id=4ad1a094a27f4a1f99ddffa90838ad37" + "https://testvault1021.vault.azure.net/certificates/manualCert01/pending?api-version=2016-10-01&request_id=0e67e2bd62c54723948f2a18c87335af" ], "Server": [ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "9c6bc7e6-43db-4cf4-b2b1-e8cba588cfa0" + "0554a21c-e673-490b-8d11-b754ffc28967" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -73,8 +74,8 @@ "StatusCode": 202 }, { - "RequestUri": "//certificates/manualCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbWFudWFsQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/manualCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9tYW51YWxDZXJ0MDEvcGVuZGluZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -82,16 +83,17 @@ "application/pkcs10" ], "x-ms-client-request-id": [ - "25861d59-818f-41c5-92bf-b26d9ce48b6b" + "8d3a9863-3a98-4e28-acea-34f52910bf5f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkKuQG1Rji26RMERuUbmeCREkxdYPFvENPr7SMWTFzmpDCGDenu9qynYBNUbCKWLV1FyVJw4b0xuK46zsIj6GbbvtP69OddlkKTvSLlLBSk9/M1Q0Bx4ub19EvLFsapfXnVa4dRHwVLqTmI+E4zx8ca+VBpfnK50whhl5Pw4vTvWGg7I4GvrR3huNUsFdluCmN3P71tLI/t7aQNQc1uciUDYI8uqM4QNeZocu5L3xShwTAlZz7ZfDFQg8nKh6oNSLf3yh2I4Nj06VCm6GAoGvXgorKYZ9QAe8RrvgLNhT5eg0G6fwLqJM6KeS6jrxIFhxQcQiagT5E/ptpTQpDQeqgQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAFOImrwz1aZzbrUuRHMleV9ITubf0Dv6dfr6kpovh4lsXuyNTNp4XqrIlZWEviXF426LXS/VMFg1TKK+cnH+wmbcPuqoKW5jrmWjdMoMiOnKQX0C6HGTj7YhB7HkHAFopo7yBRFOndjScZDa54D/d+8u7FUsjtqbSh0fdzAz6JVpn9dqKvSQEjC72PDSa6htoV2plaBOGH9L/ANsoqXlGsns1fIUq9i30b6ReC6+RoLpLKS99sKO8g4ph8TPi2BYz1L7lRTy/4NhF1O52bTTCktM5DFtdBCONE/WX1p1TJ+CrKtjMlI9LJq1cOCC+XRyqUrPqQslhLpc9dvPFR+oRTo=", + "ResponseBody": "MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnUVi29AP28rrz7PTp11NYc3BfdUsLZM7Eg24ni3moliLu5n0Y6R2rxZV65N1ZCXqC9P/FD5610Apy6lj/28d7GXae+emmHLtWsVDPeT6+WwBguVN9xJQf5nGdhmwSXWbpAI1z6dGwDhstqITlOexqunRNEqkqN86SWp63Tlxwn1me2g+JLq4sFm1Oa6N76WxhE92EhBnWOPeNtiQ/spfYYRZdue7i/VvEugPCUXsaUFVjJ/Ka4YZbpscEycyVuLX5BJycg8TvrCEDeZ8F5o8iuV91k+k5pXeOiRcsW5yCwkqoQCcqhdyNxw+U1Gne6/U6I0UkP26pwhf2CCpIP1VAQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADTLoHCOrq/x+BOW4N6yMTPAJHCKN8ASoxG0G2kG79h45LWIGPndYGrlRZexxuIyVpIh/GAaTPT6PTyWhf702fAXk0E+j1PHeEHGUwd7OEDrN4lDEeGLlstbXMrDAj8ZFSaJ8Py29+ikxG3XF+o/lYvvqgV+UwRkfMgOYFL7C7//4rxoUXrwy+vud0IlaWpudrBnR2FXbNeGI1ewFKYPcU0r9OI6gr2jkIS2hQQ16RY+dmnL7xGeezSKDUV/5Q/seNk0tB4o4A+manDUJUpoBT0h/hUKlI5XnqTraMz/usmjHBBtGhll2n1mb5lSsFCs4f0il+7ysPHTLQTI6ndYI34=", "ResponseHeaders": { "Content-Length": [ "992" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:27 GMT" + "Mon, 19 Dec 2016 23:10:44 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e8a8d477-5f50-4827-b121-872a96e910c6" + "3cc4b64a-7524-4d0e-a586-785584b5f0c5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,22 +141,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/manualCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbWFudWFsQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/manualCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9tYW51YWxDZXJ0MDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "375a511e-b187-41ce-8d8d-f71e242ba645" + "e3025877-830e-4145-98b0-ac42c183734e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/manualCert01/84c1df2e72c54e3c8490bbfbc1504d92\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081526,\r\n \"exp\": 1508618126,\r\n \"created\": 1477082127,\r\n \"updated\": 1477082127\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/manualCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 12,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082127,\r\n \"updated\": 1477082127\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/manualCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/manualCert01/2a3d4fd0e7e54991b181d346eae244d9\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188443,\r\n \"exp\": 1513725043,\r\n \"created\": 1482189044,\r\n \"updated\": 1482189044\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/manualCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 12,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189044,\r\n \"updated\": 1482189044\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/manualCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "993" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:27 GMT" + "Mon, 19 Dec 2016 23:10:44 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "06fc6cfa-adae-457a-8aad-a961aa0e963f" + "12e43de3-fd09-491a-8e51-614785a73bb2" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -204,8 +207,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateSelfSignedTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateSelfSignedTest.json index f734d6f25453..51065a6aa8f9 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateSelfSignedTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateSelfSignedTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/selfSignedCert01/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvc2VsZlNpZ25lZENlcnQwMS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/selfSignedCert01/create?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9zZWxmU2lnbmVkQ2VydDAxL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n }\r\n },\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "472" ], "x-ms-client-request-id": [ - "bcdd1caa-6f06-4b4a-9765-116c4cd56cf9" + "f2723b11-67e9-4eae-b806-eb32eb37e1db" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0AjeDiWvk8UYUDTXRKvTpAFJnwQer15TWiWgQr+yant8IVmBUz9NQApcULZbI4SoGdZ1aAC3nKJYSwsKyMzJ6lPTJPXfHDPyYhzDLOWTcyAKesBKbRUo6OvFWhTN+MTR0u7F8N2P0zYU/VsAnz1kMfIy/TWH2qzJcG0S0PuWzzZaKTw03LFJs/pAs+BkKgTAfbyBjShwxQ44luH8FT9HJZjbG3O5gQCZlEda82WBnGIcOkCW3fIszhpl2NxXYROh3XDgBmt4molCbaa3cegk/qhR9i/Kno27m01h2EooXA1Sjm/2jTmnxYqRb7nrrlyp+l/HX4kQucA1P18ZnmrwtQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAERrnpCWOtbmk1fj5SVmTmEWDWth/LAMemta9YcXWGjs5ZFQ0fGW7dPSoPHWGCUUlIZ6qloKIXlA30OsRJ+QY+BeL7EC0t9PRAVBlo9SOtBi0/+cD33B12h1q248s2UZPgIcxlvtD4ASTz0qJogMOZe32FT9nWIAFVX7Kc3W38gBh16iRanRtym4M8Qua+qhfQlWUkRYO/thVC+jGWvMTe07IPAofTvTDtDO7uMQPF+m8u9VOZtqWQB7BFyqRRBhWAp4mSPprLknSjk0f5YW76NZZoQtHx5TLBeAZqRB5BLmhM8ijj8SN0vSiJhYOssjghqLXy9J2JiGv1dreDVkckg=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"3904cc227e0a4c639f93f10623a0f0cc\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqe8aINnShK+wQC8QU7fwsviQc9+yiOnqU3adXA6qNjn21HTdRBa7cyQIk1STxHIBLTT/GaEJwqsUi6UvZaPEHokOWsr1bP9M7xOPTicBcRyMrr6bOxsmGczYtu1z2TzzXDD7q7IEignE7/LowGEaIADCIU9iuWk7TiJ+1Q/VLh/B3xPsgVjY+n7zEQ53gBiDHSl7XfELfwmslOQ28TVNogUyXsxHcVxQQYJeI7HqqY448LeleK69Ld86lkBixLEm1pD7HSbEx3WI2lyUQAGR6hD3YFaiIWVpQeEyI7p1jmtQlnfZdEL4q9wdlEEcwd3h3PAZpEBhCixahF54fci3pwIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBACiLeghirF+yCuYGVUPDB3wKQJn2iLY1za9ncxCehIVqOkFK09AphzoxF6Yid90AKCaa/dT/Ohm7oTyVQ+YcZnT00LUNFVG48AOE8YDiw9tjAG9OORsAz80xnv2qaLw2TCVIQ6NjrI83LqAm1GJ8rAnpdD/ZTuWM7TvSO5g/jm/Q0oSuKpMgj3YxpwgB9Ac6YEfVzOnm76OkUcpvR5MS4BoTfRv4thdSnU+uwqxM+HtdSVTbHQeC2U/hM1cyzDMpl1rZRklmiEOoPUeDasEIBVTJhAxR8xAeKJJD7Wzj4mJPw4UMvF8zQZzW8EKYvB1hkVYY+HQ85L+XcXd8lco7hU4=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"6faacd568ab049a2803861e8dd3ae21f\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1375" @@ -37,25 +38,25 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:06 GMT" + "Mon, 19 Dec 2016 23:10:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://testvault1020.vault.azure.net/certificates/selfSignedCert01/pending?api-version=2016-10-01&request_id=3904cc227e0a4c639f93f10623a0f0cc" + "https://testvault1021.vault.azure.net/certificates/selfSignedCert01/pending?api-version=2016-10-01&request_id=6faacd568ab049a2803861e8dd3ae21f" ], "Server": [ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a7b96348-23ec-4a3b-947d-d1234d30e560" + "dc8ff5eb-f254-4863-b689-e5b85546b20c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -73,22 +74,23 @@ "StatusCode": 202 }, { - "RequestUri": "//certificates/selfSignedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvc2VsZlNpZ25lZENlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/selfSignedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9zZWxmU2lnbmVkQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cb35f64f-d000-4ff6-a321-8b64b796effb" + "0a0a69fb-064d-4c25-9c68-f894076193a6" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0AjeDiWvk8UYUDTXRKvTpAFJnwQer15TWiWgQr+yant8IVmBUz9NQApcULZbI4SoGdZ1aAC3nKJYSwsKyMzJ6lPTJPXfHDPyYhzDLOWTcyAKesBKbRUo6OvFWhTN+MTR0u7F8N2P0zYU/VsAnz1kMfIy/TWH2qzJcG0S0PuWzzZaKTw03LFJs/pAs+BkKgTAfbyBjShwxQ44luH8FT9HJZjbG3O5gQCZlEda82WBnGIcOkCW3fIszhpl2NxXYROh3XDgBmt4molCbaa3cegk/qhR9i/Kno27m01h2EooXA1Sjm/2jTmnxYqRb7nrrlyp+l/HX4kQucA1P18ZnmrwtQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAERrnpCWOtbmk1fj5SVmTmEWDWth/LAMemta9YcXWGjs5ZFQ0fGW7dPSoPHWGCUUlIZ6qloKIXlA30OsRJ+QY+BeL7EC0t9PRAVBlo9SOtBi0/+cD33B12h1q248s2UZPgIcxlvtD4ASTz0qJogMOZe32FT9nWIAFVX7Kc3W38gBh16iRanRtym4M8Qua+qhfQlWUkRYO/thVC+jGWvMTe07IPAofTvTDtDO7uMQPF+m8u9VOZtqWQB7BFyqRRBhWAp4mSPprLknSjk0f5YW76NZZoQtHx5TLBeAZqRB5BLmhM8ijj8SN0vSiJhYOssjghqLXy9J2JiGv1dreDVkckg=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"3904cc227e0a4c639f93f10623a0f0cc\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqe8aINnShK+wQC8QU7fwsviQc9+yiOnqU3adXA6qNjn21HTdRBa7cyQIk1STxHIBLTT/GaEJwqsUi6UvZaPEHokOWsr1bP9M7xOPTicBcRyMrr6bOxsmGczYtu1z2TzzXDD7q7IEignE7/LowGEaIADCIU9iuWk7TiJ+1Q/VLh/B3xPsgVjY+n7zEQ53gBiDHSl7XfELfwmslOQ28TVNogUyXsxHcVxQQYJeI7HqqY448LeleK69Ld86lkBixLEm1pD7HSbEx3WI2lyUQAGR6hD3YFaiIWVpQeEyI7p1jmtQlnfZdEL4q9wdlEEcwd3h3PAZpEBhCixahF54fci3pwIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBACiLeghirF+yCuYGVUPDB3wKQJn2iLY1za9ncxCehIVqOkFK09AphzoxF6Yid90AKCaa/dT/Ohm7oTyVQ+YcZnT00LUNFVG48AOE8YDiw9tjAG9OORsAz80xnv2qaLw2TCVIQ6NjrI83LqAm1GJ8rAnpdD/ZTuWM7TvSO5g/jm/Q0oSuKpMgj3YxpwgB9Ac6YEfVzOnm76OkUcpvR5MS4BoTfRv4thdSnU+uwqxM+HtdSVTbHQeC2U/hM1cyzDMpl1rZRklmiEOoPUeDasEIBVTJhAxR8xAeKJJD7Wzj4mJPw4UMvF8zQZzW8EKYvB1hkVYY+HQ85L+XcXd8lco7hU4=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"6faacd568ab049a2803861e8dd3ae21f\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1375" @@ -103,7 +105,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:06 GMT" + "Mon, 19 Dec 2016 23:10:20 GMT" ], "Pragma": [ "no-cache" @@ -112,13 +114,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "73981d34-5955-4f9d-a164-e8d0090f4f92" + "27ab4f80-04af-4e2a-aee5-041812d80872" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -136,22 +138,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/selfSignedCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvc2VsZlNpZ25lZENlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/selfSignedCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9zZWxmU2lnbmVkQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3ccb03ad-d4f4-4555-b1a4-8c61dd5faf90" + "55ca971c-a17f-4329-b8c1-636c3b0e8fa1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0AjeDiWvk8UYUDTXRKvTpAFJnwQer15TWiWgQr+yant8IVmBUz9NQApcULZbI4SoGdZ1aAC3nKJYSwsKyMzJ6lPTJPXfHDPyYhzDLOWTcyAKesBKbRUo6OvFWhTN+MTR0u7F8N2P0zYU/VsAnz1kMfIy/TWH2qzJcG0S0PuWzzZaKTw03LFJs/pAs+BkKgTAfbyBjShwxQ44luH8FT9HJZjbG3O5gQCZlEda82WBnGIcOkCW3fIszhpl2NxXYROh3XDgBmt4molCbaa3cegk/qhR9i/Kno27m01h2EooXA1Sjm/2jTmnxYqRb7nrrlyp+l/HX4kQucA1P18ZnmrwtQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAERrnpCWOtbmk1fj5SVmTmEWDWth/LAMemta9YcXWGjs5ZFQ0fGW7dPSoPHWGCUUlIZ6qloKIXlA30OsRJ+QY+BeL7EC0t9PRAVBlo9SOtBi0/+cD33B12h1q248s2UZPgIcxlvtD4ASTz0qJogMOZe32FT9nWIAFVX7Kc3W38gBh16iRanRtym4M8Qua+qhfQlWUkRYO/thVC+jGWvMTe07IPAofTvTDtDO7uMQPF+m8u9VOZtqWQB7BFyqRRBhWAp4mSPprLknSjk0f5YW76NZZoQtHx5TLBeAZqRB5BLmhM8ijj8SN0vSiJhYOssjghqLXy9J2JiGv1dreDVkckg=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"completed\",\r\n \"target\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01\",\r\n \"request_id\": \"3904cc227e0a4c639f93f10623a0f0cc\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqe8aINnShK+wQC8QU7fwsviQc9+yiOnqU3adXA6qNjn21HTdRBa7cyQIk1STxHIBLTT/GaEJwqsUi6UvZaPEHokOWsr1bP9M7xOPTicBcRyMrr6bOxsmGczYtu1z2TzzXDD7q7IEignE7/LowGEaIADCIU9iuWk7TiJ+1Q/VLh/B3xPsgVjY+n7zEQ53gBiDHSl7XfELfwmslOQ28TVNogUyXsxHcVxQQYJeI7HqqY448LeleK69Ld86lkBixLEm1pD7HSbEx3WI2lyUQAGR6hD3YFaiIWVpQeEyI7p1jmtQlnfZdEL4q9wdlEEcwd3h3PAZpEBhCixahF54fci3pwIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBACiLeghirF+yCuYGVUPDB3wKQJn2iLY1za9ncxCehIVqOkFK09AphzoxF6Yid90AKCaa/dT/Ohm7oTyVQ+YcZnT00LUNFVG48AOE8YDiw9tjAG9OORsAz80xnv2qaLw2TCVIQ6NjrI83LqAm1GJ8rAnpdD/ZTuWM7TvSO5g/jm/Q0oSuKpMgj3YxpwgB9Ac6YEfVzOnm76OkUcpvR5MS4BoTfRv4thdSnU+uwqxM+HtdSVTbHQeC2U/hM1cyzDMpl1rZRklmiEOoPUeDasEIBVTJhAxR8xAeKJJD7Wzj4mJPw4UMvF8zQZzW8EKYvB1hkVYY+HQ85L+XcXd8lco7hU4=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"completed\",\r\n \"target\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01\",\r\n \"request_id\": \"6faacd568ab049a2803861e8dd3ae21f\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1289" @@ -166,7 +169,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:27 GMT" + "Mon, 19 Dec 2016 23:10:40 GMT" ], "Pragma": [ "no-cache" @@ -175,13 +178,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "f0fcff0a-3f08-47e4-a3a4-95242f5b1202" + "33d41c38-2974-4a3b-9044-68ac197831af" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -205,16 +208,17 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7901b9ad-60be-469f-9dd8-314e89904d70" + "70bca587-7d31-44ea-a98e-a048dcdb37e9" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\",\r\n \"x5t\": \"xum-Nyiy-y6T3Q-0yvo9UPM-xho\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQGu3+BenNRpmDAf/CZhTDazANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMDIxMjAyNTIxWhcNMTcxMDIxMjAzNTIxWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDQCN4OJa+TxRhQNNdEq9OkAUmfBB6vXlNaJaBCv7Jqe3whWYFTP01AClxQtlsjhKgZ1nVoALecolhLCwrIzMnqU9Mk9d8cM/JiHMMs5ZNzIAp6wEptFSjo68VaFM34xNHS7sXw3Y/TNhT9WwCfPWQx8jL9NYfarMlwbRLQ+5bPNlopPDTcsUmz+kCz4GQqBMB9vIGNKHDFDjiW4fwVP0clmNsbc7mBAJmUR1rzZYGcYhw6QJbd8izOGmXY3FdhE6HdcOAGa3iaiUJtprdx6CT+qFH2L8qejbubTWHYSihcDVKOb/aNOafFipFvueuuXKn6X8dfiRC5wDU/XxmeavC1AgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBQRu+2ZtCV/U4TDnvhmC9IAREfurDAdBgNVHQ4EFgQUEbvtmbQlf1OEw574ZgvSAERH7qwwDQYJKoZIhvcNAQELBQADggEBAKluT52SPG15kBk1zerChujOPEmIuVm0ih2hTcKUJnvNVYOYx7PrqKB95xYp/S1ywHgqXdgxPnwXBVUEqSKetsFRjIDsByWZo0shi7imvcwiGN/Lx/7oOwbaL1xxviG31AI6wpECXCIo5pifrvaaS8TFhhobeWLKuxSchO4OQir9YOpMmWgd3pInfn+zKdl9DFeVQlKj6DhczYrYnSVOcSqZngq/nnkrT41Ikzf7f6NFCIpBVrc21soHIYCD4q04rVcw6SYYhW0ai/FZS5FFMh27JzPvqBGQJbLjMLOMyESdG73GuC2MFoEnMIwrM0IoEC/C6VwwI8W2Q8vvlstp2vg=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081521,\r\n \"exp\": 1508618121,\r\n \"created\": 1477082122,\r\n \"updated\": 1477082122\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 12,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082106,\r\n \"updated\": 1477082106\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\",\r\n \"x5t\": \"bn5Uz8I-fksX8SgKSmIJcHo1VWc\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQTQi/4JAhSc6Ckuxva8beWjANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMjE5MjMwMDMxWhcNMTcxMjE5MjMxMDMxWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCp7xog2dKEr7BALxBTt/Cy+JBz37KI6epTdp1cDqo2OfbUdN1EFrtzJAiTVJPEcgEtNP8ZoQnCqxSLpS9lo8QeiQ5ayvVs/0zvE49OJwFxHIyuvps7GyYZzNi27XPZPPNcMPursgSKCcTv8ujAYRogAMIhT2K5aTtOIn7VD9UuH8HfE+yBWNj6fvMRDneAGIMdKXtd8Qt/CayU5DbxNU2iBTJezEdxXFBBgl4jseqpjjjwt6V4rr0t3zqWQGLEsSbWkPsdJsTHdYjaXJRAAZHqEPdgVqIhZWlB4TIjunWOa1CWd9l0Qvir3B2UQRzB3eHc8BmkQGEKLFqEXnh9yLenAgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBSgcqSgsLuoFJpsnPS8NP45CPLAbjAdBgNVHQ4EFgQUoHKkoLC7qBSabJz0vDT+OQjywG4wDQYJKoZIhvcNAQELBQADggEBAFDmhBCFYNuw0ZHBI04NWgSuYZ/g6pbp0uzb1SS9Ka/nGVrY1T0fWHzSmZYq9Fn/xM/HYtOFuWg+A7zV+oQBaFkKsIC7L/977ZbEBXGs6QgpBRZRTpvKfgF9KXDdSoHML98Ud2dVmUenykBdYe9+9FOo5AaYSfJLHQJV7hBCwmeZKOVUfjfdHNQoZTmEZfYb6bXu+nZ8e85dL8d2Xm3qnfmTyg2g+tUNR5YEDEjSAP/VGom6AM4XrNa3sYbFw9EmcIn6gHKMqCEX1FpmS2zZiTVjwgAd6oDX2ijaObl1DCtoX9g0PzB01tHlewTYc11K3aBM8l5YdmG/KpSQ8k4f9Cg=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188431,\r\n \"exp\": 1513725031,\r\n \"created\": 1482189032,\r\n \"updated\": 1482189032\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 12,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189021,\r\n \"updated\": 1482189021\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "2432" @@ -229,7 +233,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:27 GMT" + "Mon, 19 Dec 2016 23:10:40 GMT" ], "Pragma": [ "no-cache" @@ -238,13 +242,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "23fbb21b-6af2-4685-b839-4558a8a806e9" + "a90b8b39-e03a-47a1-af02-50b9e0de7441" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -262,22 +266,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvc2VsZlNpZ25lZENlcnQwMS9jMzNiZjJlMDRlNzY0NDRiODNkMjkxMWM3YTQ3OGJhZD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvc2VsZlNpZ25lZENlcnQwMS9jMWIxZWE5NDMyNmE0YWVmOTc1MmQ2NmEyMjliMmJjNT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3b49019e-d474-45d6-9a5d-0602f1f40e84" + "0c3d9344-23d7-422d-b026-01de72c296fa" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"MIIKfAIBAzCCCjwGCSqGSIb3DQEHAaCCCi0EggopMIIKJTCCBhYGCSqGSIb3DQEHAaCCBgcEggYDMIIF/zCCBfsGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAgXFp7nS5xKpAICB9AEggTYu6/69KGHpsaId3EiUaUXGVdG2B9v66QwCMVNPNUa8JqRcqy1WtloJhnomKbRyZx4eBwV70yls5XjClVMET1Nl3ZH8VCDxy12ALo0SDVXKHXPCcRNWbZu5Yt7yQfAUveGmlk5gE+ecGGZA8TXW4Edu7zze2Ff+KvLAnIeE82cVKWl972Nx6pGb7uJCatXD6+7VBjq6gOWKundelck2IWrbcFJUGxB2becJ4+xKSM/WElkitWtkFbQjW5krXHaZ/07G3RMTElw+GW7fkgBNZKkaeU2tS2RCGJc1F/mhDH9yNrCY1JiUlHfnLo0VV33+oLo5Uoxq0vP/GUoKCQuXDRv89N5bicKoW3UMuhVc7A4z2mReYp+Vm/i4kk1WRh3izzyNp/PzYR1qoUEf8jH+7mEy1whibZEyXEjjmZEzQhtiZlU9Yccd2GoiCFx6pbhIVv0ujek4oKK9/ctc4isYOQ2/PLYoYLXESeEkGEegUh6Dx0wy7Vjk/ZDRNN9g6Hwf7meynTe07tyTabI6uoz7viq7Yow4L5GpAG6vj23U1LwagkfbCqbewoEYPzUXLZq1h0/vsu/l1SsoxmM5jUnd6B7+jYHneih3kdmFvIwjDC9ZHJfqt6S1g+9ZuAmojAc7qnhXf3K815470WLSmNLjQhef6c1/WMDrsiRqHKk7Ihz1pj/qLFutSKjnHWxOeBfBQC2waOO+/FpmS3/226E2a0qKawN0JZ8/KzF8471rYQMFyteY0dfmlSY21fs4mdgO7vRB9j2b3kMd2WH26yq5M0iLZwFzHBEWdPNI+E6NP8jLB2vReVpZ6Lph82VOvGb8vC4da9QviBVUoR9mx6PJv27T8A13XAqZX4DcCd0egDjbbZX/HhcB0eUfK5bnJtY7gh4pQdimnM8IiybFE8w9LbSbv7dOd9W7PHfMNaixaYb6iqSgMnUvzWI4SOwQT0P2zhCnJr+SN2gWzwwFr+7yCT7fgaBB78GqnUgrqfzsThMjaKFWtWZh2JCrGm7o5xVzj1BQkQK/GBaRigiY2xnmK88DbSZTbPSd5LECqR5pj5uv9/Ma4dieYBOhZmm2Vd2LvdRfFx4N0wPovXgLUpzoqTxmJlvNsDw5P3BLgeOmIXN0j6Ir8s1oKY1CHKPif14owOPlyWqBzDJTKQdJ8c2AwuH6EoEvp6cFbsbT5HjbqsloE5DPe0uKGGLLEPjXRLeyvvqVbKU4odRhjiTxwo2vfBomrn10FXM1B239u1kcGDIpnP9Ce/pvBB8CfEpmF6oPlQU4VIUWbIs4fTHeV+pBC3KoIZOCRfgW2/nJYA/n34B8qTuzElfKIGIs4+5lwNuwRq5N7u+DiuJ6tSsUURdYTYsD7fhVAWokR7nrfCpBCPqvSWKe2UcbwerJoHGO6SE2SgnfQDb0ixlJ/Yiud9+TQxYJOCo1oT0tqePzNJUGoQbJgeWCjltlqHpTprV6kchcsr409FFCf7OOOPFlXTPMJ7bsP3Y/60c8o3MOnnodPJ0bnz742p4HXdnFsfCrlzaOfQ/4lB924DQCFvNVTxFbgm4sxZv6qZpvcwsmxtIoW3zqCRyDlBZgeTeIvw+Ue2ywOJBbdLIoYK570vyy4GldOHFiBWrWkPJaxvw1iLaZI9hFRR9cH0eqstgxzGB6TATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADUAYgA5AGQAYQBkADEAMgAtAGIAYgAzAGYALQA0ADkAZAA4AC0AOQA4ADcAZQAtADMAYgA3AGEANwBiADIAMQAzADAAZQBhMHkGCSsGAQQBgjcRATFsHmoATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABSAFMAQQAgAGEAbgBkACAAQQBFAFMAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIIEBwYJKoZIhvcNAQcGoIID+DCCA/QCAQAwggPtBgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAjjJWBAk82s/wICB9CAggPA4D67Pim80ImCKc6h2G9WpeyPXqdghk0oqe0rhuh5KBedIQLqmD5xb1NvXleTIus453PVfZVEgw1wkqqKZk743pa9Pg+hHodlY9uWgemXxyRzymyiaW96BrKfekhlIHCfAuu6qK5PypGvXsisvWlA4831bXmPrJlz8kuWuxSFRuaSOoorurYvtmNRZ/QWy/5c+i0RXgQGO9y1ux98I6C4KIg4i/XZs3dgrok3gUUeatbdck12sV2NZ/8W+Uk41Oy6blCWF/vwFE6wMj4hx9Nt+yMxpVxoL5sc5K++tHaGutUDIU0XVvtOv4loRNb2bRjSo0xZKKC4upOAUNOTs7c8MTIeZ6c/ulxlUdkUYMnsf6DjGfKVzoA9KvtEz0QCFv3CWpDviyc9VYv/QWa8K/pDtm7sHViccdAkMNyjzIrPO/Y/mIdS4UJQqb7ltqgTMxy7KLbCRw/mueeRPZytJR1aLjyJlW4S8yytCF/+NN19Hk7Se5EkiMc45T8ADpvg0Apq1lkOT+DNgDIy/kyrO64awc6xqvZ91evVFqSS1IPXz/qLbqr5m1N84VsMllW96QoxWRqFm4Iyv1slFRXHr9ikj2ShbN9LxuxBQwr+DfIMGXTfscdYMyCzi/xUip1Rf80di/ZW7sz1q07OimkQVlVKhrxD2DOmXr+iw8XTMBocLfTLRLlFPQ8QWNpWpB2EUR8s09oHByE6XTXa0PlHXljrw28yGrY8Gd6MiW9kq6JPW14WR/5u/wOMX0fBzSk4JOZFGNKNS8wWTJyqzQ6TzrfkyX7bTywp5klR6Bd7A+jhAVlYBpKXBPdZUNFzOorplivWhQGf1KfAc5Kj+OSVPAyWNbm3s+dHp8EhAEsKNyYGMkcGRR+ViSJ+EYGFC4ZzczjgXGyxqFKHcNZkdCMmAdmaJsKXKBPonOwkEKL/V2gYn3HrkUSLEpJiUAz9wejaQiXZv+YwIlnyvcFS0ILrJqFXFaGy4ZDlyNLnAsVmY/wT821I7BVsJ+fcRFKRo083UUOmfOx4ofAjrnN2BtDW+pqTzpcx2ATUyFYE/4bWSFh5L8P2tcEKPTnxl+ymHiPHCNbefLglLOvSyxMg+9N18ke+JvNb+KR4bLUiJPrrtML+k9Q38ngXOjNLc5YauSSgNIVpe24HbJuu+VsTThS0bZKvfNQ04illrKPCq3n+3gtvbswcFkCYxCPtxuBDgJZgRM/UG4hU5oGtzVIca7wgC1r3dCfYOEsRfLGzuiRy0dg8oYF0nhQubMB71fRh5XCPsu3UMDcwHzAHBgUrDgMCGgQU85Zt2xWoua/Ez/Co5TU+VmdyO80EFDdtpzPWoGOa9EXTcl4hDgjVfVwj\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081521,\r\n \"exp\": 1508618121,\r\n \"created\": 1477082122,\r\n \"updated\": 1477082122\r\n },\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\"\r\n}", + "ResponseBody": "{\r\n \"value\": \"MIIKfAIBAzCCCjwGCSqGSIb3DQEHAaCCCi0EggopMIIKJTCCBhYGCSqGSIb3DQEHAaCCBgcEggYDMIIF/zCCBfsGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAjc9ePOr4xI5gICB9AEggTYQ3rSygmbd/huXtxK0+reFlL7RmkS7cF5c/NnUM98OmhSk/Ma8kQJdooskG5xMW4A0VpnpwIm+X1cZJXYSZsja6cwGXrhnv1oekVeV2n27VrDMxM5LehNOLTjx5cEqL2i2NnwPqOaVfvFzQmrtyUpvPMo9da5B55Ht6FINko7cOmh5vxf+omtosFaacyI4f77H+gTpoooOVkXjqr/5DCDPlWna7k2f1+mjzKSrzzKFSrbbxiozMHwAmcon8nSuqpBCmKpyx9mF3IMNFSohK5wZ7GKo513cEgRS8xR/FoG0BwcmQ5ymJpvDjKNzXVcWfY+LegEKLzIB4H92XePAuV4W1CIZAiDP+YbSSc6127IIrj5Vy2tgsW6w+W/Qon3fUovHT6jAZDNpGawbDOEFrjq/4Z/F8LTj5RsWU9WxXxXpbsXnX1hFnhs6bw+y1iIzyzRS0xF82Jldt0/ZIJKWHiy9kiDA6AQY3M/Y2XAy1pM04TgYL8IVSnRadklP00iLz9mYvcXyszespamF+V2cBi+tOj4YY3buQwoA/DkmQqFFMFCAoHijw0E25NVP9zGuU5EDs15ne176OJdyTrNIUIwwGb06PPqpMQFWnr9O6gQdUXm8ClwA9xnphAT1IciHYWnmIoJjU3J4VvqslkEsGgOlXk0IFhD8oBnJE1FWJNNmGx8FBIvlB+mOfDNEIiXSL7K6+QgPvMCZr9zK+loQj8C3YwRuLur7rUBzvlz23HWmh4RBNXUquaW545A8L1PUlOaV7gw7sjS9hSLQG+W4FL6tV+ST/6lGxyirEu/EDn9kgy3LjwR/6czsRV7jwHRy1FPbUZ7QWOiQ+WaQfoZcIrtvpVCVy3jwQm3aky5LyxWLyGIvqeOkPLUB7BYhRbhmhDvM7wc4WXzhd7B1RHjZyDQ8WFxYnLLgCy1uWHd5xQ0UzV58xNiN3TQ6tr5+faXJSUz/EiIdu5YPVN1JDQR1eweQ+95421zPTXWTQj2GhGqC6EleaRDo3uzeItYFrb/qQ+svGBCXJ1XdtskVNJrJfY8SBSwXAQD3TsHaSLgsYOHpCU3+BUK5Za7NRoXi20QDtbw17hDp1uOM+A8/IbDek3csBt0W+umxQIVgQ+qOFZJmyFbVHKmWBC+QBAzUTOjJq0z/Q7Ru1gTHt3Zkx+FjJdzw2J4TtHqx4e5f47vPZnsv0MRbOW2XLcrdPpwHeyY9dl1DUPfDrnB40RWXyREOdZJhgUBhIG/Sbg3m60YghQES0jg1ugPSq7yZSng5lsYV5R++UxhyPKUMsWj162lG3n/ldOGCeEH5CcQF8dqqI+05HRVqSx0Bjc6gRHPqL0CEJS8L34qmlT0KJ5L7Q4ZDnbiFlv/Kt+4m7FHU1xCyZdS66RM8w85IZGy/7IvaPEWfgRvyTfEaFQwympztvlev+lmX7ffWyjv9QGBmTUbqFnfLAcUN8bsg/29Y1JTaw0rAUW4tDjORzcetKr3XZhaevvNqKnlMRFp9BJNezUxpc97bZHcMJuK6VAMgTrGGDMKg9OqwJQJGO+X9hKqr8KgzDGSdbXHvtSkNiXZsUQZFmbknU0TLqUoAOXEE/Olt0uSuO9p97TWuzAQ/eu1U+2CF9kl4/ul0mlQrfGuoFowvNWMR8cCNqyCM6/93jGB6TATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADIAYgBiADAAMgA0ADEAZAAtAGMAMwBjAGUALQA0AGQAZQBjAC0AOAAzADEAYgAtAGMANgAzADMANABhADAANABiAGEANQAzMHkGCSsGAQQBgjcRATFsHmoATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABSAFMAQQAgAGEAbgBkACAAQQBFAFMAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIIEBwYJKoZIhvcNAQcGoIID+DCCA/QCAQAwggPtBgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAg/NnxzGrSrugICB9CAggPAC13KueNJisSLUnSM5VfOLYzCzQ1Wto7bMo1T3zMF0lo23qsI5qNb/1MpeHuI6mB/EXQjHgUCFMMJPXZv2AAR/UiWU71UnXFenA9ua7v0bgRudFCKwsnsQfhpI/50uve00qbu9E4Pdyyob+xczNHT++SdYJ4S2FQj/OQXmw17zL/gKLp/K2TRZ1vnInNv0yOOcunsiucqT3xrDuODdNdYPRcCy+cLwRmHJzJcaBT4/Z1pFZ0LERMxqFrbGcALXpAAWAbx1RPkj9pdMEeLxLEW47XvwKPLUUazZNL4qwMDeqJQYyKtRZOSex0207keidrGlOBQOfHfgdI6oVY0P2MfPzOeoRyj60up2SREcyuG1O3yIAcWFz6lTZhk14/sSiAGAvB+ghW3W5mIs/9mKXYfWqO2oXaDYEFtYBBZaNqZli7t+E7kWl2tMMq0BrFWbzmdIJD+mLGbQ0SeFa6tcJ/kjNStnZ08d+RU0oMFhmo2hG/x3rMjfMdJkhLaVwsJXvnyvtJgZN5rYJgUpNU4Mucw+3pfdJZucG1medIjCxX8V7LwX3U7pCwg0XjczPW9bLOqR2aszk8JlqndhSi15JeHomTq4vnJ8cCRUue2ijOeo96UHr+5Q3CEXSVBHbZtAuWVWlgQvWfwefw24OXlCMlkBU8hyP4yiG7OUw0zYg5hMSOOuNVhQjdGMxg+wTzIeT9Kzxcb1igaI+hdWIVKhlrBGv/aii+3Q83DqXCGxu9ZZ1wHSfkpU8p1gn4m1PkS9d2gyuxAGEvydAV8GBemWNQqYttVapd4Z+m2j/0KIg4jyfj5ybNK87YTYJ9Tjb2yQOxKP5RCoNBhRaC6ErDTksooPNysko6g8qQ1iNkqH0GV840zKlEFJIoLc5e5fbBviyIVjYnY7lxo/ucTac33Gez6EWFY3ejDx+wIZJZIW4+1p121u7L+Jo93OlLCVyE4R4AdML1wR+3JvdgY2wyxAZsNyQgEaSTuF4A6FtvVp5BHp3h7Ohq8tTIzGi88xsF8JUyxFGiiawAiSJhWw3BW4082qo03c4ruyeyvYoh6EBit3suR2dQM/AgG4qsyDT7mrfGNDYcE8F7oBM/UAAtOpTNjrhzOYWkOA44jSWKkqJWm2h4q0F3Yvxwkd+r+rA5Ck339rq1+RATkgv9hEqZhekLoeY0TN7EEq2P3PBIcFtPzHVMGuaWZGzThSff02G5UmfT+8R+FlCqRH0Aq4+qtJkw6eJBn37/uINa9EVOCFB9GkBQ8rt+OCkXYjGEICrcKiEe1MDcwHzAHBgUrDgMCGgQUfCWkLXowF/a9Tzjma1O0k7Sq2HQEFFaCdSS555V2kSSbgjvVMJcjNv50\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188431,\r\n \"exp\": 1513725031,\r\n \"created\": 1482189032,\r\n \"updated\": 1482189032\r\n },\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\"\r\n}", "ResponseHeaders": { "Content-Length": [ "3958" @@ -292,7 +297,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:27 GMT" + "Mon, 19 Dec 2016 23:10:41 GMT" ], "Pragma": [ "no-cache" @@ -301,13 +306,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "73844047-6644-482c-80a8-9a891701994d" + "f402ed37-d148-4575-bd7a-44cb0c342656" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -325,22 +330,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/selfSignedCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvc2VsZlNpZ25lZENlcnQwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/selfSignedCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9zZWxmU2lnbmVkQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "43f00340-5497-4b9b-8384-d2cc40fb467e" + "b1f2ded7-d959-4046-87f0-e3ff597945e5" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/selfSignedCert01/c33bf2e04e76444b83d2911c7a478bad\",\r\n \"x5t\": \"xum-Nyiy-y6T3Q-0yvo9UPM-xho\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQGu3+BenNRpmDAf/CZhTDazANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMDIxMjAyNTIxWhcNMTcxMDIxMjAzNTIxWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDQCN4OJa+TxRhQNNdEq9OkAUmfBB6vXlNaJaBCv7Jqe3whWYFTP01AClxQtlsjhKgZ1nVoALecolhLCwrIzMnqU9Mk9d8cM/JiHMMs5ZNzIAp6wEptFSjo68VaFM34xNHS7sXw3Y/TNhT9WwCfPWQx8jL9NYfarMlwbRLQ+5bPNlopPDTcsUmz+kCz4GQqBMB9vIGNKHDFDjiW4fwVP0clmNsbc7mBAJmUR1rzZYGcYhw6QJbd8izOGmXY3FdhE6HdcOAGa3iaiUJtprdx6CT+qFH2L8qejbubTWHYSihcDVKOb/aNOafFipFvueuuXKn6X8dfiRC5wDU/XxmeavC1AgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBQRu+2ZtCV/U4TDnvhmC9IAREfurDAdBgNVHQ4EFgQUEbvtmbQlf1OEw574ZgvSAERH7qwwDQYJKoZIhvcNAQELBQADggEBAKluT52SPG15kBk1zerChujOPEmIuVm0ih2hTcKUJnvNVYOYx7PrqKB95xYp/S1ywHgqXdgxPnwXBVUEqSKetsFRjIDsByWZo0shi7imvcwiGN/Lx/7oOwbaL1xxviG31AI6wpECXCIo5pifrvaaS8TFhhobeWLKuxSchO4OQir9YOpMmWgd3pInfn+zKdl9DFeVQlKj6DhczYrYnSVOcSqZngq/nnkrT41Ikzf7f6NFCIpBVrc21soHIYCD4q04rVcw6SYYhW0ai/FZS5FFMh27JzPvqBGQJbLjMLOMyESdG73GuC2MFoEnMIwrM0IoEC/C6VwwI8W2Q8vvlstp2vg=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081521,\r\n \"exp\": 1508618121,\r\n \"created\": 1477082122,\r\n \"updated\": 1477082122\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 12,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082106,\r\n \"updated\": 1477082106\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/selfSignedCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/selfSignedCert01/c1b1ea94326a4aef9752d66a229b2bc5\",\r\n \"x5t\": \"bn5Uz8I-fksX8SgKSmIJcHo1VWc\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQTQi/4JAhSc6Ckuxva8beWjANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMjE5MjMwMDMxWhcNMTcxMjE5MjMxMDMxWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCp7xog2dKEr7BALxBTt/Cy+JBz37KI6epTdp1cDqo2OfbUdN1EFrtzJAiTVJPEcgEtNP8ZoQnCqxSLpS9lo8QeiQ5ayvVs/0zvE49OJwFxHIyuvps7GyYZzNi27XPZPPNcMPursgSKCcTv8ujAYRogAMIhT2K5aTtOIn7VD9UuH8HfE+yBWNj6fvMRDneAGIMdKXtd8Qt/CayU5DbxNU2iBTJezEdxXFBBgl4jseqpjjjwt6V4rr0t3zqWQGLEsSbWkPsdJsTHdYjaXJRAAZHqEPdgVqIhZWlB4TIjunWOa1CWd9l0Qvir3B2UQRzB3eHc8BmkQGEKLFqEXnh9yLenAgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBSgcqSgsLuoFJpsnPS8NP45CPLAbjAdBgNVHQ4EFgQUoHKkoLC7qBSabJz0vDT+OQjywG4wDQYJKoZIhvcNAQELBQADggEBAFDmhBCFYNuw0ZHBI04NWgSuYZ/g6pbp0uzb1SS9Ka/nGVrY1T0fWHzSmZYq9Fn/xM/HYtOFuWg+A7zV+oQBaFkKsIC7L/977ZbEBXGs6QgpBRZRTpvKfgF9KXDdSoHML98Ud2dVmUenykBdYe9+9FOo5AaYSfJLHQJV7hBCwmeZKOVUfjfdHNQoZTmEZfYb6bXu+nZ8e85dL8d2Xm3qnfmTyg2g+tUNR5YEDEjSAP/VGom6AM4XrNa3sYbFw9EmcIn6gHKMqCEX1FpmS2zZiTVjwgAd6oDX2ijaObl1DCtoX9g0PzB01tHlewTYc11K3aBM8l5YdmG/KpSQ8k4f9Cg=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188431,\r\n \"exp\": 1513725031,\r\n \"created\": 1482189032,\r\n \"updated\": 1482189032\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 12,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189021,\r\n \"updated\": 1482189021\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/selfSignedCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "2432" @@ -355,7 +361,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:27 GMT" + "Mon, 19 Dec 2016 23:10:41 GMT" ], "Pragma": [ "no-cache" @@ -364,13 +370,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a67d4771-cce4-424f-9d72-de4346f3f254" + "bfb2d4d1-537b-43ab-bda2-bb1952c34dc3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -390,8 +396,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateTestIssuerTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateTestIssuerTest.json index b0512f18035f..b994a08a2378 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateTestIssuerTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateCreateTestIssuerTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/issuers/issuer01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"provider\": \"Test\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "26" ], "x-ms-client-request-id": [ - "a5748abc-32e3-42d3-95cb-cddf29222e5b" + "ca06e419-62b0-4fe4-9f05-60385918b686" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082045,\r\n \"updated\": 1477082045\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188955,\r\n \"updated\": 1482188955\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:04 GMT" + "Mon, 19 Dec 2016 23:09:15 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "92ee9067-28a9-4715-9e2c-aef6b7f17124" + "5b07d622-be23-4f7d-8ef5-e4e54b4b4d0d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/testIssuerCert01/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdGVzdElzc3VlckNlcnQwMS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/testIssuerCert01/create?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy90ZXN0SXNzdWVyQ2VydDAxL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"validity_months\": 24\r\n },\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "506" ], "x-ms-client-request-id": [ - "9ea12233-722e-49d9-bbfe-55e2a6fdce41" + "b6828074-d4f6-4028-aac8-e8526da85777" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4LwcrRd2m35/Thq0mwXzj0l96svDrVj9ZD6RVGNqvjH8SEbmJR3pGzSDg0pdGKWTcfa3Cm95ZybvRwwo9L1qW9sKZ+8K4YmDIyH9I7zwx8axuBWgEBU7oHN9TdtUnjZdyaWkC2lWtBm70Q6RdZ95NBqO0NR0bpjl7BgHM2D7/v8bSChLAiw2tUbLh4gBThVWlSpnnBwFD+h3ZrnSZ36L8jZdvKYAv5e7ilQLCozu/VzhQuEXpqWhXhW3nUHalxo+aJ21Cm8gjPyt5LikvJD8nUV/+64HVnvn1TpqIgACMMxfAdZMDd4NMW8+CndYFp+WLEy7Wq+k84k87Q28n7pl2QIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAH9BcomuxmTqzrCtuYSCIElgY03q34b/l0RbcFtoZ2Ftefo+8df09VH/C9zZUu91N+xNB/ETBOtK+xw/5mQcH+vgl2DJ8BvKL1HdvcVY4xnFdVlCrI+j9ZjZ7aLFTAT1gMA4pgp0xpEfopZ5Fk5ejeqYYSYy9qh0LH2LoCDuEB1dO+YlXHo9qZHaL557tXoraf0nXGT99/TaLkuAkp2HH1PJjuE1fTh/4sym1JtDubfUUcscaGV9a5Bb37Q2EwnU1WOTK8XulNd6BmCz8Sqc+Y6Liww5lo9ZJUKPaG2mtYgMlCt3yj2gWPmv+bm7DweoFlLkPBzr1M8kxgFzlfouVtU=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"395bb93941ed4566ae9df20475f006fb\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2LgIhoNIaK7aAGCu7Ufpt9Z2DKbTzjw1cnc5J3U8xSJGHIgva5Wr80DAvsRwG7jt53+iRksYJgW/gIF0ncN8kEX14A8YLsRKBZ5JXyHOVyUl05qXXA9IP2kra3s1RC650lwrwUhCs2c3QFoDwmzhac+Rcaypua6+jdGoY50OZNpgF5JsBXckSLqU2oeH5tCUN//x0kkL5ki5nHDPdOYFoa1MWPKCm43xahB4T6bPlKy1UabeMGGQRN2QY9gRn5RJ2NDDXmBpYGJ+eo7SorFfWvz0NbmNG1O/fCOsEoSsrRVLeSAFRhiWOkrTZ6N5gapqEETQxh4Y45IJVdvwY/JWPQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBACqcD+hG2LC4deX02IY0nMDfFkZZqabBfJXMRTEP2aOCNn+zoCHYjRkNDORT0eYefR8PyYGfx4cmCTRlZBHtHp5N47e1XD+2+MUOUmm8Hh72plWZZAswXy5xaVi/G41Vr+rim1noMg4bRBuKAAjNo+tZNa0Ty02UKx9VzyVJZwLe08tIPSkNcaWr+QIZX21GfQPS6qUPpXtih1CFt3AGpqRBH5Nt/QzXwXQMJzycBBJqidjKOj+ouSKDMUCDF9TVm5Wln8d5cVBIEbM8ovRtLHhs/wiIwoX88B7yju4QI/QjyD8cGPfSHhVt70VZOeXD8LE8z3T6BJE2Kym1E1O2brs=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"c1ca41f4fdea4df9a90906a0e9ed1ef0\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1379" @@ -106,25 +108,25 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:05 GMT" + "Mon, 19 Dec 2016 23:09:16 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://testvault1020.vault.azure.net/certificates/testIssuerCert01/pending?api-version=2016-10-01&request_id=395bb93941ed4566ae9df20475f006fb" + "https://testvault1021.vault.azure.net/certificates/testIssuerCert01/pending?api-version=2016-10-01&request_id=c1ca41f4fdea4df9a90906a0e9ed1ef0" ], "Server": [ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "45cb73e1-68f0-4638-8b59-0f5f63a805d4" + "e2ee646e-9da6-4a06-aaa1-5f9d7fad440a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -142,22 +144,23 @@ "StatusCode": 202 }, { - "RequestUri": "//certificates/testIssuerCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdGVzdElzc3VlckNlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/testIssuerCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy90ZXN0SXNzdWVyQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e9f3d334-92ee-4564-aebd-a53b66461948" + "922d1f65-9501-46d4-92aa-eb7fb19b27f7" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4LwcrRd2m35/Thq0mwXzj0l96svDrVj9ZD6RVGNqvjH8SEbmJR3pGzSDg0pdGKWTcfa3Cm95ZybvRwwo9L1qW9sKZ+8K4YmDIyH9I7zwx8axuBWgEBU7oHN9TdtUnjZdyaWkC2lWtBm70Q6RdZ95NBqO0NR0bpjl7BgHM2D7/v8bSChLAiw2tUbLh4gBThVWlSpnnBwFD+h3ZrnSZ36L8jZdvKYAv5e7ilQLCozu/VzhQuEXpqWhXhW3nUHalxo+aJ21Cm8gjPyt5LikvJD8nUV/+64HVnvn1TpqIgACMMxfAdZMDd4NMW8+CndYFp+WLEy7Wq+k84k87Q28n7pl2QIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAH9BcomuxmTqzrCtuYSCIElgY03q34b/l0RbcFtoZ2Ftefo+8df09VH/C9zZUu91N+xNB/ETBOtK+xw/5mQcH+vgl2DJ8BvKL1HdvcVY4xnFdVlCrI+j9ZjZ7aLFTAT1gMA4pgp0xpEfopZ5Fk5ejeqYYSYy9qh0LH2LoCDuEB1dO+YlXHo9qZHaL557tXoraf0nXGT99/TaLkuAkp2HH1PJjuE1fTh/4sym1JtDubfUUcscaGV9a5Bb37Q2EwnU1WOTK8XulNd6BmCz8Sqc+Y6Liww5lo9ZJUKPaG2mtYgMlCt3yj2gWPmv+bm7DweoFlLkPBzr1M8kxgFzlfouVtU=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"395bb93941ed4566ae9df20475f006fb\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2LgIhoNIaK7aAGCu7Ufpt9Z2DKbTzjw1cnc5J3U8xSJGHIgva5Wr80DAvsRwG7jt53+iRksYJgW/gIF0ncN8kEX14A8YLsRKBZ5JXyHOVyUl05qXXA9IP2kra3s1RC650lwrwUhCs2c3QFoDwmzhac+Rcaypua6+jdGoY50OZNpgF5JsBXckSLqU2oeH5tCUN//x0kkL5ki5nHDPdOYFoa1MWPKCm43xahB4T6bPlKy1UabeMGGQRN2QY9gRn5RJ2NDDXmBpYGJ+eo7SorFfWvz0NbmNG1O/fCOsEoSsrRVLeSAFRhiWOkrTZ6N5gapqEETQxh4Y45IJVdvwY/JWPQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBACqcD+hG2LC4deX02IY0nMDfFkZZqabBfJXMRTEP2aOCNn+zoCHYjRkNDORT0eYefR8PyYGfx4cmCTRlZBHtHp5N47e1XD+2+MUOUmm8Hh72plWZZAswXy5xaVi/G41Vr+rim1noMg4bRBuKAAjNo+tZNa0Ty02UKx9VzyVJZwLe08tIPSkNcaWr+QIZX21GfQPS6qUPpXtih1CFt3AGpqRBH5Nt/QzXwXQMJzycBBJqidjKOj+ouSKDMUCDF9TVm5Wln8d5cVBIEbM8ovRtLHhs/wiIwoX88B7yju4QI/QjyD8cGPfSHhVt70VZOeXD8LE8z3T6BJE2Kym1E1O2brs=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"inProgress\",\r\n \"status_details\": \"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.\",\r\n \"request_id\": \"c1ca41f4fdea4df9a90906a0e9ed1ef0\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1379" @@ -172,7 +175,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:05 GMT" + "Mon, 19 Dec 2016 23:09:16 GMT" ], "Pragma": [ "no-cache" @@ -181,13 +184,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "55de5d5b-339c-4b67-9b5d-600c34faf3ad" + "c0fa8c68-6046-4491-9a8f-80fc061819fe" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -205,22 +208,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/testIssuerCert01/pending?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdGVzdElzc3VlckNlcnQwMS9wZW5kaW5nP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/testIssuerCert01/pending?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy90ZXN0SXNzdWVyQ2VydDAxL3BlbmRpbmc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b37fd2f8-0be6-4429-8f1d-83066fb1513a" + "62609b67-02a3-4a9b-8af1-d816566706bd" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4LwcrRd2m35/Thq0mwXzj0l96svDrVj9ZD6RVGNqvjH8SEbmJR3pGzSDg0pdGKWTcfa3Cm95ZybvRwwo9L1qW9sKZ+8K4YmDIyH9I7zwx8axuBWgEBU7oHN9TdtUnjZdyaWkC2lWtBm70Q6RdZ95NBqO0NR0bpjl7BgHM2D7/v8bSChLAiw2tUbLh4gBThVWlSpnnBwFD+h3ZrnSZ36L8jZdvKYAv5e7ilQLCozu/VzhQuEXpqWhXhW3nUHalxo+aJ21Cm8gjPyt5LikvJD8nUV/+64HVnvn1TpqIgACMMxfAdZMDd4NMW8+CndYFp+WLEy7Wq+k84k87Q28n7pl2QIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAH9BcomuxmTqzrCtuYSCIElgY03q34b/l0RbcFtoZ2Ftefo+8df09VH/C9zZUu91N+xNB/ETBOtK+xw/5mQcH+vgl2DJ8BvKL1HdvcVY4xnFdVlCrI+j9ZjZ7aLFTAT1gMA4pgp0xpEfopZ5Fk5ejeqYYSYy9qh0LH2LoCDuEB1dO+YlXHo9qZHaL557tXoraf0nXGT99/TaLkuAkp2HH1PJjuE1fTh/4sym1JtDubfUUcscaGV9a5Bb37Q2EwnU1WOTK8XulNd6BmCz8Sqc+Y6Liww5lo9ZJUKPaG2mtYgMlCt3yj2gWPmv+bm7DweoFlLkPBzr1M8kxgFzlfouVtU=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"completed\",\r\n \"target\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01\",\r\n \"request_id\": \"395bb93941ed4566ae9df20475f006fb\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/pending\",\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"csr\": \"MIIC4zCCAcsCAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2LgIhoNIaK7aAGCu7Ufpt9Z2DKbTzjw1cnc5J3U8xSJGHIgva5Wr80DAvsRwG7jt53+iRksYJgW/gIF0ncN8kEX14A8YLsRKBZ5JXyHOVyUl05qXXA9IP2kra3s1RC650lwrwUhCs2c3QFoDwmzhac+Rcaypua6+jdGoY50OZNpgF5JsBXckSLqU2oeH5tCUN//x0kkL5ki5nHDPdOYFoa1MWPKCm43xahB4T6bPlKy1UabeMGGQRN2QY9gRn5RJ2NDDXmBpYGJ+eo7SorFfWvz0NbmNG1O/fCOsEoSsrRVLeSAFRhiWOkrTZ6N5gapqEETQxh4Y45IJVdvwY/JWPQIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwNQYDVR0RBC4wLIIWb25lZHJpdmUubWljcm9zb2Z0LmNvbYISeGJveC5taWNyb3NvZnQuY29tMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBACqcD+hG2LC4deX02IY0nMDfFkZZqabBfJXMRTEP2aOCNn+zoCHYjRkNDORT0eYefR8PyYGfx4cmCTRlZBHtHp5N47e1XD+2+MUOUmm8Hh72plWZZAswXy5xaVi/G41Vr+rim1noMg4bRBuKAAjNo+tZNa0Ty02UKx9VzyVJZwLe08tIPSkNcaWr+QIZX21GfQPS6qUPpXtih1CFt3AGpqRBH5Nt/QzXwXQMJzycBBJqidjKOj+ouSKDMUCDF9TVm5Wln8d5cVBIEbM8ovRtLHhs/wiIwoX88B7yju4QI/QjyD8cGPfSHhVt70VZOeXD8LE8z3T6BJE2Kym1E1O2brs=\",\r\n \"cancellation_requested\": false,\r\n \"status\": \"completed\",\r\n \"target\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01\",\r\n \"request_id\": \"c1ca41f4fdea4df9a90906a0e9ed1ef0\"\r\n}", "ResponseHeaders": { "Content-Length": [ "1293" @@ -235,7 +239,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:25 GMT" + "Mon, 19 Dec 2016 23:09:37 GMT" ], "Pragma": [ "no-cache" @@ -244,13 +248,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e81af40c-24b1-4509-9ca0-c6b61b39309e" + "55f4ead3-5251-4137-8520-17e328613fa4" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -274,16 +278,17 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6b8b0973-90cf-4ad6-9e73-dc413b8a1ee4" + "6c997c2d-29ae-44e6-86b2-d7b4c2a4a803" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\",\r\n \"x5t\": \"tpDa3LOl-lcqYNabAzqfECZbudU\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQJd1dQ3PSTQ+ZOwngDDbCfDANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMDIxMjAyNDE5WhcNMTgxMDIxMjAzNDE5WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDgvBytF3abfn9OGrSbBfOPSX3qy8OtWP1kPpFUY2q+MfxIRuYlHekbNIODSl0YpZNx9rcKb3lnJu9HDCj0vWpb2wpn7wrhiYMjIf0jvPDHxrG4FaAQFTugc31N21SeNl3JpaQLaVa0GbvRDpF1n3k0Go7Q1HRumOXsGAczYPv+/xtIKEsCLDa1RsuHiAFOFVaVKmecHAUP6HdmudJnfovyNl28pgC/l7uKVAsKjO79XOFC4RempaFeFbedQdqXGj5onbUKbyCM/K3kuKS8kPydRX/7rgdWe+fVOmoiAAIwzF8B1kwN3g0xbz4Kd1gWn5YsTLtar6TziTztDbyfumXZAgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBQbNfnSubGgauEZiUvao7vexGmGyjAdBgNVHQ4EFgQUwbw30awLcs5jQJNSVBTPoN4QsWcwDQYJKoZIhvcNAQELBQADggEBALaCRrg/4J5Uja9eLp3HYd8t9jumhjjGh8/PZwOfEb0W2EHf+nHrF9EOsrcsnjtxVcZU5l6Y8pBr0y2JO8IM4dLejsjGwUmGlf4gwlBGFeNQBt2VZvM8C22jqhiGgTYPTfUWuKfZWKfDrDgjqcLTKEFgjZMjmYXHyT5BhkAfpbql1HundIfHy8vPBm3kQCNyqBF2h9UFLb39wLvb1T807Icv1rvgNjCfeunZEd9/dIAjuKUCJbYIxGTfMYIDy/2ty44a5q256BVdU9lQRrcCSun8SgCriTpErRUZv4CBqWUCmolR1p0YRORARhK2ZHh0Ia+8Ij60U16sz9KPdVZ5kiY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081459,\r\n \"exp\": 1540154059,\r\n \"created\": 1477082060,\r\n \"updated\": 1477082060\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082045,\r\n \"updated\": 1477082045\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\",\r\n \"x5t\": \"G64zxnE07Ew0bHXSOApprMJnORo\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQW06TE791T2aDHdDNX0nbLTANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMjE5MjI1OTMwWhcNMTgxMjE5MjMwOTMwWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDYuAiGg0hortoAYK7tR+m31nYMptPOPDVydzkndTzFIkYciC9rlavzQMC+xHAbuO3nf6JGSxgmBb+AgXSdw3yQRfXgDxguxEoFnklfIc5XJSXTmpdcD0g/aStrezVELrnSXCvBSEKzZzdAWgPCbOFpz5FxrKm5rr6N0ahjnQ5k2mAXkmwFdyRIupTah4fm0JQ3//HSSQvmSLmccM905gWhrUxY8oKbjfFqEHhPps+UrLVRpt4wYZBE3ZBj2BGflEnY0MNeYGlgYn56jtKisV9a/PQ1uY0bU798I6wShKytFUt5IAVGGJY6StNno3mBqmoQRNDGHhjjkglV2/Bj8lY9AgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBQxj6r2FTw/dVo5oDZ2tZzcd8xq7DAdBgNVHQ4EFgQUcyPSNSX8D2JJIM4b8idXfiTy/1YwDQYJKoZIhvcNAQELBQADggEBAKJFtjiiFp6L4Pw1fzq3QdtchrtEQ1Hkw8/WiZgOKklzNNuyWAxF+ydcLb47PeDptJ3IwT8/d3slGxY+vUupdQS6fpy+1MxyOZWY6E3UcjHqm6mmYb2DGqA3tk5wuYR4/WjQttHcvnM06+6QksJ09Y4vj7Q+jZaJ5wO5g2NnSy2QlcMdeKKVbtywLd2PlwDP2nvFPNTywKiOy66TdTQRSH9TnKecVh2v3JMLiYEs4gbpHvYFl3orKJIcjjnfDAhZfz3V72ThvNOEiv2RJbdQADzV/UruFoWSVvr4l9RXjseF3ca1Z0k/DMerJK+m7RH90stc95GSdAa91A2AoNZsrE8=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188370,\r\n \"exp\": 1545260970,\r\n \"created\": 1482188970,\r\n \"updated\": 1482188970\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188956,\r\n \"updated\": 1482188956\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "2436" @@ -298,7 +303,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:25 GMT" + "Mon, 19 Dec 2016 23:09:37 GMT" ], "Pragma": [ "no-cache" @@ -307,13 +312,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cc36da22-7039-428b-bdde-f21c2d92e295" + "bc4d703f-d661-45f7-b5f2-bbdb8b8a8625" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -331,22 +336,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvdGVzdElzc3VlckNlcnQwMS85ZWIwNjRkNWVlMTY0NGNkOGVkYjA4MTk1ZmI5M2Y1MT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvdGVzdElzc3VlckNlcnQwMS9hOWVjODQzODdlNDI0YTE0OWE4MmQ5MzljZjhkODY2YT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "67c1ed0f-ac34-4871-8187-a82787754174" + "4f3e2e46-58ea-4b63-82a5-41e0c6ccde48" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"MIIKfAIBAzCCCjwGCSqGSIb3DQEHAaCCCi0EggopMIIKJTCCBhYGCSqGSIb3DQEHAaCCBgcEggYDMIIF/zCCBfsGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAh8POic8D+NjAICB9AEggTYcC94XJ4lcxE5bH8DbnYMqVt330mR3Vb9zXqjdECfII+uKX8pVeTx6OtEus//bajEj76c8jF9sa5cS/zzFKGgC1A823IY+Raniq2jOfM1u5eONqk7HxJoryaXC23dOCqf3bxECWmBSC0L/So2Z7bFX7F0NuSdpp6imGCjpb1X8faJTQhXMuw24lpWV2k/1MqpFDEEvLXtzzNRYBbrb9TsX+wDyS94dGg9zsSX+v0lW/79Q1vkK9k3EugAWe3X4jrl+J8gdGZTo1LZzK9o+hAWVEKOnSQTR+0wj02HaJ6G7OQOx6nJRCOp/dtPuS7xZ2GvFUSPe5XsKr8KFnjAlxnfjNFChXvYGwctAsgx8iVHlRQ2m4/Ov62rb7UcWriQ3lb+hViTYDfz0EfO7G6wBs+NchFvUXUXMuH3xCCePQJA37Tn8FXSE1yvePRD/uHhQDoaiIYIe5BbNqjs9/i8uriuvorrGnIcN3o+PkhTaVDYwQzCpjy5AoQGr+2Ik97/3mh7W+tDCLxrQc3JYgaKwX6V3pkv2MK/lxKOfVGslg0SmD7tKTI4HIa4X4imQUFCDBNonvJzLib+UOfSW+IQRGZzKuGh1whxW+fkjW/tj7E7cGPLpOaRpdKdiD7LXd6e6Ie6SM/XguPhaLj+bP+T/AUXDakYkqkLBQB+PROKdMlfFrc152/Pt8GqLXuz05h6QXTpl7/4Dx5HgxVqg8fJT6jDpmbm2cc2CcOA2pmsQZZVIHWWUW7wMELBWOFClHbfTiStuYNwLGoy/m3NL51OaLf1EIO6xabtRF6XY6+e0SzRAv4cxtoKhfp9kfWJf3hDEF9hK2khsRHytq2jIRIj+/tqzffK4p8Wc1YTiHX5+HH9NT24h3Gw1wA2EqCAit2oeqdTExK+aGs21eU+/+v0JomSavX/txIxGTef5d7/+b+sW5Iz3Cc4s0cJSdvptl9J78GE+boW1QcyzWXk4vuqRoy0GoIWkO//4H1vOd7E3YitFFu18cUYp0DD4KC4FcX6Xzq1SXaG5/J8Mf3aWLjWam8XzRURo6F5tECjWvblGmhYFbfrgy5VWPY3iXAl+ooylgC+zDHwHbi2WOSDFUyN735rB2Bb71UuzjOpXgEkmKfvCGwVftxIQ6br+82LLoM5qwALIHNBTe6UjLITfsHoEUldyQfS6jEexVZkrJnLK/YspzLRIVvVslZvS1QW6d7sWEhGogQszJw6gvvuj8MqbZ1mOHIaA+6ikjCFbFvckVp4riVw36zIPtmGP1jd45T3ZpBbUOI5CS2etdNSVrdxt6kS/97qHOgbWJObiS7YbplG1dKdildevsTQpdXX7bxgmNMzV1XspXCiAXSbFAONCaMXYgwI3uKqloYWE8i1xiXI3AHAAbLKMxMMzhOrKkZWKoWfRgcJwafFnLKcjXIxBT1ZKGAjHRneiau4NE0A0NphofhFVH5WmRV8QYKrSicJpg7NUusQF40uWv9RYjr+/2eSz0Ofp9hPBaYnHaju7vjnteND9gg7Ws7t6sC3HokH0aETiU3dN0pXi/A/CAzJsRduxcy+r4QMxcuy2qT+6pyLXLuJC1SH1dEFm1uy6fasX9D1ymY37ej8++Z1zH7+URDMvx07OyXlQEG6vSHjGFFu/kbLu2PmvoUW6jGB6TATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADMANwA4ADEAYwAxADAANQAtADQAZABhADYALQA0AGEAYwBhAC0AYQBkAGIAZAAtADYAZAA0ADAAYwA2ADUANAAzAGEANAAyMHkGCSsGAQQBgjcRATFsHmoATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABSAFMAQQAgAGEAbgBkACAAQQBFAFMAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIIEBwYJKoZIhvcNAQcGoIID+DCCA/QCAQAwggPtBgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAgfBb9VcYv6hwICB9CAggPAHLAM7c7Dk3lfHckHKTWKIpPBjdp0KcsQtvTcf0dmAdBwnvAiThqpfY9aL75hNTb5QVJUuJTin/iOAXLlJOORmiIERxBnYH8E4y7zVynkl6UEEpMSrPAFyeOwyDdY+nZS1nw6fdfrgwj1MO+gtPch5lclmk9lA2ppOJ3SSZUdrGz2geBoWLECT4lctiONzt6dErGoYC7NkRMJv4LV7XhHRJpaGr958LvPJvGpWmyaQrbxAXVNMOBuax/LZGO2eZ089pV4NzCfz2XPBuKCjxZojN1wUU9UG67FnWU2XXz8Zw9XY4Iic0tglz1+2WEwr75i3A/KTfbE8Uinn7y3EZNXR31+znahpMbdaCwOSi3fR+gc2KKdQGHcfmxEB5pqWNLNtowwkIO+CNtIefdmoajsuzX0T9Y41BpyVHP22gpwIUsF4uwXBF2xyOf+gkU1PSAHIOvJu+dP41w8P6E588ieCz9vzJyNbTdHYLGALrbCkM2T8F4UJ5Wrkk26+yBJ+wLjj86BnW94/Y2IM+A6fJ9YcmdqayOWmQoAtmpELIta4HXj5V1jQFTGj6ygKO6fDM5MvtB1n5rgAsHR3sWP4dBgsv0YAzk1fLFuXVEJIwyoYR3urBr3c1Rqe/4C1nUaqemm0dJ5/Ezf40tSbfjurb4ZaTG/zGc4mfkH3OZOI4PiGXEBiLWK49rFxB2ktMDelg9MhuzTNrpTEKoQC7kW69BUkG2Q+aKm9hE2yxdVlsoHWsP6rQ7NTjehVkfH3RjWWYOsFx354cOVZPtSo0GiZ5wvlwTqY0frDPmqwrQtwdo9JyXDKDEvPocNX4e5pVsphFf3HXo73VSfIfsBtdg4vmq/8dFERoISDWfUS8HVWWyZPdNiskxbeUeWbjXUcyVKDbGPhMYMJh/HtjSvdQKxlGLxY4qIQWVblSeRl3Phxfy5zD+9WfdrlfuSF20DeuZRWpqoywYZIOuCSXAV9qDvcPUhwRWJ+Yrti3rNlGzIsSJ/hUPms7MIufP0GOaKUXRhqHP3SdpygLAzGBNk4wDEFyA0tp+QKjvuWMvzeqta/o5HdxHHTrNej6eYY12pqr8qmA8Eh8SWgZ4Sf6zB0sB7YxKTDCThIjJhuXzuvICXi/9Y9D1u19ScmEKIW/jqB4O5XwHd1HZsHAgPAgMgpKDclew2lLWfft8Ywtwkoqz0JBDXizlWIITPXswlztZfT57JiJuvE/wQHyZMndde5EDi0KTzpGh6qYYR5TXInsfWiPzLGOnAm1sBvgJslKjweFyUF0gkMDcwHzAHBgUrDgMCGgQUpefjRbz9A9nEDSmm+PaVz8YHy7IEFGtinVNGYKB39JQk0OENUJPfIbxr\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081459,\r\n \"exp\": 1540154059,\r\n \"created\": 1477082060,\r\n \"updated\": 1477082060\r\n },\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\"\r\n}", + "ResponseBody": "{\r\n \"value\": \"MIIKfAIBAzCCCjwGCSqGSIb3DQEHAaCCCi0EggopMIIKJTCCBhYGCSqGSIb3DQEHAaCCBgcEggYDMIIF/zCCBfsGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAiv2dwkBQTfhQICB9AEggTYvOnd91odZfuLUwxKlGSCs+1xogu3P0uU1ZzsZzmn5n+P/9bpa9hUC/TnQQD89VgKbw/40N3s4IPBQDnlvkwuBPjAvWpzWkwbxhfEkb9ivW5VauZ8St+OjBk8p4uego8KnbK2NgPn3DcTDq9ZE0h8L+tqpSIlCFidtrgtwK8+OzOH8ginw5xB49lCzCsq7eMQx8rrBI8jbXks6G7Fi1pE6FKRvovCznq23oqO5sBAgc8sOJlYZX7YKcfqPZvY+rkFgWWxWblhPNgRqbDeIcV9AJA2lkJTJxjOU6e5041cbAp8QoVJBhIFSNwTW7ZbxTDifUPQITZCo+8HOo13u5q8CA4YokuBT/Z8efmNqcOEA7qTglrNBE2chNJ8RQHpxJNC8ILI54fhPbVY+n8tTsyZazauLUWCCvdV2hTavAaPtrA8I1DDjtx29Dxk6GoDPHC4Gu5tIbBfpAyWVlxJmRiTIcM+bRZPkeJUvUqeVBtkS7GoCkSoQfZSZHmA0FnMbkR3r1hc8RCVm9IhpC45McxOTn/UPkixiE6RecGD6yBcH54RXEESeGnkCePWj4iuxALBMuwE1Sxy1fpVFvw/kRFM5QdRBfht1hcZtnbl5z1KQWKl9OPgBb9Fph8wNEd4fu9CvFIt/yD3oYv8Q/Zn2hN7cPWXjXQw+Zw6KbeKzYd3JyhbwFrPeJMfEvGDxlQXJaYENjxMqhv6mJBGVjRyN/V2kDV1XMMOpoTEc7/xV95k+IinwibLCdShqSUswjoWBarfCSnIggMsovIFXEmamgQjDRNkMSKy4n+trv0mfHJCnX6A8ho+L0VSRDA87QIAMoxJ22xpyqUEgCRxhQtT3AWMF4LiS2LqvR8ocwI/L/wXkc9uep/Rjz50PZjN8kFsB2qvFM1imzFsKG04CmCJaAPlKnGq7hmn3rBqprjiwlJvpi0JSh2+nPMI+Nv2xF23D9svDQftE/zHrVY5kKyULJ6NOmgpyZ4yFAAtUXOgZgfl1qDfDhxEPp80vxLKMEa4wzTEG9hg7dCmF9qpfMiKomIGKYxmaDLJd344RD27gb4R8CTamUqYLIwmBwdviHL7fetSS80L1zeL+MEaqjWVun7/CBvB9FRt3F6YXufZ+D4sGgDwK/MbXpKOoS9l+2l89GIa9Uli1ufmfjQNQ+1Ld1ZWcS7putiQOwpKyrQM5AgF8GkI1x8g5MCrwdPW+YmLiE69c3K/ea8DpuO5KngWrbdjciSoeH+hGN/P5lx5gv1vQiZzYs8EYCDXGnec/WqiOhY7Lpa4dGu2CO+n7OppKRg/HHy6IEPsEnmgfLvbZTJBFGWbW1yOuD6Zi5mInb51CA0TjX0v4xClhCc67aTm+UPBSRE40kW6qogBBvdpXfjOti8xaJmmRSj1Fs/gxGxOEcPO31/Ajf7QmEgss52blYtINsiIYrCnDTek2g29/8Y0jjUqszsazlLjNUXL6x4cOJS1u0/oxpaLdhNmXwX6OfzBoWRJ8ykKYLyCzWeDk0O+48jWY+wl/+poUQ8lgrc1TR4fw6DLfQQa4YoBTWk/kcjXSSWkvg2CuSKHHO5vHa4vGns09OD94MLlgPRNgs8y3tsjQzPjjXnQrkBKIbo1aNGcTgACmWmONFwiTyW/JbUAfj/aWUHKxkcycTGB6TATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADIAZQBkAGYANwA2ADcAYQAtADAAOQBhADMALQA0ADIANQBkAC0AOQA0ADgAYwAtADUANgBjAGUANwBmADMAOABkAGQAMgAzMHkGCSsGAQQBgjcRATFsHmoATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABSAFMAQQAgAGEAbgBkACAAQQBFAFMAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIIEBwYJKoZIhvcNAQcGoIID+DCCA/QCAQAwggPtBgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAiT/sY04XnLBQICB9CAggPAG34k8NNrO8lmVKbjBUhCvEqj90JJJC8N47vwZJxBReDU+B1OIReW2dfvbLW1ApNek71G04RhLlsSopjAKQED91grVeQnjjQCIGR/QoEc1INAPJ4GMMmPh/u7an2teZiWlmByJs4p1rbTVMFkJRj8QgyFbpJKCcshFdvCZWG3LI0N7f4+OyL9Cjik3Qt3co0+FosSF0YXNEjd+MiksVDK7lrl9SU+yvSMKxYmh9obpPMZxv97VwMFPX5S3Jd08E/7zPl14jpambaWz5A0rHXMGQChLrGo5RT9kXRZETmQLLXx4SRLpEpnPLO6Qik6cZ2JABbVJp63DjSLPNryurv9F7JjJBlLI6QwqunRjCMpHmRZIzrJKGxVDLvT0canYAlyRU4NlcIw1FjpSu5cGGQyWQmLW3WAJFGR8i6o9tqBDVTRt5LKyTCzSBU2cDcOonSPdOV65vHagA0gTPdP81fv0HUIhaBxd7MIkQB/7CYt7+6hPbVUWc74qb9k+DpQyCFPaOHj6fu6wM1LNvrNGNP6P7gg32TWpHTc+LOEYrJ+GSdQT3q7JPXA85B73SkLeUfFlfjwzJdwDKZTJq+I3V/LQoAx/IwtF3z3dIL1AIhco/RZ+rCtnnjlndF+FVR8pGZNcO2oX5eFcDSj2mZbcn4YWmvWUezYvsTsFl9KHiOIW9b8+8SiXPJqkBr6+n45sS7TjrtC/XmyeOStAFzx4SeEwHMIHEbdGnlW0HqreLntkjlCa647hQ1l7XH2nZn+5S+hYZSsl/GNviaOMt9J3r1Hh26/KbPbP/Gqx7Xfnf7pfoxJ+lB0uW66UagB58iTxlS7MfEZQcYtNsSFRLPNvlCGwUD/SpPJFDC9UFR5UXBh4AEMw/TzaC35IOuYLQdq0Mu6r225sQuHdOFnKAKfTkyLt0tZZhMYYkaQKz2SDB8XpnCmSsZ/HPagj8NCztV2FlzUyYKMRHpewlgRzFxZF+sJrhEud5Gwlq9e76ByMNL6y2vqZkdIcvKAR4K69Er973Gx062FRNtoqFMdsgjf+Ph97oXStVnS/X6syBHMZGW5YQP2zxzx8Vimom5CKlC31k9Qdcfc6Z3VadJL3BgcQFTAW4X/W4/VYKtNlhSi8z/VuW22z30aB8f5YcDUvcLjCY/DHQY5+HI1wP8+p1CxfJbUUY/y7QG+0m+E7EwmxVaUs4usThpvWjGlOQZa26yaYxsgjR5AoPV2ta4vzTFV42FmhbKyvSV4Q4pwO2XmL/iHLiiaivDr5ORwUFwv63IAbdKtMDcwHzAHBgUrDgMCGgQUIwsFMrtdrDR0UhjxbTRGDBOg5wAEFJJHFdkm+1JGLnvw0h7HNhbQYKcV\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188370,\r\n \"exp\": 1545260970,\r\n \"created\": 1482188970,\r\n \"updated\": 1482188970\r\n },\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\"\r\n}", "ResponseHeaders": { "Content-Length": [ "3958" @@ -361,7 +367,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:25 GMT" + "Mon, 19 Dec 2016 23:09:37 GMT" ], "Pragma": [ "no-cache" @@ -370,13 +376,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "b57bc653-3365-4aa0-8310-d29bfcef1aac" + "3bf7516d-4987-4daa-a978-ffa0bac63aaf" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -394,22 +400,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/testIssuerCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdGVzdElzc3VlckNlcnQwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/testIssuerCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy90ZXN0SXNzdWVyQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eb03ca46-2d3a-44e3-89a9-eacfff49361c" + "e6f151aa-a439-4772-bf6f-4875c7cb3e73" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/testIssuerCert01/9eb064d5ee1644cd8edb08195fb93f51\",\r\n \"x5t\": \"tpDa3LOl-lcqYNabAzqfECZbudU\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQJd1dQ3PSTQ+ZOwngDDbCfDANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMDIxMjAyNDE5WhcNMTgxMDIxMjAzNDE5WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDgvBytF3abfn9OGrSbBfOPSX3qy8OtWP1kPpFUY2q+MfxIRuYlHekbNIODSl0YpZNx9rcKb3lnJu9HDCj0vWpb2wpn7wrhiYMjIf0jvPDHxrG4FaAQFTugc31N21SeNl3JpaQLaVa0GbvRDpF1n3k0Go7Q1HRumOXsGAczYPv+/xtIKEsCLDa1RsuHiAFOFVaVKmecHAUP6HdmudJnfovyNl28pgC/l7uKVAsKjO79XOFC4RempaFeFbedQdqXGj5onbUKbyCM/K3kuKS8kPydRX/7rgdWe+fVOmoiAAIwzF8B1kwN3g0xbz4Kd1gWn5YsTLtar6TziTztDbyfumXZAgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBQbNfnSubGgauEZiUvao7vexGmGyjAdBgNVHQ4EFgQUwbw30awLcs5jQJNSVBTPoN4QsWcwDQYJKoZIhvcNAQELBQADggEBALaCRrg/4J5Uja9eLp3HYd8t9jumhjjGh8/PZwOfEb0W2EHf+nHrF9EOsrcsnjtxVcZU5l6Y8pBr0y2JO8IM4dLejsjGwUmGlf4gwlBGFeNQBt2VZvM8C22jqhiGgTYPTfUWuKfZWKfDrDgjqcLTKEFgjZMjmYXHyT5BhkAfpbql1HundIfHy8vPBm3kQCNyqBF2h9UFLb39wLvb1T807Icv1rvgNjCfeunZEd9/dIAjuKUCJbYIxGTfMYIDy/2ty44a5q256BVdU9lQRrcCSun8SgCriTpErRUZv4CBqWUCmolR1p0YRORARhK2ZHh0Ia+8Ij60U16sz9KPdVZ5kiY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1477081459,\r\n \"exp\": 1540154059,\r\n \"created\": 1477082060,\r\n \"updated\": 1477082060\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082045,\r\n \"updated\": 1477082045\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/testIssuerCert01/pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/testIssuerCert01/a9ec84387e424a149a82d939cf8d866a\",\r\n \"x5t\": \"G64zxnE07Ew0bHXSOApprMJnORo\",\r\n \"cer\": \"MIIDczCCAlugAwIBAgIQW06TE791T2aDHdDNX0nbLTANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTYxMjE5MjI1OTMwWhcNMTgxMjE5MjMwOTMwWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDYuAiGg0hortoAYK7tR+m31nYMptPOPDVydzkndTzFIkYciC9rlavzQMC+xHAbuO3nf6JGSxgmBb+AgXSdw3yQRfXgDxguxEoFnklfIc5XJSXTmpdcD0g/aStrezVELrnSXCvBSEKzZzdAWgPCbOFpz5FxrKm5rr6N0ahjnQ5k2mAXkmwFdyRIupTah4fm0JQ3//HSSQvmSLmccM905gWhrUxY8oKbjfFqEHhPps+UrLVRpt4wYZBE3ZBj2BGflEnY0MNeYGlgYn56jtKisV9a/PQ1uY0bU798I6wShKytFUt5IAVGGJY6StNno3mBqmoQRNDGHhjjkglV2/Bj8lY9AgMBAAGjgbQwgbEwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMDUGA1UdEQQuMCyCFm9uZWRyaXZlLm1pY3Jvc29mdC5jb22CEnhib3gubWljcm9zb2Z0LmNvbTAfBgNVHSMEGDAWgBQxj6r2FTw/dVo5oDZ2tZzcd8xq7DAdBgNVHQ4EFgQUcyPSNSX8D2JJIM4b8idXfiTy/1YwDQYJKoZIhvcNAQELBQADggEBAKJFtjiiFp6L4Pw1fzq3QdtchrtEQ1Hkw8/WiZgOKklzNNuyWAxF+ydcLb47PeDptJ3IwT8/d3slGxY+vUupdQS6fpy+1MxyOZWY6E3UcjHqm6mmYb2DGqA3tk5wuYR4/WjQttHcvnM06+6QksJ09Y4vj7Q+jZaJ5wO5g2NnSy2QlcMdeKKVbtywLd2PlwDP2nvFPNTywKiOy66TdTQRSH9TnKecVh2v3JMLiYEs4gbpHvYFl3orKJIcjjnfDAhZfz3V72ThvNOEiv2RJbdQADzV/UruFoWSVvr4l9RXjseF3ca1Z0k/DMerJK+m7RH90stc95GSdAa91A2AoNZsrE8=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1482188370,\r\n \"exp\": 1545260970,\r\n \"created\": 1482188970,\r\n \"updated\": 1482188970\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=*.microsoft.com\",\r\n \"sans\": {\r\n \"dns_names\": [\r\n \"onedrive.microsoft.com\",\r\n \"xbox.microsoft.com\"\r\n ]\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 24,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"AutoRenew\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"issuer01\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188956,\r\n \"updated\": 1482188956\r\n }\r\n },\r\n \"pending\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/testIssuerCert01/pending\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "2436" @@ -424,7 +431,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:37 GMT" ], "Pragma": [ "no-cache" @@ -433,13 +440,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "333c62a0-1fc6-473a-936c-cc760d4b6bb2" + "3966edb6-1125-4ae7-a020-365e0664c417" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -459,8 +466,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest.json index 328abc8a4d42..484a465f2307 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/importCert01/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAxL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/importCert01/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDEvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPcGCSqGSIb3DQEHAaCCCOgEggjkMIII4DCCBgkGCSqGSIb3DQEHAaCCBfoEggX2MIIF8jCCBe4GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAj15YH9pOE58AICB9AEggTYLrI+SAru2dBZRQRlJY7XQ3LeLkah2FcRR3dATDshZ2h0IA2oBrkQIdsLyAAWZ32qYR1qkWxLHn9AqXgu27AEbOk35+pITZaiy63YYBkkpR+pDdngZt19Z0PWrGwHEq5z6BHS2GLyyN8SSOCbdzCz7blj3+7IZYoMj4WOPgOm/tQ6U44SFWek46QwN2zeA4i97v7ftNNns27ms52jqfhOvTA9c/wyfZKAY4aKJfYYUmycKjnnRl012ldS2lOkASFt+lu4QCa72IY6ePtRudPCvmzRv2pkLYS6z3cI7omT8nHP3DymNOqLbFqr5O2M1ZYaLC63Q3xt3eVvbcPh3N08D1hHkhz/KDTvkRAQpvrW8ISKmgDdmzN55Pe55xHfSWGB7gPw8sZea57IxFzWHTK2yvTslooWoosmGxanYY2IG/no3EbPOWDKjPZ4ilYJe5JJ2immlxPz+2e2EOCKpDI+7fzQcRz3PTd3BK+budZ8aXX8aW/lOgKS8WmxZoKnOJBNWeTNWQFugmktXfdPHAdxMhjUXqeGQd8wTvZ4EzQNNafovwkI7IV/ZYoa++RGofVR3ZbRSiBNF6TDj/qXFt0wN/CQnsGAmQAGNiN+D4mY7i25dtTu/Jc7OxLdhAUFpHyJpyrYWLfvOiS5WYBeEDHkiPUa/8eZSPA3MXWZR1RiuDvuNqMjct1SSwdXADTtF68l/US1ksU657+XSC+6ly1A/upz+X71+C4Ho6W0751j5ZMT6xKjGh5pee7MVuduxIzXjWIy3YSd0fIT3U0A5NLEvJ9rfkx6JiHjRLx6V1tqsrtT6BsGtmCQR1UCJPLqsKVDvAINx3cPA/CGqr5OX2BGZlAihGmN6n7gv8w4O0k0LPTAe5YefgXN3m9pE867N31GtHVZaJ/UVgDNYS2jused4rw76ZWN41akx2QN0JSeMJqHXqVz6AKfz8ICS/dFnEGyBNpXiMRxrY/QPKi/wONwqsbDxRW7vZRVKs78pBkE0ksaShlZk5GkeayDWC/7Hi/NqUFtIloK9XB3paLxo1DGu5qqaF34jZdktzkXp0uZqpp+FfKZaiovMjt8F7yHCPk+LYpRsU2Cyc9DVoDA6rIgf+uEP4jppgehsxyT0lJHax2t869R2jYdsXwYUXjgwHIV0voj7bJYPGFlFjXOp6ZW86scsHM5xfsGQoK2Fp838VT34SHE1ZXU/puM7rviREHYW72pfpgGZUILQMohuTPnd8tFtAkbrmjLDo+k9xx7HUvgoFTiNNWuq/cRjr70FKNguMMTIrid+HwfmbRoaxENWdLcOTNeascER2a+37UQolKD5ksrPJG6RdNA7O2pzp3micDYRs/+s28cCIxO//J/d4nsgHp6RTuCu4+Jm9k0YTw2Xg75b2cWKrxGnDUgyIlvNPaZTB5QbMid4x44/lE0LLi9kcPQhRgrK07OnnrMgZvVGjt1CLGhKUv7KFc3xV1r1rwKkosxnoG99oCoTQtregcX5rIMjHgkc1IdflGJkZzaWMkYVFOJ4Weynz008i4ddkske5vabZs37Lb8iggUYNBYZyGzalruBgnQyK4fz38Fae4nWYjyildVfgyo/fCePR2ovOfphx9OQJi+M9BoFmPrAg+8ARDZ+R+5yzYuEc9ZoVX7nkp7LTGB3DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECNX+VL2MxzzWAgIH0ICCAojmRBO+CPfVNUO0s+BVuwhOzikAGNBmQHNChmJ/pyzPbMUbx7tO63eIVSc67iERda2WCEmVwPigaVQkPaumsfp8+L6iV/BMf5RKlyRXcwh0vUdu2Qa7qadD+gFQ2kngf4Dk6vYo2/2HxayuIf6jpwe8vql4ca3ZtWXfuRix2fwgltM0bMz1g59d7x/glTfNqxNlsty0A/rWrPJjNbOPRU2XykLuc3AtlTtYsQ32Zsmu67A7UNBw6tVtkEXlFDqhavEhUEO3dvYqMY+QLxzpZhA0q44ZZ9/ex0X6QAFNK5wuWxCbupHWsgxRwKftrxyszMHsAvNoNcTlqcctee+ecNwTJQa1/MDbnhO6/qHA7cfG1qYDq8Th635vGNMW1w3sVS7l0uEvdayAsBHWTcOC2tlMa5bfHrhY8OEIqj5bN5H9RdFy8G/W239tjDu1OYjBDydiBqzBn8HG1DSj1Pjc0kd/82d4ZU0308KFTC3yGcRad0GnEH0Oi3iEJ9HbriUbfVMbXNHOF+MktWiDVqzndGMKmuJSdfTBKvGFvejAWVO5E4mgLvoaMmbchc3BO7sLeraHnJN5hvMBaLcQI38N86mUfTR8AP6AJ9c2k514KaDLclm4z6J8dMz60nUeo5D3YD09G6BavFHxSvJ8MF0Lu5zOFzEePDRFm9mH8W0N/sFlIaYfD/GWU/w44mQucjaBk95YtqOGRIj58tGDWr8iUdHwaYKGqU24zGeRae9DhFXPzZshV1ZGsBQFRaoYkyLAwdJWIXTi+c37YaC8FRSEnnNmS79Dou1Kc3BvK4EYKAD2KxjtUebrV174gD0Q+9YuJ0GXOTspBvCFd5VT2Rw5zDNrA/J3F5fMCk4wOzAfMAcGBSsOAwIaBBSxgh2xyF+88V4vAffBmZXv8Txt4AQU4O/NX4MjxSodbE7ApNAMIvrtREwCAgfQ\",\r\n \"pwd\": \"123\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "3415" ], "x-ms-client-request-id": [ - "6f66e7cc-ad8a-4ae9-9360-31ca398730f9" + "86b1bb4b-1791-4572-a1bc-cb6c8c7b6f38" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:32 GMT" + "Mon, 19 Dec 2016 23:10:49 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "7862f63c-05e9-4cf3-9ef9-7ddd8c002e0b" + "a9e989c8-e505-4e9f-b000-7fa9f3cd8b88" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,22 +71,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/importCert01/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAxLz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/importCert01/?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDEvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2fecfbbc-4629-4e93-b9ec-61748d812a07" + "8bf55f6c-36d3-44de-829a-815b31ff08d7" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:32 GMT" + "Mon, 19 Dec 2016 23:10:49 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "9a71a3c0-73a3-4fb3-9ef6-4f46feb0d81e" + "d53eb28d-bf4c-42a4-b908-928d26f07e5b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,22 +135,23 @@ "StatusCode": 200 }, { - "RequestUri": "/certificates/importCert01/f0034f3046614e94b46ca68ed186ea61?api-version=2016-10-01", - "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDEvZjAwMzRmMzA0NjYxNGU5NGI0NmNhNjhlZDE4NmVhNjE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/importCert01/f6c948cc987044baa8e8115312d99f09?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDEvZjZjOTQ4Y2M5ODcwNDRiYWE4ZTgxMTUzMTJkOTlmMDk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e463767c-77e2-4596-8794-87492475e1c3" + "92d7552a-085f-487f-9beb-46eb20af4b81" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1217" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:32 GMT" + "Mon, 19 Dec 2016 23:10:49 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "5269064c-fd74-436b-9447-a56cc97fcdd7" + "47f99757-1013-4297-9be0-ef34a136fc45" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,25 +199,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/importCert01/f0034f3046614e94b46ca68ed186ea61?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvaW1wb3J0Q2VydDAxL2YwMDM0ZjMwNDY2MTRlOTRiNDZjYTY4ZWQxODZlYTYxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/secrets/importCert01/f6c948cc987044baa8e8115312d99f09?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvaW1wb3J0Q2VydDAxL2Y2Yzk0OGNjOTg3MDQ0YmFhOGU4MTE1MzEyZDk5ZjA5P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a52fe6de-1ce0-4dda-ab4a-4fc7176ac0fe" + "fbe3a9ca-c143-4a41-98b3-197193f7fbed" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"MIIJOAIBAzCCCPgGCSqGSIb3DQEHAaCCCOkEggjlMIII4TCCBfoGCSqGSIb3DQEHAaCCBesEggXnMIIF4zCCBd8GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAjbQg3KClwVAAICB9AEggTYwZY1p++9YQJ47yZYGqzFb+U6o3UjNHE3cl4r2qvdCnKuA1Y9Jdtqz27soTps4eG7wWc6CukHNblQ6hdgpIozVKERKAS0d/fDNvqZpiDO5dqFeNSHApcQt8+LD8t7QsM109EXmawGmo5T+Hke2WbMLA4SRUKS0P2I9v98XbWWdc0x0AbjGeJaFinYIZoWjKCoRv5Q9bstgDcOUAbOaGkr4q4GsP25ijIM9zYKDU5k3AcGhZr/MEdXcJ8z8UOn9FnNRJPtlUL410/qZkyh9nLmeCi8t48L9Lk3XKnBFC8VqS4nM59e6mz3b6t5Dbt2pOi1vpNnOSwIg+A61i/McflvxhVvY+/0Z1ewBmYrZM+fRAGHj2zUHtzCj3+vtkc/VllMyYltOHgl+tL4abOvICobi8DtXA28QEPLJOXIHgtBcQV+k6hvDGUTJO7BzS/d11BW6jxL2lXTa/XTYwNpYqlrD2Wb3SWjR1HOJryVbv0AVqe/nhzh/DzgOokQsGvKoh7c6gMzVsqbQC87/HEJ4iuMTgPGvTSoWfV0sP6xMMVQ+1C5L/7M1/VKXFEHcQqG3b4LQNULox3QFoZHcxxSKB6AGj5cBIwzG5Gawyp0jPME3iCf6qP9DXggMP5F5AsQY/0IgPPF9uxlTGfSiNC5Zg0YeZ5sc9a/WqXiapQ3lrqnyhu9mkHnnFOawl0wC1/RlfAIZErkm8ywQ4Rww563/maRxKIV4P0YOJZh1k2AcZiE91uoagDvCVixbHg6S6f3MoUDRILhGdzalxzo+H1YmAU3Fxgh0kigMkSiwRHw6jMACxGEK1yyNPGyinkO+CmgoH8nTiYYcsSDSsOMhiDnbCjljFd0kW6odZcpmlsZInygea3pF+mFln8jvDjV+/nB1/HSwuvGvmzHzIOqakFu8HF/LH/I/Vxoan++/vgdyoAV4ncd4RKHcu62UVs7wjtkbaTiu+rawNnG+wKejc6DvHD5dRPQa48c2kNXRZCrnnXYwYZgBx1OJ1KCIv8xCExDgbJ1qivdw718WTfllWpxZkf9KKMEjXGHQOyHLIc5Aaq3DYFZ07mG+ZCxx107ZSXhOu+Aqk0FuOUZcjhUFMUMKI9Df9DuYxIH6uWq9VXI91uJAhwr8XAAe9WbMyJS1GxgiIpmbgueBppPUH/Wq4Z+8eNxruZfcmpVf0HA81bmNd/3ZlSkdSjJ3uzoAsuiHeAAtj1Ag9ZTnMxXx0htq7JLzNMEB7XPy0XEIm+/687xmUyGdqQK35WyZGNNmQBwy/50KzrX9iK34PQslGCYsL6DBVvbrZbBLh9/EuU/vDilUMch2CghI+CXv1QKixFbaJGRZk++FC84ypReAg15Tesps9LQp9Jr6MGzxBVwKYEN55HS9LdnIBBlJxQQN45vObPerbxnA0nnmoiyVmyFanQI0oeWE6LZrk9JeW3VmlSCn/cylgdpsvCES+TAQmqNkvyOCLaun5+PXmW45lTB6WaYOR/KbjGV7+YfjBWnREeYvJDaS6jk/iR17If9X2xUoPTaYO7c0WEWXIglK+jrk4TwgothfIANOvwhA0uBsMFyHbsqs+MT5OYn5U9IEGdSbRZ+kMb8bBnXt0Mh6w680hme7Ty8hioq/msuSLI2ykqBJglNe+KiU5m0lu6STDGBzTATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGQAZABmADQAZAAwADMAMAAtAGIAYgBlADQALQA0ADIANQBlAC0AYQBjADkAMgAtADIAYQAzADUANQBjADkAMgBlAGYAZABkMF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLfBgkqhkiG9w0BBwagggLQMIICzAIBADCCAsUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECD5vqCczXnF0AgIH0ICCApgeUU5vCLTYJmksdCpb4K+eQk01kjZZT7kgccYeaUDAfbYn3D5w8vRpZQyj7xzFtY1NP3rKx4aI8WyeqrBVh6vgRG/KDQvEs2rrEE/kzVdSrs5bGz7HoXnZip9uRc0D0I2TbETBTjBIrbQ6jiBiiMrXX5LKU9iLA6ATQ8pPXrWCmAeU0+lB1iC6+QTJ1k6Z6IrB7konhvLLJTtIe9MtZxtP1+tQSwk7FF96oFADZQpa/2V7PXE/vYC3/x6/DkFkqYqPxkBi/SHXWYMuQdC2kkjFWBpzeBD1lPe6MBun9B/L7TwWdhYp4RLDz61jVBOJAmwhNuzpzF8d02RAUNmh44QzF5SP9YGKwoU+BHce3C3akPlxf67JpzBjnc4iawQpWZVa8yqGlR9Q9NdDqWDCMikuW/d0STrR70hMG/Ynlmo8ScFdvlQVdeG17+oHlEpJKsMEFhrr21PaG9e3nYNOKeHpgEMYVUi+sckQBw/5npEKUq+2BuMC8u+XxulYCLWdNLHR/odGa162OMzBl3IEzJxa9DEfVb3ukx8N5DTH6fLRHprsASB/f4OXgZ/vt3lty2DjwOWMi6tPn42OTl3nfrX3AVs2gnJcXyq76HEWWE6trrF+t1cpQFmJPAzzbGx7G7ou0XNizwUAZTFScRd95EjBlOvTihpmlq12SNQdMw0A9SZ99H2sgKfeJHTRczGhyqhga6g/LyyAk/yU4DIUoEyOfkgBFAJor+/0Z1d7Xv3gpqktKEBbBZ0QHGMk7nG4F9etx1mJrfdP+WZ1yjHHxst9b8C/deJqdYcAgR+f0N2rfeLeibY3FV114KBVrp4Qp5x+nJWK7Ft/0TQWoRY76Ul86cr5hcSv9rZtNloKJrXcLLfk67FlFiXzMDcwHzAHBgUrDgMCGgQUZPDeEDUaGSIY6aRqhM7iWzjyxPgEFJsyaW6dhqLMly/8OefROoGYAlwY\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n },\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert01/f0034f3046614e94b46ca68ed186ea61\"\r\n}", + "ResponseBody": "{\r\n \"value\": \"MIIJKAIBAzCCCOgGCSqGSIb3DQEHAaCCCNkEggjVMIII0TCCBfoGCSqGSIb3DQEHAaCCBesEggXnMIIF4zCCBd8GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAiCvYDyb0IuHwICB9AEggTYVQZOfCM4L7F/miwxbF+g6RAaEl/rWZ2y86DUoSx2HosUbAVxZpoCAWNfdSWPIKc2hjoPuv7BKWNiY2nPvDhkjGpHVtEyQpi7cOPZU5FlNCFqM7nX3SgVx4qsyE4hX+8T4VtE/3t4ZJe2gpVY/MXdUdhmfxIu6apK+a4T2YtEQ+lMz/fUrincXxcy2Y+0KRdvE184NEgY3KUhh/fu5DX8jg2nkcU57W2D8j0Gtp/Vga5k5CAm2pkwjzETaFOPyBKacNFwcYD8YKXOtwq5hYH0NCy9pinnaTceNJN7n3ZGr4EiazSyx+kNiQnIIKjVkbVx1ch3GqsErxvsKFqdO0OISBDFdWHqnG61WKXw8KeQIaQTKle08baKkcWsx0IS1mOQwcYTohL75LcLnTm/5kzWOi5rS/mKrd2fTJuLEyLYw3QXt1v6Qk82VgabfOU2NJ7pedY/0me8F9uTBgDa+4rbHjYO+gigaWeYC06zVK0cuMP0uIzHvoAtKTIwftKwag/+oDtrgSyshJcPJDf0ZLYYwLIK/KWUVXcSOo6m6qhdlBTeB9lLHkszNfdstk263aaUurnsGyteXWq4qaFch/dSTpXwQUYnAL0o3P37cOSIE7N38gHet+QmTqLvGL9bHelkxkI2hgp7mN1ff2JFTDupbBg85R6pmAuO0jXN9LG44za1gLh2aMWTn0dVbJPDGctn/9Ae+caVK93DPrFlN3iEo8fAavXD8BFUpyvj47Vogb9RBlAuB8NUBYCpWwmhHV/GPdSs1Tc/RN4kame80F6xhnNYd3LuUOufB3ifdWpvJb4sySUYlfUsxuhQ7mzg5nuRurfmA+BEbkyA2j2Digy50v0d1bnNLPpGMY6hs2Adcn0pfMkxoqA/NZWYOQ3x5kTN+a0xkoU3FQzCKF3Nd9bzDp0Yc7T3pKN0uTrJRinZL/XIaYKDSCLSlTVd+ZOimOZvFr/KMPB8hpdCZVBY1c6ULlvY76XRoTTYPQr3z4Fv7yGa3qLvg5C5lfRoWuauk9+gFOMTmN+qIIcit1kozhND8xqpAlMmnCsBPWoHqbHNocqFl8rh2pJuuho6z3ZhB+EdrqGuBH3Z6i+hOZ+UtJCnD9EIibD1yAIN1uYa5UqxhHSHwLJ2vuK1nwnzhFqYafjn0vmCvFUACaK/V/m5G7VligjSpX6rupCeYsyOEBWuWNQ6P6pXzmMw0B6cVcOL2cpBwHDeTV5cg9XrcTnkbaUuvcJaNG13mAQ+FPRpUeLtTXBlq/Z47nEXqu6SUtCagiyJcaXzDzQycmZiZSGB/kpEwlxu4MihyzEOrJW6hJHxmYJ6JapgITsnxTg430kiOAOcZ3T4BpsWCFBZ/cSODKHKERuF4bwIRrnjBIuDvmt22/kPspKDLlryTMzO98t8GAPDJR35UJ2jS0+aocg7JABWGbqTrM1bVb5EjXfmJWHvepkTPXd4jX3GFLtCwI4j6EHfk2RTRYIkiukrotlDRnFva5uBykvgnTlN0lk8Og8BZMLUxCmpjWDrWzF048eqBhtSKLwe52C1IbC71UscO/Mo80Cf8mksVcrVRyn0DEui3S0A74+oqn+e+uRJVIQz1Y4QFp9GKHw3hOhUqv/gAlAAbqXFGQKAyulJAKBm+AJ1Lm2zvA+t5XispzGBzTATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECKFogK9p97poAgIH0ICCAoiLCTkRSyXAvpIRMekiZPx6fmmSd0ArKO+h5/v7naHbQceZMHyJsTK5NbvlZZ5RGDDZA3Y3DcLkJ6Xtp8WKrncbseS8Ov8ng7IPZy/sbjw2V3ezP8FMmGAYpIcafu+Vwg0sWFfgOH+qlV2LWTxzdjypXsBdqtxB8G6jW4QGuGolTnsWh9aHOYW6SZ+Qd92Vig9dOowJgED1ImeyU/4+xxdCYnny1LwddlozRqBlbOu8MufTUkO6vvoTjte2lhV28JvilpoLuR+jjXiIe2sWAGcBAA0iBsjlMBKzTPZDw/hH7vbEYHdb6xfm0LIq8I+gpzp1CyuSNK9LskJjFSM49UOR3csut+aRMAOli6oAPKw9/Zu8zjkR4I3t+kA8olHc96k8CirCtRimt6kuZFxezl1sy3z39up62pNy8cPmHVyzOkGuFfgc6yLOERgMqT4I7hBCDKSoTvWT7iVNhvcNKOmT6jlgyoCm0BW5hs2pkwP7tEb2UivuDxV+PmMe/PP/GmgrClAq5Fzcw9Do2KJzsJT9XVjjg5mwpVO+hJVM8GMsf3s53vBU4lL0zAyCt0s2OOxOraHFxZoKa2IPt+Sg+8vIC5NXU1g5WmmoEyEvjkBHrRMx276ziKPijIZds6SPPl4oN+QIpG++UP5GG7i06vxZ8h6uK+qAfOZNqQgeJUg745M4sRzetZUzoNdNkV0AA7NB7wl7L8cBmy/9RFGS1C9XkG/1ZEaArKFlIQ3SyRgqs6jWrO5SRYnSYCJignjoEO+KR9KIMkzfuZyV+Fb81v1EaVQ9KJT0bH5HFhbfLvmbrFrY5Kf7QRvh5CU8aqsBModKoWv1AbRe7YuKxfRyBNmfBE49CGbpWMEwNzAfMAcGBSsOAwIaBBQiiJPm9kHZLVYIShgeCV4B7anvgQQUVeJ9mfipb4TvPh5T3kHFtG4zNNc=\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n },\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert01/f6c948cc987044baa8e8115312d99f09\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "3518" + "3498" ], "Content-Type": [ "application/json; charset=utf-8" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:32 GMT" + "Mon, 19 Dec 2016 23:10:49 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "9d397ca5-fffb-41fc-b169-5f6aeace3828" + "22afc0ed-f9c0-4962-bf9c-cba009ee0ed6" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -259,22 +263,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/importCert01/f0034f3046614e94b46ca68ed186ea61?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvaW1wb3J0Q2VydDAxL2YwMDM0ZjMwNDY2MTRlOTRiNDZjYTY4ZWQxODZlYTYxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/importCert01/f6c948cc987044baa8e8115312d99f09?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvaW1wb3J0Q2VydDAxL2Y2Yzk0OGNjOTg3MDQ0YmFhOGU4MTE1MzEyZDk5ZjA5P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "987064c1-8672-41f1-ac3c-5a68c0f4c7dc" + "4de3733a-0c27-490a-acd7-71109c90dbe4" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"5bVAT73zr4-N4WVv2-SvTunAw08ksS4BrJW_nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD-OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF-xEaavXm337aZZaZyjrFBrrUl51UePaN-kVFXNlBb3N3TYpqa7KokXenJQuR-i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK_0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9-d9R76zCL506NcQy_jl0lCiQYwsUX73PG5pxOh02OwKw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n },\r\n \"managed\": true\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"5bVAT73zr4-N4WVv2-SvTunAw08ksS4BrJW_nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD-OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF-xEaavXm337aZZaZyjrFBrrUl51UePaN-kVFXNlBb3N3TYpqa7KokXenJQuR-i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK_0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9-d9R76zCL506NcQy_jl0lCiQYwsUX73PG5pxOh02OwKw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n },\r\n \"managed\": true\r\n}", "ResponseHeaders": { "Content-Length": [ "669" @@ -289,7 +294,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:32 GMT" + "Mon, 19 Dec 2016 23:10:49 GMT" ], "Pragma": [ "no-cache" @@ -298,13 +303,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cdf49c60-3556-4c61-a026-f745142b38ce" + "02405121-6026-4493-aaa1-cc4089985909" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -322,22 +327,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/importCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/importCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8e17620c-3051-4a21-bd14-36df7237817a" + "d693f8f3-2a28-4377-aa14-d030d4593c64" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert01/f0034f3046614e94b46ca68ed186ea61\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082131,\r\n \"updated\": 1477082131\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert01/f6c948cc987044baa8e8115312d99f09\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189049,\r\n \"updated\": 1482189049\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -352,7 +358,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:32 GMT" + "Mon, 19 Dec 2016 23:10:49 GMT" ], "Pragma": [ "no-cache" @@ -361,13 +367,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "41c9f110-2f0f-404f-8583-17b39d11a78d" + "c35707ec-31c1-49a1-89a0-b0f8ee28094c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -387,8 +393,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest2.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest2.json index b23956b65e86..929a82ba3d35 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest2.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest2.json @@ -1,28 +1,29 @@ { "Entries": [ { - "RequestUri": "//certificates/importCert02/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAyL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/importCert02/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDIvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPsGCSqGSIb3DQEHAaCCCOwEggjoMIII5DCCBg0GCSqGSIb3DQEHAaCCBf4EggX6MIIF9jCCBfIGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAgyc7rsPyUlvwICB9AEggTYnL5NcywzZWVD0kt633d93XODdRJX4qBypJUqJy3ZgPoAAfW8pGJNGQnv98BMGXe9ij47t6c4V5/aSkSiV0AVcSmDlA1DK7IV8eszDY/V5B82QAaIdF5mJKyRA6IMW4TGfQ5/W20pfWiKxZbqemYhZ+evL72Re+THLt6jtUwOJTZD6z20WjaHXMiRWJ1Pk+X1LBGxP9lJHuGNCmUwlAbha9eN9FkrF7Lg33DUJhVAQVBXs2nccwg7t7r7nWtI5/u6nw0emJynMwGopQOvsfNi4tpehVAhqFUzUejiUvYKrE1MMedU2xtj/ZEDI2Y1OkKR8Ma1ppXiU/xfYQkFhRKeS6V+v+7oQZZZ/nd1ThVsI7x7pGe+RA7u9PI4WsAw2rCZDWrscS92xn10sSGbX91r2zVIC7FscfA3xFp+fy72c9Kss5w4FDAoXj6xoQu3yFbAbOPL9SSjAL2Q+TYlDzfYc+FaXAPk0V7qg7icM8Q01LsBBLrU+2SrnOR/70jeg1HvcNSbU5xN1XxNEJOl9KLHnOaSygMPUz0VREt5O1Cn5AL3DHEtfBCTdomHQSQJ94m62xKuQLLIyxFGkHs1yWqXcUyGB/6TL0qrBnmHwG2TFJO/vjDYNXd00kNwSYwHOOybP8kxcyucI8Gtg8qYatkx6mFT6tEWZKt/EVxOOLPWqfSAnJ73nMTgwQH3Au8iXvnkrLPdWEeRbpWMKUzWx0gfHcB65TZHCDRv1oX3aSyXcq9WkJvXy8sroKd8a9XJ66gDxt6dJQSVCHONEVfjlknPybWG7N//WZYeOmVgOxWKVfib0ZS5UPMmWm5ObEpF1cryA0RRhLBeT17ATvuTu9mfLawqM5JTsNsaxY9cWJ5xsWqq14xqHRrYWafWv0soM4idaDw4fMCAxAEx8OMTMZhCuUmSLa7ztuFGXTbmf1gNjXUhfOSgZHSwmUe7XeKpuTc+QZKRQhFgBKu4w6lt+1I4dv0lHSZthzlMN3oppgyaZbWpbMKEYtr4Cis6F9RS8oemIEYBJgtWQAvMJeatjKJaxO9PV3qmj1gM666Cfs4gPbiAtnRnEhQvM5pLNasif0xMYE1KjbHQPZ+s/n+BmQz6VNxj6JSw1PRWljCkHgK7GcepOdl210Hq0LueiV824Zjtd4w0aU48Nhq0JlHaGpq8cY7S2NpM8y711UjnSHPVVngBnhy6oanPf8zBj9KOMwZ/O1WoKzAkwHHKnc+Sw77vIL9CCHON3D3NuLXav2e2k5aALnK5Y1LYMvY5M60Yy7mz9z1j7LK//7c06sxoJzEuPOWQ67c09cXWsodTSx8f8CzCQzoWHLsRROgstxA8sSCAhraBzVr/81PUxElLIMH65VzHiMk7VlayKpfFXxxye2vNkuCXOVdVwaBs5vy24FRb6fCAaAC511cl2FXzQhRvRl8jSaYWPMjgpF068mqu687lprTTRk2ZcIr4Ppk60kxjlImLs6URau6Kpq1FUbcvATho+64P/10ubrUOPCKDpWVdYeuGDWaRUxjIO+HzLiAJm4U/Ox74w6bcNQiokQBsgLDmfhHJEW31WqdyM0c7RQLijLEy+8qkJfrEU9yvUPc1HHvyOIEXhcFt0vrgj14VAKOpw45iwvHtVU5uRdBAPMl8HYsNg7gmEDGB4DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsANAA3ADIARgA1ADQAQwA4AC0AMwAxADEANAAtADQAMgA4ADcALQBCADcAMgBBAC0ANAA3ADUANgA1ADUAQgBGAEEAMgBBADYAfTBdBgkrBgEEAYI3EQExUB5OAE0AaQBjAHIAbwBzAG8AZgB0ACAAUwB0AHIAbwBuAGcAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIICzwYJKoZIhvcNAQcGoIICwDCCArwCAQAwggK1BgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAirO/bm7IqGcQICB9CAggKI8oc3itfDlR2ve0WnfVCULoELvKfYMyQJawZa8bV9OSyOXQO2WfXC00aLsBW9iHdQ4y5jbR0bUfSF0ai8ZZB03z984/8CuMQKSIHAJamjLfyADXjytr5wBlJBaJBiR6SshtcokycntGkyVOkqtTLY30YqgEDsCz2U8oY5005tMRr5W+49tbDp81xVhkOsUwjtFjxMl+Lk+ghjSU3N520oBnOeE6VSLMsWAX/S4gMIW4VCXLI9XAyk/o0+bqRJnIE5Zanj381/hIF6ydy8bUbIBjuV/fVvTSmxm6M12QS56QE9dx7A+3jVgsQZAfVFdzUeO8DTX4a+mJ47Kyfb6dWqVwOsB80rV8KJD/LpWspGLoWDR5fdrL+2tM/kTw6L1tUA7MgXDAx8qXQGyenC0eZWDeA5s0gqAWgWq/71fVKl+4eEGJTM3Rb8R0shyeQTS2SUUFkQr0RpSYGMVNG/MXjtbXlPRJDXmz0X/uACV8MetsY+I3RuaZDI7mXh9YNR+gfyolM8DuMEZV4kg4NNVyD5XkWH8negKagP9KPWGE62YpF3qKYqt81GSPXGyDB68kb9wF4sHOYSUqQkiF0BlS0n1Ka8TrgIPn246PCisN7O5fBLv5Ldf8s7w1dnJU+2zF4sf8RGY0P80UWfvKxNXr0yiIBnVUTemrA9vOXuRmLpB6CKx3s4+pedX+VjloAOAYiulkvbkaIZ05IIFG/rtJ1v1Vr8UjlW1lbHRwFkFf6FJJDSx578zr6FhMSmFOKHf85KbbnXzCssdG6gYnoxkohzzpJWH/58WXu/sMGfkn1biNlRqZJUcI2+LZv/GQA4i3hcBAdMEIPbdpWsT3fZDBl3LFCIKwy6m4A+MDcwHzAHBgUrDgMCGgQUBDCmw+OGhvpRM7jcGhqYwRO+P5IEFLUWyxfYoRPKoI5c3ykfx7r1wzs5\",\r\n \"pwd\": \"\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"value\": \"MIIJAwIBAzCCCMMGCSqGSIb3DQEHAaCCCLQEggiwMIIIrDCCBg0GCSqGSIb3DQEHAaCCBf4EggX6MIIF9jCCBfIGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAhnxr0Maui/WQICB9AEggTYqIwwJRiN7G99oLnw6uEITXwIn4LO3u6nUyQgyuLVfnl8+5BV4Q/ZRM0j9asJ/TVFPQ/qalfAZ7o3XDcyFSI5o/Ir36cPHcD99Emm9cwOyScPW8BpTLcEVypxq5mzcSY0yVo2gsWabWYN7Rwq8KRqj7GsUzcaWK09TEC9isq8G9b/c3OZ4qcDISQA1i6fMLVNABpSoO0DbmDR9PRDvFVFgFxWQDgYmTCQBh6it5Z8GMTeiAxa4hgtgFZQ3U5b2JMlbIY5xgybJ6gNyuiDZLwGTT3X/bhGVtBtmzD4Sme5QBg/dZlWYgGxJwR20uWdhgo2ylUBnYnR3cI7djBjM1xsTreOeoXAwx4RmxKv2d5fqTb92E1FBMeNR0aKOg7VLVCE6Irw8fTYMupdHGwxb2oUZg9s1DGBI0PmMhP+kt7mVBL5Ju1If1WXcdKIHTKPelBzOTmHD7Dr+aiSc0ki2EKmHDMfPJtnmf6cY6pnUssVDCVCMWb0TNPigKuqhiV8tSCJJ5pbivAR6wXaR1rOuHGxWBV7RjS2OvqnUFfm6ZBCYBte63Fb03/3AC9stcGGap8wwXihr1IA5EwOhAnOp31hjpoTehIzWbgcA3IbvjMTCV3ORFqQ3Q26tNYLfh0GSHG2Z3SHJycJf2C3IqspVy4rBQ/rpGSu7pARiebBC9S38PstIKw28SyUk6WGBMLP0ZpuCbMU2IAFSe/b0jMwNsPimN+QZ2yTQ88KUFWQWCqAblqR1o6DIzgImOrZx56vWHvWGKTrjmAzMuyLKZ+s1bhsmD/jojDJAUr8fdqMo2P6GZGvHzNZqSBxuwWgFmpqyM5ioK4M7XzCdnAsLisLOeQSkFCz5RlZw9rSKnOJpL0pOHs8KaHyyTOd4o7lye+TqV/uoMhCk0yXVnFbsZ3xvcUhcpQAyFA3GkOBK7Zb36s6yNAnN440lUm5tjTEnZ68LcvUAiQlDXZppPmAlH7d6Y5n9+Syb+ZJL/P7EtUuB5pF8KXnzRi/0EhtIoudBYv2PskvDKK99nuMzUw9RIIZgDDgQPT7gfcazbuKzMTlgXkuf8A0Hgjqv/AlUIwu5bFxIjBS/kNGGQUyFOA8xgySOBo6bLWMAgVb21A/Y9r33pqAHVy4c4g4I00nkWKn62Q3dbP/i+eJbh/RFY3qPZRrwY4J+BZZnME2pbvO8ef6zf1UOFD10B+tlvAQnIDs9Ud7Zxyh+Ip8DgllZZO3IEsoNjJHdhDpxYcrmihiXArelUFNgETHZPEwxpgCRmjsU3lLp/z5ShhvtZB9Q9crF/E4fZf1ePignFs3Xqy6pSPLzUFLK+55fyJb4cDVSL3U+q015EsFZ5pbhYOVFZE1kPanY8S1qBEPBxbY0ODUeBINTY2YhjAWgcDiZAc0/lvJkhJnvbaG4PGevAhG19kZxVlINgrtk4QWe6kpb+J7SSyO3OWVEzYnORyjpqSgfB+TeOajsSfNgzQoTPoSHo3YcNHpp4OfTu0nUqYbsXaRBW4hXGm8XPaDc/MQkRdqLoA64RCd6npSKP/Ndj3/6KDum7HiXOwD5ocI3snrZjzEV5waKy2yhkcKH/Ew41vRHYUPGetpiWIFjpbACtDXWl08+6l3m1Zg9QleldTbtFmPvR+4pD12QpxB09ME57aSmzGB4DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsANgBGADEAOQAzADQAQQBEAC0ANwBFAEIAMgAtADQARgBDADMALQBCAEUARABEAC0ARgBEADIAQgBGAEIAQwBCAEEARABDAEYAfTBdBgkrBgEEAYI3EQExUB5OAE0AaQBjAHIAbwBzAG8AZgB0ACAAUwB0AHIAbwBuAGcAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIIClwYJKoZIhvcNAQcBoIICiASCAoQwggKAMIICfAYLKoZIhvcNAQwKAQOgggJUMIICUAYKKoZIhvcNAQkWAaCCAkAEggI8MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CExFTATBgkqhkiG9w0BCRUxBgQEAQAAADA3MB8wBwYFKw4DAhoEFJ9I5hHjAf3m18xGwLLhKnoky1p6BBTzgjXwTDRGAeO956nTFbV3NKVomw==\",\r\n \"pwd\": \"\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "3412" + "3340" ], "x-ms-client-request-id": [ - "f5669838-7a84-4428-a515-f94ec56586aa" + "5269a4b9-850b-433e-a1b7-9d2ef88cbcc6" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "833544bb-8c2b-402c-bdc6-f32c5719d172" + "5873a50f-8eea-4ff9-ad8a-38e21f9e18fd" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,22 +71,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/importCert02/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAyLz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/importCert02/?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDIvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fda406dc-74bd-4347-b878-508cb9c7a08f" + "0fc83979-6a99-4a48-be0e-7bfcea37e606" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "910670fa-65bb-4087-9f8c-5b641f8a1dda" + "8171e44a-87e3-49a1-9df5-993fa6d6a37b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,22 +135,23 @@ "StatusCode": 200 }, { - "RequestUri": "/certificates/importCert02/529b507c62544ce0abcd24ed29b58d67?api-version=2016-10-01", - "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDIvNTI5YjUwN2M2MjU0NGNlMGFiY2QyNGVkMjliNThkNjc/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDIvYzVmNWQwMGM4YTRiNDRmMzg1ZTg0MGRmMGIwNmUyYzM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c1b2c59c-b262-40c8-9449-ccb8bf075ffb" + "652b2137-ef34-464b-984d-3f8c7bf5ae8b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1217" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "821e42ac-76f3-4c19-8169-b1db389e4e0c" + "c5f68500-bb7f-45a4-85a6-c0196c69960b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,25 +199,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/importCert02/529b507c62544ce0abcd24ed29b58d67?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvaW1wb3J0Q2VydDAyLzUyOWI1MDdjNjI1NDRjZTBhYmNkMjRlZDI5YjU4ZDY3P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/secrets/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvaW1wb3J0Q2VydDAyL2M1ZjVkMDBjOGE0YjQ0ZjM4NWU4NDBkZjBiMDZlMmMzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7238c3ca-11cb-4ea7-9543-10ff69c000ef" + "628afd36-1091-4afb-aa6b-40f12c225ba3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"MIIJOAIBAzCCCPgGCSqGSIb3DQEHAaCCCOkEggjlMIII4TCCBfoGCSqGSIb3DQEHAaCCBesEggXnMIIF4zCCBd8GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAhD9n6+U+e8bQICB9AEggTYgvVOgeMR5q0e627YxXKX2dR9GFimwCQOd7BLUjf5xR23XKjXUNJLiRQmgE1XXWf4i0l1Xl1g/t4DNu/bA3ORLejFkK53PLdKQe3Rp/AoNrvLvsloyvlEKmG4UmYOXHmL010P95CBM44j2bVzKcMqSh6TfBGqPZubaDTsyp0GNd9NLY2+JzXD67gBWfsjYSwaGm9WPyW0FbTDk6f+ZHVykb+rC8xWxsl3ZhU2dny+IFevg3j8iA8TJq2o+ButqlsdBz2PQ36PIlKu672SDu58GvlQqnVZmln4EHqHPWrILFlamNoSqG5Cw4U++XHGDWzIDA+vZHa7bYYtu5QHdqhwuIZLBbJHBHJ/w8np8IceY52yg5qupgKJiXhwHYgzAb6wBQ5Lk5MulqEKD8SoQPi9tDKxo7OVbi++oonexYYkvVihYl+nn+LRFx4aRUZ4yUyc1qwoSIOG9C5Z/iLHJ4yDPvFQUhtF2ZbLst3ZmF4C/XWOHqYz1rpBD7lWvZGhJbrxjrhPCtNV/glM+CleTgvim4d2UV+lYED1iJkxwNte66IdCIAkwaxf2t774Z5bNhlaeDdXitfSDDN9N870uPVfR0qj2XxOUeVbQay0hqEDoxypWWz4XnXQCTGTtiVG9a//03QCNyVr+NTaJy3AGoGCPBcmWii4BatkhjqB6+2e62SRcGVID5rjqZ8m2r7ao6GzABwtNoLPH+G/TfNdxkgJOdSrQPdUEZq8dY25hyCaimTXrSphNAHmCWg/v+Yqk4AiUDlpE0Ys3/HJBlu2PrGEeee6OBAmV9WOldf7LWxaohY0d//WKDfXfLSEhcvdyQI7iTADtR6gss+s7MR2c95+cCNOEfAnydkgQHkiRqT23GvYIYFAhZ6k5hLuaQfOoU6pjpz81cpxjHGLsUbCs8hCawXOOX8YcgXNMjzoJlrJimRypp/GjxPwysZRB2y4ODJojc6v8yNFfG6fWqxsHBXFZl/clz4MRcD28caSRGAgQe5fiSNbM/nULDc5cBgKDHsCX8g+NqA2BY6v4e1sn50Ed6l/FwCiKjKGnBkI4q4Ta3wFQADZA4seOa11RlDhrNbI7fwDxLrxvJBHeCCzFJbUy0n3gELcJtxYtGoxVecF4E2mtde8MSamQfO6A9zeHx9d3BAC7EFm+vgbn+1r184621uK0LwRxe1FNcbV1dDWtG14aFyg4Y07wUJIOuiY+vh05k402S/ndkRrXXZlkjxuZY8kMYXROoOgfXYTHskpOqjS/YAPsc+PBMbaI4GFzR/OFLDV5pN0khB4z6yiKC6IqbX5nRXWi247ceMjDI0Wvt1yLZR9ONdJdG/GtB86HTBiNObE1eMr34VA6khp3VFzgSQk1UCKBEr6cfyLqo3xqdp2uM+oZWiKCuZ23l4cZ0+KWKpQoTXV2Hni9124ZfAUThkHEnzigHazEtbcP2yPYWJ4E8QrMfBW+pbWqeqZ7pT35SpUGvFrdb4vg9k4kX/2vk2kyV05LJJEPD3WkXKdwd1dU+vUoYvmxmVnXooeSK7jD1IrQ5jzrk2G2qpNuvyyr2N7Y/K5P0ZB4CfXgyyNl10tgMosE0cNHg514f9ipVkEivdrBUuvJUOrAacMziQHG0kTnxJmPkvqmnB+vzKvcwfltOHTEJzAJDGBzTATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADEAZQBlADgAZQBiADMAZAAtADIAMQAzADUALQA0ADEANwAxAC0AOQA3AGYAYwAtAGEAMABhAGMAYwBkAGUAYgA0AGEAZQAxMF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLfBgkqhkiG9w0BBwagggLQMIICzAIBADCCAsUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECLw6OsWs9WNuAgIH0ICCAphp1EWuD++yEHn2NtIEKllEcGGoUKjkCTw5a6yURZ6jmr3oSEbu8R4iI9kzU3RFpHOlocop9GhYPtWYvWrNH7Zgo8OEt2jRqo0ud1wn/ojkEySJ6QSiySVF+wFsiFIAoBVXboeyyVxiaN/eY2+eW9xfd+F3sUNf8wNaR24oB6HkU4c1/xz448aSEhy0LOgC5bXH29j3AaXerNUXWjvFmDOtY6tqMR3rXbZla9uXDeVld0UyHAllN5xHsLJpRUOy1/BF1tCkHLv+nybz8ebVq/nErYDilgc681IdixdPx01aEnh2RKXAJGqym6TxdU+Ajyz22S3HayaJz4WQ1uipcGguQsxex++V1u9NrbQrSWp5D/irBe4hCNDMWr35U/Fktjb5pbVBPTUq7ahKSbrqvzjd+BoTjPLVLQC4Zn4w9PXBzbfnIXUMxMTufT4330si3WZs3erG6qVtbBVNlk+6NS62Qz9Yw+kt54DD6pL5epHNxvfQMpPVyWLpA/UW9job/NA7SOtZw8iEfS3rYVDcLZnsd8ac6x2Wvc9Rii4K2gIDpA26r1qMUuxK7QFaEUZwIB1xNCkBxvOLb6gfb8lNKBs/QRjbuaUnnI4xlw14gHW4Jqtcb3jC+2mXhdYOGhzti7P+yjEvpjS7afZ6+0RvTwC70mYlOETsHNookJBZiVX0qfQ0jlgQbZShBbK1fXZ8B4HIxHryuHt1flUTCMH+xZQJYdZIQUy9fdEWZfwYFzCVm0Nwk47nbzeEGgLHx/IDta84wTeT7fOPrcObjYcZdv/6H3o9IJfnsspjJIDk30od3rkDhKVeGMVSF+YFIDmBBoUATbGCS96KUfKdfHN7HzNNRpIALtWlO14Dt/z1tDai8ruOjefEr+PaMDcwHzAHBgUrDgMCGgQUhQ2aeMzgiLq4qbwcqdEy5h0+LtQEFHCiER9fkSLW0pY1bP8PTLmZ04ru\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n },\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert02/529b507c62544ce0abcd24ed29b58d67\"\r\n}", + "ResponseBody": "{\r\n \"value\": \"MIIJLAIBAzCCCOwGCSqGSIb3DQEHAaCCCN0EggjZMIII1TCCBf4GCSqGSIb3DQEHAaCCBe8EggXrMIIF5zCCBeMGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAiQrpmrz3EACwICB9AEggTYQ0ErxpbH4KL7okxrDs1fNtvKBErqolXetCn01VN1mNQXJpb15azRJcTes6oDk0hH2v2eb1lSgAKx2LsDnhKlq9EUT3M3LMM7WtITGFS/wYz0stf5dbk4m1JJvfRy/+XMMhUUEK6SA0caRQUVloWLQHXSuYtDg5Xpd1G3r2QkKSvuUDRmDC7Jzt/N/oCXYQFrWV02uuU0Rp9s7sdub3Q4Da1If1ZnkzTMcFwCmLsRGdOOBmQQbXTXM5G4xO7LpBafDlJsqGxhuLgX2sTALdP++1PklChQ5H3/Xk3JLjqiuKIwVatxGU1JWvzSwk5R7ECQ1NeYqLFaoQe9rkn0dyrop0mj1JUx2s9IqwV8+7dU8Ldrs/pp7ogEXCM61ALFh1OxBBi/YV/J/5UynHWwcnVt1Zl4BJDNKzLjSy/iW2D9HnGQGIzql+3oV9VDQUapdEskpJoRnz5ExZgL1pImjE3WmdRr1T+mIEIkvbbNd1JjFKXuExkBFmDv7nbwCvdoaDAQqMRzHpam0CSPRtc4Rp5ZIyaXnE1NKVZ7MJx8REyZm6DKbqepuH/BkblHGqM0lY72kO0d7pvFL213Rccx0MRdVobqak0Vnpgsmbd4RS61rh8z7BggoQGzvckpasyXnzqip+oGcLq0iXEakHnJGeYE1AYITXztKBdSzeb18UX2nVrQa8YbhhhhIkA/4c9LtRWNhpK25X9SSsAMsGnSnyOwjPLohbnFuOGByQ9MAXo9gHCgHS4dIBlBeNOta1NwnCfWMl1XZtZ7BhW80sIS9KvIs+5OeJwINeFDKKfb+oB1Xe7FrPcm9fCf0ykpSNmLE1DuOKRTe4BVIPMiQbwCSmDRk62nox7NkkOhx7dHgJDaFf4WPMPQmtXPpjzbtcm9aqrDKaoapcGhyFuHrgIc1TCQzwhafXeRRiKiZT2i+62Z0hWVtKDb/nns6hBj3PnSy4AM7yedUvOkfn0LABK27MPSk72VuXZzhGJnF31cBeTOnkSoA35gggZIXJX0+nAvdpDAtkSlanWJkW3pBrC2zZB3NiEX9LdKR2WYXbEIdzqKvyt81dCezRqXA1mXg4KBClNeICjdilhWqrE6P2jDmmqQOBRZwqIBK7Q6lWsgDGXGBA37JpZe/XNLh5a3CygrB8v2+Ij7bY5lz/CInVlhWN6ACCszM02jyGp7W/UWkoq3FOaCe8DsPSwpW0PsDkjrHVVr8mfZwUDNPM+ct7EB373eoddBGqtVVReOEMb76zOhUC6M4nvsEjrZ97a+N9sxx6C+932fylsn89O2UbAI7IweIIvdHCiyjJCs85I5DSM7tBz/I/May5ytQwIxmIY2YOTXJqt/ojA7HHLV5KCxnLctq7OCfm8AhtuvRYEYBk0cmvbz1E1SIML3kwuiV4gkAkAWjdYzEFx4orcwmKXSTk4kbTCqTORIRckBi4hDpi1wJl9vESgntQ097jw8wGsfOic07FEB5Hvws8RlrWZ4UJ+rXdN9qO0E+SOReeDJyI2eKGjGwSwho4OBpPOtgpK3Mnmf4pDYQXO0GmV0Z+xSxBtO+ujNe6nQPryPS6UsDN91Mgq6a3D1Y2aMBLtW3G1IRNQ4Wk81+mZ4ywklkQ6zBNTAW9+hduRrlnXPMQRnT2lnmgFDEeVBg0WRVTGB0TATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsANgBGADEAOQAzADQAQQBEAC0ANwBFAEIAMgAtADQARgBDADMALQBCAEUARABEAC0ARgBEADIAQgBGAEIAQwBCAEEARABDAEYAfTBdBgkrBgEEAYI3EQExUB5OAE0AaQBjAHIAbwBzAG8AZgB0ACAAUwB0AHIAbwBuAGcAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIICzwYJKoZIhvcNAQcGoIICwDCCArwCAQAwggK1BgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAh5VUT293bJbwICB9CAggKIFXG7GA8OPbAfi8PMns9ew13ZfXzgeqglTx3eTsHQKk+/O5H9yohvRKFbC3+Jn9JY+QnRT0QzM6iIo0Gbs7WpmQ0EhKw2HDaK3A/4fjJPTvtD9YCOAMtb/vl2mnc2+CXe21pdKVfqtyjE68cpr8Td8slKYS2poQYmrYfyrh8odMDZtzzZsZPbmK8EbJJvbZ3XpCDncKruAkD8sTcfCa1+6JEkWIHptFiy0ExfDu+fL8Pe89SixjRVwfrmrmXUjCWddgHV+L1weR81t/MBPnb2MAXminczfPgkoAWlVzLHQ1qcqXXi85Fl1I/VUKfUSJvWFS3sgyyQoumAiuZk8rVl3YqtF4zflmDhuk1tZwSbyosdxgg0ohi4Mrn0AO0V2zAFCYnNqdCihi8dulxiU/zHyp7HJMXbHytegM8QpIV6N0MjWvHhiKJ5eyIYHdPSJsZX7jDs549u0AtOt4NgJIGSXf6MI8emGCRN2ITeYITJQCOnWDP36/Vj4YX1uba1w9XSKOblW7jzbA+omMNGJ6mKnH+t3MnVfw9ltnFYZJQZ2x8NvlJDXsK9YzrZ5zTOWIMylpticwvlfF8x9LCJZ6GMxNCRonwWQtFGXNUuXQbp879uU/z9Jzwf4VVAQWYQoT27VIkg1OfwVdc+zaMiXBMaweEtlo035XIhA8trQ9gGRO5OXPz3vxoXsddYOW0nATBiV3yKzRqq/jx5096AtydwtItU53Z12cndL2w1e/Bi8BM8fQQUEj0M2CTt+YblEflOKT98+5muBv4kbUQ/ii8zhXjv4pMbeIa4NDM1xS9hmA1IPjiGrz1q84E3XGc60uqGrbTljVPQcwcH4STs78gV0WPYZERfIB3BMDcwHzAHBgUrDgMCGgQUZd/VQUtskCs3Axv41c8DcggWoUUEFPlk1Ta/0C2AZudzk1NGkdshvigU\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n },\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "3518" + "3502" ], "Content-Type": [ "application/json; charset=utf-8" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "1d62cf8a-ff07-4f1d-8304-bd7391362ac6" + "12c3b90f-c46a-40e3-af8a-af9c8c52f13c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -259,22 +263,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/importCert02?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAyP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/importCert02?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "28db240d-a2f6-41d3-936d-d6fb68ca4703" + "cf45824b-8ec5-4d3b-a1a2-8f772d9dffac" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert02/529b507c62544ce0abcd24ed29b58d67\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082076,\r\n \"updated\": 1477082076\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/importCert02/c5f5d00c8a4b44f385e840df0b06e2c3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/importCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188989,\r\n \"updated\": 1482188989\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -289,7 +294,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -298,13 +303,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "231502a7-1e79-4a05-8f44-4d65d7a21f51" + "db58d0cb-b066-46ac-94e8-004046a5112c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -324,8 +329,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest3.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest3.json index a1b7e80016f6..d7c113d55fab 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest3.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateImportTest3.json @@ -1,31 +1,32 @@ { "Entries": [ { - "RequestUri": "//certificates/importCert03/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAzL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/importCert03/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDMvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"value\": \"MIIRoAIBAzCCEWAGCSqGSIb3DQEHAaCCEVEEghFNMIIRSTCCBhoGCSqGSIb3DQEHAaCCBgsEggYHMIIGAzCCBf8GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAiSgdxNfWTF9QICB9AEggTY/CDZ2kKI4uz1awKHG2pa0vl01FHGH0TwVJWex5JSohU1NL1WvWKkkxUVapVM9Wj4etbSTwHNAGnR88mA5XNy3+MUKFCr/RqpU+4XnWTOxWWsliiN4FLkXXXDJDlw66dc0pjCr76L2nGgbTGv0NdnLTBFEJStCFSVgG1bFzoBuyGji8MNMiWFs8rdDR4uFjr3dzvcKswFLF0ijB7LBjVOjHb1t22zgPurzSWoiLbFOa5vf4imSOH5T6h0HvJFJwD7FtazNIKNUiQqbJSl6OjFRx+GLkymNQGrnodhO9VJrE6cDQB58wT7fdz5vMTBMAwfGYomhtd1L6r+svvpsnX4E15EYhbujONx+yOBoXIz/cR2Df4xMeuGk+IutErtyjgqA8IJq1P4PRNMYFTcyjagXINL/4aAgHCGsaJaCNA/IRX2I1FoRANqge/L48AGJIEMxlCPbN4ovdzhFuz353KdewzswQZ/xcT0u1Qxx7tKUCDq+POrOGqoG61kZrRSZq3FasiaKmzzaI+4QzUNGBUn/ygUY+3mETUJ4St2rXUrZRXP/vwuFclCleUM0YvkJ30uNSjbKcsX67e/DtiHRkczJwS5Q/4OeOeAf5z042+Dl7UTJ+fNLTyLZMmI2pg3l/IYRcfq+gTuP/BjMaXPUHDJshyhyWELsky/6mSKbq2igzH/X+mLCLB+OuzuY8fXvRcPc+JsG1lOYsmLrShS3ysolIa7zU4wYh3aAVH/3BDhZEyXw+uWFoqFs4MbIy1AU+fHBvANDn+Ae0XxHoGywPLZsYDUAnyc08zuYhwjV9b2HhehZBlDOenMgv6nCEbHf5JZ+aiZwPtSv6zNlurbKO90lajm1QWq9JWMLpjpShbHpklSzNBUdSUJYi+ac6dG+6eghqiP/9sm4JlNvxXOw6W+9s1Q5HVHZN8/rIFJri7Za64KIZMdT/Gr5IvIgnGA4xbvW/ao/zniX7sTzNdQdqQ16dUlyK44Y+ceOvLVrJMP4Omw8NNc7LEWJAXQIpu0dVvFbCkdHWx2z+U9dRWBz7iGbMY6+KtEQ6eZb3kRLYoadZGxvmpwCn/UcJA56UVCA3t9kCk6hhfNbfV2paiRaPqeMg+p0fhhZCAREuqGectKXyp9WkaeTrIMXYsZnIC2rNx4Nuq2xSs1iE9ajUof5vVEEQpgDSXUvUcbj1i+xGP7NiO2HtrKfgTkfGhlrvmvZlfRUcUXFdMzp7Vp1Spd0gkc7MkScDP4T2h3O8ydY6AAMIBIuLiUcxzF+dU+0Fan8PV6EiDRf8sql/1KQz7s2NVmu2ljA+troZosPdretvOG/T7X/hXUEULdOuLx8tlQVMsdVoDSXzExdFd3BZMQ8VtnfZqoA33fwA6UNNBVeJhbXQTpsHukCWJp5y4jgZv5/d67OsWoEIaHA2v0LxVsfuHErTFYFvn3oOKJzIQ0qKOy+UXYaEqFh/XoLyC9Qg2AyjDbrzl+IeooMyGr+WTsDLJosVg4BUTQMysYTrk1i8DXOpmXnvStguAwqslmNBOX125tnMP9hri+k4CGcafbgT2ttpvnr3kaMTXLaCWOxVTJ+HyBKI2HbQH8e6hAGhfkP8yKsuDu+Y0n9CTvwCj8j0MwS5NsMKqgmNVjRdkwqviqvyfJVH28gEY9OjGB7TATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsAMwA3AEIANQBEAEYANgBFAC0ANwBDAEYAOAAtADQAMQA3ADcALQBCADMAQwA5AC0ANgBCADMAMAA3ADQANQAzAEUAQQBBADgAfTB5BgkrBgEEAYI3EQExbB5qAE0AaQBjAHIAbwBzAG8AZgB0ACAARQBuAGgAYQBuAGMAZQBkACAAUgBTAEEAIABhAG4AZAAgAEEARQBTACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjCCCycGCSqGSIb3DQEHBqCCCxgwggsUAgEAMIILDQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIDSMMYz34cTgCAgfQgIIK4IkdAoHVaJhXH9cmcvdlM1FQrIjFkuPH1m5UL4bJ5po2Zv51/GMOK93OuS0Zt6wdFANONvqfofHpupZg55dYcpD9NXyr6BWObHJRAv8+8XymDDHZPNDz15QAwYx3QO7kCFxejDhIfeoQpqr+GDaynZgBfc8/ZVY3BBIBYKd1aRNFrrVDhLB9OyVhJj315J0DAV8LHxx7DTyREB6dg40+99j7mqTY2fSY0V4jQuOHFEGKlwj/sVILKXaCfzoqbQwHq2oACuJ42wXqBNmdm5UHF5N4fNPa6JLLcc67gvKq3CpAg2QA2o8Ec7xDt8CWWY/pTXnTHbCc4p8HxdIph3w2lEvJClnfzGKW3LySH5D6HmHB9JgrIYtGQArfrO+L495iLdqAA5fVMqG+Wa/RcnjniNpGvO7jB+fusW7HAUSTGF+hBPF3znsrifVUxianDBI/eTXhpeio7tssN/TfXgTrFk2KydJukxW5d4Wa08y0pA9Q6D8Wv/pZmpOu7QVrhMiOqx502U6hJ1bNPly+iZHklHB+Sc+vfW/vNLPfrKcwsJvv/R79wxCOSDIiI/ZhxKoqAI97yzipgW68UO8i7XWbNM6X2pmCvxL/A/fguZveMH2eziDW3rpN4q3rvIpidfft2YkLgZNpcaahGw02YhFJkGl3pHFS5T8nEn/sf3BuBgqMbgZ2juGUGU9RjLUvbRHUKq2LrrS+fXB4dty+ocuoq8WyHgge2l9ML3CItwW9xe26V2Gf4ku31EP9Jqqpk6zqNPa1G9nNGCUbhj6u0EHqFWei0PYRN7uY2JEteyHUqEbKD5ph6jpEjkmCHEiRHUGSMS0oZIVmE7gGZ/2578tkdacgd3W0h6GeVPKzVsEvTMmNep4IlCMtzjIvQz0iXg21otEbVOgC9t2JBtFQ+NSArYHjWJs2aWCFct025H3b9wvhwVyceaFuyAphjVO+8h84/3nsYPwsrd5diKhsJv9PUOGBxuVijcuEemYEAlLiyObzTTLyYMJugPVncdA8gKG9s1kYSECoBrlY+j6Oq+VyElPypECh3HACt9CywJmeDoo5PZzqLOtOtGTS0p9GdXRmLx1F8L4Iwf6CqisDpGN3OxUoc648bOL7GQFKSXy4x0onMqh4Bmf+ww7CFBRcC5uWWHrQzG4aEYkypzRg7O2yacwgTgpLe5kbR9WuMBK+xCkq6Dj2CYKGkc3ZWeY96Ef+6Oj7mB+cnzPKztETTXABDC19Joun2IAaGxOLEB/mlUQZrMZzbpeKLIRnlqyvdD5N4taOKRSUvt3O5wTWwn09339B/Z1Jc3kPYl1NRtFJq21+EBYJL1AMm0yLkj0+Rqh+gFDjsJJjzSKR8Gh4N7HpS5eEOmxTcxVgHWmTMCSpNEwuc15SLzEw62ilVOfpsGHRLddD2NRTrBXpIvN5EdMJvexui0Phwbr2FdoK9bpwv5nGxXnW6cF7IY4Pmt+0na3p8UFcEyJ6ZaGlXVkfNDDJqTw9CmQjvFcRB1oJ6bweZSdw1xK22zn26gumIRx11QyfFo6RgUhbbC1NpZtwWWKr87qGAEz2l9Rvanc9T0x5yjlfj7YXOxdkmPTojwyiwxSj52APwW0GqwW7PO2tQFar5ot1VhCxxFkHdPYQCcQQhP434ArONk5oKyIUUcU5KplDeJqmDbas/XqAjNLuJAeHAVv58Vr7z+dhCD/xneGyla6O70JWnD245ppo4YI8U4gyzFL02x68d7nvsmC5wqKWwRhLbHGblwRoZ7YApFmBfbcM0OpMVT3kOle7EBOjqhPnCZJNg886HHDYI9Vzm6cSJyVuACwspzQTZFaz9m7O6KbtnQBF49S4Lj75Ke6IZrIqIM4FVMLcUP8GCx3mVemSpaz8tcVKlf1o0uFXPBRpju0ynW4ivfxH/IvhslCGcImtlOPIa7JrnW6RjvCa7hVxfwUBX8ZaJsRCNZbuo23BoxKpg1Q+57X6ZAHPCLfDuCod6VPYdg+ZsdF4MsUOL0wnSS0U+HgTUzhibuAWYIJ3o/eXlEA9+9Esd2eg7zs0nkENYDkPYBPE07XjYaWyrYEyg2/kC6bZy+OI7kkNk6AQ2jDlc82BTrTxzZIIs+hpiNLUy8VuWMQ8i6jmjIKBHsVeOk9GQwG/J05X0Urfus9ao/tT6N4CJWgv2mapY1HBpFlPkpXu7QVPNirobpHXnrNOH/lcS/3vE8MOUeZv3pZKTMvhqmV4ZUGq+uIrgxPmP1LNiokWLYott1igFwxZjVMIUwTJHr2BLfatHKsDD0Vso3Amn2jQjeld46p9IkeBz/KmET2gkizpEaKb+qY7rpc37bCiM0TPwDtg2ryl/J2RKjtPmp0FwLuD3Vcifym6r/L3gZDdAgG/00RSXOpgJl63hSKag9JQaJp9apb54ZKZrE3kk5U866b2XDFr7O+CwI+2J3A0wNI2/nob++c7YuejXWC97cyQf+zciW7QQ9mx697oMD8WEmBao9/oeajSQCZ+y+2DSknED/zSO9wnxazgwSexIUSO+ggXEP1/mEZGUvn/PwRFfMFqgQkHesqCvnAlK51A66c43m29r6AMAcpETDJ9iGoAWbrL604FHtL8KXYiQL77uLgdQ+Sozt8eXn5evdglDJjlU5BgXg1CGahsZtqjv/lZdvNI775JRMeQACfNcHdoEPFyA8xjGO+i7H81sXHifOdSszn2kkPb+KPxphKgl8FGC1RklKjujD5RYjqZgWwfMSGh6z8F5DYnOs1SauAk7g522FPYzm6+qm8mylXvEwmLhw9h9dHqETlf7ZGMm6xVx+jhXGTOjXPnGHC2Ay228CHsC/aO5lyxvFg0Yrzpujt99CT5ChJoiJS/sLuIiWpQ8H+4gtBhCZ/lG14R5HHbb1IEidIR6Otmefje0QNXClru8BfHsongMqQx0SPb1eAiuOj41pGYsaZNmnZ0TqZCust7ye1jVcDRu6nkCxTXIx4Hzmm1Xxlr31F7ajLfR7IgNLaUkCyyeb6OI9sUlE6y2eIDoUq5R8+OB3QLWcosbvRIhMvC0avk47yK6ybpgK1ZDn6AsgnZ3j3P4opRIJcaPVOWR1hWzNeGRpnYzVWpjRCq4G6LHcR2juq5sn3609UbzzA8rrmn9z87cTKS9VXYpiYAtmdhgKtO+2i/lR/LJuozDlFAaxwU8TtnsA5dNzt9Z0xnfl0Om0/7RM7W/ab4duMI6ic5mzypB7muJB40ty4Zxhn4gOlhBXymdJIdo6+YU7utS0e1BZM8zd41KTuY+XPNPYxoKTLVa72IWEht7p+5ZWREwKRoXZCqtYLW3ofHftMSPjHD2gl0T5NvFPo3ZdRyZBaxJ9InZcBxPi0fve3J87cy+tFM2ZRPcIuA0TTeUld7ONSxKkv4EOOix+VUkAUpLKGv64K/uWccR1RxkCGFkT2pFSj/4wfPF6ogC/GcTV6Rb7mpIBTLK+rz8AJnMxz+bLBgWMwZvfdaG8ExhlVna/0y16KmtpON9Sq6ADmHLJNM6G3zKdfAwLnglTT8UdUPfdUupAcXnabktjuRbYx74CRJ2hnWZndpXER5HUMq78aw+q12Rt1Q0AQgTwvg/ofoEC9v4J9KlC4H6fflocxCR4cebjgx7e90/2Vs/ZohjeTrg8jekIM/etpAoCYi3IAQe/THG7A8EugHcohjPYGY8157QlFRZhqUQ0wWU0QGQSLwSERSS/KquYpzOTA3MB8wBwYFKw4DAhoEFOd9c83kBvgqsBk3MFXqDei4+dxcBBQo9bS15S1fLXT7g0zzE0YqAQFiqg==\",\r\n \"pwd\": \"\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"value\": \"MIIRZAIBAzCCESQGCSqGSIb3DQEHAaCCERUEghERMIIRDTCCBhoGCSqGSIb3DQEHAaCCBgsEggYHMIIGAzCCBf8GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAhjUH05/bzhswICB9AEggTY/9slVyHrEnh25DO/LxsoJs0BkFUXfRtkDIrfpzO/iLzxk7pzjyavRqJYH6/iA8LvR1T6t/XOlh85WmfTIx0L0fXEvZgd4Q/cNnoEnXkEwAJlzRbVKMXJDIh2iHiD31j5BFYyGsS79E1ZD1PTKiSG2yCZm41bbhxB7bBPhlWa10ENPhChqlNwGmUWIQ6gSmOHCw2negH/2YHXu3v0+bdIKpmvBMJQdsOizcbnXewNI0YEQrIfEX/YhPEDSvV2T1+1wGs96NXIPKldn2Lp9Zf9MiRYvBlo43i4dPzkI8nQSQot4fJ+Xx5mDPeYhlSJiss5J1ShIZ6gy6qzwSBKgg01T2inZEXjfNKTprvA6FhEO5jwoWhNhpDl2t5TBaUJy14prhkrBzZjSoWR3ng8PIeCFtJNkxgL7yYipaYc/4kWwqqYeLM5+YG4ct5P4HQwZooaGdCUYV7E/fmtDTTo0UH3mCkWd5btkF4tVM2COBMNk91BiP76CrTFknlDTv59WNX7m7zU1Oc9szk1W6iDrKv2JQOd6RsCVVYJY+h1AY56S7GYjhaYUUIxuUXa+bYontJPcoLEdD21P3IsAlDk3Nzdg2GMLR9zuiSomQsDJRZWftfFaQmp+D6FbdrA0tgPhsg4iN3DJawH2X8A7IUMceIJZlTAaGBv7nU0325LqYKetW/PPvyxjVqFuawCxIXrCOc1az6iLZp1YWBafx72cnDdu9O21nj1feQ4XPkpD31+i1a5mhP7VqfTwPcTlsnFAZAVgPUQTQjgGUW61EpQTeZEZjraRazi29vJwL2V0hH0P4o97rAN2svud5y0iyRYOe4f+hofR4gOx4mEwkv6vbNIkxg5LIFXpFqOFGR9sayc2A+GgcCsWTUsthQSMukt5088/ygX3W5GTa/y6H2FfkpHPUx3fXkk9sGI+kAcQkgqdfBRzQtfGvED2QsGs/TFB1i6va9+ZRzLRMdp93ZU0YyM+zp2zCjnDfAxEQO6eqId7xPZGsqCy11ylAkw1c4vqnkGco+aCCWR3N3NrFOKobmE+GaYVhbe34ITeh36erAiKL51oNZZlVj78suhgfWNuD6Mx8FJ20g1agZ6M9IhJPZScKJ0QZDzpXspVh/ULDAIz4P6Bp6nxH9M9OsX0MxMtvLt5yQE2tNZi9AWeOUjk8kVueWPNojawzfoWgUK99o0M7fioJ3mvE44BZjtffQ1SOsP31L1lJCXwQPOOv8pRmXc8n0iD6woI737tJ/e0UDIWnjgpYPm3jK7MhY1ixFYMeCLu0jg/fHeblqrqNHetA+3tBgct7+Yt7oQLWTm8apd29QpmQ/spWoZwLtRbatKqMdM80Xy2Y39M6LlvjPnqlIX+5a7opB7nCp5eK14MLv6h4gg2+DKCeYwa2utBQai7yKA1H0gNJOV/Qo2mtTlU8aPDYiSYOQ37vGWJixYuoskHS8sUp1yY3NSHLO4g7GuIatyvd8nxhPSvo12GzeSO5R5TWER0VJ3sIQOYmJjHkS22j2CG6hyLRbWQptH/XHuDavzHHRnpBATYn/3u4KTMHbrenhKA0V9AVFYx0Y88G8J1vzaF78kcbvNr/eKX1Ta/l4w1NuvKgbBZcGdV4XHYkpMhCLDaVpgrzVxAddnwlOH4D+DGY+zPVJxuzGB7TATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsANABCAEQAMAA2AEEANQBEAC0ARABGADIAMgAtADQAMQBFADEALQBBAEUAQgA5AC0ARgBDADUARgBDAEQAQgA1AEQAMQBCAEMAfTB5BgkrBgEEAYI3EQExbB5qAE0AaQBjAHIAbwBzAG8AZgB0ACAARQBuAGgAYQBuAGMAZQBkACAAUgBTAEEAIABhAG4AZAAgAEEARQBTACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjCCCusGCSqGSIb3DQEHAaCCCtwEggrYMIIK1DCCA58GCyqGSIb3DQEMCgEDoIIDdzCCA3MGCiqGSIb3DQEJFgGgggNjBIIDXzCCA1swggJDoAMCAQICEAIEmhKkc0iFnaJSs4BnnAwwDQYJKoZIhvcNAQELBQAwGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTAeFw0xNjEwMTIyMjQyMzdaFw0zNjEwMTIyMjUyMzdaMBsxGTAXBgNVBAMTEHd3dy5mYWJyaWthbS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqV3oXhSMMQoCdaK1sQEv27lHqZRpebnelsU3wi5PW0ltZTz3aO2sqU0AaUV86Frn+ac1xl0GztYVzDv+5FZKNxuheRSGnWa0jNpREBIUXv8XfOBdK9APaTr8eYNaOubO6unCFHD7h7njSdoq7LOf9+egi4E/aX7bhVey7ckBtUSeOnfspNqJnzAEGo1neyb0S7fYIFqMIYcl+XR47oE+V0rEiVEh9h96Fc6Z5tKbza9fnlyGcejCQ9eYaiJse60o/aFiBRAgfveb21WFlRcgb9VkTV3/PhBPlMmVBov1EZSpKmitd6xRy9lFFSFoknymtI6MUo5zLfR6+APDsq9CRAgMBAAGjgZowgZcwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBsGA1UdEQQUMBKCEHd3dy5mYWJyaWthbS5jb20wHwYDVR0jBBgwFoAU0/M52BGdzfuw8ae800eW4ucQD1wwHQYDVR0OBBYEFNPzOdgRnc37sPGnvNNHluLnEA9cMA0GCSqGSIb3DQEBCwUAA4IBAQCjyUgsqI1hM+xDv9zmc5ReBB3Lm549gZOZoqP5LzolgYI1PqMtET0yvaGtnNPblNNbJ+pGgEbNuvYmhqXhs718BTInWSneowIYrQFU+ek3vAOk4GdSiQ0mvfImKzj3+7XlKRvMBBiPCiasdVDfKMm6geyfFAWYWLsbmR8DmOSB5Y0fXc+LxrJE+LTP5ZSOvhdvC5M7T4woWnXddBjoMms1SHGxNYU9sFxCjGQELxb2OPBgCGA6KPd+DDJIzDJdB16o2VqPdECiL+3/WKAVVh91ll6VQLubOOLNoe95aNs1UJmuniwJw3EbbVu/f0H3WfA3K0OmeBuQn7ZNJ487I9xWMRUwEwYJKoZIhvcNAQkVMQYEBAEAAAAwggODBgsqhkiG9w0BDAoBA6CCA3AwggNsBgoqhkiG9w0BCRYBoIIDXASCA1gwggNUMIICPKADAgECAgMCNFYwDQYJKoZIhvcNAQEFBQAwQjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xGzAZBgNVBAMTEkdlb1RydXN0IEdsb2JhbCBDQTAeFw0wMjA1MjEwNDAwMDBaFw0yMjA1MjEwNDAwMDBaMEIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9iYWwgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDazBhjMP30FyMaVn5b3zxsOORxt3iR1Lyh2Ez4qEO2A+lNIQcIiNpYL2Y5Kb0FeIudOOgFt2p+caTmxGCmsO+A5IkoD54l1u2D862mkceYyUIYNRSdrZhGki5PyvGHQ8EWlVctUO+JLYB6V63y7l9r0gCNuRT4FBU12cBGo3tyyJG/yVUrzdCXPpwmZMzfzoMZccpO5tTVe6kZzVXeyOzSXjhT5VxPjC3+UCM2/Gbmy46kORkAt5UCOZELDv44LtEdBZr2TT5vDwcdrywej2A54vo2UxM51F4mK9s9qBS9MusYAyhSBHHlqzM94Ti7BzaEYpx56hYw9F/AK+hxa+T5AgMBAAGjUzBRMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFMB6mGiNifurBWQMEX2qfWW4ysxOMB8GA1UdIwQYMBaAFMB6mGiNifurBWQMEX2qfWW4ysxOMA0GCSqGSIb3DQEBBQUAA4IBAQA14ylq5S9dVI4pUJSfmRoU5I94KmKUoidnntDPGl5H6cGypM/dQRoFTptL7kpvVVKzJKE3CutkdiouLPP9O3WQv/px2Mc9N9K1BZViuabeiT02ezh3SJespiCPLqbJDMKymUUAx84RUSIi4KXqthVICWTqXk909wU+x4pSDNsVtL1tm+XGsVRoqeNpkLaapQ+4uT8gfa5Ktbic5B22q+aUpcHHg63b9SeHDgRs1f/doF3th1K3KxUCrjmmanTp2sTnvE00HqlcTTNfkgkviGZdd5fHHXYTqdXl8RYJETXVrNskcXAsmFYL2Re00eNRK1516NXQ3E807cIFZoChy+YzMQAwggOmBgsqhkiG9w0BDAoBA6CCA5MwggOPBgoqhkiG9w0BCRYBoIIDfwSCA3swggN3MIICX6ADAgECAgQCAAC5MA0GCSqGSIb3DQEBBQUAMFoxCzAJBgNVBAYTAklFMRIwEAYDVQQKEwlCYWx0aW1vcmUxEzARBgNVBAsTCkN5YmVyVHJ1c3QxIjAgBgNVBAMTGUJhbHRpbW9yZSBDeWJlclRydXN0IFJvb3QwHhcNMDAwNTEyMTg0NjAwWhcNMjUwNTEyMjM1OTAwWjBaMQswCQYDVQQGEwJJRTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAowS7IquYPVfoJnKatXnUKeLh6JWAsbDjW44rKZpk36Fd7bAJBW3bKC7OYqJi/rSI2hLrOOshncBBKwFSe4h30xyPx7q5iLVqCedz6BFAp9HMymKNLeWPC6ZQ0qhQwyjq9aslh4qalhypZ7g/DNX3+VITL8Ib1XBw8I/AEsoGy5rh2cozenfW+Oy58WhEQkgT0sDCpK5eYP62pgX8tN0HWQLUWRiYY/WlY+CQDH1dsgZ684Xq69QDrl6EPl//Fe1pvPk5NnJ1z3dSTfPJkCy5PeXJI1M/HySYIVwHmSm9xjrs526GOmuXdGMzvWgYMfB4jXa//J6OXSqGp02Q3CcaOQIDAQABo0UwQzAdBgNVHQ4EFgQU5Z1ZMIJHWMys+ghUNoZ7OrUETfAwEgYDVR0TAQH/BAgwBgEB/wIBAzAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQEFBQADggEBAIUMXY7kb1FoQgWg3btPJyWEA733ZP0t1zDjpBAX69opKbZ5P3b2GRMjuBAK+Vik1GFwvQRhahKKF9UKvcW8MHzW6QwljYZAT+zMo344xjcRT+3daDGOTNKzAXTuvnVeB0gaf3D/FlyEwHmFuAX9f75lEaMPwAK0+FI3OQTVqTF6GL+gKvQSmfejRYLjPF71nZ61yJ58Lsiknk4IFEtt/XBtaxpjvWTmH7fO8PKfLrsbt/JQiHOSwuLjFo2aMgKrjhjd6RAR7n41q5CvPjCUetAzPadlD/X8jp5iz0dELAFdux21MtJH0jgu0P6B3DJqHrXuPNX854EdGcMkQupjOakxADA3MB8wBwYFKw4DAhoEFHizThLoI/fno7Z0LKLC1k1lBb1rBBR1tamdrvWwdX4u8UNSZTCkVIkWfg==\",\r\n \"pwd\": \"\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "6280" + "6200" ], "x-ms-client-request-id": [ - "15e6be52-7886-43ea-9f58-4537f3b61c7d" + "745e83b9-9033-41da-950c-9b915baf9b3c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert03/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=www.fabrikam.com\",\r\n \"sans\": {\r\n \"emails\": [],\r\n \"dns_names\": [\r\n \"www.fabrikam.com\"\r\n ],\r\n \"upns\": []\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 241,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"sid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n },\r\n \"policy\": {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/importCert03/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=www.fabrikam.com\",\r\n \"sans\": {\r\n \"emails\": [],\r\n \"dns_names\": [\r\n \"www.fabrikam.com\"\r\n ],\r\n \"upns\": []\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 241,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "2293" + "2353" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:35 GMT" + "Mon, 19 Dec 2016 23:18:50 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "fd3b2bae-300f-4645-be39-2475fabcacc8" + "96294834-c831-4f89-a3e3-75d5243c807c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,25 +71,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/importCert03/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAzLz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/importCert03/?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDMvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6091d6a6-8775-46d3-a91e-f1ff06c8eb94" + "22efccfc-ccaa-4855-ab42-0db2f26469d3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert03/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=www.fabrikam.com\",\r\n \"sans\": {\r\n \"emails\": [],\r\n \"dns_names\": [\r\n \"www.fabrikam.com\"\r\n ],\r\n \"upns\": []\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 241,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"sid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n },\r\n \"policy\": {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/importCert03/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=www.fabrikam.com\",\r\n \"sans\": {\r\n \"emails\": [],\r\n \"dns_names\": [\r\n \"www.fabrikam.com\"\r\n ],\r\n \"upns\": []\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 241,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "2293" + "2353" ], "Content-Type": [ "application/json; charset=utf-8" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:35 GMT" + "Mon, 19 Dec 2016 23:18:50 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "2fe33437-a05a-4791-aa6a-bc0047445fd3" + "7e90b0c0-742e-46de-bb9a-9d3154b9ec05" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,25 +135,26 @@ "StatusCode": 200 }, { - "RequestUri": "/certificates/importCert03/c336c5bf6428439c9c990c529ba5e679?api-version=2016-10-01", - "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDMvYzMzNmM1YmY2NDI4NDM5YzljOTkwYzUyOWJhNWU2Nzk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/importCert03/ad30ff8d23c944af868c1c3d518585a5?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDMvYWQzMGZmOGQyM2M5NDRhZjg2OGMxYzNkNTE4NTg1YTU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "66f16a42-7aec-4bee-88e9-734f46016a6d" + "60ba8b73-3052-4ad4-927c-10876c06325a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"sid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "1605" + "1650" ], "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:35 GMT" + "Mon, 19 Dec 2016 23:18:50 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "acc5b02b-af0b-45a1-b724-6655696a4cc4" + "b3719bc2-36d9-4255-ad9a-1701d0b4377b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,25 +199,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/importCert03/c336c5bf6428439c9c990c529ba5e679?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvaW1wb3J0Q2VydDAzL2MzMzZjNWJmNjQyODQzOWM5Yzk5MGM1MjliYTVlNjc5P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/secrets/importCert03/ad30ff8d23c944af868c1c3d518585a5?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvaW1wb3J0Q2VydDAzL2FkMzBmZjhkMjNjOTQ0YWY4NjhjMWMzZDUxODU4NWE1P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6fdf2afc-f0b6-4591-a40f-c7de5b19a39e" + "b4e67b29-6575-48f3-a504-d846b25936c0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"MIIRrAIBAzCCEWwGCSqGSIb3DQEHAaCCEV0EghFZMIIRVTCCBhYGCSqGSIb3DQEHAaCCBgcEggYDMIIF/zCCBfsGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAhbj9QEV95rvQICB9AEggTYE/kS170eEQwK11mDfj44+yvAk9gp7+3JZUBgUp3Dl+Dv3dno4HPVIlONNnx1QkEu2r/xzyT6sP0vuqcOhqPlZht/xL4N6l5Yrds51JB641zuZMUUPbJN2Ig8RnWxi+NxrE2AAeye+fAMmjhh8whI1Yvgm/jY20XdVcvnXt13jgRrrLluzwk6eXNYifqe86rQt1QGR3Pc5w9OoOcKGE8VW1PHTJSRgWW1SC8h++NlhxABBP4AgKjZhz/3cxs0ZhcjJ1w7NdCW1Dd2FeJBJq5ThJFuEpOwS8VvpH/UO75OFEEgSZhEcg7y9wPIdfeXyYbpQVvhPc8wsnXY0rG0oc/aKM8tF/PxhfGHF739e9Pju0DUO+Lb9qLWTrbLpnuX0k8DFm+TYNuujJSrarJnvg2SOQkLxYNMBumJbxL3g91wtXY39F7ODmauZ7Z0OgW1bcb4USJPIDIZpou8X/72wK4uYoUScxFolvpJ5OycF3VBtm1OB8zKyPs2m0SWwvgNatDkKWt8akyoeyB4eGPCB6xwQuLjlxBwZxD/1+Dwu12V+cd/SALLLwDyXKKeQ2gQcvWhWXAk4Jw0Faj/naE6GaqQh2jN7UjwvKzZtcihfGZZW1PCVcJKMrIxyciffU1jY6exq9wFvDGhOflANzlnd8P4WxZdR/tS/GWPWy8tst89z+cbeIcoESiWro7DMclqz6FnUfH+Ul2EdzRxA5HS3hHznlJT+ulSxMYDbjRuujwmKHIJwPRCXJphUQRoycrpobAZmywhhTRiXlkWph+fY54qUXZzbnR+G2eD8qFL2+hEzzL/yHK96gKxNauV352KN9mln64VJyoVr+i8nzX/slD+HPJROFwJxX1JBPALJ1YKPkAzn9y4zE5p2IjGLVWwAzHsctaM7671ytzWFU3/JVzhMk+1ESV3XzCEZUeeaStyYEanJLkyyqbeh+2uMsPnkF33K+68uEiqQAIEqYFlUznGJ2C5w1gkQhasGzotUPa1taU5Ph883g3G17jHV+dClDaD43FXu5Qd2dukztiVGhVSi1JSg9bhWdZ829ht1S6j9cBo+1PFoBjtm9ttlVLT6YmJcksO9DLTCja7cXqmuDDEYjltAUns6/u4FZDyD56GSlonrLC9GmOg9BY9gdVMGK6pldWUpAo1VcuhmKryFKaQjfiv3IMXRyfJyY2wmywaH61JFb5SVtqa4ZH092QJQZIHAkMMd85LEW7q2DQ5uZrGEjViPnCxsMEKfSpOC4wUikLKcrflqDFQts0HT8vyVzGq0oEZ3Ch5aEQtCtr4l4fbLAvgu9tLn4UVmJBr2o9X1NpJx559VnB3ro6zxw9BR8e7D17sxX1f9BAJt23PDoLhXQWG5yWjjIp6aO4QK4nsxJ2XibF22R6AnGawX4xjEqRnbBBMkG+MdH20c0ZUl8NwbEx9ihyVUDjZ29v3slu3e3uOb5dsciss8Il52q6q/0tdd0jEzWJPBgCTaTdJcL4KNXg/bpagqZQTrQdJB+d5FRIoYl7BQ22E/4DbKhjLLVxrqJkDD82K6/AHJOEbhZtLKc3xnFSSV/BqF7jKUNC9GfOpU5m7jgNQ93XPf65Xkep07DyCsle9mtcK5zcyoGh7hwXYnzx+5d2V0z91SPfQ+900Ou+OCycOBjGB6TATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IADIAYQA1AGIAZQAwADQAOQAtAGIANAA5AGQALQA0ADcANABlAC0AOQA1AGIANAAtADIAMAA0AGIAYQA3ADQAYQA1ADAANgAxMHkGCSsGAQQBgjcRATFsHmoATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABSAFMAQQAgAGEAbgBkACAAQQBFAFMAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByMIILNwYJKoZIhvcNAQcGoIILKDCCCyQCAQAwggsdBgkqhkiG9w0BBwEwHAYKKoZIhvcNAQwBBjAOBAiunwIi6wMaJgICB9CAggrwOgAet+VkyvctGzp6PpfMWuaSpE0isOfjnbLNxL7NDwlvUoYpwSrpJiBN6eA6Md52lZ/lA14zoRAuQSIul67FltukAxfzM4h13WnIlC/oVU6XMS4dgHO1quUpZsHgecrizDCLGiLBC71wFlaBndkZ/lFYuc/SfawvAnL4Eg6j/GU2W53PEGTLSBNQ6kfXBAYcovjMfbp6SHYoM9o2AbydCk+WSJr76zBjfn3H+SAduXpYNY2q8EFhViXphNbUNoO8VfGTz2AOzHItI6hLPOQv5XcPW9nt4dkEdJ1SLdD9kvAlG6dNflTpGm30sFGoqtzoPJbS1m65UKQ65UiwyAL7X//FlbKW5j8LJjG2zvEy9fbXBo2v+/PPsJcXoEMCQIuH+bs+faj9iFUZAEnFLNCWN+l9CAIJq/IGlTaWtgkidqxpnBw6WElFXs+J3NyAmsR2zm269T3h4DzTmZNbQAYZb81RMC/C/hdkLy8kNgyhyqcab9xS8O7ajQz+ymSS0kJGadrU9tmDSCF8jFO5AVqaPSuuUJuT1EPiPDcnFNxRRG94vD2OtvvikA8n+W9ObUujoGqwtHo/Hxg5Ltgud/60bCi2EyrWUz07WogPzzpk0CHzMozu7XNwfmJyNhFoo8+dZ85HGmEGYHx668gnkSCr2OXAa39Ty/KiFUaz0hrBFuVl5ukTtxa8phc7rWhRuPLYU5kRxrvY4gQ5/WklfiW1C8SqPCl/1gBtGQuVhz0P6K8rFZdGuuzFxvDeel0uvYLPoMc2tLmT6BUz6uB1jJZwwSQor/8MaujRBnBn1/lxhPVE2DR38pPlrILlxtq/yF73qtpO3PwfP1e/LFne3EFJivqIGWEFwaCqtGW99g5wFQ2aSGXY8DPZz0kF/AwsrTFLFwLWsjA0RVpnQ2PdkSuxY0pMxfhXb7K8ZrdTo0ICNdPtx62dT3uUbLx4iXlwswYKbcVCCxBTTyaTRHo67TVgHMgu+Yec4oyp5lPNjLbmY5ImLlTvHWuKxgmZ3qIpMURbwS6gtuhZTGBKHu6ysSJEYsb0AArH0jG7SEZ+7Pmm7w2EfInqOMCDOyuZW4f+LZkpAAV5RF6pnZ+t2gaExf8uS0sAUYiqesDGdrYFomlxKYZeQVFhvSZ11P+gaM4QVQ1I2sbbv9HfN29+f8ULihtrp3OXhVN6RFa3jAaPz4VsRAdtGJms8m6al6d6NuuLfwbAhtJ5and1NBxJpGRVAGeo/u6RljxSJvzK3oZZvSvvNZu43jrF0ejMu2zsx/qeQQqE1jkTSVdMAJQKhNmqtxitb3cH6uRJgSWzZlydZcMrb5yvzQP4Md4mY31uMX6CPZpa8Z5cKDvRn+SMkFbUOdMXGy8epsKWJ9KUKa2Yrm+J+8Qj1bWl3g3z0PxwjwSoN0hJRZpTojQbTNmfUp6WE3wDc868cj7q7Oz/qI95bgP0A276DZ3S1J52zWK8F/NDKJSylPiRAuiWSxOVLmJJTF1BuenPIqHKAtAbQ26zb/bHGvvaCSxh5pi1tvEDeeWUz3QKpXPPPvC6Q9OfGO2ivoim2IqqWx7z9oo5LPTlxvTpKc12If+olMoTdZQ2Rkw+UOWw2IQBOS/LH5Ci52xQm959NlQFzu8xrj/szem/lh/wk2CwV5/ApwJ6I3/EtuMJDoxSeDo3KB0P7l4TM8WVOz/nguOZk1jK5SlDJhfQGhzsI7tavjtDiM8+KKCRqs7kXUqsFqrXzBFOAgeSXAs4MarBXyb87a0l9kY3IRSaFxQqfSyqF/huKvXdP7EC3dkXjSkdYEayIUFqBjXRZeIMDqWYWpaVHufcBixEjMLaUt/Z+70EK0Vc70gMUOuqFaJeBv7ILI2OKuZbjzmQApDO72gOSd46QtbMq3hE/hwq2r87nmZXiFRIi/ADVjVbU1ss4AGP0AFgmrRz9q5oOZ700cVba58MB0SMISEeJYcfWBlgV7rxo2wlaQcczMzOIrhYF6gx+luVG5BRkrpguKmTtfzw93Lmldx1ZWeIoArUA8B8xak8pHdMbldrEp0JGwww6X4S5gt/dU/1FT/dyfksyBLUWAs+mt7NK5ZnMerZwvMS3w54U6ON5BE1252CtPBrBZU2SgPXcSnw4UZbZkmYMjnN/dxJOiLrn98aCVsHH/9WL8k9pai531A0CIQz/nLjyF8GP/kaafIWOqebCuAlXsA8nWBki7JIFAPpJJmbSa8MwRy+H62pS2eo0JC9Y7pOXrB9l+CcptY6HRBcmS1aLkeRub3lVbxbF/rWVOzfuKHLRKsCpB1KTIGtFcuGJybdzZCISD9/K2/yCMY0ery9FJvWAEnNuGm2HxjNDZFStrx7QyOX17D/V4u0jJ4A6MvcEdO2bS/SsnXYkKaOeQGqgyuCd1ei/JtO5oRB1qeBvAfPjeuX7p0T79xznObVRH9EwqrpDwPvwUHdAlgevi26wc8zU8PgmU4Pyo9m4BrGK4ed91eyr/RYSrPV1o3y41g8UgpQX0UJjXgNi9Fm75uBPfV64H/iOh4J3o/fYUi5f4y20fBCWBP7VqiG+nF5bmZz8oVhtdDIRSzzvmTHLAHruPJG5i6D1b0lCPMEUoyXcR1pqv7wxTIesayf7rWvb+PVz1b7Z9mv8HJFXBBCDSZRdBrTEwGApvq4h4bYftRl9W5iR8TAK7WVWa8+9c3o/YukceAcf++xSkc+5eYK3fMb0Jka+B7bmwt50rO2D4VLErDf/DbjXwkfi0i/VgTRSCyX6JOAIfxC1rO66IEAsC8A4+4fBygHF1Qtb0s18ztvEhucUXW7mfsJskjm39Ws40jgSbIEBGzRvuRs/BdkAfcjcQdOkF+eiXe7JaWWtqrE+jLEnJoFonK+5ZnBTGFALCzEl/pjC29kEbKgUhjFUnfrUqJQvPLvQ2bZ1mqvrxz9V15P5RMIuX6Huffy9162lMtCgF1DcxMOVlFGjpDmSZNAEeRLCUqm7dBU5Q5A7C4HrHr2eGuP05M2PkDSGQoZYLT0gfRvA63jAQxX6LRtfAGVaoN5qSTT3loJajXFFpS4pJIqBUNYUxBF/dKcgIwOWQeoZ5E8Cyxhney72U3VeUGjUq8yzJaxHPrtW1L1PMzGVahA1rFr8UsBt5hZ1OufDWRLXZemxtiRNSYCz1P8/8OsejVhSM1kSQAvbAlj7OONrD6SDF0Rh+odYQPmKL8Z9D86IpS4dZhC4D8Fw5v5rtqIYS+x9SfgoctduHtzShufiaXqVvWR2lfr1aIeiwDZ2E4ZqklWZeXvVb5cwKAMIk5igCd+WuUBXT5rkM37lBFBVrjYVyGVPoyILU5YnUIacLVfq/AN+yRAsEQmGsHOMbYl0MwAFzNvrfyYVLAy+bm8yO+DTN99Vlk+cz+duoJh7EYYp1lOY7A+Qo9I03KyGwqzydazunqrnviwXtwwH3+4O5EMLG1/RP8hFMOwlBdJjlVlRc7D+scSGFNxlNfwppyFM2kNfzXL04JOdoPDBk8dkELXSEb4Bu7uEDb317t7/edNEFdIqwrEdq23NTBHfVSn1XFZ5vI1HluNK8JXWjTqw0JkIyqIl7FwIrWxsJB+gQi72Ya/B9Y2lgMyxnjjpBfbIwbR/4UsoFBMJyT9rPL7esThsxSj8yL+l0ARnn3YwfYuSgVgTq8rrYd2gDHCUvHTOtpsemxEF/bJE367FSI+XqcL86BYk9P+yL54OkDRQf8HYFhxtitaply3lSsQJImOA1mqkzA3MB8wBwYFKw4DAhoEFPTOtra+rRjho/mRiKnpULHyTstaBBRBctflFPFk0r/bElZMVAAlblaV7Q==\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n },\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert03/c336c5bf6428439c9c990c529ba5e679\"\r\n}", + "ResponseBody": "{\r\n \"value\": \"MIIRoAIBAzCCEWAGCSqGSIb3DQEHAaCCEVEEghFNMIIRSTCCBhoGCSqGSIb3DQEHAaCCBgsEggYHMIIGAzCCBf8GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAjGCIXYO6DMaQICB9AEggTYwDeB6/9XzkUYVkNBWff3+UjQ8REKmgpUAGZiIUBbLc4JlEMtntZ3uPFiJhcorAXJEbrB+py43lSqD3zI7+iomKYC5wHqVUTkLnR7Y0YC8FXY7Z2NgnYQvQ4N4i0q3qqCe5HRdHsmOg1QBAdHcWLqhKWyZe15aBiN3fIKmWOL7lMmHv2rveit696VHPlIZusJXtK5ezVF6h3IlA/QFYg54dgTgx98ns+l+L+h7kFDNrVV0puGXtEMjCo7U5QfxS9GdBQAMVC29lDarwm1e4VBPw+ywV2F4+mPyNHXBTgdWD3fymp01hpHOiZrVPBdemrp80QQIy5OkNOQHiUOUXkhOhzuS9g53x9erieH1v790wVMuqwKqoQrAkh6aBAKfo/FedbqQcKWBZG5m8jOidFM7FGB7xzBBSL5wYvC2nQPXy5vhRTq5qS4tBkVYWBkK1295dvHxrgK4kXiKRcoEAEeCeiactJSEGPhz3+9n0pQ+V2w4/rZ+aZU6uwZiGVGXbWFNYAi8eHQFgNOYnN5NCaJW4j0hIRN2Ked6RW21u+7pXIbkUU9Y9OHE6LpyCTgL7LRlDQhN1wW0T5a3VP4fi5eJP4B+SNbLM9QWhMAXycfOeZE9g8wGjPBpT+sCFTqQfzyNR3q1XjYop/CA/JSbw2v/8nvngb+jJ85VKULcmbsffi4vfCNwr3rpxpnCstbPa95x2byVFfYNsRJPPRb+ezOvkGn35MAhFkhc1278EhH9S+kHU4UKPR5KSrW1y23RGNLnIr0WoZeuyafGwNIXSfbcLH1oG8ouc58BWj4tMzJKNlK3ilwSNTUrg0G/zUhsqyLJZRondyigOKRdGcplScMpaOgtupg/axCSEKP5WL8Ys/bgVQoHMgV72mZNzppZAWzttf347X2vbh90f4B+Uv3/FYQTKfufbFpJXHiy1ptMwr6Fw4KtxqjUCIfCLiwvesolGZrxfT7YcOZ4Uoow+PIRKDduIBCyppAQxBqQu9AkHkKdhfHXJGFDW0xXZUgbwLmP8JHk8pu62SbuYPjtxQRCzeJdw4/VVyADypL+6dDHVuQ7Mzgpun/tf7CorFciKbf5A3fgawteaN9LHfHU6uS4LilgLCckk1zbpzjhpZ+QzLkC6PpEVkwbjCpDCiOy0/zhpXtR+xofObDObC4lk5p5D+DMKwYME7Gfg0bAjFfIMJEH2ig2GIAYaQLDIYWepuVjlTdI0pWBzNAAu0PBeBS9WuBCb+VMmCHmiS4fXqjiWzk4IwbTc66PT0lcbwF/9QwURwjur0WAwGxKSJqt/lEdnWcPD3MGL0Hn1y86O8ZKFPJ2Krp+hDvpDy7oW+rRHZEos9ecBWR9MrHEQxZwgu7Db5jQWnEcbUq2vmr941CN3A92+97eKh5NI1GrnRPo6LjZq9VKRMFfq4k8L43OSA9alKn4H6tPr4EetvvU6sY4ubhuFkd5oo0KG5hhw7XbA9ZNvkdgQH4vxZlDZVD7Drp04Ht3kLgg2TH70ZJKl4YPLHANZCnxoC2r35sJQGWcyziVxL3w+jvQhVPgyUvK6H6URMoKBrV35p6dtfZ/Y4aC6YRJJAlPJcd7gwygOsvmEXn2+rg4ABCKEcJtIY+m3AQta5hRW++yyYCU51prgMan4GYWmHPX7BL6DGB7TATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsANABCAEQAMAA2AEEANQBEAC0ARABGADIAMgAtADQAMQBFADEALQBBAEUAQgA5AC0ARgBDADUARgBDAEQAQgA1AEQAMQBCAEMAfTB5BgkrBgEEAYI3EQExbB5qAE0AaQBjAHIAbwBzAG8AZgB0ACAARQBuAGgAYQBuAGMAZQBkACAAUgBTAEEAIABhAG4AZAAgAEEARQBTACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjCCCycGCSqGSIb3DQEHBqCCCxgwggsUAgEAMIILDQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIHRrpO5BDyswCAgfQgIIK4D/Pk3JjMK2ieUHzXwGdj+J4MMdjDMCjwU2hlG/BX9Kv8ofDq0GtG8S/DUUvsBDXcM42/9W84vjGTIzrdjlD76Q0XfxBaSJipSuTyfcMh+tgk+QPu4Ms2Tf+2ALTQEq1+XfnWKYPu7tV1/icDeCUEQ/Er7eytfIKCt65KMKwyohZXT35nX6PM3nLWbAom9TaeMWfxSNHGFa33zP3WQLRRGUStR1wvWMucjebygBiNTgI9yVlAlnQk/QQbAFr4Rk6v+zWKPXuxFqd3cw+czTNOPDkbXoetbkBqDWP52+IHVVESTW848VnHv2zcdejQeH1TH4dBA4Jqt+OVBzpDCf9BQdyLT0F12ycud9qmpvEGg2BUt4Z2d1TY0X6Fx0afkBBGLCOi/T7aWCGTI2qBGJ74HVGpC2EWaful1sr+eHyVFZx8qqzzE4RSRb9TlnuiCelZjxqZGISGb9agifrMjYtzcU6QJQW9Tq9ARmz1ZSzylVK6Ko2DNuO7H4s21LPd9Xd9XC+2SpySO6h97m6GworpcuvGMzKSNFbOVZB8cx8oja75igMRMuxUV1knz3yQcIyMZkJudDxutJyrGqPVi/kli3hvFnEteTrg/chGbBFqSCBgeM3euxYeFjaKKg0XldopdM4s4UAdsHctP6y+5s0KU0l5O8HPu5INvmFbFJiGpAhfX6N+nl0mZwcRsko4fSBqdLiK6D7j3KQDzGQITA2Z0RMyDMdww/WALawSFGj+71XOd6oiAlmzzluINnSpRKq/Fqlg/GslHznC4n71z1s+7yGMfEPg92SemN3hQw5ii8AqhA610ctbuuUBcwn9v6H895yCVCJoyS7b4dXHBQ/8W5kGL5e4aj0xzl5ybuyVMTDHakxsLZ930TxlRaioR59C8KHJA6jx3noHTP0bSZOkgGp/zQQJU/K+8n4S9RMYZmmQv+2eowkzJOnCyKuvZtmCmaMAicmn9LlyARld7r0anEb6nDbsyCN0QGBPeJFjmOQVIJYRDkIdp6dMoRgy2VfnU46TTzuGcGAGFs+wOExf5qmHTlq7ncB5sL8QoFoZWqTj321Sg8HjTFt9vejiblGY1MQoolnGhLYLrs9lX5kpbJx2KBi4muZpb4VPt6wgHdXIoLUhBvrMxNYVFleTBLrCi7scZfjfIof2nreeP3dFGSXK34se390m9/lntmuonuJ/N+u34SwhdeRwsamuyFfowJXoIKQ/4XdZCGE+wbGOxf7Vc11dFcsigsPGLYpslE9kbyHFynMY8Fkg7jy7aU5bGowYMJ3kWrkP2KFvU/NikZrkVnJEdiBPUzqUGSUvzfmRI87W3dXF/qiuFwsS0gq1rp477Ku1Fba8BIIT6zkWheRu2E420LSMh0wxoVI0NxrBUQM3Kc0YpswrZnMIFVm2DXQsMyP/J9IJnWcuYKGdKI1PFEVLxH2AP8byZ2RgE2fwGH2jaC8W/rMf8X0cblm+3BKg/3p0NueR8kXnILmBQNekd75RnqUZT8jEMAQUNCVo6URYdJAgamQMmYEXm3QFKDpKFhOHsCFhyVPJftDs1EgTQOVx6kvsxanwVLowrhrSWRVVQZIJvDUzcdqMbk05f7f2zBovJFaGWw8776b70RRUIzM55N7YdlMKr/qw4W0s+GWB9gYIR6I2bDmulFEqnSX5FeJwzuGNygIjROdoK2eSgweM7w8f/f1HBgTptt8ER57D2KCnGIQPxBfVkVYquMQYP20uye8s+i87LkJL8pQWRIBZxINdtaLdhpTtNpakgTwaGzveYRUd+lpV4QztrdH57VoQjjoW7cOYN7QvRk4EmxxbSYe4yieh8K7Y4/O3JWIvRg1qUS1wf5eV4HE3NoJSb4Ok2/Z3xAZJhlHVmEBR5sXU+30yz8bX/HhFYbSrZ6/Jqayn4SYbiNT4H2H0RFSJQIvxKsdqRm+NRDDVwpKy+p6CVw1rrZSo8Tjm2CcDF2eKlGvf42dj/FH+WTCGPfVWbtkZ6cFgWi4gmzyBEVsvUgfgjc6IGoy5R1bQp6GvHGHDpC8MwlwvX9jx2pL+CyQ2R5K26qSUZqjWeR46OXkZqI47OFwIo8Y0L3JLz3DZO01GNjV531n/vvz0N1ZSA4pexUBZCbf0MX2Z2wxJXa8jjyD2qPokNmzWSg9StdKRcTupLnXub5+rjTyZUdeDFUAT3HXwPKSaQEVGrXoSemvIz5IMZYFr83kaOecOx5P96AolzbUzqeu7j1W8UUB+cTGaHGPuny5xQQuGL5twMj4x+a1Jvb7c/xidX1xlxlFUMwI8NoetJ5gEs0t76Lm1ca+96lVzoJ6L/tREy2xuh2cQFmb0Qu+0us/ZeXwxB9tpMZHda6xKmVx2l77wvxJCXF+RX7knMixhgH4jHS8Gaqun27HFbEG5U6qo6plAkLzmBTF2KNRE8hF8xLJbRHAMEJ86X2ykvIrxbDdJfo2W8UuEhyK2TDIwJjKQFVMMYhm57f2OO807+s+mHcufXrLjn392j7JUw68vA7jnxGNe9t55JSUDX19dhr61ByIkOkdaArM9gTYvRuuZUo8F5Suz1MVqmBLlL2CjbBcRSNOLre97Od/Xwp2gPWeU5YoCOfUmZetQD0kdmXrRdZG/6CsYuFBJLcLg+AuzZH5tG7HgvruGPudWY9uDSFeYoTKo1iEQiL1tCiR1++/MpCJlbYD0sbXcdVCt/QuJCxT/gYBEnHzEbk//h+cSmvQ6Y0H3zhHIDRqxS2VlbXR/39nal7At7s3mt84TojQRo9JDHNF4p9zGK+9EO9C6FODg6vmKc5/HotGAgnQgnvV7+gOszoiWD47ajjzzHHJd1zHSpDVsILsiKOEsDif2TgTw5m+W9z4u0BK3lrZL/MMMtSg2kpKbC0CMm03HBSqmtVgriodrfTurZRiVw07rLuGZQa3SbcPLUqwIhziW/O66mEqNT7dDnYcmRZtYEMtfGZeth2nVHkvUPGzw2/fyiGDpcqUrZj3DSFBSjukp7kNPl10xsQPmrFj41nSQPhu4R/mJg0v6kb4QFqEjO4TX8cwEV84l0nrbQdKl1u8zgdsb4LSYz25GmnqqsHfheExN2aLWDo0AMB3WdyfYu9iwpRU+3pKOcZNbvHQyQVB7SeFn+K1jir+aNXgoNILcGjMFyyWCMrKsjk4nIZMcTcoDEGvYK+a2sbF26b2ueL0VPTkKVosfcS1dE3x1iq0PltBoEj3ruI2oszB37+RO32m3fSe//mr7yhSlGp1vB4HBvHUxRUGNWg3lrYw+CZ5FZ5J2Er6bIPy2fg1UMsWj1ZyWAFBh/WWM2cv66pE+PPwxS/e6soDG2t70jEfBYRiECutJ3oasabnlmSn8gPoavpJ53OJKKEncdeH0bc4ywyA+VcIA39zgLdu8UCgwMGTRjk60urRed6fgt6TtNiS24fqRO4w5Xea/4Ux56yjv/zwxORLY4Oh8S6k/QMe6SXm61C0v/V3LE3BfZVlBXdIOPeEffaCxrol+9lPOqOegArwhUe5KwV7B80FseR2xHGHDb/UXlo0fjsKUu1XPxFPz1LxSxm/62JOLQsRL+IUgjp51/Y33fMdiZ37HYPvpmDU8LeQe7emlZHRe6VTWlpYNazge8M0tgQ+IBGLUx8DslGMWEoSQEQiSl80iaH7ij8rOblLAKuGZRLcNCUJZjcR53OnZn6y2aX/H+KSYZ+7eWRM1Dk2dBpMXkrPazA3MB8wBwYFKw4DAhoEFGl9V84GbzUvkSw2UZ05PQuvNKutBBT8qA7vUHMqGKwykvZcuDfPIscv8A==\",\r\n \"contentType\": \"application/x-pkcs12\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"managed\": true,\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n },\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/importCert03/ad30ff8d23c944af868c1c3d518585a5\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "6406" + "6420" ], "Content-Type": [ "application/json; charset=utf-8" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:36 GMT" + "Mon, 19 Dec 2016 23:18:50 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "711e964d-4d51-4f86-aace-9b7595d6b6a0" + "facacda0-93a7-4a4d-aec2-9f20f6c363f2" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -259,25 +263,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/importCert03?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaW1wb3J0Q2VydDAzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/importCert03?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pbXBvcnRDZXJ0MDM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "952a33bf-d2df-4124-b50f-6c2a94c4ae92" + "29ad8684-094f-44fc-8aae-22ff1aa6c5e3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/importCert03/c336c5bf6428439c9c990c529ba5e679\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/importCert03/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=www.fabrikam.com\",\r\n \"sans\": {\r\n \"emails\": [],\r\n \"dns_names\": [\r\n \"www.fabrikam.com\"\r\n ],\r\n \"upns\": []\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 241,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082135,\r\n \"updated\": 1477082135\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"sid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/importCert03/ad30ff8d23c944af868c1c3d518585a5\",\r\n \"x5t\": \"Vi57fYNjurOccsuxs2_ltzMXPXM\",\r\n \"cer\": \"MIIDWzCCAkOgAwIBAgIQAgSaEqRzSIWdolKzgGecDDANBgkqhkiG9w0BAQsFADAbMRkwFwYDVQQDExB3d3cuZmFicmlrYW0uY29tMB4XDTE2MTAxMjIyNDIzN1oXDTM2MTAxMjIyNTIzN1owGzEZMBcGA1UEAxMQd3d3LmZhYnJpa2FtLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKpXeheFIwxCgJ1orWxAS/buUeplGl5ud6WxTfCLk9bSW1lPPdo7aypTQBpRXzoWuf5pzXGXQbO1hXMO/7kVko3G6F5FIadZrSM2lEQEhRe/xd84F0r0A9pOvx5g1o65s7q6cIUcPuHueNJ2irss5/356CLgT9pftuFV7LtyQG1RJ46d+yk2omfMAQajWd7JvRLt9ggWowhhyX5dHjugT5XSsSJUSH2H3oVzpnm0pvNr1+eXIZx6MJD15hqImx7rSj9oWIFECB+95vbVYWVFyBv1WRNXf8+EE+UyZUGi/URlKkqaK13rFHL2UUVIWiSfKa0joxSjnMt9Hr4A8Oyr0JECAwEAAaOBmjCBlzAOBgNVHQ8BAf8EBAMCBaAwCQYDVR0TBAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwGwYDVR0RBBQwEoIQd3d3LmZhYnJpa2FtLmNvbTAfBgNVHSMEGDAWgBTT8znYEZ3N+7Dxp7zTR5bi5xAPXDAdBgNVHQ4EFgQU0/M52BGdzfuw8ae800eW4ucQD1wwDQYJKoZIhvcNAQELBQADggEBAKPJSCyojWEz7EO/3OZzlF4EHcubnj2Bk5mio/kvOiWBgjU+oy0RPTK9oa2c09uU01sn6kaARs269iaGpeGzvXwFMidZKd6jAhitAVT56Te8A6TgZ1KJDSa98iYrOPf7teUpG8wEGI8KJqx1UN8oybqB7J8UBZhYuxuZHwOY5IHljR9dz4vGskT4tM/llI6+F28LkztPjChadd10GOgyazVIcbE1hT2wXEKMZAQvFvY48GAIYDoo934MMkjMMl0HXqjZWo90QKIv7f9YoBVWH3WWXpVAu5s44s2h73lo2zVQma6eLAnDcRttW79/QfdZ8DcrQ6Z4G5Cftk0njzsj3FY=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1476312157,\r\n \"exp\": 2107464757,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n },\r\n \"policy\": {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/importCert03/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=www.fabrikam.com\",\r\n \"sans\": {\r\n \"emails\": [],\r\n \"dns_names\": [\r\n \"www.fabrikam.com\"\r\n ],\r\n \"upns\": []\r\n },\r\n \"ekus\": [\r\n \"1.3.6.1.5.5.7.3.1\",\r\n \"1.3.6.1.5.5.7.3.2\"\r\n ],\r\n \"key_usage\": [\r\n \"digitalSignature\",\r\n \"keyEncipherment\"\r\n ],\r\n \"validity_months\": 241,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189529,\r\n \"updated\": 1482189529\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "2293" + "2353" ], "Content-Type": [ "application/json; charset=utf-8" @@ -289,7 +294,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:36 GMT" + "Mon, 19 Dec 2016 23:18:52 GMT" ], "Pragma": [ "no-cache" @@ -298,13 +303,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "3ec0b1f4-2c59-43ff-bd43-dfd9533abeef" + "b4199d5b-c03c-4845-8be0-5f1d2ea88e6b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -324,8 +329,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateIssuersTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateIssuersTest.json index c70047fff7a2..cf16ba033ec1 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateIssuersTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateIssuersTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/issuers/issuer01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\",\r\n \"pwd\": \"password\"\r\n },\r\n \"org_details\": {\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -13,19 +13,20 @@ "317" ], "x-ms-client-request-id": [ - "1b0f9fec-6d48-4406-b729-57e510391225" + "3a4a7803-ee2e-4b44-a968-4eb1e53092f1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082045,\r\n \"updated\": 1477082134\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188806,\r\n \"updated\": 1482189526\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "343" + "358" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 19 Dec 2016 23:18:46 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "260487d9-738b-4c47-952f-c7d636063009" + "cd1d1ac5-873a-4672-af90-e5c3c3bdb05b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,25 +71,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/issuers/issuer01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c8394734-2da2-44e0-9e0e-c77a723fcdb5" + "0971e751-a9a4-48b4-985d-61ce1067f786" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082045,\r\n \"updated\": 1477082134\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188806,\r\n \"updated\": 1482189526\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "343" + "358" ], "Content-Type": [ "application/json; charset=utf-8" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 19 Dec 2016 23:18:46 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "4e0366a5-3e37-4c82-bda7-a31f06999226" + "b4ce9e8a-ca79-4da8-a723-b3826d7cab81" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,8 +135,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/issuers/issuer02?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer02?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAyP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\",\r\n \"pwd\": \"password\"\r\n },\r\n \"org_details\": {\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -145,19 +147,20 @@ "317" ], "x-ms-client-request-id": [ - "c18fc1f9-2a75-4b5c-bdce-bab29ef1e174" + "a8675b7f-0698-4f75-9a95-3f4d4526f50f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082134\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188838,\r\n \"updated\": 1482189526\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "343" + "358" ], "Content-Type": [ "application/json; charset=utf-8" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 19 Dec 2016 23:18:46 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "d97527b4-33e0-48a9-8d71-9684edae7a90" + "1e145c9a-b00e-427e-bbd6-5138cb4f9813" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -202,25 +205,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/issuers?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "51c53e7d-3b06-459a-b655-cf4ca04a5d95" + "20fdf14b-b1b4-4051-80d7-f5cac9e095fc" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\"\r\n },\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\"\r\n },\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer03\",\r\n \"provider\": \"Test\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\"\r\n },\r\n {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\"\r\n },\r\n {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer03\",\r\n \"provider\": \"Test\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "312" + "357" ], "Content-Type": [ "application/json; charset=utf-8" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:34 GMT" + "Mon, 19 Dec 2016 23:18:47 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "8967bfea-78b6-49c5-80bc-542b451eb32f" + "3af3d492-3a12-4baf-90d6-837f931c677b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -265,25 +269,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/issuers?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e68dad31-283a-48d4-bf6b-9878a06f0411" + "6fa4e184-e64c-4b87-9fbc-27cf31e58724" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer03\",\r\n \"provider\": \"Test\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer03\",\r\n \"provider\": \"Test\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "122" + "137" ], "Content-Type": [ "application/json; charset=utf-8" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:34 GMT" + "Mon, 19 Dec 2016 23:18:47 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "562a60d3-e10e-40e5-be73-0a146b4d2a36" + "771bf785-0ce7-4eb7-b5a6-c94eb5aa8794" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -328,25 +333,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/issuers/issuer01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "636ae11f-6640-468f-a2a2-d745cba4898e" + "73c48cbe-f272-4a18-be29-a6cb093a1515" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082045,\r\n \"updated\": 1477082134\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer01\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188806,\r\n \"updated\": 1482189526\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "343" + "358" ], "Content-Type": [ "application/json; charset=utf-8" @@ -358,7 +364,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:34 GMT" + "Mon, 19 Dec 2016 23:18:47 GMT" ], "Pragma": [ "no-cache" @@ -367,13 +373,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "21cdb993-8138-47f4-87e4-a0987c07255d" + "52ef5575-0f33-46a4-bb25-ee0aed4b53c5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -391,25 +397,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/issuers/issuer02?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvaXNzdWVycy9pc3N1ZXIwMj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/issuers/issuer02?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9pc3N1ZXJzL2lzc3VlcjAyP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c192572c-c549-4b23-95d1-b4b02c243945" + "18d04807-5865-4d15-9da2-adaf02bc3639" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082134\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/issuers/issuer02\",\r\n \"provider\": \"Test\",\r\n \"credentials\": {\r\n \"account_id\": \"keyvaultuser\"\r\n },\r\n \"org_details\": {\r\n \"zip\": 0,\r\n \"admin_details\": [\r\n {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"email\": \"admin@microsoft.com\",\r\n \"phone\": \"4255555555\"\r\n }\r\n ]\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188838,\r\n \"updated\": 1482189526\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "343" + "358" ], "Content-Type": [ "application/json; charset=utf-8" @@ -421,7 +428,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:34 GMT" + "Mon, 19 Dec 2016 23:18:47 GMT" ], "Pragma": [ "no-cache" @@ -430,13 +437,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "d707115d-64b8-4a39-b45b-ba1b870e1b51" + "7998563d-721a-418f-b8c4-02c92529c3ab" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -456,8 +463,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListTest.json index a32c1b394372..56dce9fb760e 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/listCert01/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdENlcnQwMS9pbXBvcnQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/listCert01/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0Q2VydDAxL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPcGCSqGSIb3DQEHAaCCCOgEggjkMIII4DCCBgkGCSqGSIb3DQEHAaCCBfoEggX2MIIF8jCCBe4GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAj15YH9pOE58AICB9AEggTYLrI+SAru2dBZRQRlJY7XQ3LeLkah2FcRR3dATDshZ2h0IA2oBrkQIdsLyAAWZ32qYR1qkWxLHn9AqXgu27AEbOk35+pITZaiy63YYBkkpR+pDdngZt19Z0PWrGwHEq5z6BHS2GLyyN8SSOCbdzCz7blj3+7IZYoMj4WOPgOm/tQ6U44SFWek46QwN2zeA4i97v7ftNNns27ms52jqfhOvTA9c/wyfZKAY4aKJfYYUmycKjnnRl012ldS2lOkASFt+lu4QCa72IY6ePtRudPCvmzRv2pkLYS6z3cI7omT8nHP3DymNOqLbFqr5O2M1ZYaLC63Q3xt3eVvbcPh3N08D1hHkhz/KDTvkRAQpvrW8ISKmgDdmzN55Pe55xHfSWGB7gPw8sZea57IxFzWHTK2yvTslooWoosmGxanYY2IG/no3EbPOWDKjPZ4ilYJe5JJ2immlxPz+2e2EOCKpDI+7fzQcRz3PTd3BK+budZ8aXX8aW/lOgKS8WmxZoKnOJBNWeTNWQFugmktXfdPHAdxMhjUXqeGQd8wTvZ4EzQNNafovwkI7IV/ZYoa++RGofVR3ZbRSiBNF6TDj/qXFt0wN/CQnsGAmQAGNiN+D4mY7i25dtTu/Jc7OxLdhAUFpHyJpyrYWLfvOiS5WYBeEDHkiPUa/8eZSPA3MXWZR1RiuDvuNqMjct1SSwdXADTtF68l/US1ksU657+XSC+6ly1A/upz+X71+C4Ho6W0751j5ZMT6xKjGh5pee7MVuduxIzXjWIy3YSd0fIT3U0A5NLEvJ9rfkx6JiHjRLx6V1tqsrtT6BsGtmCQR1UCJPLqsKVDvAINx3cPA/CGqr5OX2BGZlAihGmN6n7gv8w4O0k0LPTAe5YefgXN3m9pE867N31GtHVZaJ/UVgDNYS2jused4rw76ZWN41akx2QN0JSeMJqHXqVz6AKfz8ICS/dFnEGyBNpXiMRxrY/QPKi/wONwqsbDxRW7vZRVKs78pBkE0ksaShlZk5GkeayDWC/7Hi/NqUFtIloK9XB3paLxo1DGu5qqaF34jZdktzkXp0uZqpp+FfKZaiovMjt8F7yHCPk+LYpRsU2Cyc9DVoDA6rIgf+uEP4jppgehsxyT0lJHax2t869R2jYdsXwYUXjgwHIV0voj7bJYPGFlFjXOp6ZW86scsHM5xfsGQoK2Fp838VT34SHE1ZXU/puM7rviREHYW72pfpgGZUILQMohuTPnd8tFtAkbrmjLDo+k9xx7HUvgoFTiNNWuq/cRjr70FKNguMMTIrid+HwfmbRoaxENWdLcOTNeascER2a+37UQolKD5ksrPJG6RdNA7O2pzp3micDYRs/+s28cCIxO//J/d4nsgHp6RTuCu4+Jm9k0YTw2Xg75b2cWKrxGnDUgyIlvNPaZTB5QbMid4x44/lE0LLi9kcPQhRgrK07OnnrMgZvVGjt1CLGhKUv7KFc3xV1r1rwKkosxnoG99oCoTQtregcX5rIMjHgkc1IdflGJkZzaWMkYVFOJ4Weynz008i4ddkske5vabZs37Lb8iggUYNBYZyGzalruBgnQyK4fz38Fae4nWYjyildVfgyo/fCePR2ovOfphx9OQJi+M9BoFmPrAg+8ARDZ+R+5yzYuEc9ZoVX7nkp7LTGB3DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECNX+VL2MxzzWAgIH0ICCAojmRBO+CPfVNUO0s+BVuwhOzikAGNBmQHNChmJ/pyzPbMUbx7tO63eIVSc67iERda2WCEmVwPigaVQkPaumsfp8+L6iV/BMf5RKlyRXcwh0vUdu2Qa7qadD+gFQ2kngf4Dk6vYo2/2HxayuIf6jpwe8vql4ca3ZtWXfuRix2fwgltM0bMz1g59d7x/glTfNqxNlsty0A/rWrPJjNbOPRU2XykLuc3AtlTtYsQ32Zsmu67A7UNBw6tVtkEXlFDqhavEhUEO3dvYqMY+QLxzpZhA0q44ZZ9/ex0X6QAFNK5wuWxCbupHWsgxRwKftrxyszMHsAvNoNcTlqcctee+ecNwTJQa1/MDbnhO6/qHA7cfG1qYDq8Th635vGNMW1w3sVS7l0uEvdayAsBHWTcOC2tlMa5bfHrhY8OEIqj5bN5H9RdFy8G/W239tjDu1OYjBDydiBqzBn8HG1DSj1Pjc0kd/82d4ZU0308KFTC3yGcRad0GnEH0Oi3iEJ9HbriUbfVMbXNHOF+MktWiDVqzndGMKmuJSdfTBKvGFvejAWVO5E4mgLvoaMmbchc3BO7sLeraHnJN5hvMBaLcQI38N86mUfTR8AP6AJ9c2k514KaDLclm4z6J8dMz60nUeo5D3YD09G6BavFHxSvJ8MF0Lu5zOFzEePDRFm9mH8W0N/sFlIaYfD/GWU/w44mQucjaBk95YtqOGRIj58tGDWr8iUdHwaYKGqU24zGeRae9DhFXPzZshV1ZGsBQFRaoYkyLAwdJWIXTi+c37YaC8FRSEnnNmS79Dou1Kc3BvK4EYKAD2KxjtUebrV174gD0Q+9YuJ0GXOTspBvCFd5VT2Rw5zDNrA/J3F5fMCk4wOzAfMAcGBSsOAwIaBBSxgh2xyF+88V4vAffBmZXv8Txt4AQU4O/NX4MjxSodbE7ApNAMIvrtREwCAgfQ\",\r\n \"pwd\": \"123\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "3415" ], "x-ms-client-request-id": [ - "020c18b3-139c-44df-ba58-45afb01ef6e1" + "18eca159-8f8f-42ee-b607-1deed5662d06" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert01/d5b97326dbfa4da9aad55c5c0d0f4797\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listCert01/d5b97326dbfa4da9aad55c5c0d0f4797\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/listCert01/d5b97326dbfa4da9aad55c5c0d0f4797\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082074,\r\n \"updated\": 1477082074\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082074,\r\n \"updated\": 1477082074\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert01/464d5df954784a788d6c65ea6ddf254a\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listCert01/464d5df954784a788d6c65ea6ddf254a\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/listCert01/464d5df954784a788d6c65ea6ddf254a\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188987,\r\n \"updated\": 1482188987\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188987,\r\n \"updated\": 1482188987\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1754" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:33 GMT" + "Mon, 19 Dec 2016 23:09:48 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a34cb580-afe3-4ab4-b155-fdcbf1ed0bc5" + "27049862-a2e8-4742-8e84-9b871aa8f3ff" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/listCert02/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdENlcnQwMi9pbXBvcnQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/listCert02/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0Q2VydDAyL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPcGCSqGSIb3DQEHAaCCCOgEggjkMIII4DCCBgkGCSqGSIb3DQEHAaCCBfoEggX2MIIF8jCCBe4GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAj15YH9pOE58AICB9AEggTYLrI+SAru2dBZRQRlJY7XQ3LeLkah2FcRR3dATDshZ2h0IA2oBrkQIdsLyAAWZ32qYR1qkWxLHn9AqXgu27AEbOk35+pITZaiy63YYBkkpR+pDdngZt19Z0PWrGwHEq5z6BHS2GLyyN8SSOCbdzCz7blj3+7IZYoMj4WOPgOm/tQ6U44SFWek46QwN2zeA4i97v7ftNNns27ms52jqfhOvTA9c/wyfZKAY4aKJfYYUmycKjnnRl012ldS2lOkASFt+lu4QCa72IY6ePtRudPCvmzRv2pkLYS6z3cI7omT8nHP3DymNOqLbFqr5O2M1ZYaLC63Q3xt3eVvbcPh3N08D1hHkhz/KDTvkRAQpvrW8ISKmgDdmzN55Pe55xHfSWGB7gPw8sZea57IxFzWHTK2yvTslooWoosmGxanYY2IG/no3EbPOWDKjPZ4ilYJe5JJ2immlxPz+2e2EOCKpDI+7fzQcRz3PTd3BK+budZ8aXX8aW/lOgKS8WmxZoKnOJBNWeTNWQFugmktXfdPHAdxMhjUXqeGQd8wTvZ4EzQNNafovwkI7IV/ZYoa++RGofVR3ZbRSiBNF6TDj/qXFt0wN/CQnsGAmQAGNiN+D4mY7i25dtTu/Jc7OxLdhAUFpHyJpyrYWLfvOiS5WYBeEDHkiPUa/8eZSPA3MXWZR1RiuDvuNqMjct1SSwdXADTtF68l/US1ksU657+XSC+6ly1A/upz+X71+C4Ho6W0751j5ZMT6xKjGh5pee7MVuduxIzXjWIy3YSd0fIT3U0A5NLEvJ9rfkx6JiHjRLx6V1tqsrtT6BsGtmCQR1UCJPLqsKVDvAINx3cPA/CGqr5OX2BGZlAihGmN6n7gv8w4O0k0LPTAe5YefgXN3m9pE867N31GtHVZaJ/UVgDNYS2jused4rw76ZWN41akx2QN0JSeMJqHXqVz6AKfz8ICS/dFnEGyBNpXiMRxrY/QPKi/wONwqsbDxRW7vZRVKs78pBkE0ksaShlZk5GkeayDWC/7Hi/NqUFtIloK9XB3paLxo1DGu5qqaF34jZdktzkXp0uZqpp+FfKZaiovMjt8F7yHCPk+LYpRsU2Cyc9DVoDA6rIgf+uEP4jppgehsxyT0lJHax2t869R2jYdsXwYUXjgwHIV0voj7bJYPGFlFjXOp6ZW86scsHM5xfsGQoK2Fp838VT34SHE1ZXU/puM7rviREHYW72pfpgGZUILQMohuTPnd8tFtAkbrmjLDo+k9xx7HUvgoFTiNNWuq/cRjr70FKNguMMTIrid+HwfmbRoaxENWdLcOTNeascER2a+37UQolKD5ksrPJG6RdNA7O2pzp3micDYRs/+s28cCIxO//J/d4nsgHp6RTuCu4+Jm9k0YTw2Xg75b2cWKrxGnDUgyIlvNPaZTB5QbMid4x44/lE0LLi9kcPQhRgrK07OnnrMgZvVGjt1CLGhKUv7KFc3xV1r1rwKkosxnoG99oCoTQtregcX5rIMjHgkc1IdflGJkZzaWMkYVFOJ4Weynz008i4ddkske5vabZs37Lb8iggUYNBYZyGzalruBgnQyK4fz38Fae4nWYjyildVfgyo/fCePR2ovOfphx9OQJi+M9BoFmPrAg+8ARDZ+R+5yzYuEc9ZoVX7nkp7LTGB3DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECNX+VL2MxzzWAgIH0ICCAojmRBO+CPfVNUO0s+BVuwhOzikAGNBmQHNChmJ/pyzPbMUbx7tO63eIVSc67iERda2WCEmVwPigaVQkPaumsfp8+L6iV/BMf5RKlyRXcwh0vUdu2Qa7qadD+gFQ2kngf4Dk6vYo2/2HxayuIf6jpwe8vql4ca3ZtWXfuRix2fwgltM0bMz1g59d7x/glTfNqxNlsty0A/rWrPJjNbOPRU2XykLuc3AtlTtYsQ32Zsmu67A7UNBw6tVtkEXlFDqhavEhUEO3dvYqMY+QLxzpZhA0q44ZZ9/ex0X6QAFNK5wuWxCbupHWsgxRwKftrxyszMHsAvNoNcTlqcctee+ecNwTJQa1/MDbnhO6/qHA7cfG1qYDq8Th635vGNMW1w3sVS7l0uEvdayAsBHWTcOC2tlMa5bfHrhY8OEIqj5bN5H9RdFy8G/W239tjDu1OYjBDydiBqzBn8HG1DSj1Pjc0kd/82d4ZU0308KFTC3yGcRad0GnEH0Oi3iEJ9HbriUbfVMbXNHOF+MktWiDVqzndGMKmuJSdfTBKvGFvejAWVO5E4mgLvoaMmbchc3BO7sLeraHnJN5hvMBaLcQI38N86mUfTR8AP6AJ9c2k514KaDLclm4z6J8dMz60nUeo5D3YD09G6BavFHxSvJ8MF0Lu5zOFzEePDRFm9mH8W0N/sFlIaYfD/GWU/w44mQucjaBk95YtqOGRIj58tGDWr8iUdHwaYKGqU24zGeRae9DhFXPzZshV1ZGsBQFRaoYkyLAwdJWIXTi+c37YaC8FRSEnnNmS79Dou1Kc3BvK4EYKAD2KxjtUebrV174gD0Q+9YuJ0GXOTspBvCFd5VT2Rw5zDNrA/J3F5fMCk4wOzAfMAcGBSsOAwIaBBSxgh2xyF+88V4vAffBmZXv8Txt4AQU4O/NX4MjxSodbE7ApNAMIvrtREwCAgfQ\",\r\n \"pwd\": \"123\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "3415" ], "x-ms-client-request-id": [ - "ca2a26d9-9ecf-438f-bf01-344c4670fca1" + "97bc0912-2c65-461a-96d1-bf9492ba4bef" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert02/6d73759e97404bb0a906c9b1ed1fa379\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listCert02/6d73759e97404bb0a906c9b1ed1fa379\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/listCert02/6d73759e97404bb0a906c9b1ed1fa379\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082075,\r\n \"updated\": 1477082075\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082075,\r\n \"updated\": 1477082075\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert02/7081c356dd11468a8a262a8ba5f11d74\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listCert02/7081c356dd11468a8a262a8ba5f11d74\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/listCert02/7081c356dd11468a8a262a8ba5f11d74\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188988,\r\n \"updated\": 1482188988\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188988,\r\n \"updated\": 1482188988\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1754" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:34 GMT" + "Mon, 19 Dec 2016 23:09:48 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "57c4b0d2-05c4-4772-9e8b-4153e18e222f" + "f97b9ae6-4e83-458f-8e5b-6e7ce5948ffc" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,22 +141,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3fcf06a5-f974-441a-82fa-73c90799c9af" + "c2067d59-145c-4dfd-a704-d7e3dcb0e20c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert01\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082074,\r\n \"updated\": 1477082074\r\n }\r\n },\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert02\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082075,\r\n \"updated\": 1477082075\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert01\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188987,\r\n \"updated\": 1482188987\r\n }\r\n },\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert02\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188988,\r\n \"updated\": 1482188988\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ "453" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:34 GMT" + "Mon, 19 Dec 2016 23:09:48 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "5990fd3a-163c-4029-a78f-da0e223fd2e3" + "ef8de33a-aaea-41e1-a326-1415073877a5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -202,22 +205,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/listCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdENlcnQwMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/listCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0Q2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a9bed2e4-c3b0-468b-9efa-cfa4648a2dcc" + "e5a5ae93-2457-48db-a822-134ebf44357d" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert01/d5b97326dbfa4da9aad55c5c0d0f4797\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listCert01/d5b97326dbfa4da9aad55c5c0d0f4797\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/listCert01/d5b97326dbfa4da9aad55c5c0d0f4797\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082074,\r\n \"updated\": 1477082074\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082074,\r\n \"updated\": 1477082074\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert01/464d5df954784a788d6c65ea6ddf254a\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listCert01/464d5df954784a788d6c65ea6ddf254a\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/listCert01/464d5df954784a788d6c65ea6ddf254a\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188987,\r\n \"updated\": 1482188987\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188987,\r\n \"updated\": 1482188987\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1754" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:35 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "27efc37a-8185-4a4e-bd3c-6d65b1687895" + "2d420a80-8745-4c1a-beec-9be02869821c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -265,22 +269,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/listCert02?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdENlcnQwMj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/listCert02?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0Q2VydDAyP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bfd6d74e-c668-47f6-be39-b618cfff054b" + "3ea6880f-49aa-45a8-aa58-f85728bb317c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert02/6d73759e97404bb0a906c9b1ed1fa379\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listCert02/6d73759e97404bb0a906c9b1ed1fa379\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/listCert02/6d73759e97404bb0a906c9b1ed1fa379\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082075,\r\n \"updated\": 1477082075\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082075,\r\n \"updated\": 1477082075\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert02/7081c356dd11468a8a262a8ba5f11d74\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listCert02/7081c356dd11468a8a262a8ba5f11d74\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/listCert02/7081c356dd11468a8a262a8ba5f11d74\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188988,\r\n \"updated\": 1482188988\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/listCert02/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188988,\r\n \"updated\": 1482188988\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1754" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:35 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "972171f2-3d40-40b1-a550-6f0a8cbd0320" + "0e780da2-ceda-4de9-bb40-38bf26ea8a3f" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -330,8 +335,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListVersionsTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListVersionsTest.json index 3781e880bac4..6b13859a8fd1 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListVersionsTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateListVersionsTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/listVersionsCert01/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdFZlcnNpb25zQ2VydDAxL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/listVersionsCert01/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0VmVyc2lvbnNDZXJ0MDEvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPcGCSqGSIb3DQEHAaCCCOgEggjkMIII4DCCBgkGCSqGSIb3DQEHAaCCBfoEggX2MIIF8jCCBe4GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAj15YH9pOE58AICB9AEggTYLrI+SAru2dBZRQRlJY7XQ3LeLkah2FcRR3dATDshZ2h0IA2oBrkQIdsLyAAWZ32qYR1qkWxLHn9AqXgu27AEbOk35+pITZaiy63YYBkkpR+pDdngZt19Z0PWrGwHEq5z6BHS2GLyyN8SSOCbdzCz7blj3+7IZYoMj4WOPgOm/tQ6U44SFWek46QwN2zeA4i97v7ftNNns27ms52jqfhOvTA9c/wyfZKAY4aKJfYYUmycKjnnRl012ldS2lOkASFt+lu4QCa72IY6ePtRudPCvmzRv2pkLYS6z3cI7omT8nHP3DymNOqLbFqr5O2M1ZYaLC63Q3xt3eVvbcPh3N08D1hHkhz/KDTvkRAQpvrW8ISKmgDdmzN55Pe55xHfSWGB7gPw8sZea57IxFzWHTK2yvTslooWoosmGxanYY2IG/no3EbPOWDKjPZ4ilYJe5JJ2immlxPz+2e2EOCKpDI+7fzQcRz3PTd3BK+budZ8aXX8aW/lOgKS8WmxZoKnOJBNWeTNWQFugmktXfdPHAdxMhjUXqeGQd8wTvZ4EzQNNafovwkI7IV/ZYoa++RGofVR3ZbRSiBNF6TDj/qXFt0wN/CQnsGAmQAGNiN+D4mY7i25dtTu/Jc7OxLdhAUFpHyJpyrYWLfvOiS5WYBeEDHkiPUa/8eZSPA3MXWZR1RiuDvuNqMjct1SSwdXADTtF68l/US1ksU657+XSC+6ly1A/upz+X71+C4Ho6W0751j5ZMT6xKjGh5pee7MVuduxIzXjWIy3YSd0fIT3U0A5NLEvJ9rfkx6JiHjRLx6V1tqsrtT6BsGtmCQR1UCJPLqsKVDvAINx3cPA/CGqr5OX2BGZlAihGmN6n7gv8w4O0k0LPTAe5YefgXN3m9pE867N31GtHVZaJ/UVgDNYS2jused4rw76ZWN41akx2QN0JSeMJqHXqVz6AKfz8ICS/dFnEGyBNpXiMRxrY/QPKi/wONwqsbDxRW7vZRVKs78pBkE0ksaShlZk5GkeayDWC/7Hi/NqUFtIloK9XB3paLxo1DGu5qqaF34jZdktzkXp0uZqpp+FfKZaiovMjt8F7yHCPk+LYpRsU2Cyc9DVoDA6rIgf+uEP4jppgehsxyT0lJHax2t869R2jYdsXwYUXjgwHIV0voj7bJYPGFlFjXOp6ZW86scsHM5xfsGQoK2Fp838VT34SHE1ZXU/puM7rviREHYW72pfpgGZUILQMohuTPnd8tFtAkbrmjLDo+k9xx7HUvgoFTiNNWuq/cRjr70FKNguMMTIrid+HwfmbRoaxENWdLcOTNeascER2a+37UQolKD5ksrPJG6RdNA7O2pzp3micDYRs/+s28cCIxO//J/d4nsgHp6RTuCu4+Jm9k0YTw2Xg75b2cWKrxGnDUgyIlvNPaZTB5QbMid4x44/lE0LLi9kcPQhRgrK07OnnrMgZvVGjt1CLGhKUv7KFc3xV1r1rwKkosxnoG99oCoTQtregcX5rIMjHgkc1IdflGJkZzaWMkYVFOJ4Weynz008i4ddkske5vabZs37Lb8iggUYNBYZyGzalruBgnQyK4fz38Fae4nWYjyildVfgyo/fCePR2ovOfphx9OQJi+M9BoFmPrAg+8ARDZ+R+5yzYuEc9ZoVX7nkp7LTGB3DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECNX+VL2MxzzWAgIH0ICCAojmRBO+CPfVNUO0s+BVuwhOzikAGNBmQHNChmJ/pyzPbMUbx7tO63eIVSc67iERda2WCEmVwPigaVQkPaumsfp8+L6iV/BMf5RKlyRXcwh0vUdu2Qa7qadD+gFQ2kngf4Dk6vYo2/2HxayuIf6jpwe8vql4ca3ZtWXfuRix2fwgltM0bMz1g59d7x/glTfNqxNlsty0A/rWrPJjNbOPRU2XykLuc3AtlTtYsQ32Zsmu67A7UNBw6tVtkEXlFDqhavEhUEO3dvYqMY+QLxzpZhA0q44ZZ9/ex0X6QAFNK5wuWxCbupHWsgxRwKftrxyszMHsAvNoNcTlqcctee+ecNwTJQa1/MDbnhO6/qHA7cfG1qYDq8Th635vGNMW1w3sVS7l0uEvdayAsBHWTcOC2tlMa5bfHrhY8OEIqj5bN5H9RdFy8G/W239tjDu1OYjBDydiBqzBn8HG1DSj1Pjc0kd/82d4ZU0308KFTC3yGcRad0GnEH0Oi3iEJ9HbriUbfVMbXNHOF+MktWiDVqzndGMKmuJSdfTBKvGFvejAWVO5E4mgLvoaMmbchc3BO7sLeraHnJN5hvMBaLcQI38N86mUfTR8AP6AJ9c2k514KaDLclm4z6J8dMz60nUeo5D3YD09G6BavFHxSvJ8MF0Lu5zOFzEePDRFm9mH8W0N/sFlIaYfD/GWU/w44mQucjaBk95YtqOGRIj58tGDWr8iUdHwaYKGqU24zGeRae9DhFXPzZshV1ZGsBQFRaoYkyLAwdJWIXTi+c37YaC8FRSEnnNmS79Dou1Kc3BvK4EYKAD2KxjtUebrV174gD0Q+9YuJ0GXOTspBvCFd5VT2Rw5zDNrA/J3F5fMCk4wOzAfMAcGBSsOAwIaBBSxgh2xyF+88V4vAffBmZXv8Txt4AQU4O/NX4MjxSodbE7ApNAMIvrtREwCAgfQ\",\r\n \"pwd\": \"123\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,19 +13,20 @@ "3415" ], "x-ms-client-request-id": [ - "371fc446-fd96-4f75-b4bd-450d1de17166" + "b9dd83db-d216-4093-b997-5d68916a2872" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/6ff8a3ab33d345c4b56ee3f662950326\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listVersionsCert01/6ff8a3ab33d345c4b56ee3f662950326\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/listVersionsCert01/6ff8a3ab33d345c4b56ee3f662950326\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082136,\r\n \"updated\": 1477082136\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082136,\r\n \"updated\": 1477082136\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/7fcb3e9eb8bf43f3a6ff4b9c3740801d\",\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listVersionsCert01/7fcb3e9eb8bf43f3a6ff4b9c3740801d\",\r\n \"sid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listVersionsCert01/7fcb3e9eb8bf43f3a6ff4b9c3740801d\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189532,\r\n \"updated\": 1482189532\r\n },\r\n \"policy\": {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189532,\r\n \"updated\": 1482189532\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "1786" + "1846" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:36 GMT" + "Mon, 19 Dec 2016 23:18:53 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "5ad877c6-b785-4bf5-810a-365878855e56" + "1d0bfd89-3daa-4ec5-b16c-29afcd6e7c62" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/listVersionsCert01/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdFZlcnNpb25zQ2VydDAxL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/listVersionsCert01/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0VmVyc2lvbnNDZXJ0MDEvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPcGCSqGSIb3DQEHAaCCCOgEggjkMIII4DCCBgkGCSqGSIb3DQEHAaCCBfoEggX2MIIF8jCCBe4GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAj15YH9pOE58AICB9AEggTYLrI+SAru2dBZRQRlJY7XQ3LeLkah2FcRR3dATDshZ2h0IA2oBrkQIdsLyAAWZ32qYR1qkWxLHn9AqXgu27AEbOk35+pITZaiy63YYBkkpR+pDdngZt19Z0PWrGwHEq5z6BHS2GLyyN8SSOCbdzCz7blj3+7IZYoMj4WOPgOm/tQ6U44SFWek46QwN2zeA4i97v7ftNNns27ms52jqfhOvTA9c/wyfZKAY4aKJfYYUmycKjnnRl012ldS2lOkASFt+lu4QCa72IY6ePtRudPCvmzRv2pkLYS6z3cI7omT8nHP3DymNOqLbFqr5O2M1ZYaLC63Q3xt3eVvbcPh3N08D1hHkhz/KDTvkRAQpvrW8ISKmgDdmzN55Pe55xHfSWGB7gPw8sZea57IxFzWHTK2yvTslooWoosmGxanYY2IG/no3EbPOWDKjPZ4ilYJe5JJ2immlxPz+2e2EOCKpDI+7fzQcRz3PTd3BK+budZ8aXX8aW/lOgKS8WmxZoKnOJBNWeTNWQFugmktXfdPHAdxMhjUXqeGQd8wTvZ4EzQNNafovwkI7IV/ZYoa++RGofVR3ZbRSiBNF6TDj/qXFt0wN/CQnsGAmQAGNiN+D4mY7i25dtTu/Jc7OxLdhAUFpHyJpyrYWLfvOiS5WYBeEDHkiPUa/8eZSPA3MXWZR1RiuDvuNqMjct1SSwdXADTtF68l/US1ksU657+XSC+6ly1A/upz+X71+C4Ho6W0751j5ZMT6xKjGh5pee7MVuduxIzXjWIy3YSd0fIT3U0A5NLEvJ9rfkx6JiHjRLx6V1tqsrtT6BsGtmCQR1UCJPLqsKVDvAINx3cPA/CGqr5OX2BGZlAihGmN6n7gv8w4O0k0LPTAe5YefgXN3m9pE867N31GtHVZaJ/UVgDNYS2jused4rw76ZWN41akx2QN0JSeMJqHXqVz6AKfz8ICS/dFnEGyBNpXiMRxrY/QPKi/wONwqsbDxRW7vZRVKs78pBkE0ksaShlZk5GkeayDWC/7Hi/NqUFtIloK9XB3paLxo1DGu5qqaF34jZdktzkXp0uZqpp+FfKZaiovMjt8F7yHCPk+LYpRsU2Cyc9DVoDA6rIgf+uEP4jppgehsxyT0lJHax2t869R2jYdsXwYUXjgwHIV0voj7bJYPGFlFjXOp6ZW86scsHM5xfsGQoK2Fp838VT34SHE1ZXU/puM7rviREHYW72pfpgGZUILQMohuTPnd8tFtAkbrmjLDo+k9xx7HUvgoFTiNNWuq/cRjr70FKNguMMTIrid+HwfmbRoaxENWdLcOTNeascER2a+37UQolKD5ksrPJG6RdNA7O2pzp3micDYRs/+s28cCIxO//J/d4nsgHp6RTuCu4+Jm9k0YTw2Xg75b2cWKrxGnDUgyIlvNPaZTB5QbMid4x44/lE0LLi9kcPQhRgrK07OnnrMgZvVGjt1CLGhKUv7KFc3xV1r1rwKkosxnoG99oCoTQtregcX5rIMjHgkc1IdflGJkZzaWMkYVFOJ4Weynz008i4ddkske5vabZs37Lb8iggUYNBYZyGzalruBgnQyK4fz38Fae4nWYjyildVfgyo/fCePR2ovOfphx9OQJi+M9BoFmPrAg+8ARDZ+R+5yzYuEc9ZoVX7nkp7LTGB3DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECNX+VL2MxzzWAgIH0ICCAojmRBO+CPfVNUO0s+BVuwhOzikAGNBmQHNChmJ/pyzPbMUbx7tO63eIVSc67iERda2WCEmVwPigaVQkPaumsfp8+L6iV/BMf5RKlyRXcwh0vUdu2Qa7qadD+gFQ2kngf4Dk6vYo2/2HxayuIf6jpwe8vql4ca3ZtWXfuRix2fwgltM0bMz1g59d7x/glTfNqxNlsty0A/rWrPJjNbOPRU2XykLuc3AtlTtYsQ32Zsmu67A7UNBw6tVtkEXlFDqhavEhUEO3dvYqMY+QLxzpZhA0q44ZZ9/ex0X6QAFNK5wuWxCbupHWsgxRwKftrxyszMHsAvNoNcTlqcctee+ecNwTJQa1/MDbnhO6/qHA7cfG1qYDq8Th635vGNMW1w3sVS7l0uEvdayAsBHWTcOC2tlMa5bfHrhY8OEIqj5bN5H9RdFy8G/W239tjDu1OYjBDydiBqzBn8HG1DSj1Pjc0kd/82d4ZU0308KFTC3yGcRad0GnEH0Oi3iEJ9HbriUbfVMbXNHOF+MktWiDVqzndGMKmuJSdfTBKvGFvejAWVO5E4mgLvoaMmbchc3BO7sLeraHnJN5hvMBaLcQI38N86mUfTR8AP6AJ9c2k514KaDLclm4z6J8dMz60nUeo5D3YD09G6BavFHxSvJ8MF0Lu5zOFzEePDRFm9mH8W0N/sFlIaYfD/GWU/w44mQucjaBk95YtqOGRIj58tGDWr8iUdHwaYKGqU24zGeRae9DhFXPzZshV1ZGsBQFRaoYkyLAwdJWIXTi+c37YaC8FRSEnnNmS79Dou1Kc3BvK4EYKAD2KxjtUebrV174gD0Q+9YuJ0GXOTspBvCFd5VT2Rw5zDNrA/J3F5fMCk4wOzAfMAcGBSsOAwIaBBSxgh2xyF+88V4vAffBmZXv8Txt4AQU4O/NX4MjxSodbE7ApNAMIvrtREwCAgfQ\",\r\n \"pwd\": \"123\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -82,19 +83,20 @@ "3415" ], "x-ms-client-request-id": [ - "58fd8a42-b2f9-4896-a4c9-f8f6f62fbf46" + "71be04e5-2f5c-49fb-b825-873b474c00bd" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/25db1c6d727741f383d024feaed6c378\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listVersionsCert01/25db1c6d727741f383d024feaed6c378\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/listVersionsCert01/25db1c6d727741f383d024feaed6c378\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082137,\r\n \"updated\": 1477082137\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082136,\r\n \"updated\": 1477082137\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/002ade539442463aba45c0efb42e3e84\",\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listVersionsCert01/002ade539442463aba45c0efb42e3e84\",\r\n \"sid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listVersionsCert01/002ade539442463aba45c0efb42e3e84\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189534,\r\n \"updated\": 1482189534\r\n },\r\n \"policy\": {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189532,\r\n \"updated\": 1482189534\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "1786" + "1846" ], "Content-Type": [ "application/json; charset=utf-8" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:37 GMT" + "Mon, 19 Dec 2016 23:18:54 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "eee57dfa-ee97-4557-b5ae-48beec4e799d" + "16e23758-537e-4e30-93e0-476b03a47a6d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,25 +141,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/listVersionsCert01/versions?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdFZlcnNpb25zQ2VydDAxL3ZlcnNpb25zP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/listVersionsCert01/versions?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0VmVyc2lvbnNDZXJ0MDEvdmVyc2lvbnM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ecaa49fb-7db7-4478-bc0d-49c6f692ee4e" + "92dfdc81-d8c7-420c-849c-e5732cf714e2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/25db1c6d727741f383d024feaed6c378\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082137,\r\n \"updated\": 1477082137\r\n }\r\n },\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/6ff8a3ab33d345c4b56ee3f662950326\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082136,\r\n \"updated\": 1477082136\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/002ade539442463aba45c0efb42e3e84\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189534,\r\n \"updated\": 1482189534\r\n }\r\n },\r\n {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/7fcb3e9eb8bf43f3a6ff4b9c3740801d\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189532,\r\n \"updated\": 1482189532\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "535" + "565" ], "Content-Type": [ "application/json; charset=utf-8" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:37 GMT" + "Mon, 19 Dec 2016 23:18:54 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "59185c5a-d26f-41e4-ac99-e3211f68cf0b" + "11e44a7e-a27d-4c15-b6f5-b1740e4c2197" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -202,25 +205,26 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/listVersionsCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvbGlzdFZlcnNpb25zQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/listVersionsCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy9saXN0VmVyc2lvbnNDZXJ0MDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "58d144b9-c602-4879-ba11-e16a6a2e55a9" + "e46b25a9-4069-4056-9e05-f017658a5267" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/25db1c6d727741f383d024feaed6c378\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listVersionsCert01/25db1c6d727741f383d024feaed6c378\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/listVersionsCert01/25db1c6d727741f383d024feaed6c378\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082137,\r\n \"updated\": 1477082137\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/listVersionsCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082136,\r\n \"updated\": 1477082137\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/002ade539442463aba45c0efb42e3e84\",\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listVersionsCert01/002ade539442463aba45c0efb42e3e84\",\r\n \"sid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listVersionsCert01/002ade539442463aba45c0efb42e3e84\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482189534,\r\n \"updated\": 1482189534\r\n },\r\n \"policy\": {\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/certificates/listVersionsCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189532,\r\n \"updated\": 1482189534\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "1786" + "1846" ], "Content-Type": [ "application/json; charset=utf-8" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:37 GMT" + "Mon, 19 Dec 2016 23:18:54 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "496ab786-dc66-4686-95fe-a99978e7b4d8" + "52ea59a3-4675-41ee-a3ec-cfabce63946a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -267,8 +271,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificatePolicyTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificatePolicyTest.json index 9aab540d10a5..0f43e7487201 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificatePolicyTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificatePolicyTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/updateCert01/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/updateCert01/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPcGCSqGSIb3DQEHAaCCCOgEggjkMIII4DCCBgkGCSqGSIb3DQEHAaCCBfoEggX2MIIF8jCCBe4GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAj15YH9pOE58AICB9AEggTYLrI+SAru2dBZRQRlJY7XQ3LeLkah2FcRR3dATDshZ2h0IA2oBrkQIdsLyAAWZ32qYR1qkWxLHn9AqXgu27AEbOk35+pITZaiy63YYBkkpR+pDdngZt19Z0PWrGwHEq5z6BHS2GLyyN8SSOCbdzCz7blj3+7IZYoMj4WOPgOm/tQ6U44SFWek46QwN2zeA4i97v7ftNNns27ms52jqfhOvTA9c/wyfZKAY4aKJfYYUmycKjnnRl012ldS2lOkASFt+lu4QCa72IY6ePtRudPCvmzRv2pkLYS6z3cI7omT8nHP3DymNOqLbFqr5O2M1ZYaLC63Q3xt3eVvbcPh3N08D1hHkhz/KDTvkRAQpvrW8ISKmgDdmzN55Pe55xHfSWGB7gPw8sZea57IxFzWHTK2yvTslooWoosmGxanYY2IG/no3EbPOWDKjPZ4ilYJe5JJ2immlxPz+2e2EOCKpDI+7fzQcRz3PTd3BK+budZ8aXX8aW/lOgKS8WmxZoKnOJBNWeTNWQFugmktXfdPHAdxMhjUXqeGQd8wTvZ4EzQNNafovwkI7IV/ZYoa++RGofVR3ZbRSiBNF6TDj/qXFt0wN/CQnsGAmQAGNiN+D4mY7i25dtTu/Jc7OxLdhAUFpHyJpyrYWLfvOiS5WYBeEDHkiPUa/8eZSPA3MXWZR1RiuDvuNqMjct1SSwdXADTtF68l/US1ksU657+XSC+6ly1A/upz+X71+C4Ho6W0751j5ZMT6xKjGh5pee7MVuduxIzXjWIy3YSd0fIT3U0A5NLEvJ9rfkx6JiHjRLx6V1tqsrtT6BsGtmCQR1UCJPLqsKVDvAINx3cPA/CGqr5OX2BGZlAihGmN6n7gv8w4O0k0LPTAe5YefgXN3m9pE867N31GtHVZaJ/UVgDNYS2jused4rw76ZWN41akx2QN0JSeMJqHXqVz6AKfz8ICS/dFnEGyBNpXiMRxrY/QPKi/wONwqsbDxRW7vZRVKs78pBkE0ksaShlZk5GkeayDWC/7Hi/NqUFtIloK9XB3paLxo1DGu5qqaF34jZdktzkXp0uZqpp+FfKZaiovMjt8F7yHCPk+LYpRsU2Cyc9DVoDA6rIgf+uEP4jppgehsxyT0lJHax2t869R2jYdsXwYUXjgwHIV0voj7bJYPGFlFjXOp6ZW86scsHM5xfsGQoK2Fp838VT34SHE1ZXU/puM7rviREHYW72pfpgGZUILQMohuTPnd8tFtAkbrmjLDo+k9xx7HUvgoFTiNNWuq/cRjr70FKNguMMTIrid+HwfmbRoaxENWdLcOTNeascER2a+37UQolKD5ksrPJG6RdNA7O2pzp3micDYRs/+s28cCIxO//J/d4nsgHp6RTuCu4+Jm9k0YTw2Xg75b2cWKrxGnDUgyIlvNPaZTB5QbMid4x44/lE0LLi9kcPQhRgrK07OnnrMgZvVGjt1CLGhKUv7KFc3xV1r1rwKkosxnoG99oCoTQtregcX5rIMjHgkc1IdflGJkZzaWMkYVFOJ4Weynz008i4ddkske5vabZs37Lb8iggUYNBYZyGzalruBgnQyK4fz38Fae4nWYjyildVfgyo/fCePR2ovOfphx9OQJi+M9BoFmPrAg+8ARDZ+R+5yzYuEc9ZoVX7nkp7LTGB3DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECNX+VL2MxzzWAgIH0ICCAojmRBO+CPfVNUO0s+BVuwhOzikAGNBmQHNChmJ/pyzPbMUbx7tO63eIVSc67iERda2WCEmVwPigaVQkPaumsfp8+L6iV/BMf5RKlyRXcwh0vUdu2Qa7qadD+gFQ2kngf4Dk6vYo2/2HxayuIf6jpwe8vql4ca3ZtWXfuRix2fwgltM0bMz1g59d7x/glTfNqxNlsty0A/rWrPJjNbOPRU2XykLuc3AtlTtYsQ32Zsmu67A7UNBw6tVtkEXlFDqhavEhUEO3dvYqMY+QLxzpZhA0q44ZZ9/ex0X6QAFNK5wuWxCbupHWsgxRwKftrxyszMHsAvNoNcTlqcctee+ecNwTJQa1/MDbnhO6/qHA7cfG1qYDq8Th635vGNMW1w3sVS7l0uEvdayAsBHWTcOC2tlMa5bfHrhY8OEIqj5bN5H9RdFy8G/W239tjDu1OYjBDydiBqzBn8HG1DSj1Pjc0kd/82d4ZU0308KFTC3yGcRad0GnEH0Oi3iEJ9HbriUbfVMbXNHOF+MktWiDVqzndGMKmuJSdfTBKvGFvejAWVO5E4mgLvoaMmbchc3BO7sLeraHnJN5hvMBaLcQI38N86mUfTR8AP6AJ9c2k514KaDLclm4z6J8dMz60nUeo5D3YD09G6BavFHxSvJ8MF0Lu5zOFzEePDRFm9mH8W0N/sFlIaYfD/GWU/w44mQucjaBk95YtqOGRIj58tGDWr8iUdHwaYKGqU24zGeRae9DhFXPzZshV1ZGsBQFRaoYkyLAwdJWIXTi+c37YaC8FRSEnnNmS79Dou1Kc3BvK4EYKAD2KxjtUebrV174gD0Q+9YuJ0GXOTspBvCFd5VT2Rw5zDNrA/J3F5fMCk4wOzAfMAcGBSsOAwIaBBSxgh2xyF+88V4vAffBmZXv8Txt4AQU4O/NX4MjxSodbE7ApNAMIvrtREwCAgfQ\",\r\n \"pwd\": \"123\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "3415" ], "x-ms-client-request-id": [ - "2a6eb308-ccc7-4224-a52e-860d7f592ad4" + "162aa6a0-871d-4b97-b86c-270726758642" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/1495fe603795450e99230bd1733c5085\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/updateCert01/1495fe603795450e99230bd1733c5085\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/updateCert01/1495fe603795450e99230bd1733c5085\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082039,\r\n \"updated\": 1477082039\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082039,\r\n \"updated\": 1477082039\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/e77db3a8f03445e88f19f8475b1d09ab\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/updateCert01/e77db3a8f03445e88f19f8475b1d09ab\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/updateCert01/e77db3a8f03445e88f19f8475b1d09ab\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188947\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188947\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:59 GMT" + "Mon, 19 Dec 2016 23:09:07 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e8ad9998-73f3-4f39-b08d-f6ebb7563b33" + "69f7f439-c352-4126-a4ce-55a869b7add5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,22 +71,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/updateCert01/policy?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxL3BvbGljeT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/updateCert01/policy?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvcG9saWN5P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c0d6cac3-ddaf-4b6d-bd9d-fcb8ddcf7c47" + "21f11807-6aa2-438c-9706-1e9e0c8c08a6" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082039,\r\n \"updated\": 1477082039\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188947\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "535" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:33:59 GMT" + "Mon, 19 Dec 2016 23:09:07 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cf4448d2-74fb-4cf9-a31d-47a9c8acad02" + "cbb668c1-3bdd-4c2c-acf8-78d2277380cf" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,22 +135,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/updateCert01/policy?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxL3BvbGljeT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/updateCert01/policy?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvcG9saWN5P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "070f41a0-a0a1-445b-b1ac-e82ed25e96c7" + "8a1e95a6-eada-4468-80c7-a1be585f32d0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082039,\r\n \"updated\": 1477082040\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188948\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "532" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:00 GMT" + "Mon, 19 Dec 2016 23:09:08 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "2d88e395-dfc0-4121-9020-96b2f20c60b2" + "16cb21ea-dbcd-4ab8-baa8-227d3a7fa744" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,8 +199,8 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/updateCert01/policy?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxL3BvbGljeT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/updateCert01/policy?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvcG9saWN5P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true\r\n }\r\n}", "RequestHeaders": { @@ -208,16 +211,17 @@ "580" ], "x-ms-client-request-id": [ - "6e3cf87b-966c-41d9-a754-9be3e5135316" + "7b08fe3d-9ca5-4800-b557-219082a37a40" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082039,\r\n \"updated\": 1477082040\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188948\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "532" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:00 GMT" + "Mon, 19 Dec 2016 23:09:07 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0a6b83e3-4fde-4c8d-a895-16e7f23ebae4" + "1a83a058-02e6-46ee-a80a-1e3e2324c40a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -265,22 +269,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/updateCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/updateCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e744dc54-057e-4068-82cc-859c18090c03" + "34333715-8b55-476b-b0c2-bd0e19d2fad3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/1495fe603795450e99230bd1733c5085\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/updateCert01/1495fe603795450e99230bd1733c5085\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/updateCert01/1495fe603795450e99230bd1733c5085\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082039,\r\n \"updated\": 1477082039\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082039,\r\n \"updated\": 1477082040\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/e77db3a8f03445e88f19f8475b1d09ab\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/updateCert01/e77db3a8f03445e88f19f8475b1d09ab\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/updateCert01/e77db3a8f03445e88f19f8475b1d09ab\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188947\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Self\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188948\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1759" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:00 GMT" + "Mon, 19 Dec 2016 23:09:08 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0a8201f6-b164-4fd5-8604-f77b363f582a" + "849d65bd-f8f3-4a16-b1ce-4e7f47cf8d86" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -330,8 +335,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateUpdateTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateUpdateTest.json index 9c76b225dd43..2aff792bde7b 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateUpdateTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCertificateUpdateTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//certificates/updateCert01/import?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxL2ltcG9ydD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/updateCert01/import?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"value\": \"MIIJOwIBAzCCCPcGCSqGSIb3DQEHAaCCCOgEggjkMIII4DCCBgkGCSqGSIb3DQEHAaCCBfoEggX2MIIF8jCCBe4GCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAj15YH9pOE58AICB9AEggTYLrI+SAru2dBZRQRlJY7XQ3LeLkah2FcRR3dATDshZ2h0IA2oBrkQIdsLyAAWZ32qYR1qkWxLHn9AqXgu27AEbOk35+pITZaiy63YYBkkpR+pDdngZt19Z0PWrGwHEq5z6BHS2GLyyN8SSOCbdzCz7blj3+7IZYoMj4WOPgOm/tQ6U44SFWek46QwN2zeA4i97v7ftNNns27ms52jqfhOvTA9c/wyfZKAY4aKJfYYUmycKjnnRl012ldS2lOkASFt+lu4QCa72IY6ePtRudPCvmzRv2pkLYS6z3cI7omT8nHP3DymNOqLbFqr5O2M1ZYaLC63Q3xt3eVvbcPh3N08D1hHkhz/KDTvkRAQpvrW8ISKmgDdmzN55Pe55xHfSWGB7gPw8sZea57IxFzWHTK2yvTslooWoosmGxanYY2IG/no3EbPOWDKjPZ4ilYJe5JJ2immlxPz+2e2EOCKpDI+7fzQcRz3PTd3BK+budZ8aXX8aW/lOgKS8WmxZoKnOJBNWeTNWQFugmktXfdPHAdxMhjUXqeGQd8wTvZ4EzQNNafovwkI7IV/ZYoa++RGofVR3ZbRSiBNF6TDj/qXFt0wN/CQnsGAmQAGNiN+D4mY7i25dtTu/Jc7OxLdhAUFpHyJpyrYWLfvOiS5WYBeEDHkiPUa/8eZSPA3MXWZR1RiuDvuNqMjct1SSwdXADTtF68l/US1ksU657+XSC+6ly1A/upz+X71+C4Ho6W0751j5ZMT6xKjGh5pee7MVuduxIzXjWIy3YSd0fIT3U0A5NLEvJ9rfkx6JiHjRLx6V1tqsrtT6BsGtmCQR1UCJPLqsKVDvAINx3cPA/CGqr5OX2BGZlAihGmN6n7gv8w4O0k0LPTAe5YefgXN3m9pE867N31GtHVZaJ/UVgDNYS2jused4rw76ZWN41akx2QN0JSeMJqHXqVz6AKfz8ICS/dFnEGyBNpXiMRxrY/QPKi/wONwqsbDxRW7vZRVKs78pBkE0ksaShlZk5GkeayDWC/7Hi/NqUFtIloK9XB3paLxo1DGu5qqaF34jZdktzkXp0uZqpp+FfKZaiovMjt8F7yHCPk+LYpRsU2Cyc9DVoDA6rIgf+uEP4jppgehsxyT0lJHax2t869R2jYdsXwYUXjgwHIV0voj7bJYPGFlFjXOp6ZW86scsHM5xfsGQoK2Fp838VT34SHE1ZXU/puM7rviREHYW72pfpgGZUILQMohuTPnd8tFtAkbrmjLDo+k9xx7HUvgoFTiNNWuq/cRjr70FKNguMMTIrid+HwfmbRoaxENWdLcOTNeascER2a+37UQolKD5ksrPJG6RdNA7O2pzp3micDYRs/+s28cCIxO//J/d4nsgHp6RTuCu4+Jm9k0YTw2Xg75b2cWKrxGnDUgyIlvNPaZTB5QbMid4x44/lE0LLi9kcPQhRgrK07OnnrMgZvVGjt1CLGhKUv7KFc3xV1r1rwKkosxnoG99oCoTQtregcX5rIMjHgkc1IdflGJkZzaWMkYVFOJ4Weynz008i4ddkske5vabZs37Lb8iggUYNBYZyGzalruBgnQyK4fz38Fae4nWYjyildVfgyo/fCePR2ovOfphx9OQJi+M9BoFmPrAg+8ARDZ+R+5yzYuEc9ZoVX7nkp7LTGB3DANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAOAAwAGQAZgBmADgANgAtAGUAOQA2AGUALQA0ADIAMgA0AC0AYQBhADEAMQAtAGIAZAAxADkANABkADUAYQA2AGIANwA3MF0GCSsGAQQBgjcRATFQHk4ATQBpAGMAcgBvAHMAbwBmAHQAIABTAHQAcgBvAG4AZwAgAEMAcgB5AHAAdABvAGcAcgBhAHAAaABpAGMAIABQAHIAbwB2AGkAZABlAHIwggLPBgkqhkiG9w0BBwagggLAMIICvAIBADCCArUGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEGMA4ECNX+VL2MxzzWAgIH0ICCAojmRBO+CPfVNUO0s+BVuwhOzikAGNBmQHNChmJ/pyzPbMUbx7tO63eIVSc67iERda2WCEmVwPigaVQkPaumsfp8+L6iV/BMf5RKlyRXcwh0vUdu2Qa7qadD+gFQ2kngf4Dk6vYo2/2HxayuIf6jpwe8vql4ca3ZtWXfuRix2fwgltM0bMz1g59d7x/glTfNqxNlsty0A/rWrPJjNbOPRU2XykLuc3AtlTtYsQ32Zsmu67A7UNBw6tVtkEXlFDqhavEhUEO3dvYqMY+QLxzpZhA0q44ZZ9/ex0X6QAFNK5wuWxCbupHWsgxRwKftrxyszMHsAvNoNcTlqcctee+ecNwTJQa1/MDbnhO6/qHA7cfG1qYDq8Th635vGNMW1w3sVS7l0uEvdayAsBHWTcOC2tlMa5bfHrhY8OEIqj5bN5H9RdFy8G/W239tjDu1OYjBDydiBqzBn8HG1DSj1Pjc0kd/82d4ZU0308KFTC3yGcRad0GnEH0Oi3iEJ9HbriUbfVMbXNHOF+MktWiDVqzndGMKmuJSdfTBKvGFvejAWVO5E4mgLvoaMmbchc3BO7sLeraHnJN5hvMBaLcQI38N86mUfTR8AP6AJ9c2k514KaDLclm4z6J8dMz60nUeo5D3YD09G6BavFHxSvJ8MF0Lu5zOFzEePDRFm9mH8W0N/sFlIaYfD/GWU/w44mQucjaBk95YtqOGRIj58tGDWr8iUdHwaYKGqU24zGeRae9DhFXPzZshV1ZGsBQFRaoYkyLAwdJWIXTi+c37YaC8FRSEnnNmS79Dou1Kc3BvK4EYKAD2KxjtUebrV174gD0Q+9YuJ0GXOTspBvCFd5VT2Rw5zDNrA/J3F5fMCk4wOzAfMAcGBSsOAwIaBBSxgh2xyF+88V4vAffBmZXv8Txt4AQU4O/NX4MjxSodbE7ApNAMIvrtREwCAgfQ\",\r\n \"pwd\": \"123\",\r\n \"policy\": {\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "3415" ], "x-ms-client-request-id": [ - "2078c993-6938-4b56-8192-352d398b1284" + "632801f8-7171-4a6b-99ec-fc47fb075c63" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082068\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082068\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:28 GMT" + "Mon, 19 Dec 2016 23:09:41 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "89142d99-0c17-45c6-b306-3d7765821521" + "9ff37071-9b77-4f0d-b262-a076f9c8c253" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,22 +71,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/updateCert01/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxLz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/updateCert01/?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b007dcc1-7691-4be2-b2d9-ef4427d9c7d1" + "303c279e-815b-4221-a22d-6b37c7d082c7" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082068\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082068\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1762" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:28 GMT" + "Mon, 19 Dec 2016 23:09:41 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "908bc5dc-d95b-4f85-b9b8-c00397eb9f37" + "6f5be3c3-aff8-4a55-a981-7eee4fbfd36a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,22 +135,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/updateCert01/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxLz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/certificates/updateCert01/?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8c17387b-66c2-4f99-82f9-6924eec07345" + "92ef1e92-87b4-4289-bcf3-6843a1fc1361" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082069\r\n },\r\n \"tags\": {\r\n \"department\": \"KeyVaultTest\"\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082068\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n },\r\n \"tags\": {\r\n \"department\": \"KeyVaultTest\"\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1799" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:41 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0bb08a64-103b-448d-aa4c-29162d1a5452" + "5641a355-a92e-46d0-a5f4-24029c705a83" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,8 +199,8 @@ "StatusCode": 200 }, { - "RequestUri": "/certificates/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3?api-version=2016-10-01", - "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvMGI2MWI3ZTQxOTdlNDhkOWE1NWMzMmE4YTYyMTgxYjM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/certificates/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDEvYzNkMzFkN2IzNmM5NDJhZDgzZWYzNmZjMDc4NWE0ZmM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799\r\n },\r\n \"tags\": {\r\n \"department\": \"KeyVaultTest\"\r\n }\r\n}", "RequestHeaders": { @@ -208,16 +211,17 @@ "150" ], "x-ms-client-request-id": [ - "2af695b8-2020-4b3b-b80e-33e3316525b6" + "d2455166-b105-4159-bc71-f80de17a9196" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082069\r\n },\r\n \"tags\": {\r\n \"department\": \"KeyVaultTest\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n },\r\n \"tags\": {\r\n \"department\": \"KeyVaultTest\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1254" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:41 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "6ad66979-7bb4-432d-a1a5-b5765ed498ac" + "db3f7d06-93f5-48f4-9cc5-437b2ff53c82" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -265,22 +269,23 @@ "StatusCode": 200 }, { - "RequestUri": "//certificates/updateCert01?api-version=2016-10-01", - "EncodedRequestUri": "Ly9jZXJ0aWZpY2F0ZXMvdXBkYXRlQ2VydDAxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/certificates/updateCert01?api-version=2016-10-01", + "EncodedRequestUri": "L2NlcnRpZmljYXRlcy91cGRhdGVDZXJ0MDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "14c3c4f4-c9f0-4da9-bb8b-5e60e233c3f1" + "bc5a707e-6f67-4cf6-9ec0-71a435740377" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"sid\": \"https://testvault1020.vault.azure.net/secrets/updateCert01/0b61b7e4197e48d9a55c32a8a62181b3\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082069\r\n },\r\n \"tags\": {\r\n \"department\": \"KeyVaultTest\"\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1020.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082068,\r\n \"updated\": 1477082068\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"sid\": \"https://testvault1021.vault.azure.net/secrets/updateCert01/c3d31d7b36c942ad83ef36fc0785a4fc\",\r\n \"x5t\": \"fLi3U52HunIVNXubkEnf8tP6Wbo\",\r\n \"cer\": \"MIICODCCAeagAwIBAgIQqHmpBAv+CY9IJFoUhlbziTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE1MDQyOTIxNTM0MVoXDTM5MTIzMTIzNTk1OVowFzEVMBMGA1UEAxMMS2V5VmF1bHRUZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bVAT73zr4+N4WVv2+SvTunAw08ksS4BrJW/nNliz3S9XuzMBMXvmYzU5HJ8TtEgluBiZZYd5qsMJD+OXHSNbsLdmMhni0jYX09h3XlC2VJw2sGKeYF+xEaavXm337aZZaZyjrFBrrUl51UePaN+kVFXNlBb3N3TYpqa7KokXenJQuR+i9Gv9a77c0UsSsDSryxppYhKK7HvTZCpKrhVtulF5iPMswWe9np3uggfMamyIsK/0L7X9w9B2qN7993RR0A00nOk4H6CnkuwO77dSsD0KJsk6FyAoZBzRXDZh9+d9R76zCL506NcQy/jl0lCiQYwsUX73PG5pxOh02OwKwIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAGqIjo2geVagzuzaZOe1ClGKhZeiCKfWAxklaGN+qlGUbVS4IN4V1lot3VKnzabasmkEHeNxPwLn1qvSD0cX9CE=\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1430344421,\r\n \"exp\": 2208988799,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n },\r\n \"tags\": {\r\n \"department\": \"KeyVaultTest\"\r\n },\r\n \"policy\": {\r\n \"id\": \"https://testvault1021.vault.azure.net/certificates/updateCert01/policy\",\r\n \"key_props\": {\r\n \"exportable\": true,\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"reuse_key\": false\r\n },\r\n \"secret_props\": {\r\n \"contentType\": \"application/x-pkcs12\"\r\n },\r\n \"x509_props\": {\r\n \"subject\": \"CN=KeyVaultTest\",\r\n \"ekus\": [],\r\n \"key_usage\": [],\r\n \"validity_months\": 297,\r\n \"basic_constraints\": {\r\n \"ca\": false\r\n }\r\n },\r\n \"lifetime_actions\": [\r\n {\r\n \"trigger\": {\r\n \"lifetime_percentage\": 80\r\n },\r\n \"action\": {\r\n \"action_type\": \"EmailContacts\"\r\n }\r\n }\r\n ],\r\n \"issuer\": {\r\n \"name\": \"Unknown\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188981,\r\n \"updated\": 1482188981\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1799" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:41 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "5d56c36e-b494-4b35-a017-71ef0763ec55" + "fee7fc8d-5a04-4733-a2b4-2b700f3ddbcb" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -330,8 +335,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultConstructor.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultConstructor.json index 3c7e61148913..5ffa43c6ebe8 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultConstructor.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultConstructor.json @@ -7,16 +7,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "41c003c9-fe04-4533-8181-afcf5a4d2abb" + "f940e943-079b-4f90-9835-b7eec33598bf" ], "accept-language": [ "en-US" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/createManualEnrollmentJava4\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1469048531,\r\n \"exp\": 1500585131,\r\n \"created\": 1469049131,\r\n \"updated\": 1469049131\r\n },\r\n \"managed\": true\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/createManualEnrollmentJava6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1469567919,\r\n \"exp\": 1501104519,\r\n \"created\": 1469568520,\r\n \"updated\": 1469568520\r\n },\r\n \"managed\": true\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/createManualEnrollmentJava7\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1469568292,\r\n \"exp\": 1501104892,\r\n \"created\": 1469568892,\r\n \"updated\": 1469568892\r\n },\r\n \"managed\": true\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/createManualEnrollmentJava8\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1469569754,\r\n \"exp\": 1501106354,\r\n \"created\": 1469570354,\r\n \"updated\": 1469570354\r\n },\r\n \"managed\": true\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/createManualEnrollmentJava9\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1469574262,\r\n \"exp\": 1501110862,\r\n \"created\": 1469574863,\r\n \"updated\": 1469574863\r\n },\r\n \"managed\": true\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/listkeytest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1478201850,\r\n \"updated\": 1478201850\r\n }\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/listkeytest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1478201851,\r\n \"updated\": 1478201851\r\n }\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/listkeytest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1478201851,\r\n \"updated\": 1478201851\r\n }\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/listkeyversionstest\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1478201844,\r\n \"updated\": 1478201844\r\n }\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/sdktestkey\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1478564458,\r\n \"updated\": 1478564458\r\n }\r\n },\r\n {\r\n \"kid\": \"https://sdktestvault0511.vault.azure.net/keys/UnknownIssuerCert\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 1469493191,\r\n \"exp\": 1501029791,\r\n \"created\": 1469493792,\r\n \"updated\": 1469493792\r\n },\r\n \"managed\": true\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listkeytest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188857,\r\n \"updated\": 1482188857\r\n }\r\n },\r\n {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listkeytest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188857,\r\n \"updated\": 1482188857\r\n }\r\n },\r\n {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listkeytest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188858,\r\n \"updated\": 1482188858\r\n }\r\n },\r\n {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listkeyversionstest\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188853,\r\n \"updated\": 1482188853\r\n }\r\n },\r\n {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/sdktestkey\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188915,\r\n \"updated\": 1482188915\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "1957" + "797" ], "Content-Type": [ "application/json; charset=utf-8" @@ -28,7 +28,7 @@ "no-cache" ], "Date": [ - "Tue, 08 Nov 2016 00:20:58 GMT" + "Mon, 19 Dec 2016 23:18:48 GMT" ], "Pragma": [ "no-cache" @@ -37,13 +37,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "East US" + "South Central US" ], "x-ms-request-id": [ - "dae84c87-8253-48d5-a09e-25b9db40ad58" + "8a7791fe-671c-4da9-ba4b-3c0a55589b21" ], "x-ms-keyvault-service-version": [ - "1.0.0.783" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -63,8 +63,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://sdktestvault0511.vault.azure.net", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "70af9ac375194d018c0c7a0ef35b1d56" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateGetDeleteKeyTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateGetDeleteKeyTest.json index 763d095b81b7..2c52c60bf50b 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateGetDeleteKeyTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateGetDeleteKeyTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/CreateSoftKeyTest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL0NyZWF0ZVNvZnRLZXlUZXN0L2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/CreateSoftKeyTest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlU29mdEtleVRlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"attributes\": {},\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateGetDeleteKeyTest\"\r\n }\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "269" ], "x-ms-client-request-id": [ - "c1d111e1-bbbb-470c-82a9-23a9be426a18" + "0ae4d923-b158-41a8-beca-a9fd071df241" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/CreateSoftKeyTest/4ee6bb4d2e3549ae9d45753a9b58e96a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"2KcHN9mToqFWiK2RYN9CDbVjzNcAOOmsvruUXEgRjWs8dScr-U1U6zZnm_k4wWPHsJ4pGpRwoWAn-D5QnfR-MD6InEARZSHD-luZxndaffsjq32ridwK58qM9L1stUYBwGvGqgnbprVJyhbMJ7x3923Bdj-l3prcQ4uHN_PIfFpyyHvc5XdIo4cn5zGjS47nxTEN9WV67Og36sQfcFvi1a4gwWajrgHxN38DBtgyuXRfxpBdFM8k63dBCFdLpPb3RejrZanLdJu91-GrfzalkofrP2ixCt9meT0XnCEPqlcWNah7irjTdqU6VOloE6tCb-5OmFk-LG9bIewa5Yplfw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082040,\r\n \"updated\": 1477082040\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateGetDeleteKeyTest\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/CreateSoftKeyTest/bc8f174589144c00ab7aa2977162c808\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"nW4UnM8D5yMF189saOvHclS4YmU3MmNzz_Q3CM-GPu98KssGmaZ-RKPctURVJN4dS0zch_q0VR4VGPMymjpnusGZMHPTox-_fFKcddMDP9vDtH_X2s4ixy7YvEZYUShUxSo7kfaBKuUsW3lLFS1-3YCRD_greiSUlImDPdlr6L4piaD2neExjWJaO-GJE_hgcZ7nGJq_0U29UoUCR-Ka4g-byeZOGN20We4E3YHziB1aZcO-jegNkj5UqX9EbBGbuvv_CqyYZNBMtGyzjq0NzUYoI2SHVhjM3lsDuOW_AyVpKw7uGzkpRVFVwjTMcIb0shFvBjxQSzAfkr6gVjZzPw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188950,\r\n \"updated\": 1482188950\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateGetDeleteKeyTest\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "694" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:00 GMT" + "Mon, 19 Dec 2016 23:09:09 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "8a21fd09-cc2e-4910-afb8-a1087886d500" + "27e3164b-d66a-47c8-950a-4c923f86fd3d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,22 +71,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/CreateSoftKeyTest/4ee6bb4d2e3549ae9d45753a9b58e96a?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvQ3JlYXRlU29mdEtleVRlc3QvNGVlNmJiNGQyZTM1NDlhZTlkNDU3NTNhOWI1OGU5NmE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/CreateSoftKeyTest/bc8f174589144c00ab7aa2977162c808?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlU29mdEtleVRlc3QvYmM4ZjE3NDU4OTE0NGMwMGFiN2FhMjk3NzE2MmM4MDg/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9047763d-c681-4b37-9c65-f6954bdbb01f" + "20c243bb-f161-417e-9b54-8ce44d85d59c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/CreateSoftKeyTest/4ee6bb4d2e3549ae9d45753a9b58e96a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"2KcHN9mToqFWiK2RYN9CDbVjzNcAOOmsvruUXEgRjWs8dScr-U1U6zZnm_k4wWPHsJ4pGpRwoWAn-D5QnfR-MD6InEARZSHD-luZxndaffsjq32ridwK58qM9L1stUYBwGvGqgnbprVJyhbMJ7x3923Bdj-l3prcQ4uHN_PIfFpyyHvc5XdIo4cn5zGjS47nxTEN9WV67Og36sQfcFvi1a4gwWajrgHxN38DBtgyuXRfxpBdFM8k63dBCFdLpPb3RejrZanLdJu91-GrfzalkofrP2ixCt9meT0XnCEPqlcWNah7irjTdqU6VOloE6tCb-5OmFk-LG9bIewa5Yplfw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082040,\r\n \"updated\": 1477082040\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateGetDeleteKeyTest\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/CreateSoftKeyTest/bc8f174589144c00ab7aa2977162c808\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"nW4UnM8D5yMF189saOvHclS4YmU3MmNzz_Q3CM-GPu98KssGmaZ-RKPctURVJN4dS0zch_q0VR4VGPMymjpnusGZMHPTox-_fFKcddMDP9vDtH_X2s4ixy7YvEZYUShUxSo7kfaBKuUsW3lLFS1-3YCRD_greiSUlImDPdlr6L4piaD2neExjWJaO-GJE_hgcZ7nGJq_0U29UoUCR-Ka4g-byeZOGN20We4E3YHziB1aZcO-jegNkj5UqX9EbBGbuvv_CqyYZNBMtGyzjq0NzUYoI2SHVhjM3lsDuOW_AyVpKw7uGzkpRVFVwjTMcIb0shFvBjxQSzAfkr6gVjZzPw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188950,\r\n \"updated\": 1482188950\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateGetDeleteKeyTest\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "694" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:00 GMT" + "Mon, 19 Dec 2016 23:09:09 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "40057462-4102-4ff8-937e-64d8894f7184" + "14ac52b8-d956-40e6-b9ea-4ed34f1aba24" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,22 +135,23 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/CreateSoftKeyTest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL0NyZWF0ZVNvZnRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/CreateSoftKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlU29mdEtleVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dcf3c0fb-50f9-445e-9d30-ee5f507c968a" + "67dd7c52-f1d9-461c-9b75-1eb44444f2cc" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/CreateSoftKeyTest/4ee6bb4d2e3549ae9d45753a9b58e96a\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"2KcHN9mToqFWiK2RYN9CDbVjzNcAOOmsvruUXEgRjWs8dScr-U1U6zZnm_k4wWPHsJ4pGpRwoWAn-D5QnfR-MD6InEARZSHD-luZxndaffsjq32ridwK58qM9L1stUYBwGvGqgnbprVJyhbMJ7x3923Bdj-l3prcQ4uHN_PIfFpyyHvc5XdIo4cn5zGjS47nxTEN9WV67Og36sQfcFvi1a4gwWajrgHxN38DBtgyuXRfxpBdFM8k63dBCFdLpPb3RejrZanLdJu91-GrfzalkofrP2ixCt9meT0XnCEPqlcWNah7irjTdqU6VOloE6tCb-5OmFk-LG9bIewa5Yplfw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082040,\r\n \"updated\": 1477082040\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateGetDeleteKeyTest\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/CreateSoftKeyTest/bc8f174589144c00ab7aa2977162c808\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"nW4UnM8D5yMF189saOvHclS4YmU3MmNzz_Q3CM-GPu98KssGmaZ-RKPctURVJN4dS0zch_q0VR4VGPMymjpnusGZMHPTox-_fFKcddMDP9vDtH_X2s4ixy7YvEZYUShUxSo7kfaBKuUsW3lLFS1-3YCRD_greiSUlImDPdlr6L4piaD2neExjWJaO-GJE_hgcZ7nGJq_0U29UoUCR-Ka4g-byeZOGN20We4E3YHziB1aZcO-jegNkj5UqX9EbBGbuvv_CqyYZNBMtGyzjq0NzUYoI2SHVhjM3lsDuOW_AyVpKw7uGzkpRVFVwjTMcIb0shFvBjxQSzAfkr6gVjZzPw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188950,\r\n \"updated\": 1482188950\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateGetDeleteKeyTest\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "694" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:00 GMT" + "Mon, 19 Dec 2016 23:09:10 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0b58832c-94ea-4e32-8f5c-b7038cde69dc" + "30094f5a-c6fc-428e-9ca2-51d6f15fa89c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -196,25 +199,26 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/CreateSoftKeyTest/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL0NyZWF0ZVNvZnRLZXlUZXN0Lz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/CreateSoftKeyTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlU29mdEtleVRlc3QvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3a05c216-73f2-4860-913b-45599b3a96c1" + "5c52566d-9212-49f0-bcc2-f61c250b5776" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Key CreateSoftKeyTest not found\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Key not found: CreateSoftKeyTest\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "77" ], "Content-Type": [ "application/json; charset=utf-8" @@ -226,7 +230,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:00 GMT" + "Mon, 19 Dec 2016 23:09:10 GMT" ], "Pragma": [ "no-cache" @@ -235,13 +239,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "4d458c13-f414-40c3-a428-d41ec5942ac4" + "a16ee06f-8000-4b35-bbab-980d63111a8e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -261,8 +265,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateHsmKeyTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateHsmKeyTest.json index dc47899f3d4f..ef97c00b0c86 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateHsmKeyTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultCreateHsmKeyTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/CreateHsmKeyTest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL0NyZWF0ZUhzbUtleVRlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/CreateHsmKeyTest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlSHNtS2V5VGVzdC9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA-HSM\",\r\n \"key_size\": 2048,\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"attributes\": {}\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "181" ], "x-ms-client-request-id": [ - "0bf00f54-1473-4e79-9b4b-0920bc33a258" + "df60fe32-f7c3-48fb-8474-74eea08fc76b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/CreateHsmKeyTest/bbad308a6cde470682d42fd697d6ef84\",\r\n \"kty\": \"RSA-HSM\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"2g7297JxqlGZQaiAEKN6oOQhMHI_bKpJ74ircSNYg_bOSUJprn3FaQF4DsdaPutLCRwttaJCsZIWlbiZ4DIikqRdz6xPj-4adRMvcKJF4cwv3OAxzMWx_kM3rA2LW8a7kllMRwon9TEyRgZ0uXUdPabRnrOuwO-_byqNo37xQPfrBvfqld2a6EvmHluWY80TbkDn0EPu_4_pD9e9xbFPWyRdm0ApjOwRut5AoJvoY1lxyG2VSMjMmLm4ry3WPKp1HUSDya-qyuPhyrcIacagGJgrIehtefnpo4YXuDw5Y0GpIQysuRWkLPt-YXCfPWF9M_j43GHceH-E-Zw8tlotzw\",\r\n \"e\": \"AAEAAQ\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082080,\r\n \"updated\": 1477082080\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/CreateHsmKeyTest/1da595ff8bb14508afffc513da286570\",\r\n \"kty\": \"RSA-HSM\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"g9BS1X8DYFGfwWQx8DknnCng_lZKx2f16eDY6oHPdQNyqqIJjHphZDK9Tkgi0_EO2LpkuGKg6-YKLDrLkQ_0kcXIA0kp8pG3BgtaXWoYK8TsD0dHZI2DXaOxEw2Fo_ZYAZXTkMJtlMSXvSDX9_mgBtFCXPw23UJ0XXDr83uWpBgk9QFTxLZ5_J4UxOFsnuEyCrbE8hNgyBL0Ev0ZXEU_XF6fR2mZyiM6R7Fa92JkkqtVFKbjkaERAsUHzNaOWLhMW5VrZgYZt_mKs2t0U64fZ-RDbFKsJdntp1fYjaJLkOv1nsNKDSrKffPGWJFlgJREknGT6pQLnuHZJoELSzTopw\",\r\n \"e\": \"AAEAAQ\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188996,\r\n \"updated\": 1482188996\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "630" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:40 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "45faea92-2f78-4f23-8e7a-7bf0b64cef0a" + "f5bf80d4-58a9-40fd-97ab-c3495f29675c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,22 +71,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/CreateHsmKeyTest/bbad308a6cde470682d42fd697d6ef84?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvQ3JlYXRlSHNtS2V5VGVzdC9iYmFkMzA4YTZjZGU0NzA2ODJkNDJmZDY5N2Q2ZWY4ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/CreateHsmKeyTest/1da595ff8bb14508afffc513da286570?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlSHNtS2V5VGVzdC8xZGE1OTVmZjhiYjE0NTA4YWZmZmM1MTNkYTI4NjU3MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d1d367de-881f-4e39-8ae0-495a1317aa81" + "567fbafe-952a-431f-9c59-4c062a838e96" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/CreateHsmKeyTest/bbad308a6cde470682d42fd697d6ef84\",\r\n \"kty\": \"RSA-HSM\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"2g7297JxqlGZQaiAEKN6oOQhMHI_bKpJ74ircSNYg_bOSUJprn3FaQF4DsdaPutLCRwttaJCsZIWlbiZ4DIikqRdz6xPj-4adRMvcKJF4cwv3OAxzMWx_kM3rA2LW8a7kllMRwon9TEyRgZ0uXUdPabRnrOuwO-_byqNo37xQPfrBvfqld2a6EvmHluWY80TbkDn0EPu_4_pD9e9xbFPWyRdm0ApjOwRut5AoJvoY1lxyG2VSMjMmLm4ry3WPKp1HUSDya-qyuPhyrcIacagGJgrIehtefnpo4YXuDw5Y0GpIQysuRWkLPt-YXCfPWF9M_j43GHceH-E-Zw8tlotzw\",\r\n \"e\": \"AAEAAQ\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082080,\r\n \"updated\": 1477082080\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/CreateHsmKeyTest/1da595ff8bb14508afffc513da286570\",\r\n \"kty\": \"RSA-HSM\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"g9BS1X8DYFGfwWQx8DknnCng_lZKx2f16eDY6oHPdQNyqqIJjHphZDK9Tkgi0_EO2LpkuGKg6-YKLDrLkQ_0kcXIA0kp8pG3BgtaXWoYK8TsD0dHZI2DXaOxEw2Fo_ZYAZXTkMJtlMSXvSDX9_mgBtFCXPw23UJ0XXDr83uWpBgk9QFTxLZ5_J4UxOFsnuEyCrbE8hNgyBL0Ev0ZXEU_XF6fR2mZyiM6R7Fa92JkkqtVFKbjkaERAsUHzNaOWLhMW5VrZgYZt_mKs2t0U64fZ-RDbFKsJdntp1fYjaJLkOv1nsNKDSrKffPGWJFlgJREknGT6pQLnuHZJoELSzTopw\",\r\n \"e\": \"AAEAAQ\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188996,\r\n \"updated\": 1482188996\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "630" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:40 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ad27656b-fc51-434e-b11e-af0fbc03d95f" + "babc4772-7737-4c82-a22e-7d5e6e6ba2fe" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,22 +135,23 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/CreateHsmKeyTest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL0NyZWF0ZUhzbUtleVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/CreateHsmKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlSHNtS2V5VGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "447bf919-a4bc-46d2-9846-c784d6671b90" + "9cccfd90-ac63-4c84-af8c-fd0b70529358" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/CreateHsmKeyTest/bbad308a6cde470682d42fd697d6ef84\",\r\n \"kty\": \"RSA-HSM\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"2g7297JxqlGZQaiAEKN6oOQhMHI_bKpJ74ircSNYg_bOSUJprn3FaQF4DsdaPutLCRwttaJCsZIWlbiZ4DIikqRdz6xPj-4adRMvcKJF4cwv3OAxzMWx_kM3rA2LW8a7kllMRwon9TEyRgZ0uXUdPabRnrOuwO-_byqNo37xQPfrBvfqld2a6EvmHluWY80TbkDn0EPu_4_pD9e9xbFPWyRdm0ApjOwRut5AoJvoY1lxyG2VSMjMmLm4ry3WPKp1HUSDya-qyuPhyrcIacagGJgrIehtefnpo4YXuDw5Y0GpIQysuRWkLPt-YXCfPWF9M_j43GHceH-E-Zw8tlotzw\",\r\n \"e\": \"AAEAAQ\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082080,\r\n \"updated\": 1477082080\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/CreateHsmKeyTest/1da595ff8bb14508afffc513da286570\",\r\n \"kty\": \"RSA-HSM\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"g9BS1X8DYFGfwWQx8DknnCng_lZKx2f16eDY6oHPdQNyqqIJjHphZDK9Tkgi0_EO2LpkuGKg6-YKLDrLkQ_0kcXIA0kp8pG3BgtaXWoYK8TsD0dHZI2DXaOxEw2Fo_ZYAZXTkMJtlMSXvSDX9_mgBtFCXPw23UJ0XXDr83uWpBgk9QFTxLZ5_J4UxOFsnuEyCrbE8hNgyBL0Ev0ZXEU_XF6fR2mZyiM6R7Fa92JkkqtVFKbjkaERAsUHzNaOWLhMW5VrZgYZt_mKs2t0U64fZ-RDbFKsJdntp1fYjaJLkOv1nsNKDSrKffPGWJFlgJREknGT6pQLnuHZJoELSzTopw\",\r\n \"e\": \"AAEAAQ\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188996,\r\n \"updated\": 1482188996\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "630" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:40 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "33e58092-8b1e-4fa4-a4fb-d633534703be" + "c6b6e946-1365-4911-9fb2-9421c0a6ec4a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -198,8 +201,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsa15Test.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsa15Test.json index c28a626307a5..d9f1de8c088a 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsa15Test.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsa15Test.json @@ -4,7 +4,7 @@ "RequestUri": "/keys/sdktestkey//encrypt?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vZW5jcnlwdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"tff_6RfMwwvArA\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"hM8VA4oijl5_2w\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,19 +13,20 @@ "53" ], "x-ms-client-request-id": [ - "b5a214bc-5a20-4cc7-ac42-d5dab2166151" + "dba07cf8-3b0a-41e5-91cd-133569f8ae01" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"value\": \"am2zgw9E3Zb6UJlvfKyrP9lLSnTXjXTXKXLAMbBBWqE12GHWt1l2Wh0mdhiTxeOSA06Hrygw12WSQfMcqZ6WrO0lrVAAV5syhRI5tv2z4NPTk432h3LPVZxIXvT2sRZIepmZUBe0R0hmbkFhiIk__IKHF9oOORuvEy49QtyksLoCp-PSzzKRFgM6s9UwPcr6_rRhIyJsKKlvEzRSoQ0ou2SyLAZAKjRBUV93nFoH6go24sEnCeuOQFIlNo1wXXY8JbjAY7UNEXQeBVfqngTd-Ye9QjYndWK55YJM6Hndoh3b8D1hbClFX85sB7rvptH7mG1FNMsAQwbKn3fbnhOzGQ\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/sdktestkey/0698c2156c1a4e1da5b6bab6f6422fd6\",\r\n \"value\": \"hV8UVHxf9BhfDxjOqzXQg6elMjHCBWwQ6GwIwFygkAGjlSR9r1HkFdeoHrrpAiYDYGtnWMTgxo_HLnR-tIRMWKoVX95zRA6hWo1sGdpjcfPEVa2WMMfGyA5HG37ZNBB3ltXkNjm9q4zlCxfre6ho8P3xnXDmi1AVKiXRk6wN64VM6xOoGepjRJkjaR_YqknEUSmLd4uJOdMRBse-UCFThglqi3nBvCNhtyX1DNmHKRBVV21qoDywkDmVUSgJqbGLYLcpCSTvG-7cF9hz2b2dQWdZDh6XSOfQ3qkVCwvSSLYt7sB7q8iOoR6FEtTnhwtu4JL5V7dbSCalq3Q_fvT7Sg\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "449" + "464" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 19 Dec 2016 23:18:43 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "72f311ba-64a9-44a6-8eca-7c319d4345b9" + "940866c7-bfbf-43cf-aa2d-700d2f805014" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37/decrypt?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wMzg5MzE3Y2IyYzg0YjcyOWFmZmE5YzhmMTAxY2UzNy9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/sdktestkey/0698c2156c1a4e1da5b6bab6f6422fd6/decrypt?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wNjk4YzIxNTZjMWE0ZTFkYTViNmJhYjZmNjQyMmZkNi9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"am2zgw9E3Zb6UJlvfKyrP9lLSnTXjXTXKXLAMbBBWqE12GHWt1l2Wh0mdhiTxeOSA06Hrygw12WSQfMcqZ6WrO0lrVAAV5syhRI5tv2z4NPTk432h3LPVZxIXvT2sRZIepmZUBe0R0hmbkFhiIk__IKHF9oOORuvEy49QtyksLoCp-PSzzKRFgM6s9UwPcr6_rRhIyJsKKlvEzRSoQ0ou2SyLAZAKjRBUV93nFoH6go24sEnCeuOQFIlNo1wXXY8JbjAY7UNEXQeBVfqngTd-Ye9QjYndWK55YJM6Hndoh3b8D1hbClFX85sB7rvptH7mG1FNMsAQwbKn3fbnhOzGQ\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"hV8UVHxf9BhfDxjOqzXQg6elMjHCBWwQ6GwIwFygkAGjlSR9r1HkFdeoHrrpAiYDYGtnWMTgxo_HLnR-tIRMWKoVX95zRA6hWo1sGdpjcfPEVa2WMMfGyA5HG37ZNBB3ltXkNjm9q4zlCxfre6ho8P3xnXDmi1AVKiXRk6wN64VM6xOoGepjRJkjaR_YqknEUSmLd4uJOdMRBse-UCFThglqi3nBvCNhtyX1DNmHKRBVV21qoDywkDmVUSgJqbGLYLcpCSTvG-7cF9hz2b2dQWdZDh6XSOfQ3qkVCwvSSLYt7sB7q8iOoR6FEtTnhwtu4JL5V7dbSCalq3Q_fvT7Sg\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,19 +83,20 @@ "381" ], "x-ms-client-request-id": [ - "7e91a933-cb7f-416a-9d54-6a83a44becf2" + "57bccc3f-2d47-4aab-9050-6093526c6fab" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"value\": \"tff_6RfMwwvArA\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/sdktestkey/0698c2156c1a4e1da5b6bab6f6422fd6\",\r\n \"value\": \"hM8VA4oijl5_2w\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "121" + "136" ], "Content-Type": [ "application/json; charset=utf-8" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 19 Dec 2016 23:18:43 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "905e5dab-c85f-4192-b33f-c2556682a58f" + "829af8c2-dda7-4c50-a384-009761b4d9aa" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -141,9 +143,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "RandomBytes": "tff/6RfMwwvArA==" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b", + "RandomBytes": "hM8VA4oijl5/2w==" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsaOaepTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsaOaepTest.json index 12899871076f..02b48746eb9b 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsaOaepTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptRsaOaepTest.json @@ -4,7 +4,7 @@ "RequestUri": "/keys/sdktestkey//encrypt?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vZW5jcnlwdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"Y_4qUiIYnMKglQ\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"dvDmrSBpjRjtYg\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,16 +13,17 @@ "55" ], "x-ms-client-request-id": [ - "fefb57a9-2b2c-4b36-a09e-8cb3e0b46f28" + "8255f509-8c8b-4822-be99-d27ef2742f40" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4\",\r\n \"value\": \"Y7P2gkW9OlMWA8ga01eaM6ZOFQPhUAqSwHWaPvjIQimCz3X6VAIOPWVTPRpG0mVfofyIfYxDCFVqyzc-hfZaIpwFJD95VUPVtY9-OWgPLO8P6_P8-6BmYgX0HW84Wfz6g7WFfx8Ie_b_Wy17rZPK8ah3jiGIPvgk-DFJo8EQlLGPTNuQhK0ujE0IUexYscvb1HnnZHIqx1D_lvwGKkThaUKwRMMXUGVHiavhITCr6VWLHqd6yVs-uA4qxOZRjt2qAojIkDmjGeO7gHE-KCa8KW5gp_wEV9YXmiP4F4GSIhF3KToFXIhP3HL6IahTlvXbJHGl14peYbW9c1WvI_XsDA\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155\",\r\n \"value\": \"sid-4nG3FzRIFWXLXlG-FZo6H1-kzbNX5Exe0_VRqcGLuJWjI9oSofsn-2IagDsQzkpNAXv9V8aoIizelrK_14darhxaAV8OejO7Oh7spjxa7IxMVS3e-cwcLdEHzMbMfM1uFpDyRFqEUASHI0H8F1M2m1e9TUSXOVW3KMqm7cK94ZQMFvd4AYdLfmfnStMp_MqIQh4kpIkB6h2b1M3possVrLKH_l2L3uT-qFiwQlH9-dt0Cje5mrkpsYCy4hAXNFUPhIyBWAZwOQylIE2sPuopFs55lRIHpWP2CqNe-IK8tX87BRuJ_Vy3GIFxDjD5uu74scIyQCKMImB6xQ_-mQ\"\r\n}", "ResponseHeaders": { "Content-Length": [ "449" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:28 GMT" + "Mon, 19 Dec 2016 23:10:45 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "8e75652b-ee7a-4d1a-b612-20923625dc44" + "4565995f-a0e6-4958-9b3a-7a8b754c5eb5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4/decrypt?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9iNjY5YzhiZjQ3YTk0MGQ4YWM4MThjMzgzMWZjMTFiNC9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155/decrypt?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS80ZWI2ODQ5MmI1ZjY0MjFlODM1ZDk2MWFkMmJlMzE1NS9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"Y7P2gkW9OlMWA8ga01eaM6ZOFQPhUAqSwHWaPvjIQimCz3X6VAIOPWVTPRpG0mVfofyIfYxDCFVqyzc-hfZaIpwFJD95VUPVtY9-OWgPLO8P6_P8-6BmYgX0HW84Wfz6g7WFfx8Ie_b_Wy17rZPK8ah3jiGIPvgk-DFJo8EQlLGPTNuQhK0ujE0IUexYscvb1HnnZHIqx1D_lvwGKkThaUKwRMMXUGVHiavhITCr6VWLHqd6yVs-uA4qxOZRjt2qAojIkDmjGeO7gHE-KCa8KW5gp_wEV9YXmiP4F4GSIhF3KToFXIhP3HL6IahTlvXbJHGl14peYbW9c1WvI_XsDA\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"sid-4nG3FzRIFWXLXlG-FZo6H1-kzbNX5Exe0_VRqcGLuJWjI9oSofsn-2IagDsQzkpNAXv9V8aoIizelrK_14darhxaAV8OejO7Oh7spjxa7IxMVS3e-cwcLdEHzMbMfM1uFpDyRFqEUASHI0H8F1M2m1e9TUSXOVW3KMqm7cK94ZQMFvd4AYdLfmfnStMp_MqIQh4kpIkB6h2b1M3possVrLKH_l2L3uT-qFiwQlH9-dt0Cje5mrkpsYCy4hAXNFUPhIyBWAZwOQylIE2sPuopFs55lRIHpWP2CqNe-IK8tX87BRuJ_Vy3GIFxDjD5uu74scIyQCKMImB6xQ_-mQ\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,16 +83,17 @@ "383" ], "x-ms-client-request-id": [ - "b685374d-c3c1-4d11-b2a1-6cc7840347ba" + "d6b1884b-ef0e-44fb-8e51-629f2a9d91d1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4\",\r\n \"value\": \"Y_4qUiIYnMKglQ\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155\",\r\n \"value\": \"dvDmrSBpjRjtYg\"\r\n}", "ResponseHeaders": { "Content-Length": [ "121" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:28 GMT" + "Mon, 19 Dec 2016 23:10:45 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ec150bfe-680b-4fb7-89e5-7452af7d7f0d" + "94f224e1-1b43-4369-854a-3b5d69035b37" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -141,9 +143,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "RandomBytes": "Y/4qUiIYnMKglQ==" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155", + "RandomBytes": "dvDmrSBpjRjtYg==" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithDifferentKeyVersions.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithDifferentKeyVersions.json index 9a9a109c9a33..397ae70f5060 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithDifferentKeyVersions.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithDifferentKeyVersions.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/sdktestkey/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL3Nka3Rlc3RrZXkvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/sdktestkey/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ]\r\n}", "RequestHeaders": { @@ -13,19 +13,20 @@ "135" ], "x-ms-client-request-id": [ - "6fdb3354-93ff-4c13-81cc-1d1d7ce019a6" + "5ae9aab2-58c7-4438-bc3d-2c65c65b24f0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/e32fb95f5c6b43529664b716dee090a2\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"ofyMpHM4SwaVsbQxTuCnT_SSAJa0Uwb202qmVoHDc71PfPd-cEe9uOhEQ456cBr6PP6sVPB0ElJOj2SvVlCdDu3W2kFT4OVts7mORkmuBNV6slVEwX2mUP-sYziFS0vqCrWuRa0EYBBbbmnQSG0dsApse8XgO7ZfsysPoC8Ts-ostsTa0LSpwloebssm1Ip-usXD1TdhNG-QiUMUNWHKYBri5nU0Ir0pkSEu8lCeSR4aPu3khUAjbd2IF-6hrD14guRr2TGn2JPQv7jfDPS1YlE1YwbIEPpBfIHF0SDSY03FEqW7KQJlUIJ95K9fD15nMAe4zddTbFxdfOZrZYO1CQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082139,\r\n \"updated\": 1477082139\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/sdktestkey/f6bc1f3d37c14b2bb1a2ebb4b24e9535\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"wj_2LLq7f6O0v8i9bjRxgsDl2gd6G8BdGY-1HoviVa7r8Dvi4bcpDqXrOa9M-1sQ9QwEr5hBO0DlQyRWABptjiHrVcqMaR0oK5tQrNwhV1OCK6YASMT1vxkRFXaKZKyImKU_gyJC7khotphSKeuwnhOZ07ZWN_EW3CO27Z2bjxaQXXSCZnxejB5bXkZK8OFMMv-x6BuhEq61mEQaTxEtp92Mu8ofIUFNpfDDV-zAk6RbZsqqfI4N72WERoYYquwJoieFkXMn40i0SzE2yqiwKWFsm1v3cljzhvDzFf0vIygEv1mKCSscXKkebKw0mUZ0N95zTunW3mmXFpH1L184Kw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189537,\r\n \"updated\": 1482189537\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "618" + "633" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:38 GMT" + "Mon, 19 Dec 2016 23:18:57 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "6dad2117-baeb-44b9-bbeb-f3d16db55368" + "1828f2ff-206e-47e2-8d4c-c82202cb4b34" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/e32fb95f5c6b43529664b716dee090a2/encrypt?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9lMzJmYjk1ZjVjNmI0MzUyOTY2NGI3MTZkZWUwOTBhMi9lbmNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/sdktestkey/f6bc1f3d37c14b2bb1a2ebb4b24e9535/encrypt?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9mNmJjMWYzZDM3YzE0YjJiYjFhMmViYjRiMjRlOTUzNS9lbmNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"g8zX2OwtGEDc2g\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"5ka5IVsnGrzufA\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,19 +83,20 @@ "53" ], "x-ms-client-request-id": [ - "b30402b8-77ad-470d-988c-05ed698a9513" + "2e6d1af3-b57b-41d3-afeb-7107bbc8cf52" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/e32fb95f5c6b43529664b716dee090a2\",\r\n \"value\": \"Swc5AKhM1QMWFHORYnLE3gpb1lleI5H1hYJGPAw3Kj6sir6jCvy5x5kt4LpD-JbrqxU76RVWWMuXTn-T52OcQ4U0q15MOyZ78bZHAM6xNSCPmwhs1N312hoJCCZg1q0XD7hP_d6x1-M7OHn17CJZjwmgoAEYjQ6lxo1MTueqAISDLK9J_CPwiCZ6W9zmftTJBXs8kWJWgNeLca3xJorP97Xln_r3gHRvjED9b6pfa1B-2gfASNKJ-de3eg8Z3369iGjIKbdMzriPmxXsY_LJF8HHO9LCb-Yxea-pKBHJjuviQ0HIM_Pq_xF8mKnLXqYa-rXuOFzn0HrtgPkUeqaHKA\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/sdktestkey/f6bc1f3d37c14b2bb1a2ebb4b24e9535\",\r\n \"value\": \"CR0Hk0z72oOit5TxObqRpo-WFGZkb5BeN1C0xJFKHxzdDCESYPCNB-OkiWVAnMcSyu6g2aC8riVRRxY5MC2CWKj-CJ_SMke5X2kTi5yi4hJ5vuOLzmg_M6Bmqib7LsI-TeJHr9rs3-tZaSCdZ2zICeFWYduWV5rPjTnAD98epTorT8AA1zMaYHMIhKpmttcj18-dHr0E0T55dgRtsjK04uC3FlRd3odl4RhO1UHAmYpDd5FUqN-20R0dK0Zk8F8sOtThLhEmuLvqPHOCUBiGUhHA4nRDq1La4SUbThu2KMQJL6BbxxEymuliaYcNNtW7MxgVOf6V3mFxVNRY622i9g\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "449" + "464" ], "Content-Type": [ "application/json; charset=utf-8" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:38 GMT" + "Mon, 19 Dec 2016 23:18:57 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "e6ec0ae1-706a-430b-959d-1fec5c7c28cd" + "282ac588-e89a-431c-bfd3-6e69b4d0347b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,10 +141,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4/decrypt?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9iNjY5YzhiZjQ3YTk0MGQ4YWM4MThjMzgzMWZjMTFiNC9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/sdktestkey/f2a7e60b8dd0477d943b3a9fb2a63f0b/decrypt?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9mMmE3ZTYwYjhkZDA0NzdkOTQzYjNhOWZiMmE2M2YwYi9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"Swc5AKhM1QMWFHORYnLE3gpb1lleI5H1hYJGPAw3Kj6sir6jCvy5x5kt4LpD-JbrqxU76RVWWMuXTn-T52OcQ4U0q15MOyZ78bZHAM6xNSCPmwhs1N312hoJCCZg1q0XD7hP_d6x1-M7OHn17CJZjwmgoAEYjQ6lxo1MTueqAISDLK9J_CPwiCZ6W9zmftTJBXs8kWJWgNeLca3xJorP97Xln_r3gHRvjED9b6pfa1B-2gfASNKJ-de3eg8Z3369iGjIKbdMzriPmxXsY_LJF8HHO9LCb-Yxea-pKBHJjuviQ0HIM_Pq_xF8mKnLXqYa-rXuOFzn0HrtgPkUeqaHKA\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"CR0Hk0z72oOit5TxObqRpo-WFGZkb5BeN1C0xJFKHxzdDCESYPCNB-OkiWVAnMcSyu6g2aC8riVRRxY5MC2CWKj-CJ_SMke5X2kTi5yi4hJ5vuOLzmg_M6Bmqib7LsI-TeJHr9rs3-tZaSCdZ2zICeFWYduWV5rPjTnAD98epTorT8AA1zMaYHMIhKpmttcj18-dHr0E0T55dgRtsjK04uC3FlRd3odl4RhO1UHAmYpDd5FUqN-20R0dK0Zk8F8sOtThLhEmuLvqPHOCUBiGUhHA4nRDq1La4SUbThu2KMQJL6BbxxEymuliaYcNNtW7MxgVOf6V3mFxVNRY622i9g\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -151,13 +153,14 @@ "381" ], "x-ms-client-request-id": [ - "edf64f5b-cd31-4427-b92e-3aba084075e4" + "f51554f9-0e7d-49e6-9e6b-a63652140b5d" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadParameter\",\r\n \"message\": \"The parameter is incorrect.\\r\\n\"\r\n }\r\n}", @@ -175,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:38 GMT" + "Mon, 19 Dec 2016 23:18:57 GMT" ], "Pragma": [ "no-cache" @@ -184,13 +187,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "769ccbbe-3f7b-4818-a820-2e480a7c3fc0" + "15f30ff6-2f73-43ca-a84d-f3fad145315f" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -210,9 +213,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "RandomBytes": "g8zX2OwtGEDc2g==" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b", + "RandomBytes": "5ka5IVsnGrzufA==" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithOlderKeyVersion.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithOlderKeyVersion.json index ea18c6ae8e9f..bf3faeb8bf4c 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithOlderKeyVersion.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultEncryptDecryptWithOlderKeyVersion.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/sdktestkey/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL3Nka3Rlc3RrZXkvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/sdktestkey/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ]\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "135" ], "x-ms-client-request-id": [ - "7dfd3d63-97b4-4bc3-bc47-bdee526e7fcb" + "a6f347cd-69c8-4bad-866e-99cb335bc6a7" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"uK9mxFyFq6z4_EjxThdv0FAxLCOIlImEswFBba4mNb59_HROXgN3_-r2IX3zy4xJ68NeIY3GDjt7c7Ea5MfemRkHGB92GXuLfy2aQkC-Kgd76HzccWEms2wEgqG9CdtosX_GQo_uThzLIZwxIeSZBhnc_3db4pkATS7TYvgnyiHhUkV--ScnCOyygG98wwwl4bBLvrHJE_oZ75HRVsfKe2mr8gHJUKjEr1vyVAGiEHdjKzv-0d_cTnD7Oz7A7sty4RToMrVTQDLFKNNZ0F8BQgy6cEeerafh3gmRUTu3azw849Ebw1JbFPD_YAdGVXVlTutlI1mLagRAPXPfMY_r3Q\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082129,\r\n \"updated\": 1477082129\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/0a9e36203d224dd285d933e17478c870\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"k8UVWqL2Tg2kIGSnYNuo3vPGuXpn0313htJ48EkjCDqACe5QpljX3dAPxQU0npxEfx4cDgXOl0UwHrktQO2WWp75nGFsWQZ-Jr0b_8wzsoOhZdzaU4TXKY8DjrCLofl5dRpwQ_JGIAb2-J0smKUJtZe5wMPdNuFwE1r0ZVQo7ZZT0N0P2pntKOi2ekKvZRvCDpkGXv_OXyGOjcqRqcnRv_vw3RmkwL4Vnfh4dTgxYXq8lm6s9DJaQw0sfgioFs0tMoe6SpZ1j5Nmyvgu1X43a1yw1JI4jK5g3Q8sLMovgKrl4_7QJpZ0OguZrRu4canMauZZfVyxCZJ9-88qh1FQ0w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189048,\r\n \"updated\": 1482189048\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "618" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:48 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "2031cc53-8d66-44b5-835a-4013698ca577" + "7b468bd6-7234-4e61-b1fc-f78b447044ce" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -73,7 +74,7 @@ "RequestUri": "/keys/sdktestkey//encrypt?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vZW5jcnlwdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"Z0pm5tuTYCfeHg\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"TjFowzRMEPuGXQ\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,16 +83,17 @@ "53" ], "x-ms-client-request-id": [ - "5c26379a-a215-44fb-bbbb-2d2b0f3c9419" + "3cea76d4-1e35-419c-b666-fc3d893e2cdc" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"value\": \"YYoMBR_OYkIYJvOlR1egPE-N4dfCJOUG0xVnsc8F42lJwsBCkgZtSa_aiPzYTlgQRKGa5KhanLXi5FFV07LUaioeIhCJU_7JCApvv0KRukD-PRq2xTJhP9z5cWkJ1xdutH-9hIppSI7Kl1OKl2fZwvxoDICgYMUiSQdqAOCCzJXdTRBiqVx-w6ZxNYfi-zUYbf_FpV7LeIr11ywnM6EjpofcWu4qiuKlMHv18pUjIHzi28oBndBWS_jQtpOcMEFkWllcoKIln-GfnkDhPtDTe2ePxGz9-hRfvDGF5isq1KMGo_jryMaxzXgoP6rIw_goWXul0Dd2gZX_3H99lyOD9A\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/0a9e36203d224dd285d933e17478c870\",\r\n \"value\": \"hNbYuq0kw3Iofa_Rv0PCaPnchsdIn7iSq8tcyNs-tzYTNRtMXrncMUKhJpTNi5aEHTn0ywmArSpxozp7glCqbcnKEtZE07ftXbnvHzcvrPFXRJ-M5fqP_Yrq_EMQg7epkqfhS9iXhQR02aC0qOidzsDg1QtMjNaL9_tQAocKpmBDTsVdf6ARK9CaxUtLsJgGdMq8NUa9Vyn62MTGuHUQll3GyrKD0UMHM1QgMF62wwqhWQBl3zgcgq_6IfEy-STmg7DUmPqKKtr_i_Ry53rUKqTBWOACKb2tJ5jy4smVypAAPo6daviFSCpXO2xbk2rcpeAeMhfDDtVXafhoZTrdMA\"\r\n}", "ResponseHeaders": { "Content-Length": [ "449" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:48 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e652291e-d4d8-4487-8f45-4b4fa347aa99" + "b0be3ea8-4e19-4164-bae1-58e9eb89b258" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,10 +141,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37/decrypt?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wMzg5MzE3Y2IyYzg0YjcyOWFmZmE5YzhmMTAxY2UzNy9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/sdktestkey/0a9e36203d224dd285d933e17478c870/decrypt?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wYTllMzYyMDNkMjI0ZGQyODVkOTMzZTE3NDc4Yzg3MC9kZWNyeXB0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"YYoMBR_OYkIYJvOlR1egPE-N4dfCJOUG0xVnsc8F42lJwsBCkgZtSa_aiPzYTlgQRKGa5KhanLXi5FFV07LUaioeIhCJU_7JCApvv0KRukD-PRq2xTJhP9z5cWkJ1xdutH-9hIppSI7Kl1OKl2fZwvxoDICgYMUiSQdqAOCCzJXdTRBiqVx-w6ZxNYfi-zUYbf_FpV7LeIr11ywnM6EjpofcWu4qiuKlMHv18pUjIHzi28oBndBWS_jQtpOcMEFkWllcoKIln-GfnkDhPtDTe2ePxGz9-hRfvDGF5isq1KMGo_jryMaxzXgoP6rIw_goWXul0Dd2gZX_3H99lyOD9A\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"hNbYuq0kw3Iofa_Rv0PCaPnchsdIn7iSq8tcyNs-tzYTNRtMXrncMUKhJpTNi5aEHTn0ywmArSpxozp7glCqbcnKEtZE07ftXbnvHzcvrPFXRJ-M5fqP_Yrq_EMQg7epkqfhS9iXhQR02aC0qOidzsDg1QtMjNaL9_tQAocKpmBDTsVdf6ARK9CaxUtLsJgGdMq8NUa9Vyn62MTGuHUQll3GyrKD0UMHM1QgMF62wwqhWQBl3zgcgq_6IfEy-STmg7DUmPqKKtr_i_Ry53rUKqTBWOACKb2tJ5jy4smVypAAPo6daviFSCpXO2xbk2rcpeAeMhfDDtVXafhoZTrdMA\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -151,16 +153,17 @@ "381" ], "x-ms-client-request-id": [ - "a9ff3f99-05ef-4af5-a27f-7eaa6b7f37b2" + "d28e29bf-fc43-4db1-9852-3d339b145b37" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"value\": \"Z0pm5tuTYCfeHg\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/0a9e36203d224dd285d933e17478c870\",\r\n \"value\": \"TjFowzRMEPuGXQ\"\r\n}", "ResponseHeaders": { "Content-Length": [ "121" @@ -175,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:48 GMT" ], "Pragma": [ "no-cache" @@ -184,13 +187,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "b7a622dd-b3f4-4003-b899-f4fa609fa199" + "13d58566-4687-433c-a848-0c6ad8a6ab14" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -210,9 +213,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "RandomBytes": "Z0pm5tuTYCfeHg==" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155", + "RandomBytes": "TjFowzRMEPuGXQ==" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedKeyTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedKeyTest.json new file mode 100644 index 000000000000..2d5f7660b6d1 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedKeyTest.json @@ -0,0 +1,650 @@ +{ + "Entries": [ + { + "RequestUri": "/keys/GetDeletedKeyTest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvR2V0RGVsZXRlZEtleVRlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"attributes\": {},\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"GetDeletedKeyTest\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "264" + ], + "x-ms-client-request-id": [ + "b16bee64-d62f-44b7-a039-87ce67ec7933" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/GetDeletedKeyTest/6930533af9d646ad8bddc8c771e05d45\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"sDYy1QHQ3x22N9s7hP_AXK5LSTqtGDBp1x3bvAZy_i9XAYKpme9ObXI2g7BYV9daVwlUsiuLqYBA2ime4LZillq6oUt4-x6VP6Mfs-gl8HgUViLIH7cf4uZrNzPrJ6Y6-z4amvMw05wi0cCZHR4yvW5pY3GPtsYiuDmj7Qlrn0kwtSJudbug4Ahu_PDtY34UoVzYsbAIVU2oGlrkrnVGn0dWkjb7JUgMeL5xUflY-9ispTVI4FwZcKHKtYK7914QCpT98Dw1QP04pbnu3AGuIHxBXed17kmxASLe8YEV5O-8bkqHKyPhksgNCOZlP9-pN40o58L7Woh57tpIj-q3gw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186525,\r\n \"updated\": 1482186525\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "704" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "f6e5ca04-d83a-408d-9a6c-476f99b0094a" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvR2V0RGVsZXRlZEtleVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0efa75c5-9b08-4ed4-935d-9c361bf7a9ed" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/GetDeletedKeyTest\",\r\n \"deletedDate\": 1482186525,\r\n \"scheduledPurgeDate\": 1489962525,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/GetDeletedKeyTest/6930533af9d646ad8bddc8c771e05d45\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"sDYy1QHQ3x22N9s7hP_AXK5LSTqtGDBp1x3bvAZy_i9XAYKpme9ObXI2g7BYV9daVwlUsiuLqYBA2ime4LZillq6oUt4-x6VP6Mfs-gl8HgUViLIH7cf4uZrNzPrJ6Y6-z4amvMw05wi0cCZHR4yvW5pY3GPtsYiuDmj7Qlrn0kwtSJudbug4Ahu_PDtY34UoVzYsbAIVU2oGlrkrnVGn0dWkjb7JUgMeL5xUflY-9ispTVI4FwZcKHKtYK7914QCpT98Dw1QP04pbnu3AGuIHxBXed17kmxASLe8YEV5O-8bkqHKyPhksgNCOZlP9-pN40o58L7Woh57tpIj-q3gw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186525,\r\n \"updated\": 1482186525\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "859" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "7af69872-a10a-4e26-8a29-11c1ea06ae4a" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "57b15ff7-32e2-4ea9-930f-20f6aa26001e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "85" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a56a5929-013a-40a3-bb41-621f2dcbe253" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "caaa7e56-9c57-47a4-a66d-0eb5255e92ef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "85" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "29c60fe9-68f1-4918-a6c2-149c5ed95170" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "88c0dc81-7886-4b81-9551-ce4699fa43ea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "85" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "d95f1610-7053-41e7-bf97-77bb3f40c8ba" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "81f4376b-c1b8-405f-886c-131505b8949a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "85" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:29:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "46b09874-5f03-4534-a8c0-867e59304980" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8c6115a1-4063-4abb-925a-7d21825d8139" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/GetDeletedKeyTest\",\r\n \"deletedDate\": 1482186525,\r\n \"scheduledPurgeDate\": 1489962525,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/GetDeletedKeyTest/6930533af9d646ad8bddc8c771e05d45\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"sDYy1QHQ3x22N9s7hP_AXK5LSTqtGDBp1x3bvAZy_i9XAYKpme9ObXI2g7BYV9daVwlUsiuLqYBA2ime4LZillq6oUt4-x6VP6Mfs-gl8HgUViLIH7cf4uZrNzPrJ6Y6-z4amvMw05wi0cCZHR4yvW5pY3GPtsYiuDmj7Qlrn0kwtSJudbug4Ahu_PDtY34UoVzYsbAIVU2oGlrkrnVGn0dWkjb7JUgMeL5xUflY-9ispTVI4FwZcKHKtYK7914QCpT98Dw1QP04pbnu3AGuIHxBXed17kmxASLe8YEV5O-8bkqHKyPhksgNCOZlP9-pN40o58L7Woh57tpIj-q3gw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186525,\r\n \"updated\": 1482186525\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "859" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:29:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "f758eac1-3f5b-4813-9ff6-a9549ce2ab9f" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "45bf32f5-8cce-4777-9603-c452ada61c55" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/GetDeletedKeyTest\",\r\n \"deletedDate\": 1482186525,\r\n \"scheduledPurgeDate\": 1489962525,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/GetDeletedKeyTest/6930533af9d646ad8bddc8c771e05d45\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"sDYy1QHQ3x22N9s7hP_AXK5LSTqtGDBp1x3bvAZy_i9XAYKpme9ObXI2g7BYV9daVwlUsiuLqYBA2ime4LZillq6oUt4-x6VP6Mfs-gl8HgUViLIH7cf4uZrNzPrJ6Y6-z4amvMw05wi0cCZHR4yvW5pY3GPtsYiuDmj7Qlrn0kwtSJudbug4Ahu_PDtY34UoVzYsbAIVU2oGlrkrnVGn0dWkjb7JUgMeL5xUflY-9ispTVI4FwZcKHKtYK7914QCpT98Dw1QP04pbnu3AGuIHxBXed17kmxASLe8YEV5O-8bkqHKyPhksgNCOZlP9-pN40o58L7Woh57tpIj-q3gw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186525,\r\n \"updated\": 1482186525\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "859" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:29:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "fef01fa1-c5a2-40dd-9ac1-5372d86c82fc" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b9fad79e-966a-4ecd-8b12-275adf16fef9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/GetDeletedKeyTest\",\r\n \"deletedDate\": 1482186525,\r\n \"scheduledPurgeDate\": 1489962525,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/GetDeletedKeyTest/6930533af9d646ad8bddc8c771e05d45\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"sDYy1QHQ3x22N9s7hP_AXK5LSTqtGDBp1x3bvAZy_i9XAYKpme9ObXI2g7BYV9daVwlUsiuLqYBA2ime4LZillq6oUt4-x6VP6Mfs-gl8HgUViLIH7cf4uZrNzPrJ6Y6-z4amvMw05wi0cCZHR4yvW5pY3GPtsYiuDmj7Qlrn0kwtSJudbug4Ahu_PDtY34UoVzYsbAIVU2oGlrkrnVGn0dWkjb7JUgMeL5xUflY-9ispTVI4FwZcKHKtYK7914QCpT98Dw1QP04pbnu3AGuIHxBXed17kmxASLe8YEV5O-8bkqHKyPhksgNCOZlP9-pN40o58L7Woh57tpIj-q3gw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186525,\r\n \"updated\": 1482186525\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"GetDeletedKeyTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "859" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:29:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "e3524328-6dbe-4699-a409-77c83b60d4eb" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/GetDeletedKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0dldERlbGV0ZWRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c1f94f8e-a03a-45fc-b79f-4dbab44e3dc3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:29:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a004832a-18fb-4b06-81dd-0bcb5262eee8" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", + "KeyName": "sdktestkey", + "KeyVersion": "cf7c860fb9db4564a1389db973a52436" + } +} \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedSecretTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedSecretTest.json new file mode 100644 index 000000000000..98ac059b62c1 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetDeletedSecretTest.json @@ -0,0 +1,458 @@ +{ + "Entries": [ + { + "RequestUri": "/secrets/GetDeletedSecretTest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvR2V0RGVsZXRlZFNlY3JldFRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "2306606e-165d-444b-a3d8-f793c1671676" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/GetDeletedSecretTest/f5aa447efdab4e3a9d1f431183e9e361\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186978,\r\n \"updated\": 1482186978\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "219" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:36:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a208fa32-5f14-491e-95c4-43c8bf80b09b" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/GetDeletedSecretTest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvR2V0RGVsZXRlZFNlY3JldFRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a0ebd32d-8be1-4d97-81e2-e39844558074" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/GetDeletedSecretTest\",\r\n \"deletedDate\": 1482186978,\r\n \"scheduledPurgeDate\": 1489962978,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/GetDeletedSecretTest/f5aa447efdab4e3a9d1f431183e9e361\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186978,\r\n \"updated\": 1482186978\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "356" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:36:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c3fb2fbd-6023-4904-935c-c676e8115773" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/GetDeletedSecretTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL0dldERlbGV0ZWRTZWNyZXRUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5633b123-fe6c-4a64-aa39-af4535c3454d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: GetDeletedSecretTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "94" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:36:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "ad621e9a-2712-487d-80d1-8a3205e4d072" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/GetDeletedSecretTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL0dldERlbGV0ZWRTZWNyZXRUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5f57d3fb-27bc-4232-befe-44c59d6d7c69" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/GetDeletedSecretTest\",\r\n \"deletedDate\": 1482186978,\r\n \"scheduledPurgeDate\": 1489962978,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/GetDeletedSecretTest/f5aa447efdab4e3a9d1f431183e9e361\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186978,\r\n \"updated\": 1482186978\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "356" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "ea1d9a00-ae54-4efb-884e-1c0b27286e4e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/GetDeletedSecretTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL0dldERlbGV0ZWRTZWNyZXRUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "01649d16-b287-4c3b-afeb-2294f8763321" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/GetDeletedSecretTest\",\r\n \"deletedDate\": 1482186978,\r\n \"scheduledPurgeDate\": 1489962978,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/GetDeletedSecretTest/f5aa447efdab4e3a9d1f431183e9e361\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186978,\r\n \"updated\": 1482186978\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "356" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a685d5a2-eeb3-4a8e-8e5e-188308e6bc38" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/GetDeletedSecretTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL0dldERlbGV0ZWRTZWNyZXRUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d31e15ed-fd69-4084-a640-3fb4c1a077ad" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/GetDeletedSecretTest\",\r\n \"deletedDate\": 1482186978,\r\n \"scheduledPurgeDate\": 1489962978,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/GetDeletedSecretTest/f5aa447efdab4e3a9d1f431183e9e361\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186978,\r\n \"updated\": 1482186978\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "356" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "e07a593d-fd4c-4803-b2c1-18f45b615d4d" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/GetDeletedSecretTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL0dldERlbGV0ZWRTZWNyZXRUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5972ddf3-eb78-4cf2-9e85-94c481c58943" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "84501e79-8335-4fcc-9288-fba68874f34c" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", + "KeyName": "sdktestkey", + "KeyVersion": "4ac8dbcb697b44a2bff598b1a21e371c" + } +} \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetSecretVersionTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetSecretVersionTest.json index 192cba48096c..62b8ced625eb 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetSecretVersionTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultGetSecretVersionTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//secrets/mysecretname?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL215c2VjcmV0bmFtZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/mysecretname?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbXlzZWNyZXRuYW1lP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "32" ], "x-ms-client-request-id": [ - "99f5ab26-3440-43bf-bb3d-26838e1ab147" + "cad52bfd-ed2e-4b0c-935f-1163ba16fb0b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/mysecretname/019175f64d484cba966568c9128a0409\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082077,\r\n \"updated\": 1477082077\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/mysecretname/7b599aa4072e4425a478cc56738f32ba\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188990,\r\n \"updated\": 1482188990\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "196" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:49 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a0b601b8-f4ca-433c-a0d2-3589fbb1e9a1" + "a471ff0a-a239-4d95-b482-752c044d5ae7" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/mysecretname?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL215c2VjcmV0bmFtZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/mysecretname?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbXlzZWNyZXRuYW1lP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "32" ], "x-ms-client-request-id": [ - "e6ef3203-8bf9-4b32-bf35-4a1054608cfa" + "67e86a8f-81db-41af-880e-b3bb9f44721e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/mysecretname/15aa04876b7e4606a8742914831804b6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082077,\r\n \"updated\": 1477082077\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/mysecretname/dbb1d44f28d444dda78ec2c8fa6d1292\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188990,\r\n \"updated\": 1482188990\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "196" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "c9b37cac-ebd0-42d7-bd7e-52cabfb7748d" + "1516b975-a820-4c6a-961f-838a590d1170" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,22 +141,23 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/mysecretname/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL215c2VjcmV0bmFtZS8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/mysecretname/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbXlzZWNyZXRuYW1lLz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "82e4b403-36cb-41fd-98d9-709e84b53681" + "092b7bf5-c507-48b6-ad46-a9371d08ce70" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/mysecretname/019175f64d484cba966568c9128a0409\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082077,\r\n \"updated\": 1477082077\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/mysecretname/7b599aa4072e4425a478cc56738f32ba\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188990,\r\n \"updated\": 1482188990\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "196" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ac06b0bc-ed48-41b0-aa02-29ad02ad4e7f" + "49706879-8a5d-4ea8-bd2e-bf23c4bdb599" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -202,22 +205,23 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/mysecretname/019175f64d484cba966568c9128a0409?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL215c2VjcmV0bmFtZS8wMTkxNzVmNjRkNDg0Y2JhOTY2NTY4YzkxMjhhMDQwOT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/mysecretname/7b599aa4072e4425a478cc56738f32ba?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbXlzZWNyZXRuYW1lLzdiNTk5YWE0MDcyZTQ0MjVhNDc4Y2M1NjczOGYzMmJhP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b8482d72-df54-43f4-8a66-04103d3ddede" + "a1d1f86d-d1b0-4170-be61-c22bcbdbde14" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/mysecretname/019175f64d484cba966568c9128a0409\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082077,\r\n \"updated\": 1477082077\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/mysecretname/7b599aa4072e4425a478cc56738f32ba\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188990,\r\n \"updated\": 1482188990\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "196" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "5356274a-9aa2-4d12-8556-187b38afb459" + "96dbd3ff-c0f2-4bd0-94da-b994eb87b810" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -265,22 +269,23 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/mysecretname/15aa04876b7e4606a8742914831804b6?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL215c2VjcmV0bmFtZS8xNWFhMDQ4NzZiN2U0NjA2YTg3NDI5MTQ4MzE4MDRiNj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/mysecretname/dbb1d44f28d444dda78ec2c8fa6d1292?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbXlzZWNyZXRuYW1lL2RiYjFkNDRmMjhkNDQ0ZGRhNzhlYzJjOGZhNmQxMjkyP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dde66872-0797-4a40-972a-cf60e56e9f99" + "0247a4ff-d297-4e36-9abe-b4856018a698" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/mysecretname/15aa04876b7e4606a8742914831804b6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082077,\r\n \"updated\": 1477082077\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/mysecretname/dbb1d44f28d444dda78ec2c8fa6d1292\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188990,\r\n \"updated\": 1482188990\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "196" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:37 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0d49eb5e-fd7a-41bd-9359-fdb58b4074b7" + "ceac144c-782d-4172-8277-f287046688c3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -328,22 +333,23 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/mysecretname?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL215c2VjcmV0bmFtZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/mysecretname?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbXlzZWNyZXRuYW1lP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f9baa1f6-203e-4560-8ae1-b36bc3c72954" + "af8d3ad1-b23f-4f5e-8eee-d11de09284c5" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/mysecretname/15aa04876b7e4606a8742914831804b6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082077,\r\n \"updated\": 1477082077\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/mysecretname/dbb1d44f28d444dda78ec2c8fa6d1292\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188990,\r\n \"updated\": 1482188990\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "172" @@ -358,7 +364,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:38 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -367,13 +373,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "acba57e0-1d10-4748-855a-1f6a75eae1c4" + "2a9d4359-1098-4949-9e6f-1e68c0bb1642" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -393,8 +399,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultImportSoftKeyTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultImportSoftKeyTest.json index e7c1a582e7bd..88e70c3f4c37 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultImportSoftKeyTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultImportSoftKeyTest.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "//keys/ImportSoftKeyTest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL0ltcG9ydFNvZnRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/ImportSoftKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvSW1wb3J0U29mdEtleVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"key\": {\r\n \"kty\": \"RSA\",\r\n \"n\": \"von_88VPNcRmaKJpnb3BHTEZUuAXQF3gothKqC4AfnPg3lRVTkG98E35-HEsdJJt7TgmoGl4CqunCGWWwL-Xq-qch-Mf7osINwMEPOKTxCNQrTUyyvx2lpkxdhN-wtCQYYHAwiE0Vn1dRBfQg9cQQs09NyiGqKMUopL3b0rZUCTeilqf3tQDm68UsW-ZWHM0uIgkwjAQa9ngqX8HrFGK-6jWteGFoL3NwUHGJuHE3N9FHysES3A_QAtZGsO1MndmWoFmmjNGl_Lq0F2xrO0ygqv91YxFQZObindTnLynIixuUrch9cFtcEzKQJz9f4s61rAN9pnuj5vtET-o-FHHJQ\",\r\n \"e\": \"AQAB\",\r\n \"d\": \"V44MSlUZf-h-8ofnJnACpEpii52jsZUx20Kuk7eHzJOs-h0gkfRNtnXubsZ6mhqLXt1VipLMcYLNH2OnMW0Y4gvN3_dzPecvYDAHq36mThO4R89RRstaJvvAKbTto9G49sVr8QjXBwNWbyrOSzbxJvEutwDtV-KQYeBMyRxI3bU4f7efefZW-NcjhZSkir3Pir-2n4RDMCn9NmWN8VOfNGGHk_XKKzuaoU1ItMGjJnph2l2RBIUMzoPy51fP1gGZW5oyVCYe7x1yYTD1s8A5BUS7Rw5cNLIVI8QhfLjJOsSZTpCoLZrA_ulQqoZkzuWQkVY_4L5HogTgnkzrOOpCpQ\",\r\n \"dp\": \"FM6_kBYeqwR3m2B8IX1snmjCEcllBhJcFytx8abn2H2JzZjwdhclnWhd8RE3rMyb0SvsyFxNcBeRaojU40rXSLFHF3yy1xGdmbYPOsYfy0GKZ5bq2dFRm_Os2CW2C_La2ZPti47F48t8MAAvQbCuIcfSZUijfs2aaM84nzEzQL0\",\r\n \"dq\": \"bPlMQowrdGk5si1DJj9BXMugdc1Ns1kvpk0dd8KLdW4A6L2j7d19g3raBGgeCRXqXGJAfVP4rFago6ZEq2LtRLl_CHtqbKTLGyLfZaToVRi1XO55c89rLeS2_RiGC18QDr3_j0JsIq5XmqSPZfuD3XMkeqkkb9RCFMWkGFX2lfU\",\r\n \"qi\": \"NpxXd3k4QLXioqK1aha3ugRQsRsBl-c4lJDsTG06NIqbwTZZaTYKviyxhySn1y8eOtLDK7WFMTz30-txJXjyqvBI05EUpD0n4_sI6WA4Oyb35l3DSYkX0FZzE5FaUcrwfwBE5VceICRHt9nVtivRqsuzkvHQz3ISk5KqtCIMb2I\",\r\n \"p\": \"3U2JzDjIILOVTluLbH83FOmrMBY3-v0ugsOj0NcZUTyAa8xnUtMJPvs8odL_AOz_fgljI1u5Dr-rANdYVGh3y9fGiJdSAATY1jEP56C4L0AhnYKiuHd1oABdjUaibTe0EuTLDORkJZ0fTbRbeg5zQ8yoYtY89v0kaRfoARKhcO8\",\r\n \"q\": \"3GmwrN8qHZX0_1gKZLzbOvaTkM2S0RuxLZfl3wnGYzac1fDV-twkOYUz3tVvLEqMDQ6PYSKrIfOuvC_po15TBK7rrdoBK3a28vq5_NeUYEVbPCeuOsG_-5MiejR0RD1WPjX-_6b4N_T0_oAKMj17fw1N5lnnQzWQ_KHQa-irISs\"\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", + "RequestBody": "{\r\n \"key\": {\r\n \"kty\": \"RSA\",\r\n \"n\": \"tCHhdZ1TZEl2QL7JZ7MiDx7XIU_r1PNGoohxD0xPHx1xmdVE4nA5V_s7GFyYHdO0lOhE9y0yQb44VNyWshV3xGKKZPmOiUDkMVPy2q1qeZ2F5_Xux70aCmf4tdItOYPKI9wOwMWCaZxRbTD8VvaRNz_pC2o8tCDWagrzrzw9xcCo_P_jUBnKLk2e2MyT4xHHHkuLOC0VLLkfG3uELMhX1TzKKtF8D3mz3rFwNn1u9v7KLyrVHKkUjgGir0tUiArPwIKXE2HO-rAlqapuoJXPCV8mbPt1_NIelS0cL1p0j9bZFcvRAXUIbOTY8x0YC0-W0EmfaMvUoRFj15Q3u2O-nw\",\r\n \"e\": \"AQAB\",\r\n \"d\": \"OgC657N8OcvJ7zlAA0tUSUgl_80LZGvdr9J9jW6F_7_sZ5ub7cozPNhiBAs01E3qVRShuHHuP-svmmvZfoiZIzyT0cXmFt41XIjqp2213mlRyAqSE_EZZIZsOKfv9hgwy_E9MuemgblbIuzmJF6LDh5fPVS9LUdxo33ZT_D29yjyyswPqVg16SvmDB9639uo87Xz67znagqUgtNoWiwW7s3rZ_rdJbGq7bTXOjK6B_3X6LuIXXL_iP5jDhj5NLtatxkOEzgiDappgxf064-QJzMzsK1DhTXABXIwsy-ZEb_9UVXcJCRzqWEWdXHU-TlhhcBGueskRhpnjEOy-5RvIQ\",\r\n \"dp\": \"RkRSPPaCJKrcHJmxKUdX4zDowFAP8xhaZ-TwkZChqoCAC_gHrUViRj2H2nNJ_KELX4nvIZxmlWwaJC34deDLatoXHpIHmUrvMOebicEKAkVueKgk4OG9HN55wF_sySlaZ7Uhk488Tma3Rxw0fthw-6BB583_zxGCLIgc05ipSIE\",\r\n \"dq\": \"xi2HurQvzoFV5TBYtqBxw1ub0ZhCCV8PYeBMyDEBqo0YfursQ290Nw5N6N8px5VhPCj-UdPelH77LvX1BBWEea122u_wQUaRNXoGlzkQuvTLFfMwvfbRpV6kVGOVPCX2XFSzdfd06tNpMbGrRqC8QaPNtUoThUZn-5Lh3nhsmgk\",\r\n \"qi\": \"RGq0VEES7eV9u8MZL3Zk78ACDLmnX2gNYjm3-j9NSg1V59_qogl9w5aC7pPxVEdbx_O_qzei-e-X19zY4OwS5R1lpRbS8Cz5BMc97CfWLjziMtxZ4HWgfn1afRZJ4LcnElS4VVDM2DM9S7d-Z6JQCYaM1cF9HRkzhfe2hU2ZfXc\",\r\n \"p\": \"xrNNgyUxWBGum5cr84u4tzG0uX3tH9DIxe96_aCZWhH3ek0YtojJmxUZRdhIoxI0JKSGch8E4V3Au22gbdq5K3L803m_-G2rTFYHypaekUUF5kUTc77whTWJC4Gael49KXBq1_qFDhVylp3GgbB3sbhlLmRK5y7vzqDBTNoOVBE\",\r\n \"q\": \"6BPTLBi2jEYQGFPdtLFgpXhpdDB35HxRBofe9P47z_tUbLPg9cCK8bigPttTYDj7ahSmoTX2DD-HAfaKQ9vPZfGxnY3Wnd2AmElRfAAcDNVgT-pdzFNvST8BiFWHo1HRyoMeZ4D9-rtZE8GOHiwu7PPdpHA9jLwV5JEftzke168\"\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,16 +13,17 @@ "1744" ], "x-ms-client-request-id": [ - "b4b71d43-8e25-4835-bf82-dc66a04b7c3a" + "8486477d-2b17-4e86-afef-a25c2cabbbde" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/ImportSoftKeyTest/8a86053774d645db9f52f9df59c212fc\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"von_88VPNcRmaKJpnb3BHTEZUuAXQF3gothKqC4AfnPg3lRVTkG98E35-HEsdJJt7TgmoGl4CqunCGWWwL-Xq-qch-Mf7osINwMEPOKTxCNQrTUyyvx2lpkxdhN-wtCQYYHAwiE0Vn1dRBfQg9cQQs09NyiGqKMUopL3b0rZUCTeilqf3tQDm68UsW-ZWHM0uIgkwjAQa9ngqX8HrFGK-6jWteGFoL3NwUHGJuHE3N9FHysES3A_QAtZGsO1MndmWoFmmjNGl_Lq0F2xrO0ygqv91YxFQZObindTnLynIixuUrch9cFtcEzKQJz9f4s61rAN9pnuj5vtET-o-FHHJQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082044,\r\n \"updated\": 1477082044\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/ImportSoftKeyTest/66f81fd1ac4c4b3a9f18e1662bf1a9fa\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"tCHhdZ1TZEl2QL7JZ7MiDx7XIU_r1PNGoohxD0xPHx1xmdVE4nA5V_s7GFyYHdO0lOhE9y0yQb44VNyWshV3xGKKZPmOiUDkMVPy2q1qeZ2F5_Xux70aCmf4tdItOYPKI9wOwMWCaZxRbTD8VvaRNz_pC2o8tCDWagrzrzw9xcCo_P_jUBnKLk2e2MyT4xHHHkuLOC0VLLkfG3uELMhX1TzKKtF8D3mz3rFwNn1u9v7KLyrVHKkUjgGir0tUiArPwIKXE2HO-rAlqapuoJXPCV8mbPt1_NIelS0cL1p0j9bZFcvRAXUIbOTY8x0YC0-W0EmfaMvUoRFj15Q3u2O-nw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188956,\r\n \"updated\": 1482188956\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "656" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:04 GMT" + "Mon, 19 Dec 2016 23:09:16 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "3a60db98-7e10-4255-b87a-1ecd47d720fb" + "7c4b13b0-0f0a-4026-a575-42636aa5d02b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,22 +71,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/ImportSoftKeyTest/8a86053774d645db9f52f9df59c212fc?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvSW1wb3J0U29mdEtleVRlc3QvOGE4NjA1Mzc3NGQ2NDVkYjlmNTJmOWRmNTljMjEyZmM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/ImportSoftKeyTest/66f81fd1ac4c4b3a9f18e1662bf1a9fa?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvSW1wb3J0U29mdEtleVRlc3QvNjZmODFmZDFhYzRjNGIzYTlmMThlMTY2MmJmMWE5ZmE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c8a7e3db-73e4-4b1c-ae5c-5efe208ed710" + "5a130eea-1cea-4197-a0f9-7c2d01e87f69" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/ImportSoftKeyTest/8a86053774d645db9f52f9df59c212fc\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"von_88VPNcRmaKJpnb3BHTEZUuAXQF3gothKqC4AfnPg3lRVTkG98E35-HEsdJJt7TgmoGl4CqunCGWWwL-Xq-qch-Mf7osINwMEPOKTxCNQrTUyyvx2lpkxdhN-wtCQYYHAwiE0Vn1dRBfQg9cQQs09NyiGqKMUopL3b0rZUCTeilqf3tQDm68UsW-ZWHM0uIgkwjAQa9ngqX8HrFGK-6jWteGFoL3NwUHGJuHE3N9FHysES3A_QAtZGsO1MndmWoFmmjNGl_Lq0F2xrO0ygqv91YxFQZObindTnLynIixuUrch9cFtcEzKQJz9f4s61rAN9pnuj5vtET-o-FHHJQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082044,\r\n \"updated\": 1477082044\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/ImportSoftKeyTest/66f81fd1ac4c4b3a9f18e1662bf1a9fa\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"tCHhdZ1TZEl2QL7JZ7MiDx7XIU_r1PNGoohxD0xPHx1xmdVE4nA5V_s7GFyYHdO0lOhE9y0yQb44VNyWshV3xGKKZPmOiUDkMVPy2q1qeZ2F5_Xux70aCmf4tdItOYPKI9wOwMWCaZxRbTD8VvaRNz_pC2o8tCDWagrzrzw9xcCo_P_jUBnKLk2e2MyT4xHHHkuLOC0VLLkfG3uELMhX1TzKKtF8D3mz3rFwNn1u9v7KLyrVHKkUjgGir0tUiArPwIKXE2HO-rAlqapuoJXPCV8mbPt1_NIelS0cL1p0j9bZFcvRAXUIbOTY8x0YC0-W0EmfaMvUoRFj15Q3u2O-nw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188956,\r\n \"updated\": 1482188956\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "656" @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:04 GMT" + "Mon, 19 Dec 2016 23:09:16 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "fd6b69c4-a4d0-4499-b112-61d6439e44f3" + "965a687c-a02a-47cc-84ff-42a856f39a4f" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -133,22 +135,23 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/ImportSoftKeyTest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL0ltcG9ydFNvZnRLZXlUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/ImportSoftKeyTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvSW1wb3J0U29mdEtleVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "68b1842d-265f-47bc-8dd5-f129a8c9677b" + "b0148187-28db-4d79-854f-6663264c7db3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/ImportSoftKeyTest/8a86053774d645db9f52f9df59c212fc\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"von_88VPNcRmaKJpnb3BHTEZUuAXQF3gothKqC4AfnPg3lRVTkG98E35-HEsdJJt7TgmoGl4CqunCGWWwL-Xq-qch-Mf7osINwMEPOKTxCNQrTUyyvx2lpkxdhN-wtCQYYHAwiE0Vn1dRBfQg9cQQs09NyiGqKMUopL3b0rZUCTeilqf3tQDm68UsW-ZWHM0uIgkwjAQa9ngqX8HrFGK-6jWteGFoL3NwUHGJuHE3N9FHysES3A_QAtZGsO1MndmWoFmmjNGl_Lq0F2xrO0ygqv91YxFQZObindTnLynIixuUrch9cFtcEzKQJz9f4s61rAN9pnuj5vtET-o-FHHJQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082044,\r\n \"updated\": 1477082044\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/ImportSoftKeyTest/66f81fd1ac4c4b3a9f18e1662bf1a9fa\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"tCHhdZ1TZEl2QL7JZ7MiDx7XIU_r1PNGoohxD0xPHx1xmdVE4nA5V_s7GFyYHdO0lOhE9y0yQb44VNyWshV3xGKKZPmOiUDkMVPy2q1qeZ2F5_Xux70aCmf4tdItOYPKI9wOwMWCaZxRbTD8VvaRNz_pC2o8tCDWagrzrzw9xcCo_P_jUBnKLk2e2MyT4xHHHkuLOC0VLLkfG3uELMhX1TzKKtF8D3mz3rFwNn1u9v7KLyrVHKkUjgGir0tUiArPwIKXE2HO-rAlqapuoJXPCV8mbPt1_NIelS0cL1p0j9bZFcvRAXUIbOTY8x0YC0-W0EmfaMvUoRFj15Q3u2O-nw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188956,\r\n \"updated\": 1482188956\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "656" @@ -163,7 +166,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:04 GMT" + "Mon, 19 Dec 2016 23:09:16 GMT" ], "Pragma": [ "no-cache" @@ -172,13 +175,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cd145d9a-9c81-432d-b423-0e5d973ad396" + "4671a804-521a-4c1b-86e3-2d3bc8ef39b7" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -198,8 +201,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultKeyCreateDeleteRecoverPurgeTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultKeyCreateDeleteRecoverPurgeTest.json new file mode 100644 index 000000000000..b67652eba361 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultKeyCreateDeleteRecoverPurgeTest.json @@ -0,0 +1,1290 @@ +{ + "Entries": [ + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"attributes\": {},\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "275" + ], + "x-ms-client-request-id": [ + "97474c81-8e8a-4a90-be1a-c83fa6bc6bdf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "726" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:34:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a20661f3-5a43-4635-9e51-601461308bad" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e237d4b0-a826-4ad4-bdc9-21eaf5b0b531" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "726" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:34:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "fc5b4ec7-ee71-4327-81c3-6161786c2758" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "02f11540-e6e0-4cd7-8ab7-471b5538b416" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:34:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "1953f564-5179-43b9-9e1f-944743654b0c" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0607f6e9-ed98-4c2f-8960-62ec928cc4db" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "b4687c0e-3fb0-4e1e-8fe1-83600816c47a" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "174639f4-2a83-4582-a6cf-98321d68a906" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "0762fef1-3b35-4db6-a396-670c22cfae38" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "63aad575-39e3-4ab7-b529-03bf32ac12c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "726" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "950e1bb4-ff31-40f8-b68f-115f12f4d3b6" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0988742b-927e-4dfe-8193-dceae3b64fb9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "726" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "6bd09bb1-f27f-4837-bd84-67256a28b694" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8f331d1-9fff-4f88-9693-f3a8015f6747" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "726" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "6a0cc46f-9f5b-46df-a651-5c4c3f2d27dc" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f3194d9d-afa5-4d67-8248-fd21fb977bbb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a8d256d7-c81d-423b-80f7-745bb50ea8d6" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21d96312-1fef-403d-921b-c170c28b7445" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/CreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186873,\r\n \"scheduledPurgeDate\": 1489962873,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "892" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:34:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "745f1e1f-8304-4d92-8331-c9e8dc8f0e1e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvQ3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "712686cb-4860-4d10-82fe-da182fd6fea6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/CreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186929,\r\n \"scheduledPurgeDate\": 1489962929,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "892" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c6d38cbc-8460-4f34-bce9-1bbf23a8fac0" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "105ae8f3-ff16-4477-b94a-7c63308af737" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:34:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a46a4592-da6c-4f09-8ad8-e2b8164bb621" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b069ca78-1899-4842-bba3-519139248f23" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:34:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c48c71a2-7702-44a7-867a-2dd437a5b8d2" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5fefd67b-b31a-48dc-b12d-db9dc5924c14" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:34:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "4cb0d3d5-b8fe-40e7-88b7-e84ae964a8c9" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e770cd10-dc1e-43dc-ac27-17cc4fc522ae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/CreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186873,\r\n \"scheduledPurgeDate\": 1489962873,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "892" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5633b1c1-ec22-4c17-8ea9-f784d0820af6" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8e9c1047-adea-40b4-8fa1-c5dbd693838b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "ec25b403-14b4-4661-b070-93f51a433d58" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd5e2959-2379-48ab-ab29-03fe0c9f022e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/CreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186929,\r\n \"scheduledPurgeDate\": 1489962929,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "892" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5cc786c2-b6a2-4015-bc9b-f561695a1ffb" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "83e434ad-5a3d-461b-8998-d2f36f805c2d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "78b216eb-464b-4326-9f8f-89c690fc9ee8" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest/recover?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3QvcmVjb3Zlcj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ca7cde4f-14ff-44c2-bc83-31394ae6eee5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/CreateDeleteRecoverPurgeTest/ed0630c77dcf4d35b4f2c949ab3f8a07\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"6j0E_J8NHglCbHdr1RtDVLaUvPL_iihbY1C6m9NgR_EdBnuiXOxyACsFycqiQsEC7ubcjPMW3yE0fUUIVamzSgKGx3O26RIKwaCFXL0eD1_zs1oJN4PglB7mwrh2EGYnrZlF3cZtwCGIwYDP8DYGKi3c6gGX-a7HraG2u2de63duhc18NVXatJebUhPhOBnyamo4R5NNZo0PDzR5Tfwq5vypk_2vN2zOlXRSgUZGoMt5dfameTDrfYqwHpMdI420-g01dJLz5xyTYpYNB-NIQeFjSvr8d50ny_6hr-ZTH9BGr-xKbkBSwszIVcaGK9xcMvHHITtBPT3UJIc0TDj8RQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186872,\r\n \"updated\": 1482186872\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\",\r\n \"test name \": \"CreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "726" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "85301fe7-ad6a-46cf-b768-ebda774820d6" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/CreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL0NyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5d298f87-8538-4983-ac9c-2fbb0e97b310" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:35:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "d9946733-9241-4f74-961c-557267b27e9b" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", + "KeyName": "sdktestkey", + "KeyVersion": "4ac8dbcb697b44a2bff598b1a21e371c" + } +} \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedKeysTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedKeysTest.json new file mode 100644 index 000000000000..4aa9d146f884 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedKeysTest.json @@ -0,0 +1,1866 @@ +{ + "Entries": [ + { + "RequestUri": "/keys/listdeletedkeytest0/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGRlbGV0ZWRrZXl0ZXN0MC9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "20" + ], + "x-ms-client-request-id": [ + "3120441a-805b-4107-b5a4-91bd032d6041" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest0/57a877c6cfd448488a1aa3dabbda2d0f\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"yjORJkGSBQEiF9iTf1afrpMTGqEsdmtgs5NA6B9UJGt83mIRasCmV8GXod6nXYVJQnu1NvHnHntFpUec6-_SUupqkcSm2CqEr6YY3IYqx_Br3GM3_ADoxSS-485PJwG0684-Gz2chAjCihF6OiQ1xOiLr7HWEOBTWm5I3IVEmGdzhmDvO8H3hOW3ywwBP7Ce6m9D6u6EoG8e_wxrWlOKwcMCsiwd9gLNPE-8YMiRHYGmcYfJnsK5VM-WN6Hv5eD4WddPj8422Tohdzc1st5WAiW74VZ1c3jTE_ogC4QGcN37nUPJ7dJKAXwWddxIfp-8x6ddSyJpLlBLehLmhajMaw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186058,\r\n \"updated\": 1482186058\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "642" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:20:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "b7484ef0-e206-4248-88ee-b25f01506a89" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/listdeletedkeytest0?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGRlbGV0ZWRrZXl0ZXN0MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f40416fb-db5a-4ed6-bb48-99e96dd77643" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest0\",\r\n \"deletedDate\": 1482186058,\r\n \"scheduledPurgeDate\": 1489962058,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest0/57a877c6cfd448488a1aa3dabbda2d0f\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"yjORJkGSBQEiF9iTf1afrpMTGqEsdmtgs5NA6B9UJGt83mIRasCmV8GXod6nXYVJQnu1NvHnHntFpUec6-_SUupqkcSm2CqEr6YY3IYqx_Br3GM3_ADoxSS-485PJwG0684-Gz2chAjCihF6OiQ1xOiLr7HWEOBTWm5I3IVEmGdzhmDvO8H3hOW3ywwBP7Ce6m9D6u6EoG8e_wxrWlOKwcMCsiwd9gLNPE-8YMiRHYGmcYfJnsK5VM-WN6Hv5eD4WddPj8422Tohdzc1st5WAiW74VZ1c3jTE_ogC4QGcN37nUPJ7dJKAXwWddxIfp-8x6ddSyJpLlBLehLmhajMaw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186058,\r\n \"updated\": 1482186058\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:20:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c75e3c09-94b4-4267-8797-bca71e1b0151" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ece81fa-95a3-4e76-9a90-dfefc3e65803" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest0\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:20:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "13c7a78f-23ae-4544-b527-e584d2340bfa" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d35d6089-413b-4cc5-aa7f-36199341f2d5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest0\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:20:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "1a8a75a2-71ca-4cb8-9fe2-b333984bb61c" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58408f74-130f-45ce-a5bf-d61f951d75e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest0\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "2cfa4244-cefa-4867-ae4a-70271264a00f" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2b3cb537-b3c6-4993-9037-50251a59e28f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest0\",\r\n \"deletedDate\": 1482186058,\r\n \"scheduledPurgeDate\": 1489962058,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest0/57a877c6cfd448488a1aa3dabbda2d0f\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"yjORJkGSBQEiF9iTf1afrpMTGqEsdmtgs5NA6B9UJGt83mIRasCmV8GXod6nXYVJQnu1NvHnHntFpUec6-_SUupqkcSm2CqEr6YY3IYqx_Br3GM3_ADoxSS-485PJwG0684-Gz2chAjCihF6OiQ1xOiLr7HWEOBTWm5I3IVEmGdzhmDvO8H3hOW3ywwBP7Ce6m9D6u6EoG8e_wxrWlOKwcMCsiwd9gLNPE-8YMiRHYGmcYfJnsK5VM-WN6Hv5eD4WddPj8422Tohdzc1st5WAiW74VZ1c3jTE_ogC4QGcN37nUPJ7dJKAXwWddxIfp-8x6ddSyJpLlBLehLmhajMaw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186058,\r\n \"updated\": 1482186058\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5d3796d7-c149-4825-9e74-7a96ed7edce4" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/listdeletedkeytest1/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGRlbGV0ZWRrZXl0ZXN0MS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "20" + ], + "x-ms-client-request-id": [ + "c906e643-5a09-45be-b488-85f5fc63c948" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest1/6e33f9e37b02421b835178bb2d0f36cd\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"kYK3fXtWUydAWsMjBmHzrRY4heDP9vpwOl9e2-ZP-DPXjhw0uEMmmlQY1Wpp5m5LEnGcI2svvPGwVW4rSMYroI7tQp3UkFlnBHugJJWQBYANvfYS-BR5BFlRada8fLieojowLXEEJIuN0GLJzaHzKnK-Up39kaOL52DpMm-NOXLnCZZ85eLvV8fg6YSQ4h8g2hxeUGpd1e_BjQDRm2RsVn5-6hyqAaWlzK_nbUYiPSnCD7W0de-x7xmYMr4m4CR2jvBzzoJewuyvbULV5UaQaO2C_uCkYgITqij6iwuvFItScpZe74GyxrfMXmHhRiAOTNUNlJpAygsj3SuBS2jHHQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186082,\r\n \"updated\": 1482186082\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "642" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "16aee502-7c8e-4d4b-8dee-ce278da69c75" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/listdeletedkeytest1?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGRlbGV0ZWRrZXl0ZXN0MT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b63cc361-24c4-4fbb-8517-ab0f8987c2c8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest1\",\r\n \"deletedDate\": 1482186082,\r\n \"scheduledPurgeDate\": 1489962082,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest1/6e33f9e37b02421b835178bb2d0f36cd\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"kYK3fXtWUydAWsMjBmHzrRY4heDP9vpwOl9e2-ZP-DPXjhw0uEMmmlQY1Wpp5m5LEnGcI2svvPGwVW4rSMYroI7tQp3UkFlnBHugJJWQBYANvfYS-BR5BFlRada8fLieojowLXEEJIuN0GLJzaHzKnK-Up39kaOL52DpMm-NOXLnCZZ85eLvV8fg6YSQ4h8g2hxeUGpd1e_BjQDRm2RsVn5-6hyqAaWlzK_nbUYiPSnCD7W0de-x7xmYMr4m4CR2jvBzzoJewuyvbULV5UaQaO2C_uCkYgITqij6iwuvFItScpZe74GyxrfMXmHhRiAOTNUNlJpAygsj3SuBS2jHHQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186082,\r\n \"updated\": 1482186082\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "ceb22d04-4ba4-481d-b3b2-a8b854818759" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "87f4c90c-71c6-4778-bcf5-dbdead59e335" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest1\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "d4deb8bb-d770-464b-bf48-199cf1dd059b" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b9db3000-7e2e-47e4-a846-e1e32507524a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest1\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "78dd347c-b5d9-492a-9287-58b999fb5a0a" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dc7ae2ca-74b2-4928-bf79-59448b88917b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest1\",\r\n \"deletedDate\": 1482186082,\r\n \"scheduledPurgeDate\": 1489962082,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest1/6e33f9e37b02421b835178bb2d0f36cd\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"kYK3fXtWUydAWsMjBmHzrRY4heDP9vpwOl9e2-ZP-DPXjhw0uEMmmlQY1Wpp5m5LEnGcI2svvPGwVW4rSMYroI7tQp3UkFlnBHugJJWQBYANvfYS-BR5BFlRada8fLieojowLXEEJIuN0GLJzaHzKnK-Up39kaOL52DpMm-NOXLnCZZ85eLvV8fg6YSQ4h8g2hxeUGpd1e_BjQDRm2RsVn5-6hyqAaWlzK_nbUYiPSnCD7W0de-x7xmYMr4m4CR2jvBzzoJewuyvbULV5UaQaO2C_uCkYgITqij6iwuvFItScpZe74GyxrfMXmHhRiAOTNUNlJpAygsj3SuBS2jHHQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186082,\r\n \"updated\": 1482186082\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "0bd66337-10e9-476d-9a9f-04c4bf7bebbf" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/listdeletedkeytest2/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGRlbGV0ZWRrZXl0ZXN0Mi9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "20" + ], + "x-ms-client-request-id": [ + "6bc0f444-902b-4204-9bf0-46bc9afce2e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest2/62eaf3e11f9e4ba1be16e32516e5da74\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"orWsKtYpAs4PyzTXv7-KkgrkMXzylG5mLDR6RZaS4FIlY-7r6buL14mDnCJCsq4DHx1UkMkeCFlOv0WaBt5qMDSABs9R06n1Bq2FzyFZ8IrCKw86QgarXjodbGteLv3nCK1MYNVJ3CMwPogCOZcO23i23uX5EH3zYhlGULAnYJzOBxVr0CzGt5VBHdEAEhBcqEMRNrXRD6wKPVZAMaxhlB5-A_Rei2y0uqdY0wSA1ipLec9WztGQ5Dn2AxdDo6jHjkAWBJu5tNTpaHmv6ZDvfS0z7wYYT929VnFXhIb25ABLM2FudVBpMh2raw-5dCJx2S_texh_H9BtabgqOz1pjw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186090,\r\n \"updated\": 1482186090\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "642" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "84da8b3a-d732-4526-8f7e-bc709b938a05" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/keys/listdeletedkeytest2?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGRlbGV0ZWRrZXl0ZXN0Mj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cec17256-a952-4c1f-900c-e5c55bc1fc81" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest2\",\r\n \"deletedDate\": 1482186091,\r\n \"scheduledPurgeDate\": 1489962091,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest2/62eaf3e11f9e4ba1be16e32516e5da74\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"orWsKtYpAs4PyzTXv7-KkgrkMXzylG5mLDR6RZaS4FIlY-7r6buL14mDnCJCsq4DHx1UkMkeCFlOv0WaBt5qMDSABs9R06n1Bq2FzyFZ8IrCKw86QgarXjodbGteLv3nCK1MYNVJ3CMwPogCOZcO23i23uX5EH3zYhlGULAnYJzOBxVr0CzGt5VBHdEAEhBcqEMRNrXRD6wKPVZAMaxhlB5-A_Rei2y0uqdY0wSA1ipLec9WztGQ5Dn2AxdDo6jHjkAWBJu5tNTpaHmv6ZDvfS0z7wYYT929VnFXhIb25ABLM2FudVBpMh2raw-5dCJx2S_texh_H9BtabgqOz1pjw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186090,\r\n \"updated\": 1482186090\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "3bb5e326-c0af-4fa2-a6e8-43053261cded" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8a85c153-c68b-4456-b731-74c8427d90f0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest2\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "38723e10-6295-47c4-929a-c1b2d4264dc2" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d81474e2-c20a-4507-8956-7167b50dbc7a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest2\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "0e478cfe-8605-49be-a436-37d9cbc80e5e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0802f9df-2be5-44bf-aa14-4d0f27cf64d7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"KeyNotFound\",\r\n \"message\": \"Deleted Key not found: listdeletedkeytest2\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "87" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "84ba6dac-91a5-480d-906e-eedc011aaf57" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6fa9a661-7652-4139-8226-35afab33920a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest2\",\r\n \"deletedDate\": 1482186091,\r\n \"scheduledPurgeDate\": 1489962091,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest2/62eaf3e11f9e4ba1be16e32516e5da74\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"orWsKtYpAs4PyzTXv7-KkgrkMXzylG5mLDR6RZaS4FIlY-7r6buL14mDnCJCsq4DHx1UkMkeCFlOv0WaBt5qMDSABs9R06n1Bq2FzyFZ8IrCKw86QgarXjodbGteLv3nCK1MYNVJ3CMwPogCOZcO23i23uX5EH3zYhlGULAnYJzOBxVr0CzGt5VBHdEAEhBcqEMRNrXRD6wKPVZAMaxhlB5-A_Rei2y0uqdY0wSA1ipLec9WztGQ5Dn2AxdDo6jHjkAWBJu5tNTpaHmv6ZDvfS0z7wYYT929VnFXhIb25ABLM2FudVBpMh2raw-5dCJx2S_texh_H9BtabgqOz1pjw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186090,\r\n \"updated\": 1482186090\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "9a865e24-55d9-4d11-ae17-603f78b96719" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?maxresults=1&api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP21heHJlc3VsdHM9MSZhcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "47242a85-3ba0-4665-b65c-cebac4ffa106" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest0\",\r\n \"deletedDate\": 1482186058,\r\n \"scheduledPurgeDate\": 1489962058,\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186058,\r\n \"updated\": 1482186058\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVSRVZNUlZSRlJFdEZXVlJGVTFRd0x6VTNRVGczTjBNMlEwWkVORFE0TkRnNFFURkJRVE5FUVVKQ1JFRXlSREJHSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPakE1TGpVek1qQXpOelZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "696" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "1ddc6105-c4b6-4007-b79d-44be25318f8c" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVSRVZNUlZSRlJFdEZXVlJGVTFRd0x6VTNRVGczTjBNMlEwWkVORFE0TkRnNFFURkJRVE5FUVVKQ1JFRXlSREJHSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPakE1TGpVek1qQXpOelZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhNelloVFVSQmQwMUVWVEpKVjNSc1pWTTVUVk5XVGxWU1JWWk5VbFpTUmxKRmRFWlhWbEpHVlRGUmQweDZWVE5SVkdjelRqQk5NbEV3V2tWT1JGRTBUa1JuTkZGVVJrSlJWRTVGVVZWS1ExSkZSWGxTUkVKSFNWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWGhQYWtFMVRHcFZlazFxUVhwT2VsWmhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7980c3e7-5116-4913-8a72-f87853c826d7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVJFVk1SVlJGUkV0RldWUkZVMVF4SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPakl6TGpBd01qRXpORGRhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "e2b68700-cc33-4bd4-b434-02c4aa79ca27" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVJFVk1SVlJGUkV0RldWUkZVMVF4SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPakl6TGpBd01qRXpORGRhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRTVNaUZOUkVGM1RVUkpla2xYZEd4bFV6bE5VMVpPVlZKRlZrMVNWbEpHVWtWMFJsZFdVa1pWTVZGNFNWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWGhQYWtsNlRHcEJkMDFxUlhwT1JHUmhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c915a9c8-efaf-4206-99a7-aeffff881efb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest1\",\r\n \"deletedDate\": 1482186082,\r\n \"scheduledPurgeDate\": 1489962082,\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186082,\r\n \"updated\": 1482186082\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVSRVZNUlZSRlJFdEZXVlJGVTFReEx6WkZNek5HT1VVek4wSXdNalF5TVVJNE16VXhOemhDUWpKRU1FWXpOa05FSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPakkxTGpBM09URTFOVFJhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "696" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5c93786d-de01-43ee-b289-f3e1b1b62c3a" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVSRVZNUlZSRlJFdEZXVlJGVTFReEx6WkZNek5HT1VVek4wSXdNalF5TVVJNE16VXhOemhDUWpKRU1FWXpOa05FSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPakkxTGpBM09URTFOVFJhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhNelloVFVSQmQwMUVWVEpKVjNSc1pWTTVUVk5XVGxWU1JWWk5VbFpTUmxKRmRFWlhWbEpHVlRGUmVFeDZXa1pOZWs1SFQxVlZlazR3U1hkTmFsRjVUVlZKTkUxNlZYaE9lbWhEVVdwS1JVMUZXWHBPYTA1RlNWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWGhQYWtreFRHcEJNMDlVUlRGT1ZGSmhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea24175e-7fbc-4f88-a3e1-9aa710c3a3ef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVJFVk1SVlJGUkV0RldWUkZVMVF5SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPak14TGpFeU9EQXpOVGhhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "f50df4d2-8788-4d51-ac62-3376148913a6" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVJFVk1SVlJGUkV0RldWUkZVMVF5SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPak14TGpFeU9EQXpOVGhhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRTVNaUZOUkVGM1RVUkpla2xYZEd4bFV6bE5VMVpPVlZKRlZrMVNWbEpHVWtWMFJsZFdVa1pWTVZGNVNWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWGhQYWsxNFRHcEZlVTlFUVhwT1ZHaGhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b6ee34d7-acc0-4c6d-ba82-c084363a8534" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/listdeletedkeytest2\",\r\n \"deletedDate\": 1482186091,\r\n \"scheduledPurgeDate\": 1489962091,\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/listdeletedkeytest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186090,\r\n \"updated\": 1482186090\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVSRVZNUlZSRlJFdEZXVlJGVTFReUx6WXlSVUZHTTBVeE1VWTVSVFJDUVRGQ1JURTJSVE15TlRFMlJUVkVRVGMwSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPalF4TGpBM05qY3dPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "696" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "7184abbc-a38b-4c8e-a10a-12027f6b7bcd" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVSRVZNUlZSRlJFdEZXVlJGVTFReUx6WXlSVUZHTTBVeE1VWTVSVFJDUVRGQ1JURTJSVE15TlRFMlJUVkVRVGMwSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXhPalF4TGpBM05qY3dPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhNelloVFVSQmQwMUVWVEpKVjNSc1pWTTVUVk5XVGxWU1JWWk5VbFpTUmxKRmRFWlhWbEpHVlRGUmVVeDZXWGxTVlVaSFRUQlZlRTFWV1RWU1ZGSkRVVlJHUTFKVVJUSlNWRTE1VGxSRk1sSlVWa1ZSVkdNd1NWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWGhQYWxGNFRHcEJNMDVxWTNkUFZHeGhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8e737d9b-9542-43cb-b32e-cf301f09771c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMElXdGxlUzlUUkV0VVJWTlVTMFZaSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "304" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c788c7cd-e0c3-4fd7-9a45-33adb10e0e78" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMElXdGxlUzlUUkV0VVJWTlVTMFZaSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRTRNQ0ZOUkVGM1RVUkZNRWxYZEd4bFV6bFVVa1YwVlZKV1RsVlRNRlphU1ZSQmQwMUVRWGxQUTBVMVQxUnJOVXhVUlhsTVZFMTRWa1JKZWs5cVZUVlBhbFUxVEdwck5VOVVhelZQVkd4aFNWRXRMU0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9f0420b8-483e-4b07-b2df-8c1c61d4ffc6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMjQhTURBd01EUTNJV3RsZVM5VFJFdFVSVk5VUzBWWkwwTkdOME00TmpCR1FqbEVRalExTmpSQk1UTTRPVVJDT1RjelFUVXlORE0ySVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "364" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "15b5ba56-d890-4488-ba9e-a716a3af1fc9" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMjQhTURBd01EUTNJV3RsZVM5VFJFdFVSVk5VUzBWWkwwTkdOME00TmpCR1FqbEVRalExTmpSQk1UTTRPVVJDT1RjelFUVXlORE0ySVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhNalFoVFVSQmQwMUVVVE5KVjNSc1pWTTVWRkpGZEZWU1ZrNVZVekJXV2t3d1RrZE9NRTAwVG1wQ1IxRnFiRVZSYWxFeFRtcFNRazFVVFRSUFZWSkRUMVJqZWxGVVZYbE9SRTB5U1ZSQmQwMUVRWGxQUTBVMVQxUnJOVXhVUlhsTVZFMTRWa1JKZWs5cVZUVlBhbFUxVEdwck5VOVVhelZQVkd4aFNWRXRMU0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e7fd0ed6-5339-4c3a-a029-a478fd068dd7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlWVUVSQlZFVkRSVkpVTURFaE1EQXdNREk0SVRrNU9Ua3RNVEl0TXpGVU1qTTZOVGs2TlRrdU9UazVPVGs1T1ZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "304" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "0d64655b-3746-48bd-bb84-6515887fe1e5" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlWVUVSQlZFVkRSVkpVTURFaE1EQXdNREk0SVRrNU9Ua3RNVEl0TXpGVU1qTTZOVGs2TlRrdU9UazVPVGs1T1ZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRTRNQ0ZOUkVGM1RVUkZNa2xYZEd4bFV6bFdWVVZTUWxaRlZrUlNWa3BWVFVSRmFFMUVRWGROUkVrMFNWUnJOVTlVYTNSTlZFbDBUWHBHVlUxcVRUWk9WR3MyVGxScmRVOVVhelZQVkdzMVQxWnZhQ0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3cde7a1a-1dea-4d53-90fc-d4ab9a893e7d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "28" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c2fcc4eb-9420-4e05-aeae-0eb403f9c9f6" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c441d5c5-08d4-455e-9be5-919aebbcd67c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "cf2ece60-9aef-4760-9427-6f5ba00ceec0" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ac4a42d-db6f-479d-83ce-9f7b494d6ebb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "7c8fef83-5334-4b89-b10c-0811838f279f" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/deletedkeys/listdeletedkeytest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRrZXlzL2xpc3RkZWxldGVka2V5dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "52423bb0-cfd2-42ec-afef-b115e2e6c541" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:21:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "29e4efd0-b1dc-4e58-8e69-1d46493454db" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", + "KeyName": "sdktestkey", + "KeyVersion": "cf7c860fb9db4564a1389db973a52436" + } +} \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedSecretsTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedSecretsTest.json new file mode 100644 index 000000000000..e09dd28ad95d --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListDeletedSecretsTest.json @@ -0,0 +1,1930 @@ +{ + "Entries": [ + { + "RequestUri": "/secrets/listdeletedsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdGRlbGV0ZWRzZWNyZXR0ZXN0MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "63" + ], + "x-ms-client-request-id": [ + "74258607-0103-4475-8a34-8dd9b7d23773" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest0/ed6c029733614e29aca7ceae047f3d86\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186147,\r\n \"updated\": 1482186147\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "247" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "858ee713-8380-4435-912c-4f37972c3ed8" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/listdeletedsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdGRlbGV0ZWRzZWNyZXR0ZXN0MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4eee0deb-6f63-4146-9af1-2edb0d0df23d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest0\",\r\n \"deletedDate\": 1482186148,\r\n \"scheduledPurgeDate\": 1489962148,\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest0/ed6c029733614e29aca7ceae047f3d86\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186147,\r\n \"updated\": 1482186147\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "01680f88-817c-4b87-b117-cafd3672627e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef2700de-6c77-4ef3-bac8-8260f0517d5e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest0\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "bddbdf02-2175-49ab-86b4-843a59bffb9f" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5e8c7875-5da6-49bc-b929-a84dea3ac276" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest0\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "9367ee09-513f-4795-8833-7dd09a56f703" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fa49afa3-008f-4190-b200-f9f002522199" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest0\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "8d79dad2-8b44-4932-b43c-a772fea912bd" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "83d69264-5f29-4dcd-aeb2-dcad58dcf3a6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest0\",\r\n \"deletedDate\": 1482186148,\r\n \"scheduledPurgeDate\": 1489962148,\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest0/ed6c029733614e29aca7ceae047f3d86\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186147,\r\n \"updated\": 1482186147\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "65d1e814-80ac-42ec-9594-dd9d3b6ba522" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/listdeletedsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdGRlbGV0ZWRzZWNyZXR0ZXN0MT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "63" + ], + "x-ms-client-request-id": [ + "aa6878d2-a51e-49cd-a66a-9f9851dd5fd8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest1/118d8e395eab4293a172b0525d25d84b\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186170,\r\n \"updated\": 1482186170\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "247" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "506ed646-e8b0-478e-baf5-df07445a7049" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/listdeletedsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdGRlbGV0ZWRzZWNyZXR0ZXN0MT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fb02cf7e-1437-4c00-99a9-57c1e6b8a644" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest1\",\r\n \"deletedDate\": 1482186170,\r\n \"scheduledPurgeDate\": 1489962170,\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest1/118d8e395eab4293a172b0525d25d84b\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186170,\r\n \"updated\": 1482186170\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "cf882fbe-9a03-43d9-ad4f-3aaca0cc64de" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9a0fa334-3656-4154-8986-75f6ca3d64a1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest1\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5c5ca73d-c9a3-45f6-8dcd-0ac32fe81c3e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "629a84fb-c64b-4324-af38-c2bf78fba6ca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest1\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "202e6a54-2f95-4240-ba5c-015a4f76af87" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67f03dc7-f020-492a-a025-275ac3d3a67f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest1\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:22:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c12f3aef-244f-444e-aa2c-873283a70a52" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "32d1cc40-618a-4f40-997a-be629d1b46f5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest1\",\r\n \"deletedDate\": 1482186170,\r\n \"scheduledPurgeDate\": 1489962170,\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest1/118d8e395eab4293a172b0525d25d84b\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186170,\r\n \"updated\": 1482186170\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "b79aa556-2d9f-472f-8a95-0c7f41ba7d22" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/listdeletedsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdGRlbGV0ZWRzZWNyZXR0ZXN0Mj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "63" + ], + "x-ms-client-request-id": [ + "716d6add-5803-4ca3-8e52-b978202244ac" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest2/645e2ab2c39e4271b742d2fa1e86aae6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186196,\r\n \"updated\": 1482186196\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "247" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5f2d6593-85e8-4cd7-8876-4b583e9c8750" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/listdeletedsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdGRlbGV0ZWRzZWNyZXR0ZXN0Mj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4bd2e15d-62ee-456b-9190-84bfa7d10640" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest2\",\r\n \"deletedDate\": 1482186196,\r\n \"scheduledPurgeDate\": 1489962196,\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest2/645e2ab2c39e4271b742d2fa1e86aae6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186196,\r\n \"updated\": 1482186196\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c7d50f27-e6b3-4306-b98a-cba17cf03b83" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fed09c5d-449b-40d7-9a2c-b3587f1e37b7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest2\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "6603d6e0-1fcf-46f9-a6d2-12d4e55cff71" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b2bb661-ac79-4dd6-b7a1-4be41f0c140b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest2\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "3e00fbf8-9391-4ab0-998c-427b4a38521b" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3a67b022-3e09-4ef5-a3c7-f807b4b18fc9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: listdeletedsecrettest2\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "96" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "3420c43f-d0c2-4737-85d7-ed01f3fb22f6" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "81c84bf7-bc76-429b-9b4d-fb385e65f792" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest2\",\r\n \"deletedDate\": 1482186196,\r\n \"scheduledPurgeDate\": 1489962196,\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest2/645e2ab2c39e4271b742d2fa1e86aae6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186196,\r\n \"updated\": 1482186196\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "97475383-93e1-4496-9ffe-d68c7b8e0720" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?maxresults=1&api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP21heHJlc3VsdHM9MSZhcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "916d20c1-eac9-4084-851b-0c2a341fafb1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest0\",\r\n \"deletedDate\": 1482186148,\r\n \"scheduledPurgeDate\": 1489962148,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186147,\r\n \"updated\": 1482186147\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF3TDBWRU5rTXdNamszTXpNMk1UUkZNamxCUTBFM1EwVkJSVEEwTjBZelJEZzJJVEF3TURBeU9DRXlNREUyTFRFeUxURTVWREl5T2pJeU9qUTFMalE0TVRNek1qWmFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "720" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "078bddce-dbc2-4a1a-ba42-88333002630f" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF3TDBWRU5rTXdNamszTXpNMk1UUkZNamxCUTBFM1EwVkJSVEEwTjBZelJEZzJJVEF3TURBeU9DRXlNREUyTFRFeUxURTVWREl5T2pJeU9qUTFMalE0TVRNek1qWmFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhORFFoVFVSQmQwMUVXWGxKV0U1c1dUTktiR1JET1UxVFZrNVZVa1ZXVFZKV1VrWlNSazVHVVRGS1JsWkdVa1pWTVZGM1REQldSVTVyVFhkTmFtc3pUWHBOTWsxVVVrWk5hbXhDVVRCRk0xRXdWa0pTVkVFd1RqQlplbEpFWnpKSlZFRjNUVVJCZVU5RFJYbE5SRVV5VEZSRmVVeFVSVFZXUkVsNVQycEplVTlxVVRGTWFsRTBUVlJOZWsxcVdtRkpVUzB0SWl3aVZHRnlaMlYwVEc5allYUnBiMjRpT2pCOSZtYXhyZXN1bHRzPTE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6f2a2974-61ac-4c23-83f1-71ec7670b7ac" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF4SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXlPalV4TGpBeE9EY3hOamhhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "a24bb4be-fa13-44c0-8c89-da11652db724" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF4SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXlPalV4TGpBeE9EY3hOamhhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhNREFoVFVSQmQwMUVTVFZKV0U1c1dUTktiR1JET1UxVFZrNVZVa1ZXVFZKV1VrWlNSazVHVVRGS1JsWkdVa1pWTVZGNFNWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWGxQYWxWNFRHcEJlRTlFWTNoT2FtaGhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4b636360-eca7-47b9-b8cf-1eecbbaf421c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest1\",\r\n \"deletedDate\": 1482186170,\r\n \"scheduledPurgeDate\": 1489962170,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186170,\r\n \"updated\": 1482186170\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF4THpFeE9FUTRSVE01TlVWQlFqUXlPVE5CTVRjeVFqQTFNalZFTWpWRU9EUkNJVEF3TURBeU9DRXlNREUyTFRFeUxURTVWREl5T2pJek9qQXdMamd3TnpJek5EZGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "720" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "9bf09735-5816-4f6e-ae10-0ce70cafcaef" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF4THpFeE9FUTRSVE01TlVWQlFqUXlPVE5CTVRjeVFqQTFNalZFTWpWRU9EUkNJVEF3TURBeU9DRXlNREUyTFRFeUxURTVWREl5T2pJek9qQXdMamd3TnpJek5EZGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhORFFoVFVSQmQwMUVXWGxKV0U1c1dUTktiR1JET1UxVFZrNVZVa1ZXVFZKV1VrWlNSazVHVVRGS1JsWkdVa1pWTVZGNFRIcEZlRTlGVVRSU1ZFMDFUbFZXUWxGcVVYbFBWRTVDVFZSamVWRnFRVEZOYWxaRlRXcFdSVTlFVWtOSlZFRjNUVVJCZVU5RFJYbE5SRVV5VEZSRmVVeFVSVFZXUkVsNVQycEplazlxUVhkTWFtZDNUbnBKZWs1RVpHRkpVUzB0SWl3aVZHRnlaMlYwVEc5allYUnBiMjRpT2pCOSZtYXhyZXN1bHRzPTE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4542b297-d335-4885-8842-08f2a4104e00" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF5SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXpPakUyTGpjME1UY3lPREZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "33ed4c7b-b561-47e4-bffd-398a9f451720" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF5SVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXpPakUyTGpjME1UY3lPREZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhNREFoVFVSQmQwMUVTVFZKV0U1c1dUTktiR1JET1UxVFZrNVZVa1ZXVFZKV1VrWlNSazVHVVRGS1JsWkdVa1pWTVZGNVNWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWHBQYWtVeVRHcGpNRTFVWTNsUFJFWmhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cd528b5b-2f04-4cf2-9bf7-469fb2079cde" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/listdeletedsecrettest2\",\r\n \"deletedDate\": 1482186196,\r\n \"scheduledPurgeDate\": 1489962196,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/listdeletedsecrettest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186196,\r\n \"updated\": 1482186196\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF5THpZME5VVXlRVUl5UXpNNVJUUXlOekZDTnpReVJESkdRVEZGT0RaQlFVVTJJVEF3TURBeU9DRXlNREUyTFRFeUxURTVWREl5T2pJek9qTXlMamMyT1RNeE1UZGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "720" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "d6354d57-b21e-4a5d-b671-864db10902e0" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF5THpZME5VVXlRVUl5UXpNNVJUUXlOekZDTnpReVJESkdRVEZGT0RaQlFVVTJJVEF3TURBeU9DRXlNREUyTFRFeUxURTVWREl5T2pJek9qTXlMamMyT1RNeE1UZGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhORFFoVFVSQmQwMUVXWGxKV0U1c1dUTktiR1JET1UxVFZrNVZVa1ZXVFZKV1VrWlNSazVHVVRGS1JsWkdVa1pWTVZGNVRIcFpNRTVWVlhsUlZVbDVVWHBOTlZKVVVYbE9la1pEVG5wUmVWSkVTa2RSVkVaR1QwUmFRbEZWVlRKSlZFRjNUVVJCZVU5RFJYbE5SRVV5VEZSRmVVeFVSVFZXUkVsNVQycEplazlxVFhsTWFtTXlUMVJOZUUxVVpHRkpVUzB0SWl3aVZHRnlaMlYwVEc5allYUnBiMjRpT2pCOSZtYXhyZXN1bHRzPTE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "08852e17-95ca-4d7f-a400-9efc1e1eb9f7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXlPakl4TGpjeU9ESXpOamRhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "862045fe-1e24-4dc9-9066-3bbb23796252" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXlMVEU1VkRJeU9qSXlPakl4TGpjeU9ESXpOamRhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhNREFoVFVSQmQwMUVTVFZKV0U1c1dUTktiR1JET1UxVFZrNVZWVEJXUkZWclZsVldhMVpUVlRCc1VGUnNUbFZTVms1VlNWUkJkMDFFUVhsUFEwVjVUVVJGTWt4VVJYbE1WRVUxVmtSSmVVOXFTWGxQYWtsNFRHcGplVTlFU1hwT2FtUmhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7bb7501d-82af-4a52-aeff-6748f3bd5e43" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpNeE9EQXdPVGxCTlRKRk5EUTVSalk1UWtNeE1rTTVOMFpHT0RKQk5rTkNJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "393" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "60ca573d-7545-4ee2-aabf-ef28569e0d83" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpNeE9EQXdPVGxCTlRKRk5EUTVSalk1UWtNeE1rTTVOMFpHT0RKQk5rTkNJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRXhORFFoVFVSQmQwMUVXWGxKV0U1c1dUTktiR1JET1UxVFZrNVZWVEJXUkZWclZsVldhMVpUVlRCc1VGUnNUbFZTVms1VlRIcE5lRTlFUVhkUFZHeENUbFJLUms1RVVUVlNhbGsxVVd0TmVFMXJUVFZPTUZwSFQwUktRazVyVGtOSlZFRjNUVVJCZVU5RFJUVlBWR3MxVEZSRmVVeFVUWGhXUkVsNlQycFZOVTlxVlRWTWFtczFUMVJyTlU5VWJHRkpVUzB0SWl3aVZHRnlaMlYwVEc5allYUnBiMjRpT2pCOSZtYXhyZXN1bHRzPTE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7da0395b-cae9-462c-8b66-6a21d5bad315" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net:443/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklYTmxZM0psZEM5VVJWTlVTVk5UVlVWU1EwVlNWREF4SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "e29959d6-bca5-47c1-af2a-538c9e0be711" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklYTmxZM0psZEM5VVJWTlVTVk5UVlVWU1EwVlNWREF4SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1leUpPWlhoMFRXRnlhMlZ5SWpvaU1pRTVNaUZOUkVGM1RVUkpla2xZVG14Wk0wcHNaRU01VlZKV1RsVlRWazVVVmxWV1UxRXdWbE5XUkVGNFNWUkJkMDFFUVhsUFEwVTFUMVJyTlV4VVJYbE1WRTE0VmtSSmVrOXFWVFZQYWxVMVRHcHJOVTlVYXpWUFZHeGhTVkV0TFNJc0lsUmhjbWRsZEV4dlkyRjBhVzl1SWpvd2ZRJm1heHJlc3VsdHM9MQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c625aa03-7dfb-4eee-8664-6f212631f8ad" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "28" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "74658fb3-b5f7-4c3d-bc62-04c15e8c6278" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDA/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1a4d79df-6b40-48d4-a599-b8b957a993ee" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c0e1816a-1104-4d3a-8c3d-64d9107540b2" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "85461560-3f5b-4d41-9362-146e0ee67f00" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "f16d5bc5-c5b5-4a4d-8ace-9c0a55b7f538" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/deletedsecrets/listdeletedsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL2xpc3RkZWxldGVkc2VjcmV0dGVzdDI/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a842841e-ed2c-447f-9406-f7b00e319431" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:23:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "d2a7c8e5-d3e7-4c5e-994c-032bfc378492" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", + "KeyName": "sdktestkey", + "KeyVersion": "cf7c860fb9db4564a1389db973a52436" + } +} \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeyVersionsTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeyVersionsTest.json index 91d8d4ca9bb4..3c1b236412da 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeyVersionsTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeyVersionsTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/listkeyversionstest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL2xpc3RrZXl2ZXJzaW9uc3Rlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/listkeyversionstest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "20" ], "x-ms-client-request-id": [ - "5c2ba99e-9ada-490b-99cb-7b1c37844935" + "f5596b4f-0f68-4d6e-a0a2-bfea0f19503e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/65d7508bd66d45f7800bbddb03f6ebd6\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"9OfKlwBpVWuZcInzGbJ2bOd3mMDoWEbXI088PJntt-RkKAxrrd6OdhT6Zgrk1XBS4J_WKnsSrxtyjxMjX5cptTNOZ9yjkKBvfVanSStPvjyEtWwI-XrQ2DECOQuZYW2x9XWkXk_XpebuaVQywZEq9iVvkDhG-3J6vILhp-vKWWGxk3vj5c3cLJunyKgEfN0d4vuWNouVWTD8oJu2CaeRL4y0C9tKkX7xlneqiKN-gLB5jVSVEaxzvBbB4nhp4yd23YfEidusZT-Hcw5jNYZEHA5M14e2ZHIZj0vh4eBoGfHJ-UJ071PydHUPkZObda-ytRAwBWgKEsHGARIh0jzWSQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082078,\r\n \"updated\": 1477082078\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/4a8eefe3c8d24b79a1f2de63e957d7b9\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"sB7cBpk0qKeDU7QpaLLq1kvEvPGAt_1skAKIp6fuKOV1-lmRTBD0LV_Be9PFBzNjKFwFYolUOD9Oja5Ga-hXIZrVVdHawMgJ-VcBVs_UPatL0DhU-O2JPFvmBxXzBkfb3NIlg2J2FRP1_pw9rCC98kqit5C56aQ5yInGBMNoR0ntBm1QwnsR-HkTu6qpX859hxCCUpExsqq4gDqth9vgLCji6ZdyKWPPN5pkqrZsX67Xs42HkmN5WY3HllYZLC4YowBRuoZLiEsrryy0lpoVrbmRfpEZIdIS8fHW1YfaDjyy2Vk1aDH1V0zlVygw4ZlKPLaOjUhEsXga41t4za3dwQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188991,\r\n \"updated\": 1482188991\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "627" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:38 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "aad5b529-da8e-4076-ba5e-fb9e2294c612" + "028ceb56-20c8-4979-b296-f2038e6a26cb" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/listkeyversionstest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL2xpc3RrZXl2ZXJzaW9uc3Rlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/listkeyversionstest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "20" ], "x-ms-client-request-id": [ - "7aed3af4-db6c-4db3-9c85-3c6aaf453c5c" + "41fc180d-b7a4-46e6-a928-62700431cab4" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/48b27162af084b61b31c94c29ba6541d\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"qbaVCccSdcMQVhfV2EsC6OEb5T8048AoU6pDWVEFEFbDOKYJQhvPEH0wfWuf1rKmZ1lI_5S_alupaJdQry4ynGMCtyz4Z3k0N8YQTQHtRiV2BmnokfkwJOs52KU8evaswSmtZIjtdp8y3CwTDHcgMU8QP47rRkI_qhtYXeIc8zn8VI_EBbh_ezSmANTGaoA3I5X3IkK00m8hqWhpF97gfaFDLYGaWEOKP2n47BvgI3zo8ug04ZaM1RuXXNWVuabxnwU--HyBh3Px2HprNwPhInBXsOvfV_lPohfr7GC4C7no0gygiLOVrnF-B2QjevzQPUZ7c_jzcTDq0E2bHc07oQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082079,\r\n \"updated\": 1477082079\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/7d5a1b54b4aa46b196fc235d76b0266d\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"onE5laOPBWQtqzr3lia2ilYJl7HCr9Wa4AxtVXKl0NvYSJRRWu739VfsqcNjSmv1YWeg8YAFB1aMm-CmGVKfWnlLl7hXlsxtCdYjS_vQVG-ymeE4N8_hwlUwr1tukUkl10fX4Lo-_pvNYOIJxiBaYUWB723oER8o1p89b_YQAuemjOOFlR5aCqCRrrUP5YHzwMRh9IOVd-a2EZctCZdrwsdppPj7btr3ua0stA9ax2hd8OneOEN7iKE-kO76TtrnDO25WVRPy8rGGQmuWcw5AnReWAfvmhn26BEzhEZZL6-qY4TSvfHotfpPnhmXCiJilTgh0c88pNYK3K96YX79AQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188991,\r\n \"updated\": 1482188991\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "627" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:38 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cb0cb501-f405-4c54-b2cd-280ac385815f" + "be9d21d9-840f-454c-9df5-a8f0956c0596" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,8 +141,8 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/listkeyversionstest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL2xpc3RrZXl2ZXJzaW9uc3Rlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/listkeyversionstest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", "RequestHeaders": { @@ -151,16 +153,17 @@ "20" ], "x-ms-client-request-id": [ - "28c870bd-7129-4126-b8ee-3d64115a593d" + "2fdf6b8a-d99e-4845-957d-c76ed838ba41" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/84cfba7268fa4de88624dd79910c1fec\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"zZrGC6WNQ3YSY6-4h9kgOUSFSh3ZM9YICLnsdqyjHOhXNx2UImUFTFyGEPmxIslEiB2COvMR1lApLASgqnug_NVD6eKVZNaMLoUKdPZi0drVpBaFLJo4f41MSq50Sx6uKzck4L_AUEMqIqptV4_eFbcIH264wQaahjSwG91Pbu15YIsKDytvPd55pe8hDn_aj76a_FTVkjGS1rG652tkfkEufU36mSVLcIjLD4QPkG6pS4q65y7mecmn2k7hA-CaIf-8BGwvhSRpSWuxklSjDEjR7MbHcUWCh54oMhHCuTQEhPdClP-oDBwcoqoH9ni5n0gn9Y_vOuYvxI6X7xpN9Q\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082079,\r\n \"updated\": 1477082079\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/cc05aff431564d1a855f118526f4ddb3\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"tBMA0B8huWFfcEb5EiICOnrGQESVVWuuk3ZbGIw_KgHLhyIAfosbQFIjmgGoQk0HSzAsAVyxVdf2e5ztYM7PV7apqtzs4cv7DTbi6aReX-6Kl4aIWtdpqetMEUVZts92KBgqBi2oIAUhjZzap8wT3C3tfv3UOwFJ-l_I2qDxZYulfma-tmYmpJiQXOPBlN-y6El_yA0g_KaJZLGPvylhHU-9CD4ZWl5kztWSXQ7KAkvrZrG_MQ7ZMwtQnE6BtjHmqAmi0WezKIw5cRP7bEJ6v7wM9AZouuYw77suPY1LXDYROf5EpvWL1b6KoMPOh0he8uV4veiYwT5t5xff6tjatQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188991,\r\n \"updated\": 1482188991\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "627" @@ -175,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" + "Mon, 19 Dec 2016 23:09:50 GMT" ], "Pragma": [ "no-cache" @@ -184,13 +187,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "fc206814-8fdc-4c7e-953c-e694e853ad63" + "b5cfa25e-22a7-479a-ace5-33e0391a822e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -208,22 +211,23 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/listkeyversionstest/versions?maxresults=1&api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL2xpc3RrZXl2ZXJzaW9uc3Rlc3QvdmVyc2lvbnM/bWF4cmVzdWx0cz0xJmFwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/listkeyversionstest/versions?maxresults=1&api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9tYXhyZXN1bHRzPTEmYXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5abbd977-856f-4a53-91a7-da8d2e4f7c26" + "53e4ef3c-ddcf-4936-8793-aeaa68f3ec53" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/1c853cb89d3e43ea8c4c43b2cc413b17\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477015736,\r\n \"updated\": 1477015736\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6TTNNekUzUmpZMFJqSTNOVFE1UkVGQk9EUkZNakl5UlRFM1F6TkRNak5CSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/0ed1a0043712492da4caaee9be818c58\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1481851712,\r\n \"updated\": 1481851712\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6UkJPRVZGUmtVelF6aEVNalJDTnpsQk1VWXlSRVUyTTBVNU5UZEVOMEk1SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "564" @@ -238,7 +242,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" + "Mon, 19 Dec 2016 23:09:52 GMT" ], "Pragma": [ "no-cache" @@ -247,13 +251,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ddc7c8c7-805d-4783-adc1-e052062458e9" + "35377bca-1b7f-4689-89e6-1878bb977df6" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -271,22 +275,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6TTNNekUzUmpZMFJqSTNOVFE1UkVGQk9EUkZNakl5UlRFM1F6TkRNak5CSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2VFROTmVrVXpVbXBaTUZKcVNUTk9WRkUxVWtWR1FrOUVVa1pOYWtsNVVsUkZNMUY2VGtSTmFrNUNTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", + "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6UkJPRVZGUmtVelF6aEVNalJDTnpsQk1VWXlSRVUyTTBVNU5UZEVOMEk1SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2VWtKUFJWWkdVbXRWZWxGNmFFVk5hbEpEVG5wc1FrMVZXWGxTUlZVeVRUQlZOVTVVWkVWT01FazFTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5f3beefb-348e-455d-b760-710187493a9c" + "23f18159-db7a-4bff-8b68-d6b7e7651a2c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/37317f64f27549daa84e222e17c3c23a\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477015736,\r\n \"updated\": 1477015736\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6UTRRakkzTVRZeVFVWXdPRFJDTmpGQ016RkRPVFJETWpsQ1FUWTFOREZFSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/4a8eefe3c8d24b79a1f2de63e957d7b9\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188991,\r\n \"updated\": 1482188991\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6Y3lRa1pDTUVWQ09FUkJORFF5TURSQk5qQXlNRGMzUlRReFFVUXdORGsySVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "564" @@ -301,7 +306,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" + "Mon, 19 Dec 2016 23:09:52 GMT" ], "Pragma": [ "no-cache" @@ -310,13 +315,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e078aa15-ae30-494c-9d05-065f13f09ac4" + "c643f830-4432-4200-a777-22480dceb9cc" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -334,22 +339,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6UTRRakkzTVRZeVFVWXdPRFJDTmpGQ016RkRPVFJETWpsQ1FUWTFOREZFSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2VVRSUmFra3pUVlJaZVZGVldYZFBSRkpEVG1wR1EwMTZSa1JQVkZKRVRXcHNRMUZVV1RGT1JFWkZTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", + "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6Y3lRa1pDTUVWQ09FUkJORFF5TURSQk5qQXlNRGMzUlRReFFVUXdORGsySVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2WTNsUmExcERUVVZXUTA5RlVrSk9SRkY1VFVSU1FrNXFRWGxOUkdNelVsUlJlRkZWVVhkT1JHc3lTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f56809fa-fff7-4580-9b3e-28c95c4f3205" + "d31f52a9-af00-429f-871a-1834e15639aa" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/48b27162af084b61b31c94c29ba6541d\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082079,\r\n \"updated\": 1477082079\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6VTFOamhCUmtORk1EWkdOalJDUkVaQk5FWkJRVGd6TWtaQk9EWTRRa0pHSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/72bfb0eb8da44204a602077e41ad0496\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1481851712,\r\n \"updated\": 1481851712\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZEVOVUV4UWpVMFFqUkJRVFEyUWpFNU5rWkRNak0xUkRjMlFqQXlOalpFSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "564" @@ -364,7 +370,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" + "Mon, 19 Dec 2016 23:09:52 GMT" ], "Pragma": [ "no-cache" @@ -373,13 +379,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "c91beb29-bc09-4ac2-b470-664e20cee261" + "ad4ceed1-0dc0-4777-86c0-b2dccc4e3e81" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -397,22 +403,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6VTFOamhCUmtORk1EWkdOalJDUkVaQk5FWkJRVGd6TWtaQk9EWTRRa0pHSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2VlRGT2FtaENVbXRPUmsxRVdrZE9hbEpEVWtWYVFrNUZXa0pSVkdkNlRXdGFRazlFV1RSUmEwcEhTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", + "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZEVOVUV4UWpVMFFqUkJRVFEyUWpFNU5rWkRNak0xUkRjMlFqQXlOalpFSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2WkVWT1ZVVjRVV3BWTUZGcVVrSlJWRkV5VVdwRk5VNXJXa1JOYWsweFVrUmpNbEZxUVhsT2FscEZTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6667717a-4577-44cd-b373-ce1085514647" + "cd6ed436-cb59-4df2-999c-9502461179e8" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/5568afce06f64bdfa4faa832fa868bbf\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070233,\r\n \"updated\": 1477070233\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6WTFSRGMxTURoQ1JEWTJSRFExUmpjNE1EQkNRa1JFUWpBelJqWkZRa1EySVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/7d5a1b54b4aa46b196fc235d76b0266d\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188991,\r\n \"updated\": 1482188991\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZzVPREpFTlRFMVEwSTNNelEwTVRJNFJrVkZPRFE1TVRFeE1qYzBPREF6SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "564" @@ -427,7 +434,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" + "Mon, 19 Dec 2016 23:09:52 GMT" ], "Pragma": [ "no-cache" @@ -436,13 +443,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0117407f-14d3-495a-a06c-0b6ff9f2a543" + "62629f68-116f-49c6-8d93-4e75b345b156" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -460,22 +467,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6WTFSRGMxTURoQ1JEWTJSRFExUmpjNE1EQkNRa1JFUWpBelJqWkZRa1EySVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2V1RGU1JHTXhUVVJvUTFKRVdUSlNSRkV4VW1wak5FMUVRa05SYTFKRlVXcEJlbEpxV2taUmExRXlTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", + "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZzVPREpFTlRFMVEwSTNNelEwTVRJNFJrVkZPRFE1TVRFeE1qYzBPREF6SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2WnpWUFJFcEZUbFJGTVZFd1NUTk5lbEV3VFZSSk5GSnJWa1pQUkZFMVRWUkZlRTFxWXpCUFJFRjZTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "72fe8c6f-c733-4e37-add7-21e1306040f9" + "d92e62f2-2254-4135-ae7b-859024c9317f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/65d7508bd66d45f7800bbddb03f6ebd6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082078,\r\n \"updated\": 1477082078\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6WTNNalpCTWpVM056VXlOelJETnpnNVJETTJSVVk1TlRWRk5VRXdORGxGSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/8982d515cb7344128fee849111274803\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1481851713,\r\n \"updated\": 1481851713\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUwwTkRNRFZCUmtZME16RTFOalJFTVVFNE5UVkdNVEU0TlRJMlJqUkVSRUl6SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "564" @@ -490,7 +498,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" + "Mon, 19 Dec 2016 23:09:52 GMT" ], "Pragma": [ "no-cache" @@ -499,13 +507,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ef7f5a5a-b96d-486b-83b6-2007110b7898" + "93ac3459-89a1-49d8-8011-20178812797a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -523,400 +531,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6WTNNalpCTWpVM056VXlOelJETnpnNVJETTJSVVk1TlRWRk5VRXdORGxGSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2V1ROTmFscENUV3BWTTA1NlZYbE9lbEpFVG5wbk5WSkVUVEpTVlZrMVRsUldSazVWUlhkT1JHeEdTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", + "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUwwTkRNRFZCUmtZME16RTFOalJFTVVFNE5UVkdNVEU0TlRJMlJqUkVSRUl6SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXd3VGtSTlJGWkNVbXRaTUUxNlJURk9hbEpGVFZWRk5FNVVWa2ROVkVVMFRsUkpNbEpxVWtWU1JVbDZTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "75713527-3a8f-4c39-ae88-db0dd05a81cc" + "4583b337-d475-458a-9319-980ec71ef67f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/6726a25775274c789d36ef955e5a049e\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070367,\r\n \"updated\": 1477070367\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6YzFOVGRFUlVaRE5Ua3hOelJFUWpKQk1EQkROek15UVRSR05qVXhOalV4SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "564" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "d1df2590-93c9-42f7-aeed-8f01fc6286f8" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6YzFOVGRFUlVaRE5Ua3hOelJFUWpKQk1EQkROek15UVRSR05qVXhOalV4SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2WXpGT1ZHUkZVbFZhUkU1VWEzaE9lbEpGVVdwS1FrMUVRa1JPZWsxNVVWUlNSMDVxVlhoT2FsVjRTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7f099950-3b1b-49b3-8ae5-8c17198ab964" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/7557defc59174db2a00c732a4f651651\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070368,\r\n \"updated\": 1477070368\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZEJOa0ZCTmtKRlJrTkdNelE1UmpOQ1JERXhRVGhCUVVOQ1FVWTNNemM1SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "564" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "fbca87c1-8555-43ca-ac85-7f2312ffaac8" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZEJOa0ZCTmtKRlJrTkdNelE1UmpOQ1JERXhRVGhCUVVOQ1FVWTNNemM1SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2WkVKT2EwWkNUbXRLUmxKclRrZE5lbEUxVW1wT1ExSkVSWGhSVkdoQ1VWVk9RMUZWV1ROTmVtTTFTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "58a611c5-47e1-4374-a362-1058d46545ca" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/7a6aa6befcf349f3bd11a8aacbaf7379\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070233,\r\n \"updated\": 1477070233\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6Z3lOekpCTVVGQk1EWkNORFE0T1RRNFJqQkNPRFUzT1RBMk1VUkRORE0wSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "564" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "c19556a8-0114-486c-8b5d-4401f5cee214" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6Z3lOekpCTVVGQk1EWkNORFE0T1RRNFJqQkNPRFUzT1RBMk1VUkRORE0wSVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2WjNsT2VrcENUVlZHUWsxRVdrTk9SRkUwVDFSUk5GSnFRa05QUkZVelQxUkJNazFWVWtST1JFMHdTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b8b40873-5151-40a6-ab61-4f6ad9e3e661" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/8272a1aa06b448948f0b8579061dc434\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070232,\r\n \"updated\": 1477070232\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZzBRMFpDUVRjeU5qaEdRVFJFUlRnNE5qSTBSRVEzT1RreE1FTXhSa1ZESVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "564" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "c907134a-be2a-4ab7-9473-c4d63872da73" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6ZzBRMFpDUVRjeU5qaEdRVFJFUlRnNE5qSTBSRVEzT1RreE1FTXhSa1ZESVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2WnpCUk1GcERVVlJqZVU1cWFFZFJWRkpGVWxSbk5FNXFTVEJTUlZFelQxUnJlRTFGVFhoU2ExWkVTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "09e2c6ef-13b2-4569-b202-4350ac5952bb" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/84cfba7268fa4de88624dd79910c1fec\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082079,\r\n \"updated\": 1477082079\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6bEZSakF6UmpGQ05FSkVSalEwTlRSQk1VRTNSa0UzTVRRMVJVTkJRVUl6SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "564" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "f6a67912-0159-4fd6-aa7e-aca14c9e1796" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUx6bEZSakF6UmpGQ05FSkVSalEwTlRSQk1VRTNSa0UzTVRRMVJVTkJRVUl6SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXg2YkVaU2FrRjZVbXBHUTA1RlNrVlNhbEV3VGxSU1FrMVZSVE5TYTBVelRWUlJNVkpWVGtKUlZVbDZTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9d9cd3a8-b5c1-4851-aab9-e4d03aff7312" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/9ef03f1b4bdf4454a1a7fa7145ecaab3\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477015736,\r\n \"updated\": 1477015736\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUwwTTVRekF5T1VWQ01FUTRORFEwUmtaQk5UTkJNekl4T0VRME5EVTFRVEk1SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "564" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "17dd6716-f149-4392-84f1-af38e2bc116b" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/keys/listkeyversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMzYhTURBd01EVTJJV3RsZVM5TVNWTlVTMFZaVmtWU1UwbFBUbE5VUlZOVUwwTTVRekF5T1VWQ01FUTRORFEwUmtaQk5UTkJNekl4T0VRME5EVTFRVEk1SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXMvbGlzdGtleXZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TXpZaFRVUkJkMDFFVlRKSlYzUnNaVk01VFZOV1RsVlRNRlphVm10V1UxVXdiRkJVYkU1VlVsWk9WVXd3VFRWUmVrRjVUMVZXUTAxRlVUUk9SRkV3VW10YVFrNVVUa0pOZWtsNFQwVlJNRTVFVlRGUlZFazFTVlJCZDAxRVFYbFBRMFUxVDFSck5VeFVSWGxNVkUxNFZrUkplazlxVlRWUGFsVTFUR3ByTlU5VWF6VlBWR3hoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e7a7741e-e00f-49f4-b992-460460da911a" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest/c9c029eb0d8444ffa53a3218d4455a29\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070367,\r\n \"updated\": 1477070367\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest/cc05aff431564d1a855f118526f4ddb3\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188991,\r\n \"updated\": 1482188991\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ "205" @@ -931,7 +562,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:39 GMT" + "Mon, 19 Dec 2016 23:09:52 GMT" ], "Pragma": [ "no-cache" @@ -940,13 +571,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "f651d0e4-8ff8-475f-b30c-dd2e892c1743" + "cce9dfc7-ebb3-4df9-b49d-2627471f0344" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -966,8 +597,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeysTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeysTest.json index aafa7fb80321..a8f8ae9ce48f 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeysTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListKeysTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/listkeytest0/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL2xpc3RrZXl0ZXN0MC9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/listkeytest0/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXRlc3QwL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "20" ], "x-ms-client-request-id": [ - "6bc87b6a-13da-46ee-8e09-e76a95355b97" + "7bab7282-c4d1-4df3-8e62-b3f66c2a71bb" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeytest0/fb9f5832227144bb930ba20bbe1ab897\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"7O0NfiabbLb_1HqxsvF-VAHNiDk0mTK0nED0BFSh6g2OaMUkspJ5XE9dY5ossuRdhYkZiQUvXgVKtUKzfUkv2w7AtNP7QHtabPDcNzrgvggwg2RruWkgaufPmUGvVBMBXlQiNONQKqPFcLkQE2HFW9E41-YY1ul10DdKPkxAp6i2s0aDS6J0Xp90b0EQgBcyjraZ7rUm74WPa7-TF1zLwVVkczYzGLDcxPrL2Hpo66LiFmdau-XZxV3Y3Ku2YFIT1EjlaeOHWki-rVcobr1X_ZQPPnhqnmjGdDuxSws7j4Jpm6l48kJsATgCNul38ZzdyTcYb6x4atebQYF4Y3p2DQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082081,\r\n \"updated\": 1477082081\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeytest0/7024e4b12f82468b9ee825647b7be099\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"zeXvJfHruzUWi1VImfj-Y3XPObrstk1pPHI_1vCe4xoWdOGvYTJFpdC6p6lVXoHYQKQBJla7VaJfl40wEKcOnooCAFAtj0dxaXX_AzsQamEQUwaZ5RjCnaxjjj49F_NxRArlnckg8lu27RmdhHGfr10hsJvgsh3dKw5HNxwT4Qwlho1D41I0gz_oyV1cW8vt6P2uU8KawIAigWBBmUzEF6k4SSnjbphYEYh74oSeQd4OxQ86YmuJ9jbaSJQYd-wmEoPsKhbZ9Ut2a51oh0CM70X9ju_pMQdphUsSUactCarJbRbloUmJQCvYn_W1rzh6BVwEggXv2FwYfaTNQ35-mQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188996,\r\n \"updated\": 1482188996\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "620" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:40 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "9596099f-f7e1-41fe-9b61-95ecfd26f6b0" + "dd694dc9-83ad-467c-bf0f-f29aea83f6b5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/listkeytest1/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL2xpc3RrZXl0ZXN0MS9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/listkeytest1/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXRlc3QxL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "20" ], "x-ms-client-request-id": [ - "ddff7958-f1b3-4c40-b58e-7470738cd46c" + "60dcc921-37ed-4302-9105-2d267ae4bca1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeytest1/81c39782d03642cbb875e976f9502fdd\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"tB0xkVC4PvKk9X-CpwPHVlJMzmu4FbK1BzubXC93qIIbUtAUWdlYGUXXo-tImtjc_mgqb5srgWmYxRbw_CnfNybfuIQq5UAaFDnQjX92z8o3bM1U914hHK0O0MAwwxpbCyipftvs3XUp59qv1oeUdgr8mdv3wHIYORcpTIWyXj1AyV9CmqKy4VYsiysZn8hVEeRvtwaXUsUdFYqKxNz4HnD7tL9JPo1m9r2ibyUVtymJUig8cy1UY48MPMzhDdC6Yw6919nwmevaHQqqlJUn8_aEQTHZgd714rdZh-aHky8-unGLRnpYRYcxm9XdI83Z5cYs6hbBqJAYFZG8n88yAQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082081,\r\n \"updated\": 1477082081\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeytest1/a09fe610729e486a9514cc77b3d249b2\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"lY4Fq1SNotf6OklpbtFkGhb6AZiWyl3GKTUwKE3qKQVqg7U-08ZKRG4sIksVewFnUZZCGx0xZg13_pLUmy43fbYMl27DV2OwHK75FYGHPOIi63lAr4RNc6YUtsKwVhfBpEncZr3s4sU7x3IPT7RWbwPgeJK1ym-Y9xBEwLnUztJiXQMD2gi4cO-QjolrV0y1juacNXmopYMS8FRj8m8Oi1Jll_B0VWbg8nZ8Qw-AP9DbJmCjWgMlWzLgA4Ca0g7nU7OmZpvtlSz2M8-QBrpZge9_pYeeWPEFt7wvThO-sOZ7qPxj77r5S86yn7Af0SK34pUazBuHlxasOHnqGARufw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188997,\r\n \"updated\": 1482188997\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "620" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:40 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "7a41a2c4-d837-4993-b316-933a20cc6468" + "6e2d6e8a-b211-406a-b178-1c6afabed030" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,8 +141,8 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/listkeytest2/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL2xpc3RrZXl0ZXN0Mi9jcmVhdGU/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/listkeytest2/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvbGlzdGtleXRlc3QyL2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\"\r\n}", "RequestHeaders": { @@ -151,16 +153,17 @@ "20" ], "x-ms-client-request-id": [ - "e5918b3a-c73e-4ad3-a1bc-08a17109a31d" + "2662f976-d295-4c1a-b092-753327722664" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeytest2/fc6087e9e611466d95bc62d3d990259d\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"jWBYv-b-kSON-Fa7kpjcO4rlP21KKwJ0YSzBjrmdjl0UsbwJJLnfR19EpWZMW7n4MMdnNEBN72dMBwAhO7drQSPA67xAKsqIl5PbhHGp_IvS2U6RJNslHidbounqCiH3BTmJ15QTCZz2dSxMqs3Y54sgWPVqo3K6AKVtZ68PTccyFM90VT3af_DaOfa7jtuxmqhZXhr2hDz77AQtTRcF634ElQfp3M0LjqEbBEaqs9_vSAnN7mJ6uojRid79BZeW9JHgkxCXg-XdxWAq7qdLEP5ELDQi5eqToVanz7bYS9iD_L82NOSJMmD-omBLK5Zv0Byn_WuJvuiftbimsLZkyQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082081,\r\n \"updated\": 1477082081\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeytest2/18eb0dfe6c2143f1b63188f3fdb3d039\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"xn9zheeSCxwvtJ3j2CnuiW1Txx4GeBEWiuiyewV1oCcXLHFzKZnSQBw_xOUDYj6p1LxWgabyJ3rhtbsShbblxMvhp3RBLWrwarL5EmliDAaJtg7jtbb7U1g-WjczUBmCu0oeM7NGPJkT7szPN_NCLfApEFYc4tDj7gjeO53EsM8tcE5jrdqIhwZTov5Pj176VzVrXy42R03Z2tOp_dl9qywc-6FQz_jNYcYM4Zc6XNSZGcJlRF3opHdxOaEDKGwe5BsCBCOjpqT0uldoilyIh9cY5kZGklajfAv55ymjlpqB9Fa3qxLcPAy0eqr1dduAi2T3ngohpq3zbmdYAnRT8w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188997,\r\n \"updated\": 1482188997\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "620" @@ -175,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -184,13 +187,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "daf6e558-803c-4ebd-98a0-2fadf75a049c" + "0a07d5d8-2f45-48a3-9d16-f35e1bcb42a5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -208,22 +211,23 @@ "StatusCode": 200 }, { - "RequestUri": "//keys?maxresults=1&api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzP21heHJlc3VsdHM9MSZhcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys?maxresults=1&api-version=2016-10-01", + "EncodedRequestUri": "L2tleXM/bWF4cmVzdWx0cz0xJmFwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0ba77cb9-37f9-46dc-a5d2-a90f251766a3" + "f853093a-df41-40e9-b436-641eb8289c6e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeytest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082081,\r\n \"updated\": 1477082081\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRFaE1EQXdNREk0SVRJd01UWXRNVEF0TWpGVU1UYzZNVGM2TkRVdU5qa3hPRE0zT0ZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeytest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188996,\r\n \"updated\": 1482188996\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRFaE1EQXdNREk0SVRJd01UWXRNVEl0TVRsVU1qTTZNRGs2TlRZdU16ZzVOakU1TmxvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "419" @@ -238,7 +242,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -247,13 +251,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "c34b750d-ddf0-45b4-9b21-2fb976a33ad4" + "fd24aaf5-c489-46f1-88d9-25411d6f3550" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -271,22 +275,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRFaE1EQXdNREk0SVRJd01UWXRNVEF0TWpGVU1UYzZNVGM2TkRVdU5qa3hPRE0zT0ZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE1DRk5SRUYzVFVSRk1rbFhkR3hsVXpsTlUxWk9WVk13VmxwV1JWWlVWa1JGYUUxRVFYZE5SRWswU1ZSSmQwMVVXWFJOVkVGMFRXcEdWVTFVWXpaTlZHTTJUa1JWZFU1cWEzaFBSRTB6VDBadmFDSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", + "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRFaE1EQXdNREk0SVRJd01UWXRNVEl0TVRsVU1qTTZNRGs2TlRZdU16ZzVOakU1TmxvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE1DRk5SRUYzVFVSRk1rbFhkR3hsVXpsTlUxWk9WVk13VmxwV1JWWlVWa1JGYUUxRVFYZE5SRWswU1ZSSmQwMVVXWFJOVkVsMFRWUnNWVTFxVFRaTlJHczJUbFJaZFUxNlp6Vk9ha1UxVG14dmFDSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "93c3761b-f152-4d8e-84ad-062633d7f9b1" + "adb50d78-40a2-4ebe-a210-a541c1c7b06e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeytest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082081,\r\n \"updated\": 1477082081\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRJaE1EQXdNREk0SVRJd01UWXRNVEF0TWpGVU1UYzZNVGM2TkRZdU1EYzBPRFl3TWxvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeytest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188997,\r\n \"updated\": 1482188997\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRJaE1EQXdNREk0SVRJd01UWXRNVEl0TVRsVU1qTTZNRGs2TlRZdU56RXhOalF3TVZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "419" @@ -301,7 +306,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:56 GMT" ], "Pragma": [ "no-cache" @@ -310,13 +315,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "eb641fca-af33-4ea6-aa96-fb5c14a90fc3" + "8c24da06-7782-4571-b0a0-2cfae5f1d2ff" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -334,22 +339,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRJaE1EQXdNREk0SVRJd01UWXRNVEF0TWpGVU1UYzZNVGM2TkRZdU1EYzBPRFl3TWxvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE1DRk5SRUYzVFVSRk1rbFhkR3hsVXpsTlUxWk9WVk13VmxwV1JWWlVWa1JKYUUxRVFYZE5SRWswU1ZSSmQwMVVXWFJOVkVGMFRXcEdWVTFVWXpaTlZHTTJUa1JaZFUxRVl6QlBSRmwzVFd4dmFDSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", + "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMklXdGxlUzlNU1ZOVVMwVlpWRVZUVkRJaE1EQXdNREk0SVRJd01UWXRNVEl0TVRsVU1qTTZNRGs2TlRZdU56RXhOalF3TVZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE1DRk5SRUYzVFVSRk1rbFhkR3hsVXpsTlUxWk9WVk13VmxwV1JWWlVWa1JKYUUxRVFYZE5SRWswU1ZSSmQwMVVXWFJOVkVsMFRWUnNWVTFxVFRaTlJHczJUbFJaZFU1NlJYaE9hbEYzVFZadmFDSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d18a261f-99ee-4a95-9ca2-5463276b9d47" + "e52c6655-6ce0-4e0c-9ce7-de1286e1b61f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeytest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082081,\r\n \"updated\": 1477082081\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVMwVlpWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXdMVEl4VkRBeU9qQTRPalU0TGpRNE5UazVNelJhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeytest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188997,\r\n \"updated\": 1482188997\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVMwVlpWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXlMVEUyVkRBeE9qSTRPak15TGpreE9EQTFNamxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "435" @@ -364,7 +370,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:57 GMT" ], "Pragma": [ "no-cache" @@ -373,13 +379,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "aa31fb79-a4c2-447b-b1ee-5c984964c952" + "226e3ac8-00d5-4d47-bab1-f37584371889" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -397,25 +403,26 @@ "StatusCode": 200 }, { - "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVMwVlpWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXdMVEl4VkRBeU9qQTRPalU0TGpRNE5UazVNelJhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNU1pRk5SRUYzVFVSSmVrbFhkR3hsVXpsTlUxWk9WVk13VmxwV2ExWlRWVEJzVUZSc1RsVlNWazVWU1ZSQmQwMUVRWGxQUTBWNVRVUkZNa3hVUlhkTVZFbDRWa1JCZVU5cVFUUlBhbFUwVEdwUk5FNVVhelZOZWxKaFNWRXRMU0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", + "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklXdGxlUzlNU1ZOVVMwVlpWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXlMVEUyVkRBeE9qSTRPak15TGpreE9EQTFNamxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNU1pRk5SRUYzVFVSSmVrbFhkR3hsVXpsTlUxWk9WVk13VmxwV2ExWlRWVEJzVUZSc1RsVlNWazVWU1ZSQmQwMUVRWGxQUTBWNVRVUkZNa3hVUlhsTVZFVXlWa1JCZUU5cVNUUlBhazE1VEdwcmVFOUVRVEZOYW14aFNWRXRMU0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "563114ba-17aa-42b3-80f1-55c2893687cc" + "caee0553-0934-4911-8cee-89075f3c8dbd" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/listkeyversionstest\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082079,\r\n \"updated\": 1477082079\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlXdGxlUzlNU1ZOVVZrVlNVMGxQVGxORFJWSlVNREVoTURBd01ESTRJVGs1T1RrdE1USXRNekZVTWpNNk5UazZOVGt1T1RrNU9UazVPVm9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/listkeyversionstest\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188991,\r\n \"updated\": 1482188991\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMElXdGxlUzlUUkV0VVJWTlVTMFZaSVRBd01EQXlPQ0V5TURFMkxURXlMVEUyVkRBeE9qSTVPakk0TGpnd01EY3dOelZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "436" + "426" ], "Content-Type": [ "application/json; charset=utf-8" @@ -427,7 +434,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:57 GMT" ], "Pragma": [ "no-cache" @@ -436,13 +443,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "6bebcfb5-ffd3-4e85-a22e-cfb7fe7b1756" + "5eb59d66-6683-4adb-83c6-58c1a3af5988" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -460,22 +467,23 @@ "StatusCode": 200 }, { - "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlXdGxlUzlNU1ZOVVZrVlNVMGxQVGxORFJWSlVNREVoTURBd01ESTRJVGs1T1RrdE1USXRNekZVTWpNNk5UazZOVGt1T1RrNU9UazVPVm9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE9DRk5SRUYzVFVSSmVVbFhkR3hsVXpsTlUxWk9WVlpyVmxOVk1HeFFWR3hPUkZKV1NsVk5SRVZvVFVSQmQwMUVTVFJKVkdzMVQxUnJkRTFVU1hSTmVrWlZUV3BOTms1VWF6Wk9WR3QxVDFSck5VOVVhelZQVm05b0lpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4MCFNREF3TURFMElXdGxlUzlUUkV0VVJWTlVTMFZaSVRBd01EQXlPQ0V5TURFMkxURXlMVEUyVkRBeE9qSTVPakk0TGpnd01EY3dOelZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE1DRk5SRUYzVFVSRk1FbFhkR3hsVXpsVVVrVjBWVkpXVGxWVE1GWmFTVlJCZDAxRVFYbFBRMFY1VFVSRk1reFVSWGxNVkVVeVZrUkJlRTlxU1RWUGFrazBUR3BuZDAxRVkzZE9lbFpoU1ZFdExTSXNJbFJoY21kbGRFeHZZMkYwYVc5dUlqb3dmUSZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9d4bf1d1-fe3e-43f3-be7a-19eeb2032b20" + "4e2f754e-cb38-4791-ad93-121f19385d8e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082038,\r\n \"updated\": 1477082038\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJd0lXdGxlUzlUUlV4R1UwbEhUa1ZFUTBWU1ZEQXhJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188947,\r\n \"updated\": 1482188947\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJd0lXdGxlUzlVUlZOVVNWTlRWVVZTUTBWU1ZEQXhJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "427" @@ -490,7 +498,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:57 GMT" ], "Pragma": [ "no-cache" @@ -499,13 +507,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "be92f85f-8caf-423e-8456-3a88f862bce6" + "06757e06-1813-4519-aa29-28e8543ff8d2" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -523,19 +531,20 @@ "StatusCode": 200 }, { - "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJd0lXdGxlUzlUUlV4R1UwbEhUa1ZFUTBWU1ZEQXhJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE9DRk5SRUYzVFVSSmQwbFhkR3hsVXpsVVVsVjRSMVV3YkVoVWExWkZVVEJXVTFaRVFYaEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/keys?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJd0lXdGxlUzlVUlZOVVNWTlRWVVZTUTBWU1ZEQXhJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L2tleXM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE9DRk5SRUYzVFVSSmQwbFhkR3hsVXpsVlVsWk9WVk5XVGxSV1ZWWlRVVEJXVTFaRVFYaEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7981128a-086a-4155-bb20-1fbf90a127db" + "728dc77e-1547-433f-aecf-fbf9b091c4e3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": null\r\n}", @@ -553,7 +562,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:57 GMT" ], "Pragma": [ "no-cache" @@ -562,13 +571,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "20f9553c-9825-47eb-917a-9bb292243844" + "27c84bb5-2f8e-4b28-a206-88386f2f9229" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -588,8 +597,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretVersionsTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretVersionsTest.json index 90f9d0f1d71a..b262ceb2e8d9 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretVersionsTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretVersionsTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//secrets/listsecretversionstest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2xpc3RzZWNyZXR2ZXJzaW9uc3Rlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/listsecretversionstest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "32" ], "x-ms-client-request-id": [ - "2003b2e4-59fc-48cd-b918-c721c5aa1d46" + "92d3e329-8082-4aab-9bed-3546df6b27c5" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/8ef376a91e8340069bd03d56ad4c1b3f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082066,\r\n \"updated\": 1477082066\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/1d4962b1ed784dbf899f3332e4768b70\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188979,\r\n \"updated\": 1482188979\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "206" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "98162876-9fe9-428b-8ba3-564eac88a723" + "1f1d1303-9d9a-4b51-b447-2a741dca259f" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/listsecretversionstest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2xpc3RzZWNyZXR2ZXJzaW9uc3Rlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/listsecretversionstest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "32" ], "x-ms-client-request-id": [ - "8d7bea90-a20c-47ec-9b21-d18d90be1f08" + "78f86393-f38e-49d7-9f99-58cdbf88b5fa" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/b8c456e9612e4990aaabbcde2d93c81c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082067,\r\n \"updated\": 1477082067\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/c0ea8a0407604b1e989a96cd6b9abfe0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188979,\r\n \"updated\": 1482188979\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "206" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "f106509c-e76a-49bb-9433-954469fa4d70" + "9d8cdc51-08c1-4717-870a-f7eeefa674fd" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,8 +141,8 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/listsecretversionstest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2xpc3RzZWNyZXR2ZXJzaW9uc3Rlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/listsecretversionstest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", "RequestHeaders": { @@ -151,16 +153,17 @@ "32" ], "x-ms-client-request-id": [ - "2127e651-3c6c-4b14-a716-f779669b28ff" + "bee3c628-9864-40c6-8497-0ba1b313ad48" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/28a525f8dac64f57ab60939fd704c396\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082067,\r\n \"updated\": 1477082067\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/48de2545db17451d8cb1991a805ee753\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188979,\r\n \"updated\": 1482188979\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "206" @@ -175,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -184,13 +187,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "97b895b3-63a0-47a2-9852-e23af014b1ba" + "834d94fa-4175-4b76-95af-b513e25f818e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -208,22 +211,23 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/listsecretversionstest/versions?maxresults=1&api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2xpc3RzZWNyZXR2ZXJzaW9uc3Rlc3QvdmVyc2lvbnM/bWF4cmVzdWx0cz0xJmFwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/secrets/listsecretversionstest/versions?maxresults=1&api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9tYXhyZXN1bHRzPTEmYXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d8a40f38-8712-4049-a974-e8dfef021eec" + "82ba414a-842d-410e-8cff-51e81e8287cd" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/0e86cf1594fc494991e967c465531552\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070405,\r\n \"updated\": 1477070405\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpFd09EUkROekl4TXpkRlJEUTVRVFJDUkVJeU1rRXhPRVF4UlRRM01rWXpJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/11a536561da34d6b8b452d880df58f3a\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1481851699,\r\n \"updated\": 1481851699\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpGRU5EazJNa0l4UlVRM09EUkVRa1k0T1RsR016TXpNa1UwTnpZNFFqY3dJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "585" @@ -238,7 +242,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -247,13 +251,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "aafc18ac-0937-4a10-94d0-56eaf3f45912" + "b97c5e20-7d25-4d77-884f-1dc842a4b3ed" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -271,22 +275,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpFd09EUkROekl4TXpkRlJEUTVRVFJDUkVJeU1rRXhPRVF4UlRRM01rWXpJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBGZDA5RVVrUk9la2w0VFhwa1JsSkVVVFZSVkZKRFVrVkplVTFyUlhoUFJWRjRVbFJSTTAxcldYcEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpGRU5EazJNa0l4UlVRM09EUkVRa1k0T1RsR016TXpNa1UwTnpZNFFqY3dJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBHUlU1RWF6Sk5hMGw0VWxWUk0wOUVVa1ZSYTFrMFQxUnNSMDE2VFhwTmExVXdUbnBaTkZGcVkzZEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f96fc021-2d36-4fa3-982b-f1f571247baf" + "26a94f8a-e9e4-42ec-a221-c48376a258fb" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/1084c72137ed49a4bdb22a18d1e472f3\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477015767,\r\n \"updated\": 1477015767\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpJM01qTkVSVGhCUlRZelFqUkNRamM1TlVORE9EQkNOa0kxTTBWQ05URTFJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/1d4962b1ed784dbf899f3332e4768b70\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188979,\r\n \"updated\": 1482188979\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpKRU5ERTFSakpCTTBNd09EUkdRelpDUmtFeU5qTkdORGszTWpFME0wRXpJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "585" @@ -301,7 +306,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -310,13 +315,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "7edbc4e1-967b-4fca-988e-85ce1b223fcd" + "e4a5b99a-152b-42d3-9fa0-d077d44340f1" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -334,22 +339,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpJM01qTkVSVGhCUlRZelFqUkNRamM1TlVORE9EQkNOa0kxTTBWQ05URTFJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBKTTAxcVRrVlNWR2hDVWxSWmVsRnFVa05SYW1NMVRsVk9SRTlFUWtOT2Ewa3hUVEJXUTA1VVJURkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpKRU5ERTFSakpCTTBNd09EUkdRelpDUmtFeU5qTkdORGszTWpFME0wRXpJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBLUlU1RVJURlNha3BDVFRCTmQwOUVVa2RSZWxwRFVtdEZlVTVxVGtkT1JHc3pUV3BGTUUwd1JYcEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f82551b5-eaf8-4579-8700-47a3c76dffb4" + "0e7adab6-b579-451a-a8a2-54c74968ef84" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/2723de8ae63b4bb795cc80b6b53eb515\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477015767,\r\n \"updated\": 1477015767\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpJNFFUVXlOVVk0UkVGRE5qUkdOVGRCUWpZd09UTTVSa1EzTURSRE16azJJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/2d415f2a3c084fc6bfa263f4972143a3\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1481851699,\r\n \"updated\": 1481851699\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpRNFJFVXlOVFExUkVJeE56UTFNVVE0UTBJeE9Ua3hRVGd3TlVWRk56VXpJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "585" @@ -364,7 +370,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -373,13 +379,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "79051a1d-293a-4776-88f1-d0f315c202e1" + "6503ad1c-4e9f-4887-89b0-c8c2380dcee4" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -397,22 +403,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpJNFFUVXlOVVk0UkVGRE5qUkdOVGRCUWpZd09UTTVSa1EzTURSRE16azJJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBKTkZGVVZYbE9WVmswVWtWR1JFNXFVa2RPVkdSQ1VXcFpkMDlVVFRWU2ExRXpUVVJTUkUxNmF6SkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpRNFJFVXlOVFExUkVJeE56UTFNVVE0UTBJeE9Ua3hRVGd3TlVWRk56VXpJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBSTkZKRlZYbE9WRkV4VWtWSmVFNTZVVEZOVlZFMFVUQkplRTlVYTNoUlZHZDNUbFZXUms1NlZYcEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c9f2bd84-b751-481f-bf68-aa934d0a5105" + "158183be-ff1e-4e2e-8a55-56e0d2e076aa" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/28a525f8dac64f57ab60939fd704c396\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082067,\r\n \"updated\": 1477082067\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpNMFJEYzFNRUk0TURJMFJEUTVPVE5CT1VVMVF6TXdRVUZDUVVSQk1FWTNJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/48de2545db17451d8cb1991a805ee753\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188979,\r\n \"updated\": 1482188979\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpZelJVWkdRVFl5UVVFeU16UTFNalJCUkRKRU5qYzVORUUyT1ROQ1FqTXhJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "585" @@ -427,7 +434,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -436,13 +443,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "725ac188-70ff-4f78-9f06-630d1d16d312" + "4679996d-8107-48ec-98e2-f7084678948c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -460,22 +467,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpNMFJEYzFNRUk0TURJMFJEUTVPVE5CT1VVMVF6TXdRVUZDUVVSQk1FWTNJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBOTUZKRVl6Rk5SVWswVFVSSk1GSkVVVFZQVkU1Q1QxVlZNVkY2VFhkUlZVWkRVVlZTUWsxRldUTkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpZelJVWkdRVFl5UVVFeU16UTFNalJCUkRKRU5qYzVORUUyT1ROQ1FqTXhJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBaZWxKVldrZFJWRmw1VVZWRmVVMTZVVEZOYWxKQ1VrUktSVTVxWXpWT1JVVXlUMVJPUTFGcVRYaEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3aabd148-2793-4531-8dfa-500bc315ccd0" + "cd91daaa-da79-4490-ac68-bab252ebea3c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/34d750b8024d4993a9e5c30aabada0f7\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070262,\r\n \"updated\": 1477070262\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpRd01qTTRSa0ZFUkRRMlF6UkdSVFpCTVRZM1JrSkNSVU5DT1RKQlFqUXlJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/63effa62aa234524ad2d6794a693bb31\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1481851698,\r\n \"updated\": 1481851698\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBNd1JVRTRRVEEwTURjMk1EUkNNVVU1T0RsQk9UWkRSRFpDT1VGQ1JrVXdJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "585" @@ -490,7 +498,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" + "Mon, 19 Dec 2016 23:09:39 GMT" ], "Pragma": [ "no-cache" @@ -499,13 +507,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "b13ec99f-6c20-4819-ba88-bb25714dfe0e" + "26ea2ea8-cc9f-4602-b9ac-eaa3581a9460" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -523,400 +531,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpRd01qTTRSa0ZFUkRRMlF6UkdSVFpCTVRZM1JrSkNSVU5DT1RKQlFqUXlJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBSZDAxcVRUUlNhMFpGVWtSUk1sRjZVa2RTVkZwQ1RWUlpNMUpyU2tOU1ZVNURUMVJLUWxGcVVYbEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBNd1JVRTRRVEEwTURjMk1EUkNNVVU1T0RsQk9UWkRSRFpDT1VGQ1JrVXdJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUREJOZDFKVlJUUlJWRUV3VFVSak1rMUVVa05OVlZVMVQwUnNRazlVV2tSU1JGcERUMVZHUTFKclZYZEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9c89eac2-c578-4ad1-a22e-c6533ad7aae7" + "f7f83427-6758-4ba8-8dfc-8538591a2236" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/40238fadd46c4fe6a167fbbecb92ab42\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070262,\r\n \"updated\": 1477070262\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpRME5rWTBSRVkzUkVaRU5EUXdNams0UWpSR056azNNMFV5UWtaQ09UTkZJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "585" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "26409045-4703-4c61-86d2-c81a7dbba5c2" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpRME5rWTBSRVkzUkVaRU5EUXdNams0UWpSR056azNNMFV5UWtaQ09UTkZJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBSTUU1cldUQlNSVmt6VWtWYVJVNUVVWGROYW1zMFVXcFNSMDU2YXpOTk1GVjVVV3RhUTA5VVRrWkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8a6d1a11-aa7d-4b34-86d8-345923d8e335" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/446f4df7dfd440298b4f7973e2bfb93e\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070262,\r\n \"updated\": 1477070262\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpVd05EVkdOakJFT1RNd09EUXpOVGM0UlRNek5VSTVOVVl5UWtFeE16VkVJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "585" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "34b3adf6-f82b-4c39-bdd4-28808ac94897" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpVd05EVkdOakJFT1RNd09EUXpOVGM0UlRNek5VSTVOVVl5UWtFeE16VkVJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBWZDA1RVZrZE9ha0pGVDFSTmQwOUVVWHBPVkdNMFVsUk5lazVWU1RWT1ZWbDVVV3RGZUUxNlZrVkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d7675b29-014e-409a-a4b8-045198f69d83" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/5045f60d930843578e335b95f2ba135d\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477015768,\r\n \"updated\": 1477015768\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpoRlJqTTNOa0U1TVVVNE16UXdNRFk1UWtRd00wUTFOa0ZFTkVNeFFqTkdJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "585" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "fd2ce9ad-0b29-4587-9643-8efbe6db76af" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpoRlJqTTNOa0U1TVVVNE16UXdNRFk1UWtRd00wUTFOa0ZFTkVNeFFqTkdJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUSHBvUmxKcVRUTk9hMFUxVFZWVk5FMTZVWGROUkZrMVVXdFJkMDB3VVRGT2EwWkZUa1ZOZUZGcVRrZEpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "bc20222e-3770-41ca-b762-ee6bef1d5ac2" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/8ef376a91e8340069bd03d56ad4c1b3f\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082066,\r\n \"updated\": 1477082066\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBJNFF6UTFOa1U1TmpFeVJUUTVPVEJCUVVGQ1FrTkVSVEpFT1RORE9ERkRJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "585" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "2fd69ad9-2cd4-4c57-a8ae-1f0864bf5379" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBJNFF6UTFOa1U1TmpFeVJUUTVPVEJCUVVGQ1FrTkVSVEpFT1RORE9ERkRJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUREJKTkZGNlVURk9hMVUxVG1wRmVWSlVVVFZQVkVKQ1VWVkdRMUZyVGtWU1ZFcEZUMVJPUkU5RVJrUkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c51c2fef-6ef3-4007-8645-5bfda5b6b06e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/b8c456e9612e4990aaabbcde2d93c81c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082067,\r\n \"updated\": 1477082067\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBNeVFUVTVRVEJDUXpsR01UUTFOREZCT0RnMk4wVkdPVUkyTlROR1EwSTBJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "585" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "d04393a3-1d4b-4f23-9fb8-95cf68f85879" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBNeVFUVTVRVEJDUXpsR01UUTFOREZCT0RnMk4wVkdPVUkyTlROR1EwSTBJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUREJOZVZGVVZUVlJWRUpEVVhwc1IwMVVVVEZPUkVaQ1QwUm5NazR3VmtkUFZVa3lUbFJPUjFFd1NUQkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "98e2713d-c9a3-4657-bfe7-a661bb1644a0" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/c2a59a0bc9f14541a8867ef9b653fcb4\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070405,\r\n \"updated\": 1477070405\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBWR09EWXhRemcxUTBKRE9EUkNOekpCTURFeE9FSTVRVEJGUlRZeVJrVTJJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "585" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 21 Oct 2016 20:34:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "x-ms-keyvault-region": [ - "westus" - ], - "x-ms-request-id": [ - "449a7215-08bb-41a8-a884-1b56655c9cf5" - ], - "x-ms-keyvault-service-version": [ - "1.0.0.781" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000;includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/secrets/listsecretversionstest/versions?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTDBWR09EWXhRemcxUTBKRE9EUkNOekpCTURFeE9FSTVRVEJGUlRZeVJrVTJJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHZlcnNpb25zdGVzdC92ZXJzaW9ucz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiRza2lwdG9rZW49ZXlKT1pYaDBUV0Z5YTJWeUlqb2lNaUV4TkRRaFRVUkJkMDFFV1hsSldFNXNXVE5LYkdSRE9VMVRWazVWVlRCV1JGVnJWbFZXYTFaVFZUQnNVRlJzVGxWU1ZrNVZUREJXUjA5RVdYaFJlbWN4VVRCS1JFOUVVa05PZWtwQ1RVUkZlRTlGU1RWUlZFSkdVbFJaZVZKclZUSkpWRUYzVFVSQmVVOURSVFZQVkdzMVRGUkZlVXhVVFhoV1JFbDZUMnBWTlU5cVZUVk1hbXMxVDFSck5VOVViR0ZKVVMwdElpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1748f6c3-59ad-4539-a80d-8193460f7f39" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest/ef861c85cbc84b72a0118b9a0ee62fe6\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477070405,\r\n \"updated\": 1477070405\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest/c0ea8a0407604b1e989a96cd6b9abfe0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188979,\r\n \"updated\": 1482188979\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ "210" @@ -931,7 +562,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:27 GMT" + "Mon, 19 Dec 2016 23:09:40 GMT" ], "Pragma": [ "no-cache" @@ -940,13 +571,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "7bbb7e32-8623-4b96-86dc-adc648b71df0" + "35505647-cca0-40bc-aa91-9b5b35ae644c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -966,8 +597,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretsTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretsTest.json index ef3d3a4d4441..3d003504d254 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretsTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultListSecretsTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//secrets/listsecrettest0?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2xpc3RzZWNyZXR0ZXN0MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/listsecrettest0?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHRlc3QwP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "63" ], "x-ms-client-request-id": [ - "1b6db174-e93c-45b3-aa60-d1ccc851258f" + "d5485a29-cb69-4e4f-87b1-757e9c0bd1d1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecrettest0/2d2f781bff174fa5b0c5abda67c471a9\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082128,\r\n \"updated\": 1477082128\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecrettest0/c735224780b44041aa55358b6aa4389a\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189047,\r\n \"updated\": 1482189047\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "225" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:28 GMT" + "Mon, 19 Dec 2016 23:10:46 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ec991e98-db85-4f39-b060-c8401a1a6852" + "e991212a-12cd-4dde-919a-818fc9f5647a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/listsecrettest1?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2xpc3RzZWNyZXR0ZXN0MT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/listsecrettest1?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHRlc3QxP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\"\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "63" ], "x-ms-client-request-id": [ - "9f3a19af-ed97-49cd-a321-059b89ddcf7f" + "81178823-07f9-4602-8b79-4b70c172eabf" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecrettest1/b4b0e7f53b7c409bbc3a374fde6a42cc\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082129,\r\n \"updated\": 1477082129\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecrettest1/f10d281c94354ee2a089228117ae986b\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189047,\r\n \"updated\": 1482189047\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "225" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:28 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "dc9387d3-061b-490d-bf67-9a8c6b172da3" + "0270c0dc-c38e-4b91-9db6-925d018d2ec3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,8 +141,8 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/listsecrettest2?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2xpc3RzZWNyZXR0ZXN0Mj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/listsecrettest2?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvbGlzdHNlY3JldHRlc3QyP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\"\r\n}", "RequestHeaders": { @@ -151,16 +153,17 @@ "63" ], "x-ms-client-request-id": [ - "1ef7a94c-e9b4-4fa5-980e-4aa316c3b3e4" + "3e679441-60f7-48c3-bec4-07d1a75d12d0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecrettest2/dafb3bd5d3d749f491e1d547150284a1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082129,\r\n \"updated\": 1477082129\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecrettest2/96157ee62b2845fab6f57de806782617\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189048,\r\n \"updated\": 1482189048\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "225" @@ -175,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:28 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -184,13 +187,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "2e83a8f1-2632-4241-979f-073652b31a7d" + "03847e47-2ab7-486f-a68d-4ba0f4efe39b" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -208,22 +211,23 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets?maxresults=1&api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzP21heHJlc3VsdHM9MSZhcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets?maxresults=1&api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHM/bWF4cmVzdWx0cz0xJmFwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6819ec9d-0d6b-4ad5-8502-0c198c89de8b" + "714b9314-4cd0-4167-b7db-91f2d23e4aa6" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecrettest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082128,\r\n \"updated\": 1477082128\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREVoTURBd01ESTRJVEl3TVRZdE1UQXRNakZVTVRjNk1UZzZNemN1T1RFME9UQXhNbG9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecrettest0\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189047,\r\n \"updated\": 1482189047\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREVoTURBd01ESTRJVEl3TVRZdE1USXRNVGxVTWpNNk1UQTZORFV1T0RneE9ERXhNRm9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "463" @@ -238,7 +242,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -247,13 +251,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "4e98d4d6-9679-4415-8006-5a3bb732fd01" + "4bf99215-c251-4ad7-9b7e-f644b4ff16ac" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -271,22 +275,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREVoTURBd01ESTRJVEl3TVRZdE1UQXRNakZVTVRjNk1UZzZNemN1T1RFME9UQXhNbG9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE9DRk5SRUYzVFVSSmVVbFlUbXhaTTBwc1pFTTVUVk5XVGxWVk1GWkVWV3RXVlZaRlZsUldSRVZvVFVSQmQwMUVTVFJKVkVsM1RWUlpkRTFVUVhSTmFrWlZUVlJqTmsxVVp6Wk5lbU4xVDFSRk1FOVVRWGhOYkc5b0lpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREVoTURBd01ESTRJVEl3TVRZdE1USXRNVGxVTWpNNk1UQTZORFV1T0RneE9ERXhNRm9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE9DRk5SRUYzVFVSSmVVbFlUbXhaTTBwc1pFTTVUVk5XVGxWVk1GWkVWV3RXVlZaRlZsUldSRVZvVFVSQmQwMUVTVFJKVkVsM1RWUlpkRTFVU1hSTlZHeFZUV3BOTmsxVVFUWk9SRlYxVDBSbmVFOUVSWGhOUm05b0lpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d738f295-973b-4daa-bc85-2f0935ab36f7" + "b5b3b28e-0f72-4864-a8b6-bedb519f6be7" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecrettest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082129,\r\n \"updated\": 1477082129\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREloTURBd01ESTRJVEl3TVRZdE1UQXRNakZVTVRjNk1UZzZNemd1TXpRd09USTBNMW9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecrettest1\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189047,\r\n \"updated\": 1482189047\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREloTURBd01ESTRJVEl3TVRZdE1USXRNVGxVTWpNNk1UQTZORFl1TURRek9ESXhNRm9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "463" @@ -301,7 +306,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -310,13 +315,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "f1a13142-077f-4ad9-98d7-ad0d43a6e598" + "3965b012-de2e-431a-894a-5b3088a015fb" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -334,22 +339,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREloTURBd01ESTRJVEl3TVRZdE1UQXRNakZVTVRjNk1UZzZNemd1TXpRd09USTBNMW9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE9DRk5SRUYzVFVSSmVVbFlUbXhaTTBwc1pFTTVUVk5XVGxWVk1GWkVWV3RXVlZaRlZsUldSRWxvVFVSQmQwMUVTVFJKVkVsM1RWUlpkRTFVUVhSTmFrWlZUVlJqTmsxVVp6Wk5lbWQxVFhwUmQwOVVTVEJOTVc5b0lpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREloTURBd01ESTRJVEl3TVRZdE1USXRNVGxVTWpNNk1UQTZORFl1TURRek9ESXhNRm9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNE9DRk5SRUYzVFVSSmVVbFlUbXhaTTBwc1pFTTVUVk5XVGxWVk1GWkVWV3RXVlZaRlZsUldSRWxvVFVSQmQwMUVTVFJKVkVsM1RWUlpkRTFVU1hSTlZHeFZUV3BOTmsxVVFUWk9SRmwxVFVSUmVrOUVTWGhOUm05b0lpd2lWR0Z5WjJWMFRHOWpZWFJwYjI0aU9qQjkmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fa2bae43-ca02-4f8a-9f7f-2aaca99808e7" + "8a1e9934-5b72-45cc-b2ba-5d5c8086314e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecrettest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082129,\r\n \"updated\": 1477082129\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXdMVEl4VkRBeU9qQTVPakkzTGpBMk16UTROamRhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plainText\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecrettest2\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482189048,\r\n \"updated\": 1482189048\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXlMVEUyVkRBeE9qSTRPakU1TGpRNE9URTNOREZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "481" @@ -364,7 +370,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -373,13 +379,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "2383b0b3-0171-4a60-b32c-b5da25a96c2c" + "16922540-0a7d-4c21-957d-8c416b911dc1" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -397,25 +403,26 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXdMVEl4VkRBeU9qQTVPakkzTGpBMk16UTROamRhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFeE1EQWhUVVJCZDAxRVNUVkpXRTVzV1ROS2JHUkRPVTFUVms1VlZUQldSRlZyVmxWV2ExWlRWVEJzVUZSc1RsVlNWazVWU1ZSQmQwMUVRWGxQUTBWNVRVUkZNa3hVUlhkTVZFbDRWa1JCZVU5cVFUVlBha2t6VEdwQk1rMTZVVFJPYW1SaFNWRXRMU0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VSVRBd01EQXlPQ0V5TURFMkxURXlMVEUyVkRBeE9qSTRPakU1TGpRNE9URTNOREZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFeE1EQWhUVVJCZDAxRVNUVkpXRTVzV1ROS2JHUkRPVTFUVms1VlZUQldSRlZyVmxWV2ExWlRWVEJzVUZSc1RsVlNWazVWU1ZSQmQwMUVRWGxQUTBWNVRVUkZNa3hVUlhsTVZFVXlWa1JCZUU5cVNUUlBha1UxVEdwUk5FOVVSVE5PUkVaaFNWRXRMU0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cd637e88-725a-4d41-a129-3065d9e3a79e" + "bf7bd7b4-49d7-4a6a-9e69-6ad873b28fa1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/listsecretversionstest\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082067,\r\n \"updated\": 1477082067\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJMUlYTmxZM0psZEM5TVNWTlVWa1ZTVTBsUFRsTkRSVkpVTURFaE1EQXdNREk0SVRrNU9Ua3RNVEl0TXpGVU1qTTZOVGs2TlRrdU9UazVPVGs1T1ZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/listsecretversionstest\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188979,\r\n \"updated\": 1482188979\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5NiFNREF3TURJM0lYTmxZM0psZEM5TVQwNUhVMFZNUmxOSlIwNUZSRU5GVWxRd01TRXdNREF3TWpnaE9UazVPUzB4TWkwek1WUXlNem8xT1RvMU9TNDVPVGs1T1RrNVdpRS0iLCJUYXJnZXRMb2NhdGlvbiI6MH0&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "450" + "455" ], "Content-Type": [ "application/json; charset=utf-8" @@ -427,7 +434,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -436,13 +443,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "8702df09-adcd-4ea4-8ff8-5bacfd5e598f" + "44a3290d-91e7-479f-8e38-e9f50ad82690" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -460,22 +467,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJMUlYTmxZM0psZEM5TVNWTlVWa1ZTVTBsUFRsTkRSVkpVTURFaE1EQXdNREk0SVRrNU9Ua3RNVEl0TXpGVU1qTTZOVGs2TlRrdU9UazVPVGs1T1ZvaCIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1", - "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNU1pRk5SRUYzVFVSSk1VbFlUbXhaTTBwc1pFTTVUVk5XVGxWV2ExWlRWVEJzVUZSc1RrUlNWa3BWVFVSRmFFMUVRWGROUkVrMFNWUnJOVTlVYTNSTlZFbDBUWHBHVlUxcVRUWk9WR3MyVGxScmRVOVVhelZQVkdzMVQxWnZhQ0lzSWxSaGNtZGxkRXh2WTJGMGFXOXVJam93ZlEmbWF4cmVzdWx0cz0x", + "RequestUri": "/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5NiFNREF3TURJM0lYTmxZM0psZEM5TVQwNUhVMFZNUmxOSlIwNUZSRU5GVWxRd01TRXdNREF3TWpnaE9UazVPUzB4TWkwek1WUXlNem8xT1RvMU9TNDVPVGs1T1RrNVdpRS0iLCJUYXJnZXRMb2NhdGlvbiI6MH0&maxresults=1", + "EncodedRequestUri": "L3NlY3JldHM/YXBpLXZlcnNpb249MjAxNi0xMC0wMSYkc2tpcHRva2VuPWV5Sk9aWGgwVFdGeWEyVnlJam9pTWlFNU5pRk5SRUYzVFVSSk0wbFlUbXhaTTBwc1pFTTVUVlF3TlVoVk1GWk5VbXhPU2xJd05VWlNSVTVHVld4UmQwMVRSWGROUkVGM1RXcG5hRTlVYXpWUFV6QjRUV2t3ZWsxV1VYbE5lbTh4VDFSdk1VOVRORFZQVkdzMVQxUnJOVmRwUlMwaUxDSlVZWEpuWlhSTWIyTmhkR2x2YmlJNk1IMCZtYXhyZXN1bHRzPTE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7162a829-cabd-47a1-87f8-0db00a67abc1" + "ceaf8a90-cb3e-4e92-b1dc-b52f88344cad" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plaintext\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/secretwithextendedattribs\",\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1477125282,\r\n \"created\": 1477082082,\r\n \"updated\": 1477082082\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1020.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklYTmxZM0psZEM5VFJVeEdVMGxIVGtWRVEwVlNWREF4SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"contentType\": \"plaintext\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/secretwithextendedattribs\",\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1482232197,\r\n \"created\": 1482188997,\r\n \"updated\": 1482188997\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://testvault1021.vault.azure.net:443/secrets?api-version=2016-10-01&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE5MiFNREF3TURJeklYTmxZM0psZEM5VFJVeEdVMGxIVGtWRVEwVlNWREF4SVRBd01EQXlPQ0U1T1RrNUxURXlMVE14VkRJek9qVTVPalU1TGprNU9UazVPVGxhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ&maxresults=1\"\r\n}", "ResponseHeaders": { "Content-Length": [ "528" @@ -490,7 +498,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -499,13 +507,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "afc17af0-f804-407e-adf4-416a8b6130f4" + "775e4615-7370-471f-bf9f-05f816835276" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -529,13 +537,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "060c2b8b-ba3c-453e-96c1-dffec1e5e490" + "5a86fc82-2aef-428e-947c-53d29ebe9267" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": null\r\n}", @@ -553,7 +562,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:29 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -562,13 +571,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "20f58fad-7061-4a0b-bba9-e62686393f2f" + "f325d330-b6d6-47d5-a44b-c966de01c795" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -588,8 +597,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateDeleteRecoverPurgeTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateDeleteRecoverPurgeTest.json new file mode 100644 index 000000000000..d1f0e85145ee --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateDeleteRecoverPurgeTest.json @@ -0,0 +1,1482 @@ +{ + "Entries": [ + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "x-ms-client-request-id": [ + "92faf20d-5370-427c-8161-2eb3448e7bb4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "233" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "edabe0cd-a252-4f68-ae81-b240ba2ce4dd" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "acb39d41-cd9d-4b94-911e-6b5452c9c0a3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/SecretCreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186447,\r\n \"scheduledPurgeDate\": 1489962447,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "196cdd8c-970c-4e3b-a5ac-8c9c522ffe1e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70620793-907e-4198-9270-1b0903531c81" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/SecretCreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186497,\r\n \"scheduledPurgeDate\": 1489962497,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "14f166d0-6a53-4a26-8edb-556f7ff57ae5" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ad286506-c4eb-49aa-beef-88736bb35b70" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5c629626-b305-4730-98ae-2c0dc458989e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd4f58cd-969c-461a-8c70-0832bfd80c32" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "37d177ec-2fb1-4d5c-9c4b-579439b8c144" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ed9bfb1-c831-40af-b27a-7093d3918feb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "cccacc6c-0c54-4421-8632-b8be3f7f0fd8" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f4640f3b-7c25-4c09-b7df-b015f0d1178a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "272bad70-9dd1-447e-81c6-41ab7f102f94" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1c739991-6686-44a2-bdce-126099547178" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "233" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "5ae060f4-f7ba-4c9f-ae8b-1519aa3fe270" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "56a553bf-52b5-4088-b2c5-294f5c70edca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "233" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "6096b5a8-ebab-49e5-8298-6b048ab2c7e2" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef01a165-f4d0-4b20-808e-28492332fc64" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "233" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "cecf0b96-a17d-4f7d-bcdd-64c88045c09b" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "44d20c2e-3636-4fe8-8fae-7751e1e161e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "2895b1cd-a3f5-470f-84bf-ea3ddbdbc81a" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "47375c24-c6d5-4c43-9f48-17f1a1546d0c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "4e01041e-e1a7-4390-9bf4-bbc1cbbd029a" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "83dd7ec7-d5c3-4ad4-a98c-6f7da6fd532b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "9736d605-b3d6-453a-98e6-b3e457c7a0fc" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a7a7f511-e703-4d2a-8153-b9b32f74808a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "c924a2e1-2f22-4a8c-a341-cfb49dfdb839" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b013c21a-070a-47de-b849-8476b4a221ce" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/SecretCreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186447,\r\n \"scheduledPurgeDate\": 1489962447,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "729d9f97-4ae3-4954-b9ad-185e5b11e681" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e4b9843-5d12-4f7a-867c-f6242820e3e7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "0adca316-ff3a-45a2-a34a-e426889bec3e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e6769db4-f84b-42be-b2cd-ce85b833c9ef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "9ef5da73-38ea-4611-be89-242f147df50b" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "097a97db-d229-4e4b-b86f-c93010e2f324" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "24dc2185-f50a-4f21-9a8c-b36a66d364c8" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8138cca-0864-483b-a7bb-4f8f37c0495a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedsecrets/SecretCreateDeleteRecoverPurgeTest\",\r\n \"deletedDate\": 1482186497,\r\n \"scheduledPurgeDate\": 1489962497,\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "6c77899d-d3df-4909-a914-2dcab2d4c99e" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "da3a8429-5c82-4d51-9b1d-eeb3748dbd26" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Deleted Secret not found: SecretCreateDeleteRecoverPurgeTest\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "bcf5112a-b245-4111-88a2-752f74e54f13" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest/recover?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3QvcmVjb3Zlcj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "321c5c9f-9410-491a-b671-222fe445b632" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "209" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:27:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "8847e5c0-d635-476c-82fb-173c8cc263ac" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvU2VjcmV0Q3JlYXRlRGVsZXRlUmVjb3ZlclB1cmdlVGVzdC83MzVjYzlkMmM3MTc0MmFiOTllODhmMmRlYTJiNWFmYT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8acddbf3-0416-4da5-a726-7ee14a6d9d54" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/secrets/SecretCreateDeleteRecoverPurgeTest/735cc9d2c71742ab99e88f2dea2b5afa\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482186447,\r\n \"updated\": 1482186447\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "233" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "cd0e592d-8246-4183-a5fc-bc750fefd26b" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/deletedsecrets/SecretCreateDeleteRecoverPurgeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2RlbGV0ZWRzZWNyZXRzL1NlY3JldENyZWF0ZURlbGV0ZVJlY292ZXJQdXJnZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "06f16bba-1a58-4e67-a723-156ad0711ec9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 19 Dec 2016 22:28:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-region": [ + "South Central US" + ], + "x-ms-request-id": [ + "67d2e3d5-94fe-4bff-a7cb-dd7afd78e197" + ], + "x-ms-keyvault-service-version": [ + "1.0.0.1066" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "Strict-Transport-Security": [ + "max-age=31536000;includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", + "KeyName": "sdktestkey", + "KeyVersion": "cf7c860fb9db4564a1389db973a52436" + } +} \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateUpdateDeleteTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateUpdateDeleteTest.json index f9179abaa6a8..92824a2fb576 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateUpdateDeleteTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSecretCreateUpdateDeleteTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//secrets/crpsecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2NycHNlY3JldD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/crpsecret?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue\"\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "32" ], "x-ms-client-request-id": [ - "dff6b390-9538-4d26-87c5-05f66fbf748e" + "37c727ea-4a95-4be9-aa5d-85ccedb3c047" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/crpsecret/76d72d4a8c3a49c986bf695f81170994\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082070\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/crpsecret/fc29c692e8a54be89ef5fbd76426113d\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188982,\r\n \"updated\": 1482188982\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "193" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:42 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "612cbaa6-b2eb-4c87-8f3a-a0e3957aafe9" + "fb387cdc-a729-4efa-8eb7-10ea841ae4a3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/crpsecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2NycHNlY3JldD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/crpsecret?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"value\": \"mysecretvalue2\"\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "33" ], "x-ms-client-request-id": [ - "68e6fb33-258c-4725-9e0c-8f8693333506" + "532bbed7-8ad8-4249-ba16-42b1820ebfc5" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue2\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/crpsecret/5707da11484a4fbfb4b8342ebf6f63a8\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082070\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue2\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/crpsecret/42b3fc0104144687aa266a68d8fe039c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188982,\r\n \"updated\": 1482188982\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "194" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:42 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "f190e59c-88ef-4193-a4cd-bac7a72fb309" + "b98df668-5e1b-4599-8ec3-65262a1b178f" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,22 +141,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/crpsecret/76d72d4a8c3a49c986bf695f81170994?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0Lzc2ZDcyZDRhOGMzYTQ5Yzk4NmJmNjk1ZjgxMTcwOTk0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/secrets/crpsecret/fc29c692e8a54be89ef5fbd76426113d?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0L2ZjMjljNjkyZThhNTRiZTg5ZWY1ZmJkNzY0MjYxMTNkP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "77322d70-f408-4139-a045-35eaad1f44da" + "3ddbb70a-d5cb-4192-b531-6743015d10a9" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/crpsecret/76d72d4a8c3a49c986bf695f81170994\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082070\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/crpsecret/fc29c692e8a54be89ef5fbd76426113d\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188982,\r\n \"updated\": 1482188982\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "193" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:42 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "fae18875-4d24-4fab-97b6-f084c37276fc" + "d51ae96a-5db9-426f-8f0c-f284a73471d3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -202,22 +205,23 @@ "StatusCode": 200 }, { - "RequestUri": "/secrets/crpsecret/5707da11484a4fbfb4b8342ebf6f63a8?api-version=2016-10-01", - "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0LzU3MDdkYTExNDg0YTRmYmZiNGI4MzQyZWJmNmY2M2E4P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/secrets/crpsecret/42b3fc0104144687aa266a68d8fe039c?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0LzQyYjNmYzAxMDQxNDQ2ODdhYTI2NmE2OGQ4ZmUwMzljP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2b491717-1e02-4764-8aed-e84e4beb6670" + "c196dee1-9191-48fa-bec3-0385d2912933" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue2\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/crpsecret/5707da11484a4fbfb4b8342ebf6f63a8\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082070\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue2\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/crpsecret/42b3fc0104144687aa266a68d8fe039c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188982,\r\n \"updated\": 1482188982\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "194" @@ -232,7 +236,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:42 GMT" ], "Pragma": [ "no-cache" @@ -241,13 +245,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "43a8778a-d1cd-4783-826e-2660ea642021" + "2821608f-bf8f-4019-b0a2-1692cbb3bde5" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -265,22 +269,23 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/crpsecret/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2NycHNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/crpsecret/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0Lz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b9454fd1-2579-414a-adc6-7e37f7dc8634" + "c6ee2317-a7a8-4211-bc28-586c80798e7b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue2\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/crpsecret/5707da11484a4fbfb4b8342ebf6f63a8\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082070\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue2\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/crpsecret/42b3fc0104144687aa266a68d8fe039c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188982,\r\n \"updated\": 1482188982\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "194" @@ -295,7 +300,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:42 GMT" ], "Pragma": [ "no-cache" @@ -304,13 +309,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "144a1e3c-9d45-480b-a995-a4ad2f081347" + "0ede554d-16bc-4ead-8513-d9ebd671df66" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -328,19 +333,20 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/crpsecret/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2NycHNlY3JldC8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/crpsecret/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0Lz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "74e2d7ed-8f4c-483d-b2d4-72bcd2f3ba47" + "3052e22c-57a3-40b0-a587-684a935714cd" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"SecretNotFound\",\r\n \"message\": \"Secret not found: crpsecret\"\r\n }\r\n}", @@ -358,7 +364,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:42 GMT" ], "Pragma": [ "no-cache" @@ -367,13 +373,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ae638004-784a-4437-9cd0-ffb7de4d1c28" + "ff927f84-3215-4108-8043-e06d5edbcd0d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -391,22 +397,23 @@ "StatusCode": 404 }, { - "RequestUri": "//secrets/crpsecret?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL2NycHNlY3JldD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/secrets/crpsecret?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvY3Jwc2VjcmV0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "abaa22db-b20d-43ca-8ddd-4dd71042a1d3" + "7967e66c-7e48-4f4f-8d5f-d070c7411a93" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/crpsecret/5707da11484a4fbfb4b8342ebf6f63a8\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082070,\r\n \"updated\": 1477082070\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/crpsecret/42b3fc0104144687aa266a68d8fe039c\",\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188982,\r\n \"updated\": 1482188982\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "169" @@ -421,7 +428,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:29 GMT" + "Mon, 19 Dec 2016 23:09:42 GMT" ], "Pragma": [ "no-cache" @@ -430,13 +437,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "d181e131-4274-44a4-8514-63f4b7a69836" + "03cbf7a3-f654-4643-8067-cb50448c8169" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -456,8 +463,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS256Test.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS256Test.json index 60f1bb70542c..c49f6a865a4b 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS256Test.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS256Test.json @@ -4,7 +4,7 @@ "RequestUri": "/keys/sdktestkey//sign?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vc2lnbj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RS256\",\r\n \"value\": \"Enar-zi-e2wIXx_cBKQUh4JvcNPBxxjB9T5S9AS65eQ\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RS256\",\r\n \"value\": \"PS3iee-oQeI_4MQ7uZ93voMkEbOi8f0bQHqUoXYR-nQ\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,16 +13,17 @@ "81" ], "x-ms-client-request-id": [ - "4d28d6c6-2940-47d7-9097-81f7853165d0" + "4900ace8-eedb-405e-90f6-976d4df0a878" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"value\": \"pGmhUYkAjqOU7kCC3mRcjSfV4lcA9KmJuxYAvzN_2hrXm8kaXQnM9WX_NcJtnm836dS-e1fmsz7NbwW042m0bgti3PV7et6ywYz5Q1Z3tLOlJypV0xT3D65PTk38i4lRDIA02r3z2mt53L4nvWYRGaa44IjtSSFLmIGKGa-tArQxdUwyAiddoAgWoFUHl60ymsr9b5UdQ49h_uIWXr5QlNrf3p49sFhB6qAGBAAu5BF9u4JFhTjO-XTjGwzEJs4zEulXqWiItdCW-y1Rs5CCVFlcPVdSBO_j2Xwj2gFEN9qlZIjYqmu1dfNXWAevlvAKjG2v1qSI1C9HP5Vmgbp79g\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/0a9e36203d224dd285d933e17478c870\",\r\n \"value\": \"eU_CgaqYt0QBtj10EToONfruRhcT4JSARPesvU07tgT0RFb9KpIFqpN-3h_Tl-s-fGOTJxG8aZc5s03TgJAYYOmpWNaSk5-ktT2b-iZWY2srUZON9uikIC03ZXZenPPdMcjkJPWh9Gk1LW39DYqaPkASR4hABOW7D6ErT0n1EqfB6-9KJPk31cqhiePhERcBcqrLKoiBDFJBrpeH0aq1Rg56DZB6ZZZXcl3S75_z6eYDNt0Z2y5ptj4JQJab7tqiBV8EZzShow4uhXaWkkEdmyahudSnhrYewDKjU39pPbqtVT0GiVgUOiTu0Q0lACYOTo1vx4W7m6Cq7ytLIct1MA\"\r\n}", "ResponseHeaders": { "Content-Length": [ "449" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:30 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "3ab54bba-2566-4b11-9823-03b4ca7cec2d" + "ec598aeb-1026-475e-bf9d-0a868dca4345" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37/verify?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wMzg5MzE3Y2IyYzg0YjcyOWFmZmE5YzhmMTAxY2UzNy92ZXJpZnk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/sdktestkey/0a9e36203d224dd285d933e17478c870/verify?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wYTllMzYyMDNkMjI0ZGQyODVkOTMzZTE3NDc4Yzg3MC92ZXJpZnk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RS256\",\r\n \"digest\": \"Enar-zi-e2wIXx_cBKQUh4JvcNPBxxjB9T5S9AS65eQ\",\r\n \"value\": \"pGmhUYkAjqOU7kCC3mRcjSfV4lcA9KmJuxYAvzN_2hrXm8kaXQnM9WX_NcJtnm836dS-e1fmsz7NbwW042m0bgti3PV7et6ywYz5Q1Z3tLOlJypV0xT3D65PTk38i4lRDIA02r3z2mt53L4nvWYRGaa44IjtSSFLmIGKGa-tArQxdUwyAiddoAgWoFUHl60ymsr9b5UdQ49h_uIWXr5QlNrf3p49sFhB6qAGBAAu5BF9u4JFhTjO-XTjGwzEJs4zEulXqWiItdCW-y1Rs5CCVFlcPVdSBO_j2Xwj2gFEN9qlZIjYqmu1dfNXWAevlvAKjG2v1qSI1C9HP5Vmgbp79g\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RS256\",\r\n \"digest\": \"PS3iee-oQeI_4MQ7uZ93voMkEbOi8f0bQHqUoXYR-nQ\",\r\n \"value\": \"eU_CgaqYt0QBtj10EToONfruRhcT4JSARPesvU07tgT0RFb9KpIFqpN-3h_Tl-s-fGOTJxG8aZc5s03TgJAYYOmpWNaSk5-ktT2b-iZWY2srUZON9uikIC03ZXZenPPdMcjkJPWh9Gk1LW39DYqaPkASR4hABOW7D6ErT0n1EqfB6-9KJPk31cqhiePhERcBcqrLKoiBDFJBrpeH0aq1Rg56DZB6ZZZXcl3S75_z6eYDNt0Z2y5ptj4JQJab7tqiBV8EZzShow4uhXaWkkEdmyahudSnhrYewDKjU39pPbqtVT0GiVgUOiTu0Q0lACYOTo1vx4W7m6Cq7ytLIct1MA\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,13 +83,14 @@ "440" ], "x-ms-client-request-id": [ - "75428da8-0909-4537-af03-97efea9321c5" + "5a9fdc5d-c2a3-4fd6-a3fb-07c626eb873a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"value\": true\r\n}", @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:30 GMT" + "Mon, 19 Dec 2016 23:10:47 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a5debd76-e11e-40d1-b7bf-297dfef84642" + "fe37e3ec-a11e-4190-af9e-3c26aaa6d415" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -141,9 +143,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "RandomBytes": "qsvPwSnlNShK69wgxVj28zRScq88AdOFUAIhJAtMxqw=" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155", + "RandomBytes": "ikLmMsdHlxI/phuf7TEMdiaT5YTjq5E7/D7myJXzwHk=" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS384Test.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS384Test.json index e63ac69fd2b1..7eb8a55d6a74 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS384Test.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS384Test.json @@ -4,7 +4,7 @@ "RequestUri": "/keys/sdktestkey//sign?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vc2lnbj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RS384\",\r\n \"value\": \"vMYMRoEC20Vkzmv2ZmgsW1z6dGxv48cZ9YLxzzs5SrlVtUdUyAPVdCzpcCjz7WXH\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RS384\",\r\n \"value\": \"1d_-1POSHNo8Q8NnbAmRIgWdQITWEWhPPbA8XcSW3c-FGVud19050jWAXoNtgcpX\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,16 +13,17 @@ "102" ], "x-ms-client-request-id": [ - "f2cfc6be-5f11-46ec-b9c2-fe8bc616f29b" + "eaa9f71f-f392-4553-89cd-a2199ca3337f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4\",\r\n \"value\": \"PtEWyWETCyjVmN1_IMIU77xjz5MAD8a_nNugVqMVwh7DjMkVGW3IWGbLFAyZmYo0mrD5W3Y7tzTKEnwT4plKxzTzC3arCMM_MnQW_C1cpLA8vRpjHoTNcOrf-mGC36w23_ZA31wVUo4L4hJ3PhLhy3P5rFYYvzESeEJZ7dYXFMbBBxTKWkl7MdaMAmfCOqQj-gc76b8Bex2jngukwXUJcD2u8OKkjBA_WHlUojcTgHTo1cIsoKTW0qAB9oEG0aMJ5f1AVaZbFm5uAdXYVpiOEYbt0NaLswSxnfK5lCp-KIzerNra_JotvJ9hjTGaJ-6PU8fc2oIRpA8qEVPaKtcUXg\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155\",\r\n \"value\": \"LbT82MiaLwJBcmOFV2h30ti9hy4ewcr6xL29TV11XzXctfyPSBy-huthxLsfRUGqvn_bYIQS0cbTnD_7DUjPsFePSNxT3TG3rQK-WCszcNqyqmrhx35b4fMSTlXe2lAvTsFp4_BSuN9wnob6cHZeIYev7v1nLkD67G0jwwv0tOFBdFV7nhZTlXePfLPp02yvaesmjnq925619-1OOKNOicYij8i4KawKoT5aOG34vYpr8esMuxspD7XvY5E_LUWhdYRp6hcgY8sR6ML0BEfyjuPUl6cjMXhHWaUazInGhsD12xu70Ae1fNPrXguXK8prUkTOsXILXgyL8cDhj6bpMw\"\r\n}", "ResponseHeaders": { "Content-Length": [ "449" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:03 GMT" + "Mon, 19 Dec 2016 23:09:12 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "976f4533-fa16-43cc-b246-b197f3415747" + "0c05b13a-2b42-4d6b-aaa2-6ea132e92da6" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4/verify?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9iNjY5YzhiZjQ3YTk0MGQ4YWM4MThjMzgzMWZjMTFiNC92ZXJpZnk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155/verify?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS80ZWI2ODQ5MmI1ZjY0MjFlODM1ZDk2MWFkMmJlMzE1NS92ZXJpZnk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RS384\",\r\n \"digest\": \"vMYMRoEC20Vkzmv2ZmgsW1z6dGxv48cZ9YLxzzs5SrlVtUdUyAPVdCzpcCjz7WXH\",\r\n \"value\": \"PtEWyWETCyjVmN1_IMIU77xjz5MAD8a_nNugVqMVwh7DjMkVGW3IWGbLFAyZmYo0mrD5W3Y7tzTKEnwT4plKxzTzC3arCMM_MnQW_C1cpLA8vRpjHoTNcOrf-mGC36w23_ZA31wVUo4L4hJ3PhLhy3P5rFYYvzESeEJZ7dYXFMbBBxTKWkl7MdaMAmfCOqQj-gc76b8Bex2jngukwXUJcD2u8OKkjBA_WHlUojcTgHTo1cIsoKTW0qAB9oEG0aMJ5f1AVaZbFm5uAdXYVpiOEYbt0NaLswSxnfK5lCp-KIzerNra_JotvJ9hjTGaJ-6PU8fc2oIRpA8qEVPaKtcUXg\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RS384\",\r\n \"digest\": \"1d_-1POSHNo8Q8NnbAmRIgWdQITWEWhPPbA8XcSW3c-FGVud19050jWAXoNtgcpX\",\r\n \"value\": \"LbT82MiaLwJBcmOFV2h30ti9hy4ewcr6xL29TV11XzXctfyPSBy-huthxLsfRUGqvn_bYIQS0cbTnD_7DUjPsFePSNxT3TG3rQK-WCszcNqyqmrhx35b4fMSTlXe2lAvTsFp4_BSuN9wnob6cHZeIYev7v1nLkD67G0jwwv0tOFBdFV7nhZTlXePfLPp02yvaesmjnq925619-1OOKNOicYij8i4KawKoT5aOG34vYpr8esMuxspD7XvY5E_LUWhdYRp6hcgY8sR6ML0BEfyjuPUl6cjMXhHWaUazInGhsD12xu70Ae1fNPrXguXK8prUkTOsXILXgyL8cDhj6bpMw\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,13 +83,14 @@ "461" ], "x-ms-client-request-id": [ - "14261ec4-5e04-4d08-9894-1860154b046a" + "f5224499-c045-4b8c-b8be-f7d5fcc68b36" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"value\": true\r\n}", @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:03 GMT" + "Mon, 19 Dec 2016 23:09:12 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "af784ac3-8573-4f34-9519-6b183d2c7caa" + "ed35edc9-d69b-4dbf-b070-0dd1271fffa3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -141,9 +143,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "RandomBytes": "FJv5/Yggv1vzRqmNv5nhN/QZ1oUZQoTnVgWUj52lxygRv4RGeSoj5DHwwoKj2cwjBILNF9O9Y9EXEaeCjC+9Tg==" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155", + "RandomBytes": "1pJAH1PS+UoGIYh5oQa/u74vBSVC5vnoeI0cpomdkSDcxc6x+d8wEl62IuHFAuGW0T/xJmW+s++ZV6bFtlLAaA==" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS512Test.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS512Test.json index d66f763e37c2..04eeb79565c4 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS512Test.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultSignVerifyRS512Test.json @@ -4,7 +4,7 @@ "RequestUri": "/keys/sdktestkey//sign?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vc2lnbj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RS512\",\r\n \"value\": \"YzHWQin2Gvrc8YEtB3t8Q3aMnWOwMixChq2AsC7htzERhKxxv9NP-z7zCk03RVuLf4yYLPWT2fnl0sb5YWoEFw\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RS512\",\r\n \"value\": \"sQV0Lmiz3qANzbFmfHdgpv-BWpiwOFZQzgkMLOoGhSKRszaTdtW_22ui5em1oKY0q36SkY5nJpkL8wCRQk8GvA\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,16 +13,17 @@ "124" ], "x-ms-client-request-id": [ - "d1bf6928-e83d-435a-a556-f33ca1d673c8" + "b0e74068-c329-4f8d-b814-b9ed49b02847" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4\",\r\n \"value\": \"bj_cUq-_90wu6pWhEmIz7wRhRQY1G8P_ALkQIWjN6CdTJtWOnOY-upASAfZ4epnvXXQzmoZ2U1Y5UxKXhQl7L21LFtbFK53wkUmxWnRGSzY2yZP1K3lzbbjMdwffycIKzmKlGAHkM7p3RYl6V686_etN_YyVRfqxP9Ax_zmgCASbKvlmdA28w5H4kKw3qKMbZGAo3eqxbAnt1CGkZzW5FjchB5KZtQClpTNmuy_aYuizaWJvMiZ7dAm9c9bQ3Bhh9WgThDKD_PAZXVhwgwQnpzFss_PnbPlpSaOGyQ7xyYx4wL85yaizRdIeYMPw2W0hDdvdmnlu5rmK8_PBRVYtVQ\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155\",\r\n \"value\": \"H0NfAOJqwqbCnYA3fULsAFFu4N1RUqGjlZ6PQ4VicA0bXnvgG8gJ4dj7cz6VzDdw9e2PP_NtXMsX3eOnyFwS_CVEXncnoMygumSY0s6zqA-a5bylOmOgIlh2tcLnn52z3b7YOaDLZLcqOQBHuOfM7DEc4z2wZ2_9qbdR8wGjvpPoX1mP5JVd373iCehUA7wM52nYngVfEwmZbzubloDdN1RMI7KWeGKStAEDFPFDVa6IJCMJyt4p94lYP2sAr8CnpOi2-i6lMnK_UAgJkTJvqduBcWMdYZ8X0j7-adIJzg33TeeEv2VMjowUMNiL9MVFtUAh8vxZrSfOYmj_vEs5EA\"\r\n}", "ResponseHeaders": { "Content-Length": [ "449" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:04 GMT" + "Mon, 19 Dec 2016 23:09:13 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "998f255f-7537-43a0-aa18-48409b6c02ad" + "32c9b524-dcf4-45f1-bfbb-2a1c7369b003" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4/verify?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9iNjY5YzhiZjQ3YTk0MGQ4YWM4MThjMzgzMWZjMTFiNC92ZXJpZnk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155/verify?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS80ZWI2ODQ5MmI1ZjY0MjFlODM1ZDk2MWFkMmJlMzE1NS92ZXJpZnk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RS512\",\r\n \"digest\": \"YzHWQin2Gvrc8YEtB3t8Q3aMnWOwMixChq2AsC7htzERhKxxv9NP-z7zCk03RVuLf4yYLPWT2fnl0sb5YWoEFw\",\r\n \"value\": \"bj_cUq-_90wu6pWhEmIz7wRhRQY1G8P_ALkQIWjN6CdTJtWOnOY-upASAfZ4epnvXXQzmoZ2U1Y5UxKXhQl7L21LFtbFK53wkUmxWnRGSzY2yZP1K3lzbbjMdwffycIKzmKlGAHkM7p3RYl6V686_etN_YyVRfqxP9Ax_zmgCASbKvlmdA28w5H4kKw3qKMbZGAo3eqxbAnt1CGkZzW5FjchB5KZtQClpTNmuy_aYuizaWJvMiZ7dAm9c9bQ3Bhh9WgThDKD_PAZXVhwgwQnpzFss_PnbPlpSaOGyQ7xyYx4wL85yaizRdIeYMPw2W0hDdvdmnlu5rmK8_PBRVYtVQ\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RS512\",\r\n \"digest\": \"sQV0Lmiz3qANzbFmfHdgpv-BWpiwOFZQzgkMLOoGhSKRszaTdtW_22ui5em1oKY0q36SkY5nJpkL8wCRQk8GvA\",\r\n \"value\": \"H0NfAOJqwqbCnYA3fULsAFFu4N1RUqGjlZ6PQ4VicA0bXnvgG8gJ4dj7cz6VzDdw9e2PP_NtXMsX3eOnyFwS_CVEXncnoMygumSY0s6zqA-a5bylOmOgIlh2tcLnn52z3b7YOaDLZLcqOQBHuOfM7DEc4z2wZ2_9qbdR8wGjvpPoX1mP5JVd373iCehUA7wM52nYngVfEwmZbzubloDdN1RMI7KWeGKStAEDFPFDVa6IJCMJyt4p94lYP2sAr8CnpOi2-i6lMnK_UAgJkTJvqduBcWMdYZ8X0j7-adIJzg33TeeEv2VMjowUMNiL9MVFtUAh8vxZrSfOYmj_vEs5EA\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,13 +83,14 @@ "483" ], "x-ms-client-request-id": [ - "ca3667f8-177c-47ac-80c1-5c6b6c526e3f" + "e4d9857a-bb5b-455f-bc40-6fef67bbc19b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"value\": true\r\n}", @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:04 GMT" + "Mon, 19 Dec 2016 23:09:13 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cf7a0d87-af7e-4d37-a30d-7ea09a501638" + "ef0c4ee5-f5db-4cf2-94fe-741788ef3821" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -141,9 +143,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "RandomBytes": "o1uRVNKCC8nXybg4t9o1OPgx9jaDZnm0di5FozTQaprNd7o3OXwhRGEkcDe6WfY1urNInDq6dTzh3N2kPWiVBg==" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155", + "RandomBytes": "6Z3EOTg5wY6ZP8TZSXKneDSrXK0t1p1HmhXp5FZXHPjhbGGfI+EFDhFqQzRfN5Jm0gMUuMgWahP/fJ4jT9w3QQ==" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultTestSecretExtendedAttributes.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultTestSecretExtendedAttributes.json index 85bbe92ce7d2..bb86480a1719 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultTestSecretExtendedAttributes.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultTestSecretExtendedAttributes.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "//secrets/secretwithextendedattribs?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL3NlY3JldHdpdGhleHRlbmRlZGF0dHJpYnM/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/secrets/secretwithextendedattribs?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvc2VjcmV0d2l0aGV4dGVuZGVkYXR0cmlicz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n },\r\n \"contentType\": \"plaintext\",\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1477125282\r\n }\r\n}", + "RequestBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n },\r\n \"contentType\": \"plaintext\",\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1482232197\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,16 +13,17 @@ "181" ], "x-ms-client-request-id": [ - "51463db3-9e4e-4031-998b-e53ea7a2cdd0" + "e16ecea8-8245-4579-835b-5ec5b4da1300" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plaintext\",\r\n \"id\": \"https://testvault1020.vault.azure.net/secrets/secretwithextendedattribs/bb03d9aab0ef426aa2d47d5fed2a2a17\",\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1477125282,\r\n \"created\": 1477082082,\r\n \"updated\": 1477082082\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": \"mysecretvalue\",\r\n \"contentType\": \"plaintext\",\r\n \"id\": \"https://testvault1021.vault.azure.net/secrets/secretwithextendedattribs/8d9b809194a640f4ba21de45c6dd5e7f\",\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1482232197,\r\n \"created\": 1482188997,\r\n \"updated\": 1482188997\r\n },\r\n \"tags\": {\r\n \"purpose\": \"unit test\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "284" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:58 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "e3fbee76-deba-46e8-ae36-12c7c61f436f" + "19cd9464-457c-491c-a7d9-5a8564344e5c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,19 +71,20 @@ "StatusCode": 200 }, { - "RequestUri": "//secrets/secretwithextendedattribs/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9zZWNyZXRzL3NlY3JldHdpdGhleHRlbmRlZGF0dHJpYnMvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/secrets/secretwithextendedattribs/?api-version=2016-10-01", + "EncodedRequestUri": "L3NlY3JldHMvc2VjcmV0d2l0aGV4dGVuZGVkYXR0cmlicy8/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "95bdee4f-2cb8-4e42-bcf7-f3725d564935" + "b759294f-3746-4429-9cbc-74297b534096" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"Forbidden\",\r\n \"message\": \"Operation get is not allowed on a disabled secret.\",\r\n \"innererror\": {\r\n \"code\": \"SecretDisabled\"\r\n }\r\n }\r\n}", @@ -100,7 +102,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:41 GMT" + "Mon, 19 Dec 2016 23:09:58 GMT" ], "Pragma": [ "no-cache" @@ -109,13 +111,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "ee7177cb-9b73-41aa-9cf1-f19151e16751" + "8409e4d8-42be-4d3b-affa-8899399f8c4a" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -135,8 +137,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesTest.json index 66c0150a26f9..b047fcce47a2 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/UpdateKeyAttributesTest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1VwZGF0ZUtleUF0dHJpYnV0ZXNUZXN0L2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/UpdateKeyAttributesTest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1Rlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ]\r\n}", "RequestHeaders": { @@ -13,16 +13,17 @@ "156" ], "x-ms-client-request-id": [ - "5c85ae46-4105-44ab-83eb-4749aa3538a9" + "d42e66d1-60db-411e-ab35-06ed01806302" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesTest/d880f7c42b4b4f0e88d96ba4d71353e4\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"tpvNxv1o4Aa3mJe5gtFJm80eEMGTfUxFHtNU1k-9IMJDDm5KuuTp7LAmDtrfoQGAxHphiExMDvt7sG03_0nCz0hnF1UN9pJCkbBu98dN_pd_-CkcI-05cSwwyGngF4pMbgasv0UBLfEFt1MvvFyl8Pdhd8_g6-BAH_xNy-NTzleaiXA1dpdIdqbgwhFX9ozzsEqd_-in12gzeYnO7hf1t9hWb0FeMDYU-MVhW-HJR5G-qzd_jpyzpFFcXMpAqQ8ilHwakGjNMk5rQWEzJzVOchwglX9vkFFRQMR5thjncIMk71wT7VAPtRHDMYiQpH-19czOUrc8fxN0zOs3zz9G9w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082073,\r\n \"updated\": 1477082073\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/UpdateKeyAttributesTest/90bd15698c554d408355a1dadfd364b1\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"u097XtTHAAfrwqQXRfy4DQBt7VmvZQ9FvlBKua1BJ-CfO22fCzphLFJzF4gyTtwv501jCxWxIxwVDd047ahH_8cz0Fy-LaqRZey4YV-wAl1HqyVrIiChxCL7HCFWe99BRoYnM4EbYp-KVbpd8nmlIG7mInfKFNhRKGBmnAPHPGfqWJJYH4BJRzqiqiwmkctZ59Beu49rLN-YeVkSxIyIPBsdwOtFkmbGum8qimnY02vlVKPIOC0Rr8JgdVDQNA62bAmlDilPZyBKIKps_8c8u6B9IGpV-uHb4g80E6GNk8ktwX8fNVnfG92YTrorXpn6DbEl4wkv5FZT1vKDT6DNbw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188986,\r\n \"updated\": 1482188986\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "631" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:33 GMT" + "Mon, 19 Dec 2016 23:09:45 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "25f46a68-0610-493c-9f33-55836e5e3392" + "aa71abd2-d8ec-471f-b0bb-dbc762889a5e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/UpdateKeyAttributesTest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1VwZGF0ZUtleUF0dHJpYnV0ZXNUZXN0L2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/UpdateKeyAttributesTest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1Rlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ]\r\n}", "RequestHeaders": { @@ -82,16 +83,17 @@ "156" ], "x-ms-client-request-id": [ - "f50f54a6-7307-45e3-91dd-b68d2b0e2340" + "a5cfa253-530e-43b4-a196-4161493d9790" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesTest/265f7e2e68374bb3a4d84025cdeeab66\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"yMMisG5o-oveH3YM7GQN1IXB6Xai1PJZdOQItEYzRGc_Qby5h-7AvGCBaegVgfx53B56oIcOrFgGhbaRI_mkpiDuDECEPhTXcHagPLvVIWmpfuXkWr967GlFTzil5I-xfiK6aZGzZ1IYYeEtXDdEGzALTEeLCbBWTynrQ1oxfGPaqV6g3fv2A3CYCx5JhwbGj0uAQe8EgRI2eRTrploEyYULyJtu08gkxJojrcas-VShFUk6lufHfuKNeMnJllBR4GA4xsw7mhPJ0CVSJydSb3Ot2j-T_WWvnwecXj7WG-tY2eBPjKUfe9uqz-PlwLRvp-QzZ6FwzPv3cFD1PishQQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082073,\r\n \"updated\": 1477082073\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/UpdateKeyAttributesTest/e6d589d94db5418596e47e974f6ab1a3\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"l8CT0WrSLrNTTbyBYvuUFkv3Yy0qhxnNX6N_SZ389Qlq3wpvbNHuDPFvqviFq_JrLrC5ZnstT0lv09gM0RvcQjmLfF6eZenb5tC0uSrkKxHFt4hX1hr8jn1EeC9CHVq3GkA82SAS-KtL4Z6K8mE3quzQ4Ax3Z0bW9yXrDLrJY9CB-yQnWdJPbzXx1pS7nH6lD5MWityC8JcmEiV0Tgw5_Mt9Mms9ln8WntwOiwk-me5N7OvIb0-xm_MnPcf5sxwsEzVmHEy72hFqxGzW30TeidOruqtI6lgou3J6PkwFWdCX5l7OnTRDjxyPhTS4uJwEFsOfDbmMDDun-dke-IZbYQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188986,\r\n \"updated\": 1482188986\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "631" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:33 GMT" + "Mon, 19 Dec 2016 23:09:45 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "4b42cf5e-365c-4596-b896-d1db5c61cd80" + "14060771-e3f3-4b83-9880-aeba8105c587" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,8 +141,8 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/UpdateKeyAttributesTest/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1VwZGF0ZUtleUF0dHJpYnV0ZXNUZXN0Lz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/UpdateKeyAttributesTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1Rlc3QvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"key_ops\": [\r\n \"decrypt\",\r\n \"encrypt\"\r\n ],\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 315561600,\r\n \"exp\": 347184000\r\n }\r\n}", "RequestHeaders": { @@ -151,16 +153,17 @@ "148" ], "x-ms-client-request-id": [ - "f9a9d93b-a09e-4d14-a7aa-51ba506ef53f" + "2c627ab1-652f-452b-9fcd-025bb14fcb8a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesTest/d880f7c42b4b4f0e88d96ba4d71353e4\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"decrypt\",\r\n \"encrypt\"\r\n ],\r\n \"n\": \"tpvNxv1o4Aa3mJe5gtFJm80eEMGTfUxFHtNU1k-9IMJDDm5KuuTp7LAmDtrfoQGAxHphiExMDvt7sG03_0nCz0hnF1UN9pJCkbBu98dN_pd_-CkcI-05cSwwyGngF4pMbgasv0UBLfEFt1MvvFyl8Pdhd8_g6-BAH_xNy-NTzleaiXA1dpdIdqbgwhFX9ozzsEqd_-in12gzeYnO7hf1t9hWb0FeMDYU-MVhW-HJR5G-qzd_jpyzpFFcXMpAqQ8ilHwakGjNMk5rQWEzJzVOchwglX9vkFFRQMR5thjncIMk71wT7VAPtRHDMYiQpH-19czOUrc8fxN0zOs3zz9G9w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 315561600,\r\n \"exp\": 347184000,\r\n \"created\": 1477082073,\r\n \"updated\": 1477082073\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/UpdateKeyAttributesTest/90bd15698c554d408355a1dadfd364b1\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"decrypt\",\r\n \"encrypt\"\r\n ],\r\n \"n\": \"u097XtTHAAfrwqQXRfy4DQBt7VmvZQ9FvlBKua1BJ-CfO22fCzphLFJzF4gyTtwv501jCxWxIxwVDd047ahH_8cz0Fy-LaqRZey4YV-wAl1HqyVrIiChxCL7HCFWe99BRoYnM4EbYp-KVbpd8nmlIG7mInfKFNhRKGBmnAPHPGfqWJJYH4BJRzqiqiwmkctZ59Beu49rLN-YeVkSxIyIPBsdwOtFkmbGum8qimnY02vlVKPIOC0Rr8JgdVDQNA62bAmlDilPZyBKIKps_8c8u6B9IGpV-uHb4g80E6GNk8ktwX8fNVnfG92YTrorXpn6DbEl4wkv5FZT1vKDT6DNbw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"nbf\": 315561600,\r\n \"exp\": 347184000,\r\n \"created\": 1482188986,\r\n \"updated\": 1482188986\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "625" @@ -175,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:33 GMT" + "Mon, 19 Dec 2016 23:09:45 GMT" ], "Pragma": [ "no-cache" @@ -184,13 +187,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "5785ffab-269f-406a-bb73-4eeedd228a70" + "a94696a3-a7cd-43d2-8d75-91e9e64d3799" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -208,8 +211,8 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/UpdateKeyAttributesTest/d880f7c42b4b4f0e88d96ba4d71353e4?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1Rlc3QvZDg4MGY3YzQyYjRiNGYwZTg4ZDk2YmE0ZDcxMzUzZTQ/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/UpdateKeyAttributesTest/90bd15698c554d408355a1dadfd364b1?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1Rlc3QvOTBiZDE1Njk4YzU1NGQ0MDgzNTVhMWRhZGZkMzY0YjE/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"key_ops\": [\r\n \"decrypt\",\r\n \"encrypt\"\r\n ],\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 631180800,\r\n \"exp\": 662716800\r\n }\r\n}", "RequestHeaders": { @@ -220,16 +223,17 @@ "149" ], "x-ms-client-request-id": [ - "bdb598fb-a604-4593-ac74-472b49b9318a" + "514e8a4f-8ec7-4247-8bd5-9eb4036ddb04" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesTest/d880f7c42b4b4f0e88d96ba4d71353e4\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"decrypt\",\r\n \"encrypt\"\r\n ],\r\n \"n\": \"tpvNxv1o4Aa3mJe5gtFJm80eEMGTfUxFHtNU1k-9IMJDDm5KuuTp7LAmDtrfoQGAxHphiExMDvt7sG03_0nCz0hnF1UN9pJCkbBu98dN_pd_-CkcI-05cSwwyGngF4pMbgasv0UBLfEFt1MvvFyl8Pdhd8_g6-BAH_xNy-NTzleaiXA1dpdIdqbgwhFX9ozzsEqd_-in12gzeYnO7hf1t9hWb0FeMDYU-MVhW-HJR5G-qzd_jpyzpFFcXMpAqQ8ilHwakGjNMk5rQWEzJzVOchwglX9vkFFRQMR5thjncIMk71wT7VAPtRHDMYiQpH-19czOUrc8fxN0zOs3zz9G9w\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 631180800,\r\n \"exp\": 662716800,\r\n \"created\": 1477082073,\r\n \"updated\": 1477082073\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/UpdateKeyAttributesTest/90bd15698c554d408355a1dadfd364b1\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"decrypt\",\r\n \"encrypt\"\r\n ],\r\n \"n\": \"u097XtTHAAfrwqQXRfy4DQBt7VmvZQ9FvlBKua1BJ-CfO22fCzphLFJzF4gyTtwv501jCxWxIxwVDd047ahH_8cz0Fy-LaqRZey4YV-wAl1HqyVrIiChxCL7HCFWe99BRoYnM4EbYp-KVbpd8nmlIG7mInfKFNhRKGBmnAPHPGfqWJJYH4BJRzqiqiwmkctZ59Beu49rLN-YeVkSxIyIPBsdwOtFkmbGum8qimnY02vlVKPIOC0Rr8JgdVDQNA62bAmlDilPZyBKIKps_8c8u6B9IGpV-uHb4g80E6GNk8ktwX8fNVnfG92YTrorXpn6DbEl4wkv5FZT1vKDT6DNbw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 631180800,\r\n \"exp\": 662716800,\r\n \"created\": 1482188986,\r\n \"updated\": 1482188986\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "626" @@ -244,7 +248,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:33 GMT" + "Mon, 19 Dec 2016 23:09:46 GMT" ], "Pragma": [ "no-cache" @@ -253,13 +257,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "d321039d-3c8b-4de0-9213-64b259de10d7" + "5068dbab-f76a-49b6-963f-46116a1144a0" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -277,22 +281,23 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/UpdateKeyAttributesTest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1VwZGF0ZUtleUF0dHJpYnV0ZXNUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/UpdateKeyAttributesTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1Rlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4c04fc4a-58ea-4cfa-aa50-28c54c6ce081" + "63e010de-2316-4609-a1b1-706be01a6acd" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesTest/265f7e2e68374bb3a4d84025cdeeab66\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"yMMisG5o-oveH3YM7GQN1IXB6Xai1PJZdOQItEYzRGc_Qby5h-7AvGCBaegVgfx53B56oIcOrFgGhbaRI_mkpiDuDECEPhTXcHagPLvVIWmpfuXkWr967GlFTzil5I-xfiK6aZGzZ1IYYeEtXDdEGzALTEeLCbBWTynrQ1oxfGPaqV6g3fv2A3CYCx5JhwbGj0uAQe8EgRI2eRTrploEyYULyJtu08gkxJojrcas-VShFUk6lufHfuKNeMnJllBR4GA4xsw7mhPJ0CVSJydSb3Ot2j-T_WWvnwecXj7WG-tY2eBPjKUfe9uqz-PlwLRvp-QzZ6FwzPv3cFD1PishQQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1477082073,\r\n \"updated\": 1477082073\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/UpdateKeyAttributesTest/e6d589d94db5418596e47e974f6ab1a3\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"l8CT0WrSLrNTTbyBYvuUFkv3Yy0qhxnNX6N_SZ389Qlq3wpvbNHuDPFvqviFq_JrLrC5ZnstT0lv09gM0RvcQjmLfF6eZenb5tC0uSrkKxHFt4hX1hr8jn1EeC9CHVq3GkA82SAS-KtL4Z6K8mE3quzQ4Ax3Z0bW9yXrDLrJY9CB-yQnWdJPbzXx1pS7nH6lD5MWityC8JcmEiV0Tgw5_Mt9Mms9ln8WntwOiwk-me5N7OvIb0-xm_MnPcf5sxwsEzVmHEy72hFqxGzW30TeidOruqtI6lgou3J6PkwFWdCX5l7OnTRDjxyPhTS4uJwEFsOfDbmMDDun-dke-IZbYQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": true,\r\n \"created\": 1482188986,\r\n \"updated\": 1482188986\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "631" @@ -307,7 +312,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:33 GMT" + "Mon, 19 Dec 2016 23:09:46 GMT" ], "Pragma": [ "no-cache" @@ -316,13 +321,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "0e84afd2-6665-4203-9e3c-79dc5b64b565" + "5cb732d1-3b3d-476b-b066-834a8b93caba" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -342,8 +347,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesWithNoChangeTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesWithNoChangeTest.json index b473e0e68167..ab6afb1a2cfa 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesWithNoChangeTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultUpdateKeyAttributesWithNoChangeTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "//keys/UpdateKeyAttributesWithNoChangeTest/create?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1VwZGF0ZUtleUF0dHJpYnV0ZXNXaXRoTm9DaGFuZ2VUZXN0L2NyZWF0ZT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/UpdateKeyAttributesWithNoChangeTest/create?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1dpdGhOb0NoYW5nZVRlc3QvY3JlYXRlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"kty\": \"RSA\",\r\n \"key_size\": 2048,\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800\r\n }\r\n}", "RequestHeaders": { @@ -13,19 +13,20 @@ "251" ], "x-ms-client-request-id": [ - "1a27af55-ca93-47c0-baf3-e1d42aeb4e53" + "3a55e552-010c-4241-bc6d-eb2332692ce1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesWithNoChangeTest/f5ec34e196e644e289b7eaba05ff83c9\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"7wE6auQVaIsQNFyEoXMOA5lRO2ARTs9i4jmQBPwb7EvXkBc3LHunZ1G2a7JppKP5I8nFrUYzZ1hpEr7LdwBfXYsjveNErzairEzm86O1Q_i6jet41KQJb362OXGkTrw4Pyxo25GjFrNrb1WVlYf0uXVXaMTkI1VVDzHPub5ctlpYWdf1HhWswgnCzMSBHDz_t-RBUx4VYEZqlP5mVKf6QXDDzSCuCgMCpfUjkpcNC478s304iLTSJQyFqk3_bFhElivxihVyudemjUxjGCIWH1qRiEJwyKE1vApvwBXYvowGVUqjpXfNr_afwcG71Cs1pMh2ejWAD3ekclk1LmL7ZQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1477082138,\r\n \"updated\": 1477082138\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/UpdateKeyAttributesWithNoChangeTest/395e0ffd71384bd685cec4c566c1c69c\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"5efg_DnU77o3Qwrz3cRZArr3uWLghIpdm22oRVVwD6lOvU92c3SgKlq2vt0ZjJQw82Lg_wBYY57F8wP2tK7EdyN3BoFiqcMw4Wu3L7LFghsMh-4NCCyr9tDVQ6wYiaL383dPlcxZb-m8Qdk5qvb_1NudUsfcas8vgwwbaDrQO1nDM_VoAezvwN_JluPmcRBHr3IiKjQb7AgqmyqQM-e_yIjEf-lp1aaKCZBtYscINL1hwtr8hD44HBj1TGQui8Tom7glnxWXL4Emio72zsg43bmHyVuK3zfHcZ5DSYvEQ5djWsMrQ4yo0mdIhUaoOqWnN0Gkyql9EnuczfEnpo5VTw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1482189536,\r\n \"updated\": 1482189536\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "678" + "693" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:38 GMT" + "Mon, 19 Dec 2016 23:18:56 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "d34b0b4b-5a54-4aa8-895d-99579491c9a6" + "d6c10e4e-932c-4566-ab6d-7d55dc03d9d9" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,8 +71,8 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/UpdateKeyAttributesWithNoChangeTest/?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1VwZGF0ZUtleUF0dHJpYnV0ZXNXaXRoTm9DaGFuZ2VUZXN0Lz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/keys/UpdateKeyAttributesWithNoChangeTest/?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1dpdGhOb0NoYW5nZVRlc3QvP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800\r\n }\r\n}", "RequestHeaders": { @@ -82,19 +83,20 @@ "98" ], "x-ms-client-request-id": [ - "6cf24fdc-547a-4e35-a569-7c548ef6dd51" + "ae415498-d065-4bf6-9077-1e39b2e39d28" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesWithNoChangeTest/f5ec34e196e644e289b7eaba05ff83c9\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"7wE6auQVaIsQNFyEoXMOA5lRO2ARTs9i4jmQBPwb7EvXkBc3LHunZ1G2a7JppKP5I8nFrUYzZ1hpEr7LdwBfXYsjveNErzairEzm86O1Q_i6jet41KQJb362OXGkTrw4Pyxo25GjFrNrb1WVlYf0uXVXaMTkI1VVDzHPub5ctlpYWdf1HhWswgnCzMSBHDz_t-RBUx4VYEZqlP5mVKf6QXDDzSCuCgMCpfUjkpcNC478s304iLTSJQyFqk3_bFhElivxihVyudemjUxjGCIWH1qRiEJwyKE1vApvwBXYvowGVUqjpXfNr_afwcG71Cs1pMh2ejWAD3ekclk1LmL7ZQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1477082138,\r\n \"updated\": 1477082138\r\n }\r\n}", + "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/UpdateKeyAttributesWithNoChangeTest/395e0ffd71384bd685cec4c566c1c69c\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"5efg_DnU77o3Qwrz3cRZArr3uWLghIpdm22oRVVwD6lOvU92c3SgKlq2vt0ZjJQw82Lg_wBYY57F8wP2tK7EdyN3BoFiqcMw4Wu3L7LFghsMh-4NCCyr9tDVQ6wYiaL383dPlcxZb-m8Qdk5qvb_1NudUsfcas8vgwwbaDrQO1nDM_VoAezvwN_JluPmcRBHr3IiKjQb7AgqmyqQM-e_yIjEf-lp1aaKCZBtYscINL1hwtr8hD44HBj1TGQui8Tom7glnxWXL4Emio72zsg43bmHyVuK3zfHcZ5DSYvEQ5djWsMrQ4yo0mdIhUaoOqWnN0Gkyql9EnuczfEnpo5VTw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1482189536,\r\n \"updated\": 1482189536\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "678" + "693" ], "Content-Type": [ "application/json; charset=utf-8" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:38 GMT" + "Mon, 19 Dec 2016 23:18:56 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "295a8c6f-0348-49e1-83dc-297e5594c1e3" + "af81cf32-45c7-4eec-bf49-df8e2b0ecc3c" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -139,25 +141,26 @@ "StatusCode": 200 }, { - "RequestUri": "//keys/UpdateKeyAttributesWithNoChangeTest?api-version=2016-10-01", - "EncodedRequestUri": "Ly9rZXlzL1VwZGF0ZUtleUF0dHJpYnV0ZXNXaXRoTm9DaGFuZ2VUZXN0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/keys/UpdateKeyAttributesWithNoChangeTest?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvVXBkYXRlS2V5QXR0cmlidXRlc1dpdGhOb0NoYW5nZVRlc3Q/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ad775bc0-22f8-4818-9921-f5638453e855" + "a49015f4-a9b6-49cc-97e3-26190c519bd7" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"key\": {\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/UpdateKeyAttributesWithNoChangeTest/f5ec34e196e644e289b7eaba05ff83c9\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"7wE6auQVaIsQNFyEoXMOA5lRO2ARTs9i4jmQBPwb7EvXkBc3LHunZ1G2a7JppKP5I8nFrUYzZ1hpEr7LdwBfXYsjveNErzairEzm86O1Q_i6jet41KQJb362OXGkTrw4Pyxo25GjFrNrb1WVlYf0uXVXaMTkI1VVDzHPub5ctlpYWdf1HhWswgnCzMSBHDz_t-RBUx4VYEZqlP5mVKf6QXDDzSCuCgMCpfUjkpcNC478s304iLTSJQyFqk3_bFhElivxihVyudemjUxjGCIWH1qRiEJwyKE1vApvwBXYvowGVUqjpXfNr_afwcG71Cs1pMh2ejWAD3ekclk1LmL7ZQ\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1477082138,\r\n \"updated\": 1477082138\r\n }\r\n}", + "ResponseBody": "{\r\n \"recoveryId\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/deletedkeys/UpdateKeyAttributesWithNoChangeTest\",\r\n \"deletedDate\": 1482189536,\r\n \"scheduledPurgeDate\": 1489965536,\r\n \"key\": {\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/UpdateKeyAttributesWithNoChangeTest/395e0ffd71384bd685cec4c566c1c69c\",\r\n \"kty\": \"RSA\",\r\n \"key_ops\": [\r\n \"encrypt\",\r\n \"decrypt\",\r\n \"sign\",\r\n \"verify\",\r\n \"wrapKey\",\r\n \"unwrapKey\"\r\n ],\r\n \"n\": \"5efg_DnU77o3Qwrz3cRZArr3uWLghIpdm22oRVVwD6lOvU92c3SgKlq2vt0ZjJQw82Lg_wBYY57F8wP2tK7EdyN3BoFiqcMw4Wu3L7LFghsMh-4NCCyr9tDVQ6wYiaL383dPlcxZb-m8Qdk5qvb_1NudUsfcas8vgwwbaDrQO1nDM_VoAezvwN_JluPmcRBHr3IiKjQb7AgqmyqQM-e_yIjEf-lp1aaKCZBtYscINL1hwtr8hD44HBj1TGQui8Tom7glnxWXL4Emio72zsg43bmHyVuK3zfHcZ5DSYvEQ5djWsMrQ4yo0mdIhUaoOqWnN0Gkyql9EnuczfEnpo5VTw\",\r\n \"e\": \"AQAB\"\r\n },\r\n \"attributes\": {\r\n \"enabled\": false,\r\n \"nbf\": 1262332800,\r\n \"exp\": 1893484800,\r\n \"created\": 1482189536,\r\n \"updated\": 1482189536\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "678" + "866" ], "Content-Type": [ "application/json; charset=utf-8" @@ -169,7 +172,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:38 GMT" + "Mon, 19 Dec 2016 23:18:56 GMT" ], "Pragma": [ "no-cache" @@ -178,13 +181,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "4981c87d-373e-4135-8f1d-d532acc79d4a" + "d3193274-e821-46aa-893a-b652d88d9e8d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -204,8 +207,8 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsa15Test.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsa15Test.json index 293b199ee29a..cdac1b912f6b 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsa15Test.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsa15Test.json @@ -4,7 +4,7 @@ "RequestUri": "/keys/sdktestkey//wrapkey?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vd3JhcGtleT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"Vh_njtgfZUmnhqsdU29bQYhC7HF4nR9j3jXLcb7UXQ0\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"ovQIlbB0DgWhZA7sgkPxbg9H-Ly-VlNGPSgGrrZvlIo\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,19 +13,20 @@ "82" ], "x-ms-client-request-id": [ - "3c8b72f0-161f-4c0c-af05-95bd17c54005" + "9ef10a20-3fd7-4a70-b0c8-627e3a77f86b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"value\": \"VFIBvwh8wLf5UwY281gbfaZH-iHvXwV007NPZe9WTGNpJG39HV7c0peLZEKuR4hKO51JUohzbDEvQZs4ey2sPzEkwvyUeY25MdsXWLzTOdo7TQFv9b-8ypVgLfbNTtV3NLV6V10FlEoOza6WjUl9ac4m6O2P0l8IDTAVcyoEqxyforWtb8n3ecIaHObNpEF9MKYXBOJWc7TF2iGsEFe8xnwgfAkAOq-T4q7i1n2hggCERRuiDWVcwCMzyBupO47ishx7DNePt_xjqCFwCmQVhSMnWwtiefFotTpwcZ9Ahe4kNgcDPEJdDo8J4NYfVF6fodRM3I39bjp6jCJdvQm9aQ\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/sdktestkey/0698c2156c1a4e1da5b6bab6f6422fd6\",\r\n \"value\": \"khwIe26NuAZazS7upywDBpGRmRNMW5-4h_JQKxOdB78nYVxZWnBXwCxOv7a3Sr_mCjiVzKsoQQZwL-CJzhYa0512tfYem56zls5a44y5QsdcfvuSzOvpthVhA9XkEfCJSqSY_sip5d8BelT_w_ikvd_8KqiQ_0H54RqYUN8svCpu28paHgBocHFNXTQ9NtU9ec2qgESXk7Jp4OTy9HJtQJavKDUqTJ3YmtLxUgsgBCe0FNMHUSEYC0Ys6PavYzdTwIzYCq84idmAxJOj-O_6eALJFH2sDTOQYHjzOae2t8eFmw6C-t55qjrCI91a9mUJEGPhYixiG4gR4PaEJ7wGvw\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "449" + "464" ], "Content-Type": [ "application/json; charset=utf-8" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 19 Dec 2016 23:18:44 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "7acecdba-cea2-4049-9b79-80b6facf188e" + "30b3fbb4-f4ce-4c67-b672-fb9e5725d39e" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37/unwrapkey?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wMzg5MzE3Y2IyYzg0YjcyOWFmZmE5YzhmMTAxY2UzNy91bndyYXBrZXk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/sdktestkey/0698c2156c1a4e1da5b6bab6f6422fd6/unwrapkey?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8wNjk4YzIxNTZjMWE0ZTFkYTViNmJhYjZmNjQyMmZkNi91bndyYXBrZXk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"VFIBvwh8wLf5UwY281gbfaZH-iHvXwV007NPZe9WTGNpJG39HV7c0peLZEKuR4hKO51JUohzbDEvQZs4ey2sPzEkwvyUeY25MdsXWLzTOdo7TQFv9b-8ypVgLfbNTtV3NLV6V10FlEoOza6WjUl9ac4m6O2P0l8IDTAVcyoEqxyforWtb8n3ecIaHObNpEF9MKYXBOJWc7TF2iGsEFe8xnwgfAkAOq-T4q7i1n2hggCERRuiDWVcwCMzyBupO47ishx7DNePt_xjqCFwCmQVhSMnWwtiefFotTpwcZ9Ahe4kNgcDPEJdDo8J4NYfVF6fodRM3I39bjp6jCJdvQm9aQ\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA1_5\",\r\n \"value\": \"khwIe26NuAZazS7upywDBpGRmRNMW5-4h_JQKxOdB78nYVxZWnBXwCxOv7a3Sr_mCjiVzKsoQQZwL-CJzhYa0512tfYem56zls5a44y5QsdcfvuSzOvpthVhA9XkEfCJSqSY_sip5d8BelT_w_ikvd_8KqiQ_0H54RqYUN8svCpu28paHgBocHFNXTQ9NtU9ec2qgESXk7Jp4OTy9HJtQJavKDUqTJ3YmtLxUgsgBCe0FNMHUSEYC0Ys6PavYzdTwIzYCq84idmAxJOj-O_6eALJFH2sDTOQYHjzOae2t8eFmw6C-t55qjrCI91a9mUJEGPhYixiG4gR4PaEJ7wGvw\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,19 +83,20 @@ "381" ], "x-ms-client-request-id": [ - "8f6d2ed8-9df2-4826-8437-80946160b0b8" + "ffe922a9-3235-452c-940a-8fae6c39c9c0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/0389317cb2c84b729affa9c8f101ce37\",\r\n \"value\": \"Vh_njtgfZUmnhqsdU29bQYhC7HF4nR9j3jXLcb7UXQ0\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://karlaugsoftdeletesdk.vault-int.azure-int.net/keys/sdktestkey/0698c2156c1a4e1da5b6bab6f6422fd6\",\r\n \"value\": \"ovQIlbB0DgWhZA7sgkPxbg9H-Ly-VlNGPSgGrrZvlIo\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "150" + "165" ], "Content-Type": [ "application/json; charset=utf-8" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:35:33 GMT" + "Mon, 19 Dec 2016 23:18:44 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "South Central US" ], "x-ms-request-id": [ - "fd438350-8f91-4343-82c6-8896e43bb657" + "50f56af9-e561-468f-ba01-737615d56f7d" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.1066" ], "X-AspNet-Version": [ "4.0.30319" @@ -141,9 +143,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://karlaugsoftdeletesdk.vault-int.azure-int.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "SymmetricKeyBytes": "Vh/njtgfZUmnhqsdU29bQYhC7HF4nR9j3jXLcb7UXQ0=" + "KeyVersion": "f2a7e60b8dd0477d943b3a9fb2a63f0b", + "SymmetricKeyBytes": "ovQIlbB0DgWhZA7sgkPxbg9H+Ly+VlNGPSgGrrZvlIo=" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsaOaepTest.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsaOaepTest.json index 5607ae30eb9b..904532588846 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsaOaepTest.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/SessionRecords/Microsoft.Azure.KeyVault.Tests.KeyVaultOperationsTest/KeyVaultWrapUnwrapRsaOaepTest.json @@ -4,7 +4,7 @@ "RequestUri": "/keys/sdktestkey//wrapkey?api-version=2016-10-01", "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS8vd3JhcGtleT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"IniWt2llQKX2c1lWq2liZG5WGdfuTU_0Onxy7Sa532U\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"Z9xfIPYUMHDxlwqoy5K1agdQxLcjloese4fLgzezhj4\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,16 +13,17 @@ "84" ], "x-ms-client-request-id": [ - "9563c0b2-88dd-45f5-8285-e9cc3be42975" + "741f6211-0112-46bf-93de-8c7e3483131d" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4\",\r\n \"value\": \"FxvNB3r-aMGqjjxruQGp6qFfUBBx031h8YqncnnFGxALZl1Od7U_389oqgPkrpk7DiCbm0s3M5vgBdDnvoVNutH5tIPQ20bFQBL3hGapsmWPnXoaq6ix2ECBHz7418J88fS1YYXtEQJjWrD3EzFqd_blEodAXGVLew41KpyK65nFlZ7unYRQtw39SmG7clzAw3YpPNikP5gukQxzeCM7pvmYPXxw1P4V5BshO1KAhbeHdCl6m32u-MddI53Q0rAtvZ7FjXI933FJZ2a1p1xbSerFRXA2UKUj7vxoLOKGcagynIcxBEO75IZ1fxIgoI593gocGa4-9Irf_GAJAyxc0g\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155\",\r\n \"value\": \"W1qgvoCKTsGUBQdjC4ON5mpslhcPoz6GzXn_63uaw-5hm3jYemT5VDJnCyJRSJfUNoXpS1KgWFw-gBiLDx2CAkIJq6TEPPQz89QAcD7_agz1JYRuy54raTeBeIVnrTlQmkPpUoMIlbV8Mm3c7VeJKSi60L9sOOHU72INMIXZ7wVrUL0H0FMAneuhdi5GOV1ajrvCrL5JAB22h2IEsGaaBOoc8k_DAtcmxTWWFOp3p4U2G14vMniU6IP4J5Co8zZbjNCTMsFcycspxq632jcS2_TvPEJSzkFNB29dY5WcGfBQ706D60gvSMh7cJYG0qC_3RtrqQQuvBmOnDI1-syyZw\"\r\n}", "ResponseHeaders": { "Content-Length": [ "449" @@ -37,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:01 GMT" + "Mon, 19 Dec 2016 23:09:12 GMT" ], "Pragma": [ "no-cache" @@ -46,13 +47,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "cc2627b9-9d32-4004-ba71-f846c8a9f235" + "a51b35f8-65f3-4225-8732-d6d522d6b4fa" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -70,10 +71,10 @@ "StatusCode": 200 }, { - "RequestUri": "/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4/unwrapkey?api-version=2016-10-01", - "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS9iNjY5YzhiZjQ3YTk0MGQ4YWM4MThjMzgzMWZjMTFiNC91bndyYXBrZXk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", + "RequestUri": "/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155/unwrapkey?api-version=2016-10-01", + "EncodedRequestUri": "L2tleXMvc2RrdGVzdGtleS80ZWI2ODQ5MmI1ZjY0MjFlODM1ZDk2MWFkMmJlMzE1NS91bndyYXBrZXk/YXBpLXZlcnNpb249MjAxNi0xMC0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"FxvNB3r-aMGqjjxruQGp6qFfUBBx031h8YqncnnFGxALZl1Od7U_389oqgPkrpk7DiCbm0s3M5vgBdDnvoVNutH5tIPQ20bFQBL3hGapsmWPnXoaq6ix2ECBHz7418J88fS1YYXtEQJjWrD3EzFqd_blEodAXGVLew41KpyK65nFlZ7unYRQtw39SmG7clzAw3YpPNikP5gukQxzeCM7pvmYPXxw1P4V5BshO1KAhbeHdCl6m32u-MddI53Q0rAtvZ7FjXI933FJZ2a1p1xbSerFRXA2UKUj7vxoLOKGcagynIcxBEO75IZ1fxIgoI593gocGa4-9Irf_GAJAyxc0g\"\r\n}", + "RequestBody": "{\r\n \"alg\": \"RSA-OAEP\",\r\n \"value\": \"W1qgvoCKTsGUBQdjC4ON5mpslhcPoz6GzXn_63uaw-5hm3jYemT5VDJnCyJRSJfUNoXpS1KgWFw-gBiLDx2CAkIJq6TEPPQz89QAcD7_agz1JYRuy54raTeBeIVnrTlQmkPpUoMIlbV8Mm3c7VeJKSi60L9sOOHU72INMIXZ7wVrUL0H0FMAneuhdi5GOV1ajrvCrL5JAB22h2IEsGaaBOoc8k_DAtcmxTWWFOp3p4U2G14vMniU6IP4J5Co8zZbjNCTMsFcycspxq632jcS2_TvPEJSzkFNB29dY5WcGfBQ706D60gvSMh7cJYG0qC_3RtrqQQuvBmOnDI1-syyZw\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -82,16 +83,17 @@ "383" ], "x-ms-client-request-id": [ - "adb8555c-07bb-4b7e-b42c-6c4b43636a17" + "598fe0a4-cfc5-4236-915e-553d36232f2f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.3-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.KeyVault.KeyVaultClient/2.0.6" ] }, - "ResponseBody": "{\r\n \"kid\": \"https://testvault1020.vault.azure.net/keys/sdktestkey/b669c8bf47a940d8ac818c3831fc11b4\",\r\n \"value\": \"IniWt2llQKX2c1lWq2liZG5WGdfuTU_0Onxy7Sa532U\"\r\n}", + "ResponseBody": "{\r\n \"kid\": \"https://testvault1021.vault.azure.net/keys/sdktestkey/4eb68492b5f6421e835d961ad2be3155\",\r\n \"value\": \"Z9xfIPYUMHDxlwqoy5K1agdQxLcjloese4fLgzezhj4\"\r\n}", "ResponseHeaders": { "Content-Length": [ "150" @@ -106,7 +108,7 @@ "no-cache" ], "Date": [ - "Fri, 21 Oct 2016 20:34:01 GMT" + "Mon, 19 Dec 2016 23:09:12 GMT" ], "Pragma": [ "no-cache" @@ -115,13 +117,13 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-region": [ - "westus" + "eastus" ], "x-ms-request-id": [ - "a7f4742e-4429-4265-ba57-c3cbf077dff1" + "2419a5ba-4844-4ad0-bfbb-aad46525f3e3" ], "x-ms-keyvault-service-version": [ - "1.0.0.781" + "1.0.0.793" ], "X-AspNet-Version": [ "4.0.30319" @@ -141,9 +143,9 @@ ], "Names": {}, "Variables": { - "VaultAddress": "https://testvault1020.vault.azure.net/", + "VaultAddress": "https://testvault1021.vault.azure.net", "KeyName": "sdktestkey", - "KeyVersion": "b669c8bf47a940d8ac818c3831fc11b4", - "SymmetricKeyBytes": "IniWt2llQKX2c1lWq2liZG5WGdfuTU/0Onxy7Sa532U=" + "KeyVersion": "4eb68492b5f6421e835d961ad2be3155", + "SymmetricKeyBytes": "Z9xfIPYUMHDxlwqoy5K1agdQxLcjloese4fLgzezhj4=" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/appsettings.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/appsettings.json index dfe2c47dab1a..de3e0dbdbac8 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/appsettings.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/appsettings.json @@ -3,6 +3,7 @@ "VaultUrl": "", "AuthClientId": "", "AuthClientSecret": "", - "StandardVaultOnly": "false" + "StandardVaultOnly": "false", + "SoftDeleteEnabled": "false" } } \ No newline at end of file diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyBundle.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyBundle.cs new file mode 100644 index 000000000000..3ec9f7c7baf2 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyBundle.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Microsoft.Azure.KeyVault.Models +{ + public partial class DeletedKeyBundle + { + /// + /// The identifier of the deleted key object. This is used to recover the key. + /// + public DeletedKeyIdentifier RecoveryIdentifier + { + get + { + if (!string.IsNullOrWhiteSpace(RecoveryId)) + return new DeletedKeyIdentifier(RecoveryId); + else + return null; + } + } + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyItem.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyItem.cs new file mode 100644 index 000000000000..7a32776a1f85 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedKeyItem.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Microsoft.Azure.KeyVault.Models +{ + public partial class DeletedKeyItem + { + /// + /// The identifier of the deleted key object. This is used to recover the key. + /// + public DeletedKeyIdentifier RecoveryIdentifier + { + get + { + if (!string.IsNullOrWhiteSpace(RecoveryId)) + return new DeletedKeyIdentifier(RecoveryId); + else + return null; + } + } + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretBundle.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretBundle.cs new file mode 100644 index 000000000000..6b2c69c33ea2 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretBundle.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Microsoft.Azure.KeyVault.Models +{ + public partial class DeletedSecretBundle + { + /// + /// The identifier of the deleted secret object. This is used to recover the secret. + /// + public DeletedSecretIdentifier RecoveryIdentifier + { + get + { + if (!string.IsNullOrWhiteSpace(RecoveryId)) + return new DeletedSecretIdentifier(RecoveryId); + else + return null; + } + } + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretItem.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretItem.cs new file mode 100644 index 000000000000..1ee5e22bab4b --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/DeletedSecretItem.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Microsoft.Azure.KeyVault.Models +{ + public partial class DeletedSecretItem + { + /// + /// The identifier of the deleted secret object. This is used to recover the secret. + /// + public DeletedSecretIdentifier RecoveryIdentifier + { + get + { + if (!string.IsNullOrWhiteSpace(RecoveryId)) + return new DeletedSecretIdentifier(RecoveryId); + else + return null; + } + } + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/KeyVaultClientExtensions.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/KeyVaultClientExtensions.cs index 9b5a8415e5b2..0cb1495dc8b0 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/KeyVaultClientExtensions.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/KeyVaultClientExtensions.cs @@ -305,6 +305,9 @@ public static partial class KeyVaultClientExtensions } } + #endregion + + #region Secret Management /// /// Gets a secret. @@ -368,6 +371,86 @@ public static partial class KeyVaultClientExtensions } #endregion + #region Recovery Management + + /// + /// Recovers the deleted secret. + /// + /// The recoveryId of the deleted secret, returned from deletion. + /// Optional cancellation token + /// A response message containing the recovered secret + public static async Task RecoverDeletedSecretAsync(this IKeyVaultClient operations, string recoveryId, CancellationToken cancellationToken = default(CancellationToken)) + { + if (string.IsNullOrEmpty(recoveryId)) + throw new ArgumentNullException(nameof(recoveryId)); + + var secretRecoveryId = new DeletedSecretIdentifier(recoveryId); + + using (var _result = await operations.RecoverDeletedSecretWithHttpMessagesAsync(secretRecoveryId.Vault, secretRecoveryId.Name, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Recovers the deleted key. + /// + /// The recoveryId of the deleted key, returned from deletion. + /// Optional cancellation token + /// A response message containing the recovered key + public static async Task RecoverDeletedKeyAsync(this IKeyVaultClient operations, string recoveryId, CancellationToken cancellationToken = default(CancellationToken)) + { + if (string.IsNullOrEmpty(recoveryId)) + throw new ArgumentNullException(nameof(recoveryId)); + + var keyRecoveryId = new DeletedKeyIdentifier(recoveryId); + + using (var _result = await operations.RecoverDeletedKeyWithHttpMessagesAsync(keyRecoveryId.Vault, keyRecoveryId.Name, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Purges the deleted secret immediately. + /// + /// The recoveryId of the deleted secret, returned from deletion. + /// Optional cancellation token + /// A response message containing the recovered secret + public static async Task PurgeDeletedSecretAsync(this IKeyVaultClient operations, string recoveryId, CancellationToken cancellationToken = default(CancellationToken)) + { + if (string.IsNullOrEmpty(recoveryId)) + throw new ArgumentNullException(nameof(recoveryId)); + + var secretRecoveryId = new DeletedSecretIdentifier(recoveryId); + + using (var _result = await operations.PurgeDeletedSecretWithHttpMessagesAsync(secretRecoveryId.Vault, secretRecoveryId.Name, null, cancellationToken).ConfigureAwait(false)) + { + return; + } + } + + /// + /// Purges the deleted key immediately. + /// + /// The recoveryId of the deleted key, returned from deletion. + /// Optional cancellation token + /// A response message containing the recovered key + public static async Task PurgeDeletedKeyAsync(this IKeyVaultClient operations, string recoveryId, CancellationToken cancellationToken = default(CancellationToken)) + { + if (string.IsNullOrEmpty(recoveryId)) + throw new ArgumentNullException(nameof(recoveryId)); + + var keyRecoveryId = new DeletedKeyIdentifier(recoveryId); + + using (var _result = await operations.PurgeDeletedKeyWithHttpMessagesAsync(keyRecoveryId.Vault, keyRecoveryId.Name, null, cancellationToken).ConfigureAwait(false)) + { + return; + } + } + + #endregion + #region Certificate Management /// @@ -383,7 +466,7 @@ public static partial class KeyVaultClientExtensions throw new ArgumentNullException("vaultBaseUrl"); if (string.IsNullOrEmpty(certificateName)) - throw new ArgumentNullException("keyName"); + throw new ArgumentNullException("certificateName"); using (var _result = await operations.GetCertificateWithHttpMessagesAsync(vaultBaseUrl, certificateName, string.Empty, null, cancellationToken).ConfigureAwait(false)) { @@ -448,6 +531,9 @@ public static partial class KeyVaultClientExtensions if (string.IsNullOrWhiteSpace(vaultBaseUrl)) throw new ArgumentNullException("vaultBaseUrl"); + if (string.IsNullOrWhiteSpace(certificateName)) + throw new ArgumentNullException("certificateName"); + if (null == certificateCollection) throw new ArgumentNullException("certificateCollection"); diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/ObjectIdentifier.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/ObjectIdentifier.cs index 044206b50c98..30e487757d2c 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Customized/ObjectIdentifier.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Customized/ObjectIdentifier.cs @@ -34,7 +34,7 @@ protected static bool IsObjectIdentifier(string collection, string identifier) if (baseUri.Segments.Length != 3 && baseUri.Segments.Length != 4) return false; - if (!string.Equals(baseUri.Segments[1], collection + "/")) + if (!string.Equals(baseUri.Segments[1], collection + "/", StringComparison.OrdinalIgnoreCase)) return false; return true; @@ -109,7 +109,7 @@ protected ObjectIdentifier(string collection, string identifier) if (baseUri.Segments.Length != 3 && baseUri.Segments.Length != 4) throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, "Invalid ObjectIdentifier: {0}. Bad number of segments: {1}", identifier, baseUri.Segments.Length)); - if (!string.Equals(baseUri.Segments[1], collection + "/")) + if (!string.Equals(baseUri.Segments[1], collection + "/", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, "Invalid ObjectIdentifier: {0}. segment [1] should be '{1}/', found '{2}'", identifier, collection, baseUri.Segments[1])); _name = baseUri.Segments[2].Substring(0, baseUri.Segments[2].Length).TrimEnd('/'); @@ -257,6 +257,82 @@ public SecretIdentifier(string identifier) } } + /// + /// The Key Vault deleted key identifier. Aka the recoveryId. + /// + public sealed class DeletedKeyIdentifier : ObjectIdentifier + { + /// + /// Verifies whether the identifier belongs to a key vault deleted key. + /// + /// The key vault deleted key identifier. + /// True if the identifier belongs to a key vault deleted key. False otherwise. + public static bool IsDeletedKeyIdentifier(string identifier) + { + return ObjectIdentifier.IsObjectIdentifier("deletedkeys", identifier); + } + + /// + /// Constructor. + /// + /// the vault base URL + /// the name of the deleted key + public DeletedKeyIdentifier(string vaultBaseUrl, string name) + : base(vaultBaseUrl, "deletedkeys", name, string.Empty) + { + Identifier = BaseIdentifier; // Deleted entities are unversioned. + } + + /// + /// Constructor. + /// + /// The identifier for the deleted key. Aka the recoveryId return from deletion. + public DeletedKeyIdentifier(string identifier) + : base("deletedkeys", identifier) + { + Version = string.Empty; + Identifier = BaseIdentifier; // Deleted entities are unversioned. + } + } + + /// + /// The Key Vault deleted secret identifier. Aka the recoveryId. + /// + public sealed class DeletedSecretIdentifier : ObjectIdentifier + { + /// + /// Verifies whether the identifier belongs to a key vault deleted secret. + /// + /// The key vault secret identifier. + /// True if the identifier belongs to a key vault deleted secret. False otherwise. + public static bool IsDeletedSecretIdentifier(string identifier) + { + return ObjectIdentifier.IsObjectIdentifier("deletedsecrets", identifier); + } + + /// + /// Constructor. + /// + /// the vault base URL + /// the name of the deleted secret + public DeletedSecretIdentifier(string vaultBaseUrl, string name) + : base(vaultBaseUrl, "deletedsecrets", name, string.Empty) + { + Identifier = BaseIdentifier; // Deleted entities are unversioned. + } + + /// + /// Constructor. + /// + /// The identifier for the deleted secret. Aka the recoveryId return from deletion. + public DeletedSecretIdentifier(string identifier) + : base("deletedsecrets", identifier) + { + Version = string.Empty; + Identifier = BaseIdentifier; // Deleted entities are unversioned. + } + } + /// /// The Key Vault certificate identifier. /// diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs index 82f9c2869c40..e27a5b5eba4d 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs @@ -157,7 +157,7 @@ public partial interface IKeyVaultClient : System.IDisposable /// /// The cancellation token. /// - Task> DeleteKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The update key operation changes specified attributes of a stored @@ -453,7 +453,76 @@ public partial interface IKeyVaultClient : System.IDisposable Task> UnwrapKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, string keyVersion, string algorithm, byte[] value, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Sets a secret in a specified key vault. + /// List deleted keys in the specified vault + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Maximum number of results to return in a page. If not specified + /// the service will return up to 25 results. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task>> GetDeletedKeysWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Retrieves the deleted key information plus its attributes + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the key + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> GetDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Deletes the specified key forever. aka purges the key. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the key + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task PurgeDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Recovers the deleted key back to its current version under /keys + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the deleted key + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> RecoverDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Sets a secret in the specified vault. /// /// /// The vault name, for example https://myvault.vault.azure.net. @@ -496,7 +565,7 @@ public partial interface IKeyVaultClient : System.IDisposable /// /// The cancellation token. /// - Task> DeleteSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the attributes associated with a specified secret in a @@ -588,7 +657,77 @@ public partial interface IKeyVaultClient : System.IDisposable Task>> GetSecretVersionsWithHttpMessagesAsync(string vaultBaseUrl, string secretName, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List certificates in a specified key vault + /// List deleted secrets in the specified vault + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Maximum number of results to return in a page. If not specified + /// the service will return up to 25 results. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task>> GetDeletedSecretsWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Retrieves the deleted secret information plus its attributes + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the secret + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> GetDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Deletes the specified secret forever. aka purges the secret. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the secret + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task PurgeDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Recovers the deleted secret back to its current version under + /// /secrets + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the deleted secret + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> RecoverDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// List certificates in the specified vault /// /// /// The vault name, for example https://myvault.vault.azure.net. @@ -1060,7 +1199,21 @@ public partial interface IKeyVaultClient : System.IDisposable Task>> GetKeysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List secrets in a specified key vault + /// List deleted keys in the specified vault + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task>> GetDeletedKeysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// List secrets in the specified vault /// /// /// The NextLink from the previous successful call to List operation. @@ -1088,7 +1241,21 @@ public partial interface IKeyVaultClient : System.IDisposable Task>> GetSecretVersionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List certificates in a specified key vault + /// List deleted secrets in the specified vault + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task>> GetDeletedSecretsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// List certificates in the specified vault /// /// /// The NextLink from the previous successful call to List operation. diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs index 82df7631f80c..a14f7c5d479f 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs @@ -1,31 +1,34 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault { - using Azure; - using Rest; - using Rest.Azure; - using Rest.Serialization; - using Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; + using System; using System.Linq; + using System.Collections.Generic; + using System.Diagnostics; using System.Net; using System.Net.Http; + using System.Net.Http.Headers; + using System.Text; + using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using Microsoft.Rest.Azure; + using Models; using Microsoft.Azure.KeyVault.WebKey; /// - /// The key vault client performs cryptographic key operations and vault - /// operations against the Key Vault service. + /// Performs cryptographic key operations and vault operations against the + /// Key Vault service. /// public partial class KeyVaultClient : ServiceClient, IKeyVaultClient, IAzureClient { @@ -42,7 +45,7 @@ public partial class KeyVaultClient : ServiceClient, IKeyVaultCl /// /// Gets or sets json deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Credentials needed for the client to connect to Azure. @@ -50,7 +53,7 @@ public partial class KeyVaultClient : ServiceClient, IKeyVaultCl public ServiceClientCredentials Credentials { get; private set; } /// - /// Client API version. + /// Client Api Version. /// public string ApiVersion { get; private set; } @@ -77,9 +80,9 @@ public partial class KeyVaultClient : ServiceClient, IKeyVaultCl /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected KeyVaultClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) + protected KeyVaultClient(params DelegatingHandler[] handlers) : base(handlers) { - Initialize(); + this.Initialize(); } /// @@ -91,9 +94,9 @@ protected KeyVaultClient(params System.Net.Http.DelegatingHandler[] handlers) : /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected KeyVaultClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) + protected KeyVaultClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { - Initialize(); + this.Initialize(); } /// @@ -105,19 +108,19 @@ protected KeyVaultClient(System.Net.Http.HttpClientHandler rootHandler, params S /// /// Optional. The delegating handlers to add to the http client pipeline. /// - /// + /// /// Thrown when a required parameter is null /// - public KeyVaultClient(ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public KeyVaultClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { - throw new System.ArgumentNullException("credentials"); + throw new ArgumentNullException("credentials"); } - Credentials = credentials; - if (Credentials != null) + this.Credentials = credentials; + if (this.Credentials != null) { - Credentials.InitializeServiceClient(this); + this.Credentials.InitializeServiceClient(this); } } @@ -133,19 +136,19 @@ public KeyVaultClient(ServiceClientCredentials credentials, params System.Net.Ht /// /// Optional. The delegating handlers to add to the http client pipeline. /// - /// + /// /// Thrown when a required parameter is null /// - public KeyVaultClient(ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public KeyVaultClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { - throw new System.ArgumentNullException("credentials"); + throw new ArgumentNullException("credentials"); } - Credentials = credentials; - if (Credentials != null) + this.Credentials = credentials; + if (this.Credentials != null) { - Credentials.InitializeServiceClient(this); + this.Credentials.InitializeServiceClient(this); } } @@ -158,11 +161,11 @@ public KeyVaultClient(ServiceClientCredentials credentials, System.Net.Http.Http /// private void Initialize() { - BaseUri = "{vaultBaseUrl}"; - ApiVersion = "2016-10-01"; - AcceptLanguage = "en-US"; - LongRunningOperationRetryTimeout = 30; - GenerateClientRequestId = true; + this.BaseUri = "{vaultBaseUrl}"; + this.ApiVersion = "2016-10-01"; + this.AcceptLanguage = "en-US"; + this.LongRunningOperationRetryTimeout = 30; + this.GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Formatting.Indented, @@ -189,35 +192,31 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } /// - /// Creates a new key, stores it, then returns key parameters and attributes to - /// the client. The create key operation can be used to create any key type in - /// Azure Key Vault. If the named key already exists, Azure Key Vault creates a - /// new version of the key. Authorization: Requires the keys/create permission. + /// Creates a new, named, key in the specified vault. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name for the new key. The system will generate the version name for the - /// new key. + /// The name of the key /// /// - /// The type of key to create. For valid key types, see JsonWebKeyType. - /// Supported JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. - /// Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct' + /// The type of key to create. Valid key types, see JsonWebKeyType. Supported + /// JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. Possible + /// values include: 'EC', 'RSA', 'RSA-HSM', 'oct' /// /// - /// The key size in bytes. For example, 1024 or 2048. + /// The key size in bytes. e.g. 1024 or 2048. /// /// /// /// /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// Headers that will be added to request. @@ -234,9 +233,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -257,7 +253,7 @@ private void Initialize() throw new ValidationException(ValidationRules.Pattern, "keyName", "^[0-9a-zA-Z-]+$"); } } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -273,7 +269,7 @@ private void Initialize() } } KeyCreateParameters parameters = new KeyCreateParameters(); - if (kty != null || keySize != null || keyOps != null || keyAttributes != null || tags != null) + if (kty != null || keyOps != null || keyAttributes != null || tags != null) { parameters.Kty = kty; parameters.KeySize = keySize; @@ -295,39 +291,37 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "CreateKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/create"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -344,15 +338,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -360,7 +354,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -374,7 +368,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -411,7 +405,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -431,29 +425,25 @@ private void Initialize() } /// - /// Imports an externally created key, stores it, and returns key parameters - /// and attributes to the client. The import key operation may be used to - /// import any key type into an Azure Key Vault. If the named key already - /// exists, Azure Key Vault creates a new version of the key. Authorization: - /// requires the keys/import permission. + /// Imports a key into the specified vault /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// Name for the imported key. + /// The name of the key /// /// /// The Json web key /// /// - /// Whether to import as a hardware key (HSM) or software key. + /// Whether to import as a hardware key (HSM) or software key /// /// - /// The key management attributes. + /// The key management attributes /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// Headers that will be added to request. @@ -470,9 +460,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -493,7 +480,7 @@ private void Initialize() throw new ValidationException(ValidationRules.Pattern, "keyName", "^[0-9a-zA-Z-]+$"); } } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -502,7 +489,7 @@ private void Initialize() throw new ValidationException(ValidationRules.CannotBeNull, "key"); } KeyImportParameters parameters = new KeyImportParameters(); - if (hsm != null || key != null || keyAttributes != null || tags != null) + if (key != null || keyAttributes != null || tags != null) { parameters.Hsm = hsm; parameters.Key = key; @@ -523,39 +510,37 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "ImportKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -572,15 +557,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -588,7 +573,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -602,7 +587,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -639,7 +624,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -659,17 +644,13 @@ private void Initialize() } /// - /// Deletes a key of any type from storage in Azure Key Vault. The delete key - /// operation cannot be used to remove individual versions of a key. This - /// operation removes the cryptographic material associated with the key, which - /// means the key is not usable for Sign/Verify, Wrap/Unwrap or Encrypt/Decrypt - /// operations. Authorization: Requires the keys/delete permission. + /// Deletes the specified key /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key to delete. + /// The name of the key /// /// /// Headers that will be added to request. @@ -686,13 +667,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> DeleteKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -702,7 +680,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -719,39 +697,37 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "DeleteKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -767,10 +743,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -778,7 +754,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -792,7 +768,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -816,7 +792,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -829,7 +805,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -849,20 +825,16 @@ private void Initialize() } /// - /// The update key operation changes specified attributes of a stored key and - /// can be applied to any key type and key version stored in Azure Key Vault. - /// The cryptographic material of a key itself cannot be changed. In order to - /// perform this operation, the key must already exist in the Key Vault. - /// Authorization: requires the keys/update permission. + /// Updates the Key Attributes associated with the specified key /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of key to update. + /// The name of the key /// /// - /// The version of the key to update. + /// The version of the key /// /// /// Json web key operations. For more information on possible key operations, @@ -871,7 +843,7 @@ private void Initialize() /// /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// Headers that will be added to request. @@ -888,9 +860,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -908,7 +877,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -934,40 +903,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UpdateKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -984,15 +951,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1000,7 +967,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1014,7 +981,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1051,7 +1018,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -1071,19 +1038,16 @@ private void Initialize() } /// - /// Gets the public part of a stored key. The get key operation is applicable - /// to all key types. If the requested key is symmetric, then no key material - /// is released in the response. Authorization: Requires the keys/get - /// permission. + /// Retrieves the public portion of a key plus its attributes /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key to get. + /// The name of the key /// /// - /// Adding the version parameter retrieves a specific version of a key. + /// The version of the key /// /// /// Headers that will be added to request. @@ -1100,9 +1064,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -1120,7 +1081,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1138,40 +1099,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1187,10 +1146,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1198,7 +1157,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1212,7 +1171,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1249,7 +1208,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -1269,19 +1228,17 @@ private void Initialize() } /// - /// Retrieves a list of individual key versions with the same key name. The - /// full key identifier, attributes, and tags are provided in the response. - /// Authorization: Requires the keys/list permission. + /// List the versions of the specified key /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// Headers that will be added to request. @@ -1298,9 +1255,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -1322,7 +1276,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1340,43 +1294,41 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetKeyVersions", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/versions"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); } - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1392,10 +1344,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1403,7 +1355,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1417,7 +1369,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1454,7 +1406,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -1474,14 +1426,14 @@ private void Initialize() } /// - /// List keys in the specified vault. + /// List keys in the specified vault /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// Headers that will be added to request. @@ -1498,9 +1450,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -1518,7 +1467,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1535,42 +1484,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetKeys", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); } - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1586,10 +1533,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1597,7 +1544,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1611,7 +1558,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1648,7 +1595,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -1671,10 +1618,10 @@ private void Initialize() /// Requests that a backup of the specified key be downloaded to the client. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// /// Headers that will be added to request. @@ -1691,9 +1638,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -1707,7 +1651,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1724,39 +1668,37 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "BackupKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/backup"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1772,10 +1714,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1783,7 +1725,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1797,7 +1739,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1834,7 +1776,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -1854,13 +1796,13 @@ private void Initialize() } /// - /// Restores a backed up key to a vault. + /// Restores the backup key in to a vault /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The backup blob associated with a key bundle. + /// the backup blob associated with a key bundle /// /// /// Headers that will be added to request. @@ -1877,9 +1819,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -1889,7 +1828,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1915,38 +1854,36 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "RestoreKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/restore"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1963,15 +1900,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1979,7 +1916,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1993,7 +1930,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2030,7 +1967,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -2051,16 +1988,16 @@ private void Initialize() /// /// Encrypts an arbitrary sequence of bytes using an encryption key that is - /// stored in a key vault. + /// stored in Azure Key Vault. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -2082,9 +2019,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -2102,7 +2036,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2142,40 +2076,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Encrypt", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/encrypt"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2192,15 +2124,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2208,7 +2140,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2222,7 +2154,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2259,7 +2191,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -2279,16 +2211,16 @@ private void Initialize() } /// - /// Decrypts a single block of encrypted data. + /// Decrypts a single block of encrypted data /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -2310,9 +2242,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -2330,7 +2259,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2370,40 +2299,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Decrypt", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/decrypt"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2420,15 +2347,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2436,7 +2363,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2450,7 +2377,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2487,7 +2414,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -2507,21 +2434,21 @@ private void Initialize() } /// - /// Creates a signature from a digest using the specified key. + /// Creates a signature from a digest using the specified key in the vault /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// The signing/verification algorithm identifier. For more information on - /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible values - /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' + /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible + /// values include: 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// /// @@ -2540,9 +2467,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -2560,7 +2484,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2600,40 +2524,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Sign", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/sign"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2650,15 +2572,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2666,7 +2588,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2680,7 +2602,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2717,7 +2639,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -2737,27 +2659,27 @@ private void Initialize() } /// - /// Verifies a signature using a specified key. + /// Verifies a signature using the specified key /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// The signing/verification algorithm. For more information on possible - /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values include: - /// 'RS256', 'RS384', 'RS512', 'RSNULL' + /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values + /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// - /// The digest used for signing. + /// The digest used for signing /// /// - /// The signature to be verified. + /// The signature to be verified /// /// /// Headers that will be added to request. @@ -2774,9 +2696,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -2794,7 +2713,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2839,40 +2758,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Verify", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/verify"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2889,15 +2806,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2905,7 +2822,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2919,7 +2836,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2956,7 +2873,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -2976,16 +2893,16 @@ private void Initialize() } /// - /// Wraps a symmetric key using a specified key. + /// Wraps a symmetric key using the specified key /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -3007,9 +2924,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -3027,7 +2941,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3067,40 +2981,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "WrapKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/wrapkey"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3117,15 +3029,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3133,7 +3045,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3147,7 +3059,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3184,7 +3096,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -3204,17 +3116,17 @@ private void Initialize() } /// - /// Unwraps a symmetric key using the specified key that was initially used for - /// wrapping that key. + /// Unwraps a symmetric key using the specified key in the vault that has + /// initially been used for wrapping the key. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -3236,9 +3148,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -3256,7 +3165,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3296,40 +3205,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UnwrapKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/unwrapkey"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3346,15 +3253,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3362,7 +3269,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3376,7 +3283,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3413,7 +3320,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -3433,25 +3340,14 @@ private void Initialize() } /// - /// Sets a secret in a specified key vault. + /// List deleted keys in the specified vault /// /// - /// The vault name, for example https://myvault.vault.azure.net. - /// - /// - /// The name of the secret. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// The value of the secret. - /// - /// - /// Application specific metadata in the form of key-value pairs. - /// - /// - /// Type of the secret value such as a password. - /// - /// - /// The secret management attributes. + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// Headers that will be added to request. @@ -3468,45 +3364,27 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> SetSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, string value, IDictionary tags = default(IDictionary), string contentType = default(string), SecretAttributes secretAttributes = default(SecretAttributes), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetDeletedKeysWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (secretName == null) + if (maxresults > 25) { - throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); } - if (secretName != null) + if (maxresults < 1) { - if (!System.Text.RegularExpressions.Regex.IsMatch(secretName, "^[0-9a-zA-Z-]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "secretName", "^[0-9a-zA-Z-]+$"); - } + throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - if (value == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "value"); - } - SecretSetParameters parameters = new SecretSetParameters(); - if (value != null || tags != null || contentType != null || secretAttributes != null) - { - parameters.Value = value; - parameters.Tags = tags; - parameters.ContentType = contentType; - parameters.SecretAttributes = secretAttributes; - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3515,45 +3393,45 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("secretName", secretName); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("maxresults", maxresults); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "SetSecret", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetDeletedKeys", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (maxresults != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + } + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3568,17 +3446,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3586,7 +3458,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3600,7 +3472,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3624,7 +3496,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -3637,7 +3509,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -3657,13 +3529,13 @@ private void Initialize() } /// - /// Deletes a secret from a specified key vault. + /// Retrieves the deleted key information plus its attributes /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// The name of the secret. + /// + /// The name of the key /// /// /// Headers that will be added to request. @@ -3680,23 +3552,20 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> DeleteSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (secretName == null) + if (keyName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); + throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3708,44 +3577,42 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("secretName", secretName); + tracingParameters.Add("keyName", keyName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteSecret", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetDeletedKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3761,10 +3628,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3772,7 +3639,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3786,7 +3653,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3810,7 +3677,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -3823,7 +3690,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -3843,26 +3710,13 @@ private void Initialize() } /// - /// Updates the attributes associated with a specified secret in a given key - /// vault. + /// Deletes the specified key forever. aka purges the key. /// /// - /// The vault name, for example https://myvault.vault.azure.net. - /// - /// - /// The name of the secret. - /// - /// - /// The version of the secret. - /// - /// - /// Type of the secret value such as a password. - /// - /// - /// The secret management attributes. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// Application specific metadata in the form of key-value pairs. + /// + /// The name of the key /// /// /// Headers that will be added to request. @@ -3873,43 +3727,26 @@ private void Initialize() /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> UpdateSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, string secretVersion, string contentType = default(string), SecretAttributes secretAttributes = default(SecretAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task PurgeDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (secretName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); - } - if (secretVersion == null) + if (keyName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "secretVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - SecretUpdateParameters parameters = new SecretUpdateParameters(); - if (contentType != null || secretAttributes != null || tags != null) - { - parameters.ContentType = contentType; - parameters.SecretAttributes = secretAttributes; - parameters.Tags = tags; - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3918,47 +3755,42 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("secretName", secretName); - tracingParameters.Add("secretVersion", secretVersion); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("keyName", keyName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "UpdateSecret", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "PurgeDeletedKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/{secret-version}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); - _url = _url.Replace("{secret-version}", System.Uri.EscapeDataString(secretVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3973,17 +3805,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3991,7 +3817,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3999,13 +3825,13 @@ private void Initialize() HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 204) { var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4029,31 +3855,13 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -4062,16 +3870,13 @@ private void Initialize() } /// - /// Get a specified secret from a given key vault. + /// Recovers the deleted key back to its current version under /keys /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// The name of the secret. - /// - /// - /// The version of the secret. + /// + /// The name of the deleted key /// /// /// Headers that will be added to request. @@ -4088,27 +3893,20 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, string secretVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> RecoverDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (secretName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); - } - if (secretVersion == null) + if (keyName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "secretVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4120,46 +3918,42 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("secretName", secretName); - tracingParameters.Add("secretVersion", secretVersion); + tracingParameters.Add("keyName", keyName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetSecret", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "RecoverDeletedKey", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/{secret-version}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys/{key-name}/recover"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); - _url = _url.Replace("{secret-version}", System.Uri.EscapeDataString(secretVersion)); + _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4175,10 +3969,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4186,7 +3980,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4200,7 +3994,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4224,7 +4018,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -4237,7 +4031,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -4257,14 +4051,25 @@ private void Initialize() } /// - /// List secrets in a specified key vault + /// Sets a secret in the specified vault. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// + /// The name of the secret in the given vault + /// + /// + /// The value of the secret + /// + /// + /// Application-specific metadata in the form of key-value pairs + /// + /// + /// Type of the secret value such as a password + /// + /// + /// The secret management attributes /// /// /// Headers that will be added to request. @@ -4281,79 +4086,87 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetSecretsWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> SetSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, string value, IDictionary tags = default(IDictionary), string contentType = default(string), SecretAttributes secretAttributes = default(SecretAttributes), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (maxresults > 25) + if (secretName == null) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); + throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (maxresults < 1) + if (secretName != null) { - throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + if (!System.Text.RegularExpressions.Regex.IsMatch(secretName, "^[0-9a-zA-Z-]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "secretName", "^[0-9a-zA-Z-]+$"); + } } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) + if (value == null) { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("maxresults", maxresults); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetSecrets", tracingParameters); + throw new ValidationException(ValidationRules.CannotBeNull, "value"); + } + SecretSetParameters parameters = new SecretSetParameters(); + if (value != null || tags != null || contentType != null || secretAttributes != null) + { + parameters.Value = value; + parameters.Tags = tags; + parameters.ContentType = contentType; + parameters.SecretAttributes = secretAttributes; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("secretName", secretName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "SetSecret", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (maxresults != null) - { - _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); - } - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4368,11 +4181,17 @@ private void Initialize() // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4380,7 +4199,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4394,7 +4213,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4418,7 +4237,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -4431,7 +4250,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -4451,17 +4270,13 @@ private void Initialize() } /// - /// List the versions of the specified secret. + /// Deletes a secret from the specified vault. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the secret. - /// - /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// The name of the secret in the given vault /// /// /// Headers that will be added to request. @@ -4478,13 +4293,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetSecretVersionsWithHttpMessagesAsync(string vaultBaseUrl, string secretName, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -4494,15 +4306,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (maxresults > 25) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); - } - if (maxresults < 1) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); - } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4515,48 +4319,41 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("secretName", secretName); - tracingParameters.Add("maxresults", maxresults); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetSecretVersions", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteSecret", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/versions"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (maxresults != null) - { - _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); - } - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4572,10 +4369,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4583,7 +4380,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4597,7 +4394,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4621,7 +4418,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -4634,7 +4431,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -4654,14 +4451,25 @@ private void Initialize() } /// - /// List certificates in a specified key vault + /// Updates the attributes associated with the specified secret /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// + /// The name of the secret in the given vault + /// + /// + /// The version of the secret + /// + /// + /// Type of the secret value such as a password + /// + /// + /// The secret management attributes + /// + /// + /// Application-specific metadata in the form of key-value pairs /// /// /// Headers that will be added to request. @@ -4678,30 +4486,34 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetCertificatesWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, string secretVersion, string contentType = default(string), SecretAttributes secretAttributes = default(SecretAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (maxresults > 25) + if (secretName == null) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); + throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (maxresults < 1) + if (secretVersion == null) { - throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + throw new ValidationException(ValidationRules.CannotBeNull, "secretVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } + SecretUpdateParameters parameters = new SecretUpdateParameters(); + if (contentType != null || secretAttributes != null || tags != null) + { + parameters.ContentType = contentType; + parameters.SecretAttributes = secretAttributes; + parameters.Tags = tags; + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4710,47 +4522,45 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("maxresults", maxresults); + tracingParameters.Add("secretName", secretName); + tracingParameters.Add("secretVersion", secretVersion); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificates", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateSecret", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/{secret-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-version}", Uri.EscapeDataString(secretVersion)); List _queryParameters = new List(); - if (maxresults != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); - } - if (ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4765,11 +4575,17 @@ private void Initialize() // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4777,7 +4593,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4791,7 +4607,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4815,7 +4631,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -4828,7 +4644,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -4848,13 +4664,16 @@ private void Initialize() } /// - /// Deletes a certificate from a specified key vault. + /// Gets a secret. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// The name of the certificate. + /// + /// The name of the secret in the given vault + /// + /// + /// The version of the secret /// /// /// Headers that will be added to request. @@ -4871,23 +4690,24 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, string secretVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (certificateName == null) + if (secretName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); + } + if (secretVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "secretVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4899,44 +4719,44 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("secretName", secretName); + tracingParameters.Add("secretVersion", secretVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetSecret", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/{secret-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-version}", Uri.EscapeDataString(secretVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4952,10 +4772,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4963,7 +4783,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4977,7 +4797,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5001,7 +4821,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -5014,7 +4834,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -5034,13 +4854,14 @@ private void Initialize() } /// - /// Sets the certificate contacts for the specified key vault. + /// List secrets in the specified vault /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// The contacts for the key vault certificate. + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// Headers that will be added to request. @@ -5057,23 +4878,24 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> SetCertificateContactsWithHttpMessagesAsync(string vaultBaseUrl, Contacts contacts, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetSecretsWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (contacts == null) + if (maxresults > 25) { - throw new ValidationException(ValidationRules.CannotBeNull, "contacts"); + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); + } + if (maxresults < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5085,43 +4907,45 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("contacts", contacts); + tracingParameters.Add("maxresults", maxresults); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "SetCertificateContacts", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetSecrets", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); - if (ApiVersion != null) + if (maxresults != null) + { + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + } + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5136,17 +4960,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(contacts != null) - { - _requestContent = SafeJsonConvert.SerializeObject(contacts, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5154,7 +4972,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5168,7 +4986,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5192,7 +5010,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -5205,7 +5023,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -5225,10 +5043,17 @@ private void Initialize() } /// - /// Lists the certificate contacts for a specified key vault. + /// List the versions of the specified secret /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the secret in the given vault + /// + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// Headers that will be added to request. @@ -5245,19 +5070,28 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetCertificateContactsWithHttpMessagesAsync(string vaultBaseUrl, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetSecretVersionsWithHttpMessagesAsync(string vaultBaseUrl, string secretName, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (ApiVersion == null) + if (secretName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); + } + if (maxresults > 25) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); + } + if (maxresults < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + } + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5269,42 +5103,47 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("secretName", secretName); + tracingParameters.Add("maxresults", maxresults); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificateContacts", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetSecretVersions", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/versions"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (maxresults != null) + { + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + } + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5320,10 +5159,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5331,7 +5170,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5345,7 +5184,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5369,7 +5208,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -5382,7 +5221,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -5402,10 +5241,14 @@ private void Initialize() } /// - /// Deletes the certificate contacts for a specified key vault. + /// List deleted secrets in the specified vault /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// Headers that will be added to request. @@ -5422,19 +5265,24 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCertificateContactsWithHttpMessagesAsync(string vaultBaseUrl, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetDeletedSecretsWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (ApiVersion == null) + if (maxresults > 25) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); + } + if (maxresults < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + } + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5446,42 +5294,45 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("maxresults", maxresults); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateContacts", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetDeletedSecrets", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); - if (ApiVersion != null) + if (maxresults != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + } + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5497,10 +5348,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5508,7 +5359,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5522,7 +5373,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5546,7 +5397,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -5559,7 +5410,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -5579,14 +5430,13 @@ private void Initialize() } /// - /// List certificate issuers for a specified key vault. + /// Retrieves the deleted secret information plus its attributes /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// + /// The name of the secret /// /// /// Headers that will be added to request. @@ -5603,27 +5453,20 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetCertificateIssuersWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (maxresults > 25) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); - } - if (maxresults < 1) + if (secretName == null) { - throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5635,47 +5478,42 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("maxresults", maxresults); + tracingParameters.Add("secretName", secretName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificateIssuers", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetDeletedSecret", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets/{secret-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (maxresults != null) - { - _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); - } - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5691,10 +5529,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5702,7 +5540,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5716,7 +5554,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5740,7 +5578,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -5753,7 +5591,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -5773,25 +5611,1455 @@ private void Initialize() } /// - /// Sets the specified certificate issuer. + /// Deletes the specified secret forever. aka purges the secret. /// /// - /// The vault name, for example https://myvault.vault.azure.net. - /// - /// - /// The name of the issuer. - /// - /// - /// The issuer provider. - /// - /// - /// The credentials to be used for the issuer. - /// - /// - /// Details of the organization as provided to the issuer. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// Attributes of the issuer object. + /// + /// The name of the secret + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task PurgeDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (secretName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("secretName", secretName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "PurgeDeletedSecret", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets/{secret-name}"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Recovers the deleted secret back to its current version under /secrets + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the deleted secret + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> RecoverDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (secretName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("secretName", secretName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "RecoverDeletedSecret", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets/{secret-name}/recover"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List certificates in the specified vault + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> GetCertificatesWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (maxresults > 25) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); + } + if (maxresults < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("maxresults", maxresults); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificates", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + List _queryParameters = new List(); + if (maxresults != null) + { + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + } + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a certificate from the specified vault. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the certificate in the given vault + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (certificateName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificate", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Sets the certificate contacts for the specified vault. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The contacts for the vault certificates. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> SetCertificateContactsWithHttpMessagesAsync(string vaultBaseUrl, Contacts contacts, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (contacts == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "contacts"); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("contacts", contacts); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "SetCertificateContacts", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(contacts != null) + { + _requestContent = SafeJsonConvert.SerializeObject(contacts, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the certificate contacts for the specified vault. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetCertificateContactsWithHttpMessagesAsync(string vaultBaseUrl, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificateContacts", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the certificate contacts for the specified vault. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteCertificateContactsWithHttpMessagesAsync(string vaultBaseUrl, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateContacts", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List certificate issuers for the specified vault. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> GetCertificateIssuersWithHttpMessagesAsync(string vaultBaseUrl, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (maxresults > 25) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); + } + if (maxresults < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("maxresults", maxresults); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificateIssuers", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + List _queryParameters = new List(); + if (maxresults != null) + { + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + } + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Sets the specified certificate issuer. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the issuer. + /// + /// + /// The issuer provider. + /// + /// + /// The credentials to be used for the issuer. + /// + /// + /// Details of the organization as provided to the issuer. + /// + /// + /// Attributes of the issuer object. /// /// /// Headers that will be added to request. @@ -5808,13 +7076,222 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> SetCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, string provider, IssuerCredentials credentials = default(IssuerCredentials), OrganizationDetails organizationDetails = default(OrganizationDetails), IssuerAttributes attributes = default(IssuerAttributes), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (issuerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + if (provider == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provider"); + } + CertificateIssuerSetParameters parameter = new CertificateIssuerSetParameters(); + if (provider != null || credentials != null || organizationDetails != null || attributes != null) + { + parameter.Provider = provider; + parameter.Credentials = credentials; + parameter.OrganizationDetails = organizationDetails; + parameter.Attributes = attributes; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("issuerName", issuerName); + tracingParameters.Add("parameter", parameter); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "SetCertificateIssuer", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameter != null) + { + _requestContent = SafeJsonConvert.SerializeObject(parameter, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the specified certificate issuer. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the issuer. + /// + /// + /// The issuer provider. + /// + /// + /// The credentials to be used for the issuer. + /// + /// + /// Details of the organization as provided to the issuer. + /// + /// + /// Attributes of the issuer object. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async Task> SetCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, string provider, IssuerCredentials credentials = default(IssuerCredentials), OrganizationDetails organizationDetails = default(OrganizationDetails), IssuerAttributes attributes = default(IssuerAttributes), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, string provider = default(string), IssuerCredentials credentials = default(IssuerCredentials), OrganizationDetails organizationDetails = default(OrganizationDetails), IssuerAttributes attributes = default(IssuerAttributes), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -5824,15 +7301,11 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - if (provider == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "provider"); - } - CertificateIssuerSetParameters parameter = new CertificateIssuerSetParameters(); + CertificateIssuerUpdateParameters parameter = new CertificateIssuerUpdateParameters(); if (provider != null || credentials != null || organizationDetails != null || attributes != null) { parameter.Provider = provider; @@ -5851,42 +7324,40 @@ private void Initialize() tracingParameters.Add("issuerName", issuerName); tracingParameters.Add("parameter", parameter); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "SetCertificateIssuer", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificateIssuer", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5903,15 +7374,15 @@ private void Initialize() string _requestContent = null; if(parameter != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameter, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameter, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5919,7 +7390,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5933,7 +7404,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5970,7 +7441,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -5990,26 +7461,14 @@ private void Initialize() } /// - /// Updates the specified certificate issuer. + /// Gets the specified certificate issuer. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The name of the issuer. /// - /// - /// The issuer provider. - /// - /// - /// The credentials to be used for the issuer. - /// - /// - /// Details of the organization as provided to the issuer. - /// - /// - /// Attributes of the issuer object. - /// /// /// Headers that will be added to request. /// @@ -6025,13 +7484,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> UpdateCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, string provider = default(string), IssuerCredentials credentials = default(IssuerCredentials), OrganizationDetails organizationDetails = default(OrganizationDetails), IssuerAttributes attributes = default(IssuerAttributes), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -6041,18 +7497,10 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - CertificateIssuerUpdateParameters parameter = new CertificateIssuerUpdateParameters(); - if (provider != null || credentials != null || organizationDetails != null || attributes != null) - { - parameter.Provider = provider; - parameter.Credentials = credentials; - parameter.OrganizationDetails = organizationDetails; - parameter.Attributes = attributes; - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6062,44 +7510,41 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("issuerName", issuerName); - tracingParameters.Add("parameter", parameter); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificateIssuer", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificateIssuer", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6114,17 +7559,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(parameter != null) - { - _requestContent = SafeJsonConvert.SerializeObject(parameter, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6132,7 +7571,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6146,7 +7585,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6183,7 +7622,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -6203,10 +7642,10 @@ private void Initialize() } /// - /// Lists the specified certificate issuer. + /// Deletes the specified certificate issuer. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The name of the issuer. @@ -6226,13 +7665,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -6242,7 +7678,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -6256,42 +7692,40 @@ private void Initialize() tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("issuerName", issuerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificateIssuer", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateIssuer", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6307,10 +7741,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6318,7 +7752,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6332,7 +7766,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6369,7 +7803,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -6389,13 +7823,23 @@ private void Initialize() } /// - /// Deletes the specified certificate issuer. + /// Creates a new certificate version. If this is the first version, the + /// certificate resource is created. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// The name of the issuer. + /// + /// The name of the certificate + /// + /// + /// The management policy for the certificate + /// + /// + /// The attributes of the certificate (optional) + /// + /// + /// Application-specific metadata in the form of key-value pairs /// /// /// Headers that will be added to request. @@ -6412,26 +7856,270 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, CertificatePolicy certificatePolicy = default(CertificatePolicy), CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultBaseUrl == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); + } + if (certificateName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (certificateName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(certificateName, "^[0-9a-zA-Z-]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "certificateName", "^[0-9a-zA-Z-]+$"); + } + } + if (this.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + if (certificatePolicy != null) + { + certificatePolicy.Validate(); + } + CertificateCreateParameters parameters = new CertificateCreateParameters(); + if (certificatePolicy != null || certificateAttributes != null || tags != null) + { + parameters.CertificatePolicy = certificatePolicy; + parameters.CertificateAttributes = certificateAttributes; + parameters.Tags = tags; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateCertificate", tracingParameters); + } + // Construct URL + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/create"; + _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + List _queryParameters = new List(); + if (this.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202) + { + var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Imports a certificate into the specified vault + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the certificate + /// + /// + /// Base64 encoded representation of the certificate object to import. This + /// certificate needs to contain the private key. + /// + /// + /// If the private key in base64EncodedCertificate is encrypted, the password + /// used for encryption + /// + /// + /// The management policy for the certificate + /// + /// + /// The attributes of the certificate (optional) + /// + /// + /// Application-specific metadata in the form of key-value pairs + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCertificateIssuerWithHttpMessagesAsync(string vaultBaseUrl, string issuerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ImportCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, string base64EncodedCertificate, string password = default(string), CertificatePolicy certificatePolicy = default(CertificatePolicy), CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (issuerName == null) + if (certificateName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (certificateName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(certificateName, "^[0-9a-zA-Z-]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "certificateName", "^[0-9a-zA-Z-]+$"); + } } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } + if (base64EncodedCertificate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "base64EncodedCertificate"); + } + if (certificatePolicy != null) + { + certificatePolicy.Validate(); + } + CertificateImportParameters parameters = new CertificateImportParameters(); + if (base64EncodedCertificate != null || password != null || certificatePolicy != null || certificateAttributes != null || tags != null) + { + parameters.Base64EncodedCertificate = base64EncodedCertificate; + parameters.Password = password; + parameters.CertificatePolicy = certificatePolicy; + parameters.CertificateAttributes = certificateAttributes; + parameters.Tags = tags; + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6440,44 +8128,43 @@ private void Initialize() _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("issuerName", issuerName); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateIssuer", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ImportCertificate", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/import"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6492,11 +8179,17 @@ private void Initialize() // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6504,7 +8197,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6518,7 +8211,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6542,7 +8235,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -6555,7 +8248,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -6575,23 +8268,17 @@ private void Initialize() } /// - /// Creates a new certificate. If this is the first version, the certificate - /// resource is created. + /// List the versions of a certificate. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. - /// - /// - /// The management policy for the certificate. - /// - /// - /// The attributes of the certificate (optional). + /// The name of the certificate /// - /// - /// Application specific metadata in the form of key-value pairs. + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// Headers that will be added to request. @@ -6608,13 +8295,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> CreateCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, CertificatePolicy certificatePolicy = default(CertificatePolicy), CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetCertificateVersionsWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -6624,27 +8308,17 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (certificateName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(certificateName, "^[0-9a-zA-Z-]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "certificateName", "^[0-9a-zA-Z-]+$"); - } - } - if (ApiVersion == null) + if (maxresults > 25) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); } - if (certificatePolicy != null) + if (maxresults < 1) { - certificatePolicy.Validate(); + throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - CertificateCreateParameters parameters = new CertificateCreateParameters(); - if (certificatePolicy != null || certificateAttributes != null || tags != null) + if (this.ApiVersion == null) { - parameters.CertificatePolicy = certificatePolicy; - parameters.CertificateAttributes = certificateAttributes; - parameters.Tags = tags; + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -6655,44 +8329,46 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("maxresults", maxresults); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateCertificate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificateVersions", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/create"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/versions"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (maxresults != null) + { + _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + } + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6707,17 +8383,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6725,7 +8395,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6733,13 +8403,13 @@ private void Initialize() HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202) + if ((int)_statusCode != 200) { var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6763,7 +8433,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -6771,12 +8441,12 @@ private void Initialize() _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 202) + if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -6796,30 +8466,13 @@ private void Initialize() } /// - /// Imports a certificate into a specified key vault. + /// Gets the policy for a certificate. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. - /// - /// - /// Base64 encoded representation of the certificate object to import. This - /// certificate needs to contain the private key. - /// - /// - /// If the private key in base64EncodedCertificate is encrypted, the password - /// used for encryption. - /// - /// - /// The management policy for the certificate. - /// - /// - /// The attributes of the certificate (optional). - /// - /// - /// Application specific metadata in the form of key-value pairs. + /// The name of the certificate in the given vault. /// /// /// Headers that will be added to request. @@ -6836,13 +8489,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> ImportCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, string base64EncodedCertificate, string password = default(string), CertificatePolicy certificatePolicy = default(CertificatePolicy), CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCertificatePolicyWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -6852,34 +8502,10 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (certificateName != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(certificateName, "^[0-9a-zA-Z-]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "certificateName", "^[0-9a-zA-Z-]+$"); - } - } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - if (base64EncodedCertificate == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "base64EncodedCertificate"); - } - if (certificatePolicy != null) - { - certificatePolicy.Validate(); - } - CertificateImportParameters parameters = new CertificateImportParameters(); - if (base64EncodedCertificate != null || password != null || certificatePolicy != null || certificateAttributes != null || tags != null) - { - parameters.Base64EncodedCertificate = base64EncodedCertificate; - parameters.Password = password; - parameters.CertificatePolicy = certificatePolicy; - parameters.CertificateAttributes = certificateAttributes; - parameters.Tags = tags; - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6889,44 +8515,41 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ImportCertificate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificatePolicy", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/import"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/policy"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6941,17 +8564,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6959,7 +8576,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6973,7 +8590,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6997,7 +8614,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -7010,7 +8627,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -7030,17 +8647,17 @@ private void Initialize() } /// - /// List the versions of a certificate. + /// Updates the policy for a certificate. Set appropriate members in the + /// certificatePolicy that must be updated. Leave others as null. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate in the given vault. /// - /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// + /// The policy for the certificate. /// /// /// Headers that will be added to request. @@ -7057,13 +8674,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetCertificateVersionsWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, int? maxresults = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateCertificatePolicyWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, CertificatePolicy certificatePolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -7073,15 +8687,11 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (maxresults > 25) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "maxresults", 25); - } - if (maxresults < 1) + if (certificatePolicy == null) { - throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); + throw new ValidationException(ValidationRules.CannotBeNull, "certificatePolicy"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7094,48 +8704,42 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("maxresults", maxresults); + tracingParameters.Add("certificatePolicy", certificatePolicy); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificateVersions", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificatePolicy", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/versions"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/policy"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (maxresults != null) - { - _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); - } - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7150,11 +8754,17 @@ private void Initialize() // Serialize Request string _requestContent = null; + if(certificatePolicy != null) + { + _requestContent = SafeJsonConvert.SerializeObject(certificatePolicy, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7162,7 +8772,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7176,7 +8786,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7200,7 +8810,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -7213,7 +8823,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -7233,13 +8843,25 @@ private void Initialize() } /// - /// Lists the policy for a certificate. + /// Updates the attributes associated with the specified certificate /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate in a given key vault. + /// The name of the certificate in the given vault + /// + /// + /// The version of the certificate + /// + /// + /// The management policy for the certificate + /// + /// + /// The attributes of the certificate (optional) + /// + /// + /// Application-specific metadata in the form of key-value pairs /// /// /// Headers that will be added to request. @@ -7256,13 +8878,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetCertificatePolicyWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, string certificateVersion, CertificatePolicy certificatePolicy = default(CertificatePolicy), CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -7272,10 +8891,25 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (ApiVersion == null) + if (certificateVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateVersion"); + } + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } + if (certificatePolicy != null) + { + certificatePolicy.Validate(); + } + CertificateUpdateParameters parameters = new CertificateUpdateParameters(); + if (certificatePolicy != null || certificateAttributes != null || tags != null) + { + parameters.CertificatePolicy = certificatePolicy; + parameters.CertificateAttributes = certificateAttributes; + parameters.Tags = tags; + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -7285,43 +8919,44 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("certificateVersion", certificateVersion); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificatePolicy", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificate", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/policy"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/{certificate-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-version}", Uri.EscapeDataString(certificateVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7336,11 +8971,17 @@ private void Initialize() // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7348,7 +8989,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7362,7 +9003,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7386,7 +9027,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -7399,7 +9040,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -7419,17 +9060,16 @@ private void Initialize() } /// - /// Updates the policy for a certificate. Set specified members in the - /// certificate policy. Leave others as null. + /// Gets a Certificate. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate in the given vault. + /// The name of the certificate in the given vault /// - /// - /// The policy for the certificate. + /// + /// The version of the certificate /// /// /// Headers that will be added to request. @@ -7446,13 +9086,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> UpdateCertificatePolicyWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, CertificatePolicy certificatePolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, string certificateVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -7462,11 +9099,11 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (certificatePolicy == null) + if (certificateVersion == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "certificatePolicy"); + throw new ValidationException(ValidationRules.CannotBeNull, "certificateVersion"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7479,44 +9116,43 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("certificatePolicy", certificatePolicy); + tracingParameters.Add("certificateVersion", certificateVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificatePolicy", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificate", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/policy"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/{certificate-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-version}", Uri.EscapeDataString(certificateVersion)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7531,17 +9167,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(certificatePolicy != null) - { - _requestContent = SafeJsonConvert.SerializeObject(certificatePolicy, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7549,7 +9179,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7563,7 +9193,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7587,7 +9217,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -7600,7 +9230,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -7620,25 +9250,16 @@ private void Initialize() } /// - /// Updates the specified attributes associated with the given certificate. - /// - /// - /// The vault name, for example https://myvault.vault.azure.net. - /// - /// - /// The name of the certificate in the given key vault. - /// - /// - /// The version of the certificate. - /// - /// - /// The management policy for the certificate. + /// Updates a certificate operation. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net /// - /// - /// The attributes of the certificate (optional). + /// + /// The name of the certificate /// - /// - /// Application specific metadata in the form of key-value pairs. + /// + /// Indicates if cancellation was requested on the certificate operation. /// /// /// Headers that will be added to request. @@ -7655,13 +9276,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> UpdateCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, string certificateVersion, CertificatePolicy certificatePolicy = default(CertificatePolicy), CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateCertificateOperationWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, bool cancellationRequested, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -7671,25 +9289,12 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (certificateVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "certificateVersion"); - } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - if (certificatePolicy != null) - { - certificatePolicy.Validate(); - } - CertificateUpdateParameters parameters = new CertificateUpdateParameters(); - if (certificatePolicy != null || certificateAttributes != null || tags != null) - { - parameters.CertificatePolicy = certificatePolicy; - parameters.CertificateAttributes = certificateAttributes; - parameters.Tags = tags; - } + CertificateOperationUpdateParameter certificateOperation = new CertificateOperationUpdateParameter(); + certificateOperation.CancellationRequested = cancellationRequested; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -7699,46 +9304,42 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("certificateVersion", certificateVersion); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("certificateOperation", certificateOperation); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificateOperation", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/{certificate-version}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); - _url = _url.Replace("{certificate-version}", System.Uri.EscapeDataString(certificateVersion)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7753,17 +9354,17 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(parameters != null) + if(certificateOperation != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(certificateOperation, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7771,7 +9372,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7785,7 +9386,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7809,7 +9410,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -7822,7 +9423,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -7842,16 +9443,13 @@ private void Initialize() } /// - /// Gets information about a specified certificate. + /// Gets the certificate operation response. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate in the given vault. - /// - /// - /// The version of the certificate. + /// The name of the certificate /// /// /// Headers that will be added to request. @@ -7868,13 +9466,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, string certificateVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCertificateOperationWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -7884,11 +9479,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (certificateVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "certificateVersion"); - } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7901,45 +9492,41 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("certificateVersion", certificateVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetCertificateOperation", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/{certificate-version}"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); - _url = _url.Replace("{certificate-version}", System.Uri.EscapeDataString(certificateVersion)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7955,10 +9542,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7966,7 +9553,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7980,7 +9567,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8004,7 +9591,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -8017,7 +9604,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -8037,16 +9624,13 @@ private void Initialize() } /// - /// Updates a certificate operation. + /// Deletes the certificate operation. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. - /// - /// - /// Indicates if cancellation was requested on the certificate operation. + /// The name of the certificate /// /// /// Headers that will be added to request. @@ -8063,13 +9647,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> UpdateCertificateOperationWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, bool cancellationRequested, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCertificateOperationWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -8079,12 +9660,10 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } - CertificateOperationUpdateParameter certificateOperation = new CertificateOperationUpdateParameter(); - certificateOperation.CancellationRequested = cancellationRequested; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -8094,44 +9673,41 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("certificateOperation", certificateOperation); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificateOperation", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateOperation", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; + var _baseUrl = this.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8146,17 +9722,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(certificateOperation != null) - { - _requestContent = SafeJsonConvert.SerializeObject(certificateOperation, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8164,7 +9734,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8178,7 +9748,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8215,7 +9785,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -8235,13 +9805,23 @@ private void Initialize() } /// - /// Gets the operation associated with a specified certificate. + /// Merges a certificate or a certificate chain with a key pair existing on + /// the server. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate + /// + /// + /// The certificate or the certificate chain to merge + /// + /// + /// The attributes of the certificate (optional) + /// + /// + /// Application-specific metadata in the form of key-value pairs /// /// /// Headers that will be added to request. @@ -8258,13 +9838,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetCertificateOperationWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> MergeCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, IList x509Certificates, CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (vaultBaseUrl == null) { @@ -8274,10 +9851,21 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (ApiVersion == null) + if (this.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } + if (x509Certificates == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "x509Certificates"); + } + CertificateMergeParameters parameters = new CertificateMergeParameters(); + if (x509Certificates != null || certificateAttributes != null || tags != null) + { + parameters.X509Certificates = x509Certificates; + parameters.CertificateAttributes = certificateAttributes; + parameters.Tags = tags; + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -8287,43 +9875,42 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCertificateOperation", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "MergeCertificate", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; + var _baseUrl = this.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending/merge"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (ApiVersion != null) + if (this.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8338,11 +9925,17 @@ private void Initialize() // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8350,7 +9943,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8358,13 +9951,13 @@ private void Initialize() HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 201) { var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8388,7 +9981,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -8396,12 +9989,12 @@ private void Initialize() _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 200) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -8421,13 +10014,10 @@ private void Initialize() } /// - /// Deletes the operation for a specified certificate. + /// List the versions of the specified key /// - /// - /// The vault name, for example https://myvault.vault.azure.net. - /// - /// - /// The name of the certificate. + /// + /// The NextLink from the previous successful call to List operation. /// /// /// Headers that will be added to request. @@ -8444,25 +10034,14 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCertificateOperationWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetKeyVersionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (vaultBaseUrl == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); - } - if (certificateName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); - } - if (ApiVersion == null) + if (nextPageLink == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -8471,45 +10050,36 @@ private void Initialize() { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateOperation", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetKeyVersionsNext", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; - _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); List _queryParameters = new List(); - if (ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); - } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8525,10 +10095,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8536,7 +10106,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8550,7 +10120,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8574,7 +10144,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -8587,7 +10157,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -8607,23 +10177,10 @@ private void Initialize() } /// - /// Merges a certificate or a certificate chain with a key pair existing on the - /// server. + /// List keys in the specified vault /// - /// - /// The vault name, for example https://myvault.vault.azure.net. - /// - /// - /// The name of the certificate. - /// - /// - /// The certificate or the certificate chain to merge. - /// - /// - /// The attributes of the certificate (optional). - /// - /// - /// Application specific metadata in the form of key-value pairs. + /// + /// The NextLink from the previous successful call to List operation. /// /// /// Headers that will be added to request. @@ -8640,36 +10197,14 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> MergeCertificateWithHttpMessagesAsync(string vaultBaseUrl, string certificateName, IList x509Certificates, CertificateAttributes certificateAttributes = default(CertificateAttributes), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetKeysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (vaultBaseUrl == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); - } - if (certificateName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); - } - if (ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); - } - if (x509Certificates == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "x509Certificates"); - } - CertificateMergeParameters parameters = new CertificateMergeParameters(); - if (x509Certificates != null || certificateAttributes != null || tags != null) + if (nextPageLink == null) { - parameters.X509Certificates = x509Certificates; - parameters.CertificateAttributes = certificateAttributes; - parameters.Tags = tags; + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -8678,46 +10213,36 @@ private void Initialize() { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("vaultBaseUrl", vaultBaseUrl); - tracingParameters.Add("certificateName", certificateName); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "MergeCertificate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetKeysNext", tracingParameters); } // Construct URL - var _baseUrl = BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending/merge"; - _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); List _queryParameters = new List(); - if (ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); - } if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8732,17 +10257,11 @@ private void Initialize() // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8750,7 +10269,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8758,13 +10277,13 @@ private void Initialize() HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201) + if ((int)_statusCode != 200) { var ex = new KeyVaultErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8788,7 +10307,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -8796,12 +10315,12 @@ private void Initialize() _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 201) + if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -8821,9 +10340,7 @@ private void Initialize() } /// - /// Retrieves a list of individual key versions with the same key name. The - /// full key identifier, attributes, and tags are provided in the response. - /// Authorization: Requires the keys/list permission. + /// List deleted keys in the specified vault /// /// /// The NextLink from the previous successful call to List operation. @@ -8843,13 +10360,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetKeyVersionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetDeletedKeysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -8864,7 +10378,7 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetKeyVersionsNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetDeletedKeysNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -8872,28 +10386,26 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8909,10 +10421,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8920,7 +10432,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8934,7 +10446,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8958,7 +10470,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -8971,7 +10483,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -8991,7 +10503,7 @@ private void Initialize() } /// - /// List keys in the specified vault. + /// List secrets in the specified vault /// /// /// The NextLink from the previous successful call to List operation. @@ -9011,13 +10523,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetKeysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetSecretsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -9032,7 +10541,7 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetKeysNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetSecretsNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -9040,28 +10549,26 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9077,10 +10584,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9088,7 +10595,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9102,7 +10609,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9126,7 +10633,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -9139,7 +10646,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -9159,7 +10666,7 @@ private void Initialize() } /// - /// List secrets in a specified key vault + /// List the versions of the specified secret /// /// /// The NextLink from the previous successful call to List operation. @@ -9179,13 +10686,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetSecretsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetSecretVersionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -9200,7 +10704,7 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetSecretsNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetSecretVersionsNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -9208,28 +10712,26 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9245,10 +10747,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9256,7 +10758,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9270,7 +10772,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9307,7 +10809,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -9327,7 +10829,7 @@ private void Initialize() } /// - /// List the versions of the specified secret. + /// List deleted secrets in the specified vault /// /// /// The NextLink from the previous successful call to List operation. @@ -9347,13 +10849,10 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetSecretVersionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetDeletedSecretsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -9368,7 +10867,7 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetSecretVersionsNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetDeletedSecretsNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -9376,28 +10875,26 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9413,10 +10910,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9424,7 +10921,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9438,7 +10935,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9462,7 +10959,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -9475,7 +10972,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -9495,7 +10992,7 @@ private void Initialize() } /// - /// List certificates in a specified key vault + /// List certificates in the specified vault /// /// /// The NextLink from the previous successful call to List operation. @@ -9515,9 +11012,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -9544,28 +11038,26 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9581,10 +11073,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9592,7 +11084,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9606,7 +11098,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9643,7 +11135,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -9663,7 +11155,7 @@ private void Initialize() } /// - /// List certificate issuers for a specified key vault. + /// List certificate issuers for the specified vault. /// /// /// The NextLink from the previous successful call to List operation. @@ -9683,9 +11175,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -9712,28 +11201,26 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9749,10 +11236,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9760,7 +11247,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9774,7 +11261,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9811,7 +11298,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -9851,9 +11338,6 @@ private void Initialize() /// /// Thrown when a required parameter is null /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// @@ -9880,28 +11364,26 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); // Set Headers - if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); } - if (AcceptLanguage != null) + if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } - - if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9917,10 +11399,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (Credentials != null) + if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9928,7 +11410,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9942,7 +11424,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9979,7 +11461,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); } catch (JsonException ex) { @@ -10000,4 +11482,3 @@ private void Initialize() } } - diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs index 26b4717a3cc0..21cc2261bc38 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs @@ -1,21 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault { - using Azure; - using Rest; - using Rest.Azure; - using Models; + using System; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; using Microsoft.Azure.KeyVault.WebKey; /// @@ -24,35 +24,31 @@ namespace Microsoft.Azure.KeyVault public static partial class KeyVaultClientExtensions { /// - /// Creates a new key, stores it, then returns key parameters and attributes to - /// the client. The create key operation can be used to create any key type in - /// Azure Key Vault. If the named key already exists, Azure Key Vault creates a - /// new version of the key. Authorization: Requires the keys/create permission. + /// Creates a new, named, key in the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name for the new key. The system will generate the version name for the - /// new key. + /// The name of the key /// /// - /// The type of key to create. For valid key types, see JsonWebKeyType. - /// Supported JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. - /// Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct' + /// The type of key to create. Valid key types, see JsonWebKeyType. Supported + /// JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. Possible + /// values include: 'EC', 'RSA', 'RSA-HSM', 'oct' /// /// - /// The key size in bytes. For example, 1024 or 2048. + /// The key size in bytes. e.g. 1024 or 2048. /// /// /// /// /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -66,32 +62,28 @@ public static partial class KeyVaultClientExtensions } /// - /// Imports an externally created key, stores it, and returns key parameters - /// and attributes to the client. The import key operation may be used to - /// import any key type into an Azure Key Vault. If the named key already - /// exists, Azure Key Vault creates a new version of the key. Authorization: - /// requires the keys/import permission. + /// Imports a key into the specified vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// Name for the imported key. + /// The name of the key /// /// /// The Json web key /// /// - /// Whether to import as a hardware key (HSM) or software key. + /// Whether to import as a hardware key (HSM) or software key /// /// - /// The key management attributes. + /// The key management attributes /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -105,25 +97,21 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes a key of any type from storage in Azure Key Vault. The delete key - /// operation cannot be used to remove individual versions of a key. This - /// operation removes the cryptographic material associated with the key, which - /// means the key is not usable for Sign/Verify, Wrap/Unwrap or Encrypt/Decrypt - /// operations. Authorization: Requires the keys/delete permission. + /// Deletes the specified key /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key to delete. + /// The name of the key /// /// /// The cancellation token. /// - public static async Task DeleteKeyAsync(this IKeyVaultClient operations, string vaultBaseUrl, string keyName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteKeyAsync(this IKeyVaultClient operations, string vaultBaseUrl, string keyName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteKeyWithHttpMessagesAsync(vaultBaseUrl, keyName, null, cancellationToken).ConfigureAwait(false)) { @@ -132,23 +120,19 @@ public static partial class KeyVaultClientExtensions } /// - /// The update key operation changes specified attributes of a stored key and - /// can be applied to any key type and key version stored in Azure Key Vault. - /// The cryptographic material of a key itself cannot be changed. In order to - /// perform this operation, the key must already exist in the Key Vault. - /// Authorization: requires the keys/update permission. + /// Updates the Key Attributes associated with the specified key /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of key to update. + /// The name of the key /// /// - /// The version of the key to update. + /// The version of the key /// /// /// Json web key operations. For more information on possible key operations, @@ -157,7 +141,7 @@ public static partial class KeyVaultClientExtensions /// /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -171,22 +155,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets the public part of a stored key. The get key operation is applicable - /// to all key types. If the requested key is symmetric, then no key material - /// is released in the response. Authorization: Requires the keys/get - /// permission. + /// Retrieves the public portion of a key plus its attributes /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key to get. + /// The name of the key /// /// - /// Adding the version parameter retrieves a specific version of a key. + /// The version of the key /// /// /// The cancellation token. @@ -200,22 +181,20 @@ public static partial class KeyVaultClientExtensions } /// - /// Retrieves a list of individual key versions with the same key name. The - /// full key identifier, attributes, and tags are provided in the response. - /// Authorization: Requires the keys/list permission. + /// List the versions of the specified key /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The cancellation token. @@ -229,17 +208,17 @@ public static partial class KeyVaultClientExtensions } /// - /// List keys in the specified vault. + /// List keys in the specified vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The cancellation token. @@ -259,10 +238,10 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// /// The cancellation token. @@ -276,16 +255,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Restores a backed up key to a vault. + /// Restores the backup key in to a vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The backup blob associated with a key bundle. + /// the backup blob associated with a key bundle /// /// /// The cancellation token. @@ -300,19 +279,19 @@ public static partial class KeyVaultClientExtensions /// /// Encrypts an arbitrary sequence of bytes using an encryption key that is - /// stored in a key vault. + /// stored in Azure Key Vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -331,19 +310,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Decrypts a single block of encrypted data. + /// Decrypts a single block of encrypted data /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -362,24 +341,24 @@ public static partial class KeyVaultClientExtensions } /// - /// Creates a signature from a digest using the specified key. + /// Creates a signature from a digest using the specified key in the vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// The signing/verification algorithm identifier. For more information on - /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible values - /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' + /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible + /// values include: 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// /// @@ -395,30 +374,30 @@ public static partial class KeyVaultClientExtensions } /// - /// Verifies a signature using a specified key. + /// Verifies a signature using the specified key /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// The signing/verification algorithm. For more information on possible - /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values include: - /// 'RS256', 'RS384', 'RS512', 'RSNULL' + /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values + /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// - /// The digest used for signing. + /// The digest used for signing /// /// - /// The signature to be verified. + /// The signature to be verified /// /// /// The cancellation token. @@ -432,19 +411,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Wraps a symmetric key using a specified key. + /// Wraps a symmetric key using the specified key /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -463,20 +442,20 @@ public static partial class KeyVaultClientExtensions } /// - /// Unwraps a symmetric key using the specified key that was initially used for - /// wrapping that key. + /// Unwraps a symmetric key using the specified key in the vault that has + /// initially been used for wrapping the key. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the key. + /// The name of the key /// /// - /// The version of the key. + /// The version of the key /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -495,28 +474,118 @@ public static partial class KeyVaultClientExtensions } /// - /// Sets a secret in a specified key vault. + /// List deleted keys in the specified vault + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. + /// + /// + /// The cancellation token. + /// + public static async Task> GetDeletedKeysAsync(this IKeyVaultClient operations, string vaultBaseUrl, int? maxresults = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeletedKeysWithHttpMessagesAsync(vaultBaseUrl, maxresults, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves the deleted key information plus its attributes + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the key + /// + /// + /// The cancellation token. + /// + public static async Task GetDeletedKeyAsync(this IKeyVaultClient operations, string vaultBaseUrl, string keyName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeletedKeyWithHttpMessagesAsync(vaultBaseUrl, keyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified key forever. aka purges the key. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the key + /// + /// + /// The cancellation token. + /// + public static async Task PurgeDeletedKeyAsync(this IKeyVaultClient operations, string vaultBaseUrl, string keyName, CancellationToken cancellationToken = default(CancellationToken)) + { + await operations.PurgeDeletedKeyWithHttpMessagesAsync(vaultBaseUrl, keyName, null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Recovers the deleted key back to its current version under /keys + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the deleted key + /// + /// + /// The cancellation token. + /// + public static async Task RecoverDeletedKeyAsync(this IKeyVaultClient operations, string vaultBaseUrl, string keyName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RecoverDeletedKeyWithHttpMessagesAsync(vaultBaseUrl, keyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Sets a secret in the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the secret. + /// The name of the secret in the given vault /// /// - /// The value of the secret. + /// The value of the secret /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// - /// Type of the secret value such as a password. + /// Type of the secret value such as a password /// /// - /// The secret management attributes. + /// The secret management attributes /// /// /// The cancellation token. @@ -530,21 +599,21 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes a secret from a specified key vault. + /// Deletes a secret from the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the secret. + /// The name of the secret in the given vault /// /// /// The cancellation token. /// - public static async Task DeleteSecretAsync(this IKeyVaultClient operations, string vaultBaseUrl, string secretName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteSecretAsync(this IKeyVaultClient operations, string vaultBaseUrl, string secretName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteSecretWithHttpMessagesAsync(vaultBaseUrl, secretName, null, cancellationToken).ConfigureAwait(false)) { @@ -553,29 +622,28 @@ public static partial class KeyVaultClientExtensions } /// - /// Updates the attributes associated with a specified secret in a given key - /// vault. + /// Updates the attributes associated with the specified secret /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the secret. + /// The name of the secret in the given vault /// /// - /// The version of the secret. + /// The version of the secret /// /// - /// Type of the secret value such as a password. + /// Type of the secret value such as a password /// /// - /// The secret management attributes. + /// The secret management attributes /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -589,19 +657,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Get a specified secret from a given key vault. + /// Gets a secret. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the secret. + /// The name of the secret in the given vault /// /// - /// The version of the secret. + /// The version of the secret /// /// /// The cancellation token. @@ -615,17 +683,17 @@ public static partial class KeyVaultClientExtensions } /// - /// List secrets in a specified key vault + /// List secrets in the specified vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The cancellation token. @@ -639,20 +707,20 @@ public static partial class KeyVaultClientExtensions } /// - /// List the versions of the specified secret. + /// List the versions of the specified secret /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the secret. + /// The name of the secret in the given vault /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The cancellation token. @@ -666,17 +734,107 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificates in a specified key vault + /// List deleted secrets in the specified vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. + /// + /// + /// The cancellation token. + /// + public static async Task> GetDeletedSecretsAsync(this IKeyVaultClient operations, string vaultBaseUrl, int? maxresults = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeletedSecretsWithHttpMessagesAsync(vaultBaseUrl, maxresults, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves the deleted secret information plus its attributes + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the secret + /// + /// + /// The cancellation token. + /// + public static async Task GetDeletedSecretAsync(this IKeyVaultClient operations, string vaultBaseUrl, string secretName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeletedSecretWithHttpMessagesAsync(vaultBaseUrl, secretName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified secret forever. aka purges the secret. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the secret + /// + /// + /// The cancellation token. + /// + public static async Task PurgeDeletedSecretAsync(this IKeyVaultClient operations, string vaultBaseUrl, string secretName, CancellationToken cancellationToken = default(CancellationToken)) + { + await operations.PurgeDeletedSecretWithHttpMessagesAsync(vaultBaseUrl, secretName, null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Recovers the deleted secret back to its current version under /secrets + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// The name of the deleted secret + /// + /// + /// The cancellation token. + /// + public static async Task RecoverDeletedSecretAsync(this IKeyVaultClient operations, string vaultBaseUrl, string secretName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RecoverDeletedSecretWithHttpMessagesAsync(vaultBaseUrl, secretName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List certificates in the specified vault + /// + /// + /// The operations group for this extension method. + /// + /// + /// The vault name, e.g. https://myvault.vault.azure.net + /// + /// + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The cancellation token. @@ -690,16 +848,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes a certificate from a specified key vault. + /// Deletes a certificate from the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate in the given vault /// /// /// The cancellation token. @@ -713,16 +871,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Sets the certificate contacts for the specified key vault. + /// Sets the certificate contacts for the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The contacts for the key vault certificate. + /// The contacts for the vault certificates. /// /// /// The cancellation token. @@ -736,13 +894,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Lists the certificate contacts for a specified key vault. + /// Gets the certificate contacts for the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The cancellation token. @@ -756,13 +914,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes the certificate contacts for a specified key vault. + /// Deletes the certificate contacts for the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The cancellation token. @@ -776,17 +934,17 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificate issuers for a specified key vault. + /// List certificate issuers for the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The cancellation token. @@ -806,7 +964,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The name of the issuer. @@ -841,7 +999,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The name of the issuer. @@ -870,13 +1028,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Lists the specified certificate issuer. + /// Gets the specified certificate issuer. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The name of the issuer. @@ -899,7 +1057,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The name of the issuer. @@ -916,26 +1074,26 @@ public static partial class KeyVaultClientExtensions } /// - /// Creates a new certificate. If this is the first version, the certificate - /// resource is created. + /// Creates a new certificate version. If this is the first version, the + /// certificate resource is created. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate /// /// - /// The management policy for the certificate. + /// The management policy for the certificate /// /// - /// The attributes of the certificate (optional). + /// The attributes of the certificate (optional) /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -949,16 +1107,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Imports a certificate into a specified key vault. + /// Imports a certificate into the specified vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate /// /// /// Base64 encoded representation of the certificate object to import. This @@ -966,16 +1124,16 @@ public static partial class KeyVaultClientExtensions /// /// /// If the private key in base64EncodedCertificate is encrypted, the password - /// used for encryption. + /// used for encryption /// /// - /// The management policy for the certificate. + /// The management policy for the certificate /// /// - /// The attributes of the certificate (optional). + /// The attributes of the certificate (optional) /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -995,14 +1153,14 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate /// /// - /// Maximum number of results to return in a page. If not specified the service - /// will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The cancellation token. @@ -1016,16 +1174,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Lists the policy for a certificate. + /// Gets the policy for a certificate. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate in a given key vault. + /// The name of the certificate in the given vault. /// /// /// The cancellation token. @@ -1039,14 +1197,14 @@ public static partial class KeyVaultClientExtensions } /// - /// Updates the policy for a certificate. Set specified members in the - /// certificate policy. Leave others as null. + /// Updates the policy for a certificate. Set appropriate members in the + /// certificatePolicy that must be updated. Leave others as null. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// /// The name of the certificate in the given vault. @@ -1066,28 +1224,28 @@ public static partial class KeyVaultClientExtensions } /// - /// Updates the specified attributes associated with the given certificate. + /// Updates the attributes associated with the specified certificate /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate in the given key vault. + /// The name of the certificate in the given vault /// /// - /// The version of the certificate. + /// The version of the certificate /// /// - /// The management policy for the certificate. + /// The management policy for the certificate /// /// - /// The attributes of the certificate (optional). + /// The attributes of the certificate (optional) /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -1101,19 +1259,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets information about a specified certificate. + /// Gets a Certificate. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate in the given vault. + /// The name of the certificate in the given vault /// /// - /// The version of the certificate. + /// The version of the certificate /// /// /// The cancellation token. @@ -1133,10 +1291,10 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate /// /// /// Indicates if cancellation was requested on the certificate operation. @@ -1153,16 +1311,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets the operation associated with a specified certificate. + /// Gets the certificate operation response. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate /// /// /// The cancellation token. @@ -1176,16 +1334,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes the operation for a specified certificate. + /// Deletes the certificate operation. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate /// /// /// The cancellation token. @@ -1199,26 +1357,26 @@ public static partial class KeyVaultClientExtensions } /// - /// Merges a certificate or a certificate chain with a key pair existing on the - /// server. + /// Merges a certificate or a certificate chain with a key pair existing on + /// the server. /// /// /// The operations group for this extension method. /// /// - /// The vault name, for example https://myvault.vault.azure.net. + /// The vault name, e.g. https://myvault.vault.azure.net /// /// - /// The name of the certificate. + /// The name of the certificate /// /// - /// The certificate or the certificate chain to merge. + /// The certificate or the certificate chain to merge /// /// - /// The attributes of the certificate (optional). + /// The attributes of the certificate (optional) /// /// - /// Application specific metadata in the form of key-value pairs. + /// Application-specific metadata in the form of key-value pairs /// /// /// The cancellation token. @@ -1232,9 +1390,7 @@ public static partial class KeyVaultClientExtensions } /// - /// Retrieves a list of individual key versions with the same key name. The - /// full key identifier, attributes, and tags are provided in the response. - /// Authorization: Requires the keys/list permission. + /// List the versions of the specified key /// /// /// The operations group for this extension method. @@ -1254,7 +1410,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List keys in the specified vault. + /// List keys in the specified vault /// /// /// The operations group for this extension method. @@ -1274,7 +1430,27 @@ public static partial class KeyVaultClientExtensions } /// - /// List secrets in a specified key vault + /// List deleted keys in the specified vault + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> GetDeletedKeysNextAsync(this IKeyVaultClient operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeletedKeysNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List secrets in the specified vault /// /// /// The operations group for this extension method. @@ -1294,7 +1470,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List the versions of the specified secret. + /// List the versions of the specified secret /// /// /// The operations group for this extension method. @@ -1314,7 +1490,27 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificates in a specified key vault + /// List deleted secrets in the specified vault + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> GetDeletedSecretsNextAsync(this IKeyVaultClient operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeletedSecretsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List certificates in the specified vault /// /// /// The operations group for this extension method. @@ -1334,7 +1530,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificate issuers for a specified key vault. + /// List certificate issuers for the specified vault. /// /// /// The operations group for this extension method. @@ -1375,4 +1571,3 @@ public static partial class KeyVaultClientExtensions } } - diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs new file mode 100644 index 000000000000..c7f371c398c7 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.KeyVault.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + using Microsoft.Azure.KeyVault.WebKey; + + /// + /// A DeletedKeyBundle consisting of a WebKey plus its Attributes and + /// deletion info + /// + public partial class DeletedKeyBundle : KeyBundle + { + /// + /// Initializes a new instance of the DeletedKeyBundle class. + /// + public DeletedKeyBundle() { } + + /// + /// Initializes a new instance of the DeletedKeyBundle class. + /// + /// The Json web key + /// The key management attributes + /// Application-specific metadata in the form of + /// key-value pairs + /// True if the key's lifetime is managed by key + /// vault i.e. if this is a key backing a certificate, then managed + /// will be true. + /// The url of the recovery object, used to + /// identify and recover the deleted key. + /// The time when the key is + /// scheduled to be purged, in UTC + /// The time when the key was deleted, in + /// UTC + public DeletedKeyBundle(JsonWebKey key = default(JsonWebKey), KeyAttributes attributes = default(KeyAttributes), IDictionary tags = default(IDictionary), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + : base(key, attributes, tags, managed) + { + RecoveryId = recoveryId; + ScheduledPurgeDate = scheduledPurgeDate; + DeletedDate = deletedDate; + } + + /// + /// Gets or sets the url of the recovery object, used to identify and + /// recover the deleted key. + /// + [JsonProperty(PropertyName = "recoveryId")] + public string RecoveryId { get; set; } + + /// + /// Gets the time when the key is scheduled to be purged, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "scheduledPurgeDate")] + public DateTime? ScheduledPurgeDate { get; private set; } + + /// + /// Gets the time when the key was deleted, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "deletedDate")] + public DateTime? DeletedDate { get; private set; } + + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs new file mode 100644 index 000000000000..ec4da7796e64 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.KeyVault.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// The deleted key item containing the deleted key metadata and + /// information about deletion. + /// + public partial class DeletedKeyItem : KeyItem + { + /// + /// Initializes a new instance of the DeletedKeyItem class. + /// + public DeletedKeyItem() { } + + /// + /// Initializes a new instance of the DeletedKeyItem class. + /// + /// Key Identifier + /// The key management attributes + /// Application-specific metadata in the form of + /// key-value pairs + /// True if the key's lifetime is managed by key + /// vault i.e. if this is a key backing a certificate, then managed + /// will be true. + /// The url of the recovery object, used to + /// identify and recover the deleted key. + /// The time when the key is + /// scheduled to be purged, in UTC + /// The time when the key was deleted, in + /// UTC + public DeletedKeyItem(string kid = default(string), KeyAttributes attributes = default(KeyAttributes), IDictionary tags = default(IDictionary), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + : base(kid, attributes, tags, managed) + { + RecoveryId = recoveryId; + ScheduledPurgeDate = scheduledPurgeDate; + DeletedDate = deletedDate; + } + + /// + /// Gets or sets the url of the recovery object, used to identify and + /// recover the deleted key. + /// + [JsonProperty(PropertyName = "recoveryId")] + public string RecoveryId { get; set; } + + /// + /// Gets the time when the key is scheduled to be purged, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "scheduledPurgeDate")] + public DateTime? ScheduledPurgeDate { get; private set; } + + /// + /// Gets the time when the key was deleted, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "deletedDate")] + public DateTime? DeletedDate { get; private set; } + + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs new file mode 100644 index 000000000000..d1cc624be869 --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.KeyVault.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// A Deleted Secret consisting of its previous id, attributes and its + /// tags, as well as information on when it will be purged. + /// + public partial class DeletedSecretBundle : SecretBundle + { + /// + /// Initializes a new instance of the DeletedSecretBundle class. + /// + public DeletedSecretBundle() { } + + /// + /// Initializes a new instance of the DeletedSecretBundle class. + /// + /// The secret value + /// The secret id + /// The content type of the secret + /// The secret management attributes + /// Application-specific metadata in the form of + /// key-value pairs + /// If this is a secret backing a KV certificate, + /// then this field specifies the corresponding key backing the KV + /// certificate. + /// True if the secret's lifetime is managed by + /// key vault i.e. if this is a secret backing a certificate, then + /// managed will be true. + /// The url of the recovery object, used to + /// identify and recover the deleted secret. + /// The time when the secret is + /// scheduled to be purged, in UTC + /// The time when the secret was deleted, in + /// UTC + public DeletedSecretBundle(string value = default(string), string id = default(string), string contentType = default(string), SecretAttributes attributes = default(SecretAttributes), IDictionary tags = default(IDictionary), string kid = default(string), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + : base(value, id, contentType, attributes, tags, kid, managed) + { + RecoveryId = recoveryId; + ScheduledPurgeDate = scheduledPurgeDate; + DeletedDate = deletedDate; + } + + /// + /// Gets or sets the url of the recovery object, used to identify and + /// recover the deleted secret. + /// + [JsonProperty(PropertyName = "recoveryId")] + public string RecoveryId { get; set; } + + /// + /// Gets the time when the secret is scheduled to be purged, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "scheduledPurgeDate")] + public DateTime? ScheduledPurgeDate { get; private set; } + + /// + /// Gets the time when the secret was deleted, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "deletedDate")] + public DateTime? DeletedDate { get; private set; } + + } +} diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs new file mode 100644 index 000000000000..b13100e56c4b --- /dev/null +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.KeyVault.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// The deleted secret item containing metadata about the deleted secret. + /// + public partial class DeletedSecretItem : SecretItem + { + /// + /// Initializes a new instance of the DeletedSecretItem class. + /// + public DeletedSecretItem() { } + + /// + /// Initializes a new instance of the DeletedSecretItem class. + /// + /// Secret Identifier + /// The secret management attributes + /// Application-specific metadata in the form of + /// key-value pairs + /// Type of the secret value such as a + /// password + /// True if the secret's lifetime is managed by + /// key vault i.e. if this is a secret backing a certificate, then + /// managed will be true. + /// The url of the recovery object, used to + /// identify and recover the deleted secret. + /// The time when the secret is + /// scheduled to be purged, in UTC + /// The time when the secret was deleted, in + /// UTC + public DeletedSecretItem(string id = default(string), SecretAttributes attributes = default(SecretAttributes), IDictionary tags = default(IDictionary), string contentType = default(string), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + : base(id, attributes, tags, contentType, managed) + { + RecoveryId = recoveryId; + ScheduledPurgeDate = scheduledPurgeDate; + DeletedDate = deletedDate; + } + + /// + /// Gets or sets the url of the recovery object, used to identify and + /// recover the deleted secret. + /// + [JsonProperty(PropertyName = "recoveryId")] + public string RecoveryId { get; set; } + + /// + /// Gets the time when the secret is scheduled to be purged, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "scheduledPurgeDate")] + public DateTime? ScheduledPurgeDate { get; private set; } + + /// + /// Gets the time when the secret was deleted, in UTC + /// + [JsonConverter(typeof(UnixTimeJsonConverter))] + [JsonProperty(PropertyName = "deletedDate")] + public DateTime? DeletedDate { get; private set; } + + } +} From 91bac02a340d6d38e317b077dbbec5e5dee64df1 Mon Sep 17 00:00:00 2001 From: Karl Augsten Date: Wed, 11 Jan 2017 14:35:35 -0800 Subject: [PATCH 2/8] KeyVault: Add restore, backup, recover, purge perm. --- .../Generated/Models/KeyPermissions.cs | 5 +++++ .../Generated/Models/SecretPermissions.cs | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs index 0f2bca6ddd18..c07f428f749c 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs @@ -17,6 +17,9 @@ namespace Microsoft.Azure.Management.KeyVault.Models /// public static class KeyPermissions { + /// + /// All permission will be deprecated in a later release. + /// public const string All = "all"; public const string Encrypt = "encrypt"; public const string Decrypt = "decrypt"; @@ -32,5 +35,7 @@ public static class KeyPermissions public const string Delete = "delete"; public const string Backup = "backup"; public const string Restore = "restore"; + public const string Recover = "recover"; + public const string Purge = "purge"; } } diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs index a64b52c78351..1429b539a780 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs @@ -17,10 +17,17 @@ namespace Microsoft.Azure.Management.KeyVault.Models /// public static class SecretPermissions { + /// + /// All permission will be deprecated in a later release. + /// public const string All = "all"; public const string Get = "get"; public const string List = "list"; public const string Set = "set"; public const string Delete = "delete"; + public const string Backup = "backup"; + public const string Restore = "restore"; + public const string Recover = "recover"; + public const string Purge = "purge"; } } From 1c7280eee7e035ffc81e391fcfda6482c601b15b Mon Sep 17 00:00:00 2001 From: Karl Augsten Date: Wed, 11 Jan 2017 14:58:49 -0800 Subject: [PATCH 3/8] KeyVault: Increase management SDK version. - 2.0.2 for official release of management SDK. --- .../KeyVaultManagement/KeyVaultManagement.Tests/project.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json index 3933a82bc85e..a547834c313c 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json @@ -19,7 +19,7 @@ "Microsoft.Azure.Test.HttpRecorder": "[1.6.7-preview,2.0.0)", "Microsoft.Rest.ClientRuntime.Azure.TestFramework": "[1.5.0-preview,2.0.0)", "Microsoft.Rest.ClientRuntime.Azure": "[3.3.1,4.0.0)", - "Microsoft.Azure.Management.KeyVault": "2.0.1-preview", + "Microsoft.Azure.Management.KeyVault": "2.0.2", "Microsoft.Azure.Management.ResourceManager": "1.1.3-preview", "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029", From 100e956f1a48fa36a718e3bb37de246c6075de96 Mon Sep 17 00:00:00 2001 From: Karl Augsten Date: Fri, 13 Jan 2017 13:19:09 -0800 Subject: [PATCH 4/8] KeyVault: Add optin soft delete flag to key vaults. --- .../KeyVaultTestBase.cs | 2 +- ...aultManagementVaultCreateUpdateDelete.json | 194 ++++++++++-------- .../VaultOperationsTest.cs | 8 + .../Generated/Models/VaultProperties.cs | 12 +- .../generate.cmd | 2 +- 5 files changed, 128 insertions(+), 90 deletions(-) diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs index 71b42894b568..5139352d5e37 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs @@ -42,7 +42,7 @@ public KeyVaultTestBase(MockContext context) this.subscriptionId = testEnv.SubscriptionId; var graphClient = context.GetServiceClient(); graphClient.TenantID = this.tenantId; - graphClient.BaseUri = new Uri("https://graph.windows.net"); + graphClient.BaseUri = testEnv.Endpoints.GraphUri; this.objectId = graphClient.User.Get(testEnv.UserName).ObjectId; this.applicationId = Guid.NewGuid().ToString(); HttpMockServer.Variables[TenantIdKey] = tenantId; diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json index af69f284e483..0008ddaa1f0f 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json @@ -1,25 +1,26 @@ { "Entries": [ { - "RequestUri": "/dab60df3-eb31-470e-9aa7-0bb580c2624c/users/testuser@mstestkeyvaultoutlook.onmicrosoft.com?api-version=1.42-previewInternal", - "EncodedRequestUri": "L2RhYjYwZGYzLWViMzEtNDcwZS05YWE3LTBiYjU4MGMyNjI0Yy91c2Vycy90ZXN0dXNlckBtc3Rlc3RrZXl2YXVsdG91dGxvb2sub25taWNyb3NvZnQuY29tP2FwaS12ZXJzaW9uPTEuNDItcHJldmlld0ludGVybmFs", + "RequestUri": "/de86f3e7-1fe3-414c-812a-817ab249ad9b/users/admin@aad140.ccsctp.net?api-version=1.42-previewInternal", + "EncodedRequestUri": "L2RlODZmM2U3LTFmZTMtNDE0Yy04MTJhLTgxN2FiMjQ5YWQ5Yi91c2Vycy9hZG1pbkBhYWQxNDAuY2NzY3RwLm5ldD9hcGktdmVyc2lvbj0xLjQyLXByZXZpZXdJbnRlcm5hbA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8838252f-c07a-44cb-909b-4b48fe0e9e16" + "094a26e3-0a8e-413c-b187-7f9d2a799bf7" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24709.01", "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/2.2.2-preview" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.windows.net/dab60df3-eb31-470e-9aa7-0bb580c2624c/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.User/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Test User\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": \"Test\",\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"testuser\",\r\n \"mobile\": null,\r\n \"netId\": \"10033FFF933CA699\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [\r\n \"karlaug@microsoft.com\"\r\n ],\r\n \"passwordPolicies\": \"DisablePasswordExpiration, DisableStrongPassword\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": \"en-US\",\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"testuser@mstestkeyvaultoutlook.onmicrosoft.com\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": \"User\",\r\n \"telephoneNumber\": null,\r\n \"usageLocation\": \"US\",\r\n \"userPrincipalName\": \"testuser@mstestkeyvaultoutlook.onmicrosoft.com\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/de86f3e7-1fe3-414c-812a-817ab249ad9b/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.User/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [\r\n {\r\n \"disabledPlans\": [],\r\n \"skuId\": \"078d2b04-f1bd-4111-bbd4-b4b1b354cef4\"\r\n }\r\n ],\r\n \"assignedPlans\": [\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:40Z\",\r\n \"capabilityStatus\": \"Enabled\",\r\n \"service\": \"AADPremiumService\",\r\n \"servicePlanId\": \"41781fb2-bc02-4b7c-bd55-b576c07bb09d\"\r\n },\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:40Z\",\r\n \"capabilityStatus\": \"Enabled\",\r\n \"service\": \"MultiFactorService\",\r\n \"servicePlanId\": \"8a256a2b-b617-496d-b51b-e76466e88db0\"\r\n },\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:04Z\",\r\n \"capabilityStatus\": \"Deleted\",\r\n \"service\": \"SCO\",\r\n \"servicePlanId\": \"c1ec4a95-1f05-45b3-a911-aa3fa01094f5\"\r\n },\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:04Z\",\r\n \"capabilityStatus\": \"Deleted\",\r\n \"service\": \"RMSOnline\",\r\n \"servicePlanId\": \"bea4c11e-220a-4e6d-8eb8-8ea15d019f90\"\r\n }\r\n ],\r\n \"city\": \"Redmond\",\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Jon Doe\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": \"Jon\",\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": \"I am the boss\",\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"admin\",\r\n \"mobile\": \"+1 (123) 456-7890\",\r\n \"netId\": \"1003000087E8C55A\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [\r\n \"jon@doe.com\"\r\n ],\r\n \"passwordPolicies\": \"DisablePasswordExpiration\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": \"98052\",\r\n \"preferredLanguage\": \"en-US\",\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [\r\n {\r\n \"capabilityStatus\": \"Enabled\",\r\n \"provisioningStatus\": \"Success\",\r\n \"service\": \"SCO\"\r\n }\r\n ],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"admin@aad140.ccsctp.net\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": \"WA\",\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"surname\": \"Doe\",\r\n \"telephoneNumber\": null,\r\n \"usageLocation\": \"US\",\r\n \"userPrincipalName\": \"admin@aad140.ccsctp.net\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "2046" + "2771" ], "Content-Type": [ "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" @@ -31,7 +32,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:38 GMT" + "Mon, 30 Jan 2017 23:06:11 GMT" ], "Pragma": [ "no-cache" @@ -40,19 +41,19 @@ "Microsoft-IIS/8.5" ], "ocp-aad-diagnostics-server-name": [ - "8p5PqXu+FgLpf4c/0OFRV1UNuUXCca6D94e5Veodb8Q=" + "3KJX1Gy2hruUIUgwZttKte3ayI+bWJZKm1QQ2LDyX2Q=" ], "request-id": [ - "05c3537c-7cf2-47b8-b43c-4d82a63d425f" + "fdb9cb0c-d8d1-40b7-9eee-7b6bab659852" ], "client-request-id": [ - "5089207b-ae9e-4735-a44d-af4998e7c526" + "4571f1a8-e208-4bb2-834b-8b802514e0bd" ], "x-ms-dirapi-data-contract-version": [ "1.42-previewInternal" ], "ocp-aad-session-key": [ - "AluEGoBB6TaS6bbs-vrJVms2I2vtb4jhkN-QcL91JnyTi1ZKpHcCCochSGbNxgf3N0HjzC56M93FlXXX4xPdZKObrq8PCGUob541CE0T-FKunmnN6XZf8DQDK-U5k_-0.ISVjzKCwRYER5l3Rg00olAdQVPHrDpcnrfJGsPG0osc" + "BhCZfBbfV5aHHBK-NKabzJ05stTmjuaG_IVC7QuksDdrn-HxZhB88jdMsJrrHxwkEVL4nLkVTAdf0oljsSn9kNa6f5ne8aTZsGfxHaupnZE_GjCjtgu6jolwczbMc_tn.DZ-DYHpMbdjFgcPi4yXzX6Lxag66NS0dxmtVIhiCYf4" ], "X-Content-Type-Options": [ "nosniff" @@ -74,28 +75,29 @@ "ASP.NET" ], "Duration": [ - "923049" + "1534322" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/providers/Microsoft.KeyVault?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/providers/Microsoft.KeyVault?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "47c7a6f0-c5f3-442d-9dc9-32f26d530816" + "4fb22653-c0b0-47a5-9d4c-109b2a827386" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24709.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"East US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK North\",\r\n \"UK South 2\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"East US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK North\",\r\n \"UK South 2\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults/accessPolicies\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -107,7 +109,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:40 GMT" + "Mon, 30 Jan 2017 23:06:22 GMT" ], "Pragma": [ "no-cache" @@ -116,16 +118,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14985" ], "x-ms-request-id": [ - "770ee34d-3b2e-4e50-bf33-680775590651" + "5f912037-3b67-4cfd-a0a2-fe0cfd1c86bc" ], "x-ms-correlation-request-id": [ - "770ee34d-3b2e-4e50-bf33-680775590651" + "5f912037-3b67-4cfd-a0a2-fe0cfd1c86bc" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044440Z:770ee34d-3b2e-4e50-bf33-680775590651" + "CENTRALUS:20170130T230623Z:5f912037-3b67-4cfd-a0a2-fe0cfd1c86bc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -134,31 +136,32 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourcegroups/sdktestrg8610?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzg2MTA/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourcegroups/sdktestrg7903?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzc5MDM/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\"\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "38" + "31" ], "x-ms-client-request-id": [ - "4c671d3e-193c-484e-8ebe-8ec06f49a2e6" + "57c6ceda-44ee-429f-85dc-839978fb7235" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24709.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610\",\r\n \"name\": \"sdktestrg8610\",\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903\",\r\n \"name\": \"sdktestrg7903\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "187" + "180" ], "Content-Type": [ "application/json; charset=utf-8" @@ -170,7 +173,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:41 GMT" + "Mon, 30 Jan 2017 23:06:24 GMT" ], "Pragma": [ "no-cache" @@ -179,13 +182,13 @@ "1199" ], "x-ms-request-id": [ - "3d1b4edd-e39f-4e48-a4d2-f5f8f4714d88" + "242a8a79-d185-4e0d-9601-b4be5d709faf" ], "x-ms-correlation-request-id": [ - "3d1b4edd-e39f-4e48-a4d2-f5f8f4714d88" + "242a8a79-d185-4e0d-9601-b4be5d709faf" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044442Z:3d1b4edd-e39f-4e48-a4d2-f5f8f4714d88" + "CENTRALUS:20170130T230624Z:242a8a79-d185-4e0d-9601-b4be5d709faf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -194,28 +197,29 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzg2MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTQ2Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "739" + "763" ], "x-ms-client-request-id": [ - "633b8a99-0c15-4495-943e-1df06072a5ed" + "8cf99bce-61ee-4863-b320-c07788cdca1c" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467\",\r\n \"name\": \"sdktestvault5467\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault5467.vault.azure.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286\",\r\n \"name\": \"sdktestvault6286\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -227,7 +231,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:44 GMT" + "Mon, 30 Jan 2017 23:06:25 GMT" ], "Pragma": [ "no-cache" @@ -241,6 +245,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.650" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -257,40 +264,41 @@ "1199" ], "x-ms-request-id": [ - "7dd367e1-dfb2-47ee-911e-2a4bedc14444" + "90fbf0f5-c702-4aff-a506-7d265efc7096" ], "x-ms-correlation-request-id": [ - "7dd367e1-dfb2-47ee-911e-2a4bedc14444" + "90fbf0f5-c702-4aff-a506-7d265efc7096" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044445Z:7dd367e1-dfb2-47ee-911e-2a4bedc14444" + "CENTRALUS:20170130T230625Z:90fbf0f5-c702-4aff-a506-7d265efc7096" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzg2MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTQ2Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"https://sdktestvault5467.vault.azure.net\",\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net\",\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"sku\": {\r\n \"name\": \"premium\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "801" + "833" ], "x-ms-client-request-id": [ - "723be6fb-2ce7-4c11-af7c-2ff4bf7acb1b" + "a411a190-3b58-41fd-884d-77083166a1da" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467\",\r\n \"name\": \"sdktestvault5467\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault5467.vault.azure.net/\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286\",\r\n \"name\": \"sdktestvault6286\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net/\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -302,7 +310,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:44 GMT" + "Mon, 30 Jan 2017 23:06:25 GMT" ], "Pragma": [ "no-cache" @@ -316,6 +324,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.650" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -332,34 +343,35 @@ "1198" ], "x-ms-request-id": [ - "041343cd-caa6-449a-8e40-558c8e9cc919" + "7034bd56-4960-4cfb-86a9-bb2ff62aae5b" ], "x-ms-correlation-request-id": [ - "041343cd-caa6-449a-8e40-558c8e9cc919" + "7034bd56-4960-4cfb-86a9-bb2ff62aae5b" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044445Z:041343cd-caa6-449a-8e40-558c8e9cc919" + "CENTRALUS:20170130T230626Z:7034bd56-4960-4cfb-86a9-bb2ff62aae5b" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzg2MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTQ2Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cc78497f-d03a-4151-98e6-2bd33e4993d7" + "c66a7d37-9a1a-428b-9478-a82849fc2a3a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467\",\r\n \"name\": \"sdktestvault5467\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault5467.vault.azure.net/\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286\",\r\n \"name\": \"sdktestvault6286\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net/\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -371,7 +383,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:45 GMT" + "Mon, 30 Jan 2017 23:06:25 GMT" ], "Pragma": [ "no-cache" @@ -385,6 +397,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.650" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -398,37 +413,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14985" ], "x-ms-request-id": [ - "bdf07151-ffbe-47b2-a37b-8be70e7b0654" + "621e2b4e-7f45-4cec-a735-a8efc712aff0" ], "x-ms-correlation-request-id": [ - "bdf07151-ffbe-47b2-a37b-8be70e7b0654" + "621e2b4e-7f45-4cec-a735-a8efc712aff0" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044445Z:bdf07151-ffbe-47b2-a37b-8be70e7b0654" + "CENTRALUS:20170130T230626Z:621e2b4e-7f45-4cec-a735-a8efc712aff0" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzg2MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTQ2Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c010ec66-cba2-4fa7-847e-0907898df1d5" + "f8cf1991-f4f3-448f-9ba9-8427264565ff" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.KeyVault/vaults/sdktestvault5467' under resource group 'sdktestrg8610' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.KeyVault/vaults/sdktestvault6286' under resource group 'sdktestrg7903' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "159" @@ -443,7 +459,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:46 GMT" + "Mon, 30 Jan 2017 23:06:26 GMT" ], "Pragma": [ "no-cache" @@ -452,13 +468,13 @@ "gateway" ], "x-ms-request-id": [ - "00297d75-0359-432d-a934-21ad8b1cf372" + "c90948c1-ae45-4760-9fc5-d2df7b1234d5" ], "x-ms-correlation-request-id": [ - "00297d75-0359-432d-a934-21ad8b1cf372" + "c90948c1-ae45-4760-9fc5-d2df7b1234d5" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044447Z:00297d75-0359-432d-a934-21ad8b1cf372" + "CENTRALUS:20170130T230627Z:c90948c1-ae45-4760-9fc5-d2df7b1234d5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -467,19 +483,20 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg8610/providers/Microsoft.KeyVault/vaults/sdktestvault5467?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzg2MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTQ2Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fe09d9c1-00c7-4208-bcba-189c53529c7c" + "5df92c3f-0c90-4f97-b44e-a027b09ffe2a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24709.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, "ResponseBody": "", @@ -494,7 +511,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:46 GMT" + "Mon, 30 Jan 2017 23:06:26 GMT" ], "Pragma": [ "no-cache" @@ -502,6 +519,9 @@ "Server": [ "Microsoft-IIS/8.5" ], + "x-ms-keyvault-service-version": [ + "1.0.1.650" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -518,13 +538,13 @@ "1197" ], "x-ms-request-id": [ - "0a0fa073-71fb-4709-9c58-905d9de754f7" + "90a4d096-acdc-42b7-aad8-5e4df1246794" ], "x-ms-correlation-request-id": [ - "0a0fa073-71fb-4709-9c58-905d9de754f7" + "90a4d096-acdc-42b7-aad8-5e4df1246794" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044447Z:0a0fa073-71fb-4709-9c58-905d9de754f7" + "CENTRALUS:20170130T230627Z:90a4d096-acdc-42b7-aad8-5e4df1246794" ] }, "StatusCode": 200 @@ -532,15 +552,15 @@ ], "Names": { "KeyVaultManagementVaultCreateUpdateDelete": [ - "sdktestrg8610", - "sdktestvault5467" + "sdktestrg7903", + "sdktestvault6286" ] }, "Variables": { - "SubscriptionId": "4fbe2810-8ec4-4443-88f4-1d0a6a212d02", - "TenantId": "dab60df3-eb31-470e-9aa7-0bb580c2624c", - "ObjectId": "8d3eb738-13c6-4117-aa01-b8aa50beba40", - "SubId": "4fbe2810-8ec4-4443-88f4-1d0a6a212d02", - "ApplicationId": "675f8a86-23d9-43df-ac6b-2e2b5a694f4f" + "SubscriptionId": "f813c091-cdad-457f-a11b-5066f3ccfec0", + "TenantId": "de86f3e7-1fe3-414c-812a-817ab249ad9b", + "ObjectId": "3bffcb49-ad00-45f7-a400-34137c7ab0a3", + "SubId": "f813c091-cdad-457f-a11b-5066f3ccfec0", + "ApplicationId": "260fde02-7266-459b-aead-2f219e610210" } } \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs index e9632125fe8a..a5c1e9cb6acd 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs @@ -56,6 +56,7 @@ public void KeyVaultManagementVaultCreateUpdateDelete() EnabledForDeployment = true, EnabledForDiskEncryption = true, EnabledForTemplateDeployment = true, + EnableSoftDelete = true, Sku = new Microsoft.Azure.Management.KeyVault.Models.Sku { Name = SkuName.Standard }, TenantId = tenantIdGuid, VaultUri = "", @@ -78,6 +79,7 @@ public void KeyVaultManagementVaultCreateUpdateDelete() true, true, true, + true, new[] { accPol }, tags); @@ -110,6 +112,7 @@ public void KeyVaultManagementVaultCreateUpdateDelete() true, true, true, + true, new[] { accPol }, tags); @@ -128,6 +131,7 @@ public void KeyVaultManagementVaultCreateUpdateDelete() true, true, true, + true, new[] { accPol }, tags); @@ -207,6 +211,7 @@ public void KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy() true, true, true, + null, new[] { accPol }, tags); @@ -226,6 +231,7 @@ public void KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy() true, true, true, + null, new[] { accPol }, tags); @@ -256,6 +262,7 @@ private void ValidateVault( bool expectedEnabledForDeployment, bool expectedEnabledForTemplateDeployment, bool expectedEnabledForDiskEncryption, + bool? expectedEnableSoftDelete, AccessPolicyEntry[] expectedPolicies, Dictionary expectedTags) { @@ -273,6 +280,7 @@ private void ValidateVault( Assert.Equal(expectedEnabledForDeployment, vault.Properties.EnabledForDeployment); Assert.Equal(expectedEnabledForTemplateDeployment, vault.Properties.EnabledForTemplateDeployment); Assert.Equal(expectedEnabledForDiskEncryption, vault.Properties.EnabledForDiskEncryption); + Assert.Equal(expectedEnableSoftDelete, vault.Properties.EnableSoftDelete); Assert.True(expectedTags.DictionaryEqual(vault.Tags)); Assert.True(CompareAccessPolicies(expectedPolicies, vault.Properties.AccessPolicies.ToArray())); } diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs index aa66f35ae1ee..561a7cf4951d 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs @@ -50,7 +50,9 @@ public VaultProperties() /// Property to specify /// whether Azure Resource Manager is permitted to retrieve secrets /// from the key vault. - public VaultProperties(Guid tenantId, Sku sku, IList accessPolicies, string vaultUri = default(string), bool? enabledForDeployment = default(bool?), bool? enabledForDiskEncryption = default(bool?), bool? enabledForTemplateDeployment = default(bool?)) + /// Property to specify whether the + /// 'soft delete' functionality is enabled for this key vault. + public VaultProperties(Guid tenantId, Sku sku, IList accessPolicies, string vaultUri = default(string), bool? enabledForDeployment = default(bool?), bool? enabledForDiskEncryption = default(bool?), bool? enabledForTemplateDeployment = default(bool?), bool? enableSoftDelete = default(bool?)) { Sku = new Sku(); VaultUri = vaultUri; @@ -60,6 +62,7 @@ public VaultProperties() EnabledForDeployment = enabledForDeployment; EnabledForDiskEncryption = enabledForDiskEncryption; EnabledForTemplateDeployment = enabledForTemplateDeployment; + EnableSoftDelete = enableSoftDelete; } /// @@ -112,6 +115,13 @@ public VaultProperties() [JsonProperty(PropertyName = "enabledForTemplateDeployment")] public bool? EnabledForTemplateDeployment { get; set; } + /// + /// Gets or sets property to specify whether the 'soft delete' + /// functionality is enabled for this key vault. + /// + [JsonProperty(PropertyName = "enableSoftDelete")] + public bool? EnableSoftDelete { get; set; } + /// /// Validate the object. /// diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/generate.cmd b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/generate.cmd index b4710b889754..aad64237f472 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/generate.cmd +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/generate.cmd @@ -4,7 +4,7 @@ :: @echo off -set autoRestVersion=0.17.0-Nightly20160629 +set autoRestVersion=0.17.0-Nightly20160726 if "%1" == "" ( set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-keyvault/2015-06-01/swagger/keyvault.json" From c84fcea7979648fc685d99ddbb101703dea4c3db Mon Sep 17 00:00:00 2001 From: Pooneh Date: Wed, 8 Feb 2017 13:46:16 -0800 Subject: [PATCH 5/8] Vault-level soft-delete support. --- .../Microsoft.Azure.KeyVault/project.json | 2 +- .../KeyVaultTestBase.cs | 46 + .../KeyVaultManagementListDeletedVaults.json | 993 ++++++++++++++++++ .../KeyVaultManagementListVaults.json | 308 +++--- ...KeyVaultManagementRecoverDeletedVault.json | 849 +++++++++++++++ ...aultManagementVaultCreateUpdateDelete.json | 187 ++-- ...stCompoundIdentityAccessControlPolicy.json | 172 +-- .../VaultOperationsTest.cs | 560 +++++----- .../KeyVaultManagement.Tests/project.json | 4 +- .../Generated/IVaultsOperations.cs | 66 ++ .../Generated/KeyVaultManagementClient.cs | 2 +- .../Models/CertificatePermissions.cs | 1 - .../Generated/Models/CreateMode.cs | 26 + .../Generated/Models/DeletedVault.cs | 69 ++ .../Models/DeletedVaultProperties.cs | 78 ++ .../Generated/Models/KeyPermissions.cs | 4 - .../Generated/Models/SecretPermissions.cs | 4 - .../Models/VaultCreateOrUpdateParameters.cs | 2 +- .../Generated/Models/VaultProperties.cs | 40 +- .../Generated/VaultsOperations.cs | 532 ++++++++++ .../Generated/VaultsOperationsExtensions.cs | 102 ++ 21 files changed, 3471 insertions(+), 576 deletions(-) create mode 100644 src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json create mode 100644 src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementRecoverDeletedVault.json create mode 100644 src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CreateMode.cs create mode 100644 src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVault.cs create mode 100644 src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVaultProperties.cs diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/project.json b/src/KeyVault/Microsoft.Azure.KeyVault/project.json index 39306a5116c3..82eac978990a 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/project.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault/project.json @@ -1,5 +1,5 @@ { - "version": "2.0.6", + "version": "2.0.7-preview", "title": "Microsoft Azure key vault", "description": "Azure Key Vault enables users to store and use cryptographic keys within the Microsoft Azure environment. Azure Key Vault supports multiple key types and algorithms and enables the use of Hardware Security Modules (HSM) for high value customer keys. In addition, Azure Key Vault allows users to securely store secrets in a Key Vault; secrets are limited size octet objects and Azure Key Vault applies no specific semantics to these objects. A Key Vault may contain a mix of keys and secrets at the same time, and access control for the two types of object is independently controlled. Users, subject to appropriate authorization, may: 1) Manage cryptographic keys using Create, Import, Update, Delete and other operations 2) Manage secrets using Get, Set, Delete and other operations 3) Use cryptographic keys with Sign/Verify, WrapKey/UnwrapKey and Encrypt/Decrypt operations. Operations against Key Vaults are authenticated and authorized using Azure Active Directory. Key Vault now supports certificates, a complex type that makes use of existing key and secret infrastructure for certificate operations. KV certificates also support notification and auto-renewal as well as other management features.", "authors": [ "Microsoft" ], diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs index 5139352d5e37..40be9dcca9d2 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/KeyVaultTestBase.cs @@ -10,6 +10,9 @@ using Microsoft.Azure.Management.ResourceManager; using Microsoft.Azure.Test.HttpRecorder; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Microsoft.Azure.Management.KeyVault.Models; +using System.Collections.Generic; +using Microsoft.Azure.Management.ResourceManager.Models; namespace KeyVault.Management.Tests { @@ -29,6 +32,14 @@ public class KeyVaultTestBase : TestBase public KeyVaultManagementClient client { get; set; } public ResourceManagementClient resourcesClient { get; set; } + public AccessPolicyEntry accPol { get; internal set; } + public string objectIdGuid { get; internal set; } + public string rgName { get; internal set; } + public Dictionary tags { get; internal set; } + public Guid tenantIdGuid { get; internal set; } + public string vaultName { get; internal set; } + public VaultProperties vaultProperties { get; internal set; } + public KeyVaultTestBase(MockContext context) { var testEnv = TestEnvironmentFactory.GetTestEnvironment(); @@ -69,6 +80,41 @@ public KeyVaultTestBase(MockContext context) } ).First().Locations.FirstOrDefault(); + Initialize(); + } + + private void Initialize() + { + rgName = TestUtilities.GenerateName("sdktestrg"); + resourcesClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup { Location = location }); + + vaultName = TestUtilities.GenerateName("sdktestvault"); + tenantIdGuid = Guid.Parse(tenantId); + objectIdGuid = objectId; + tags = new Dictionary { { "tag1", "value1" }, { "tag2", "value2" }, { "tag3", "value3" } }; + accPol = new AccessPolicyEntry + { + TenantId = tenantIdGuid, + ObjectId = objectIdGuid, + Permissions = new Permissions + { + Keys = new string[] { "all" }, + Secrets = new string[] { "all" }, + Certificates = new string[] { "all" } + } + }; + + vaultProperties = new VaultProperties + { + EnabledForDeployment = true, + EnabledForDiskEncryption = true, + EnabledForTemplateDeployment = true, + EnableSoftDelete = true, + Sku = new Microsoft.Azure.Management.KeyVault.Models.Sku { Name = SkuName.Standard }, + TenantId = tenantIdGuid, + VaultUri = "", + AccessPolicies = new[] { accPol } + }; } } } \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json new file mode 100644 index 000000000000..3283e53144a2 --- /dev/null +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json @@ -0,0 +1,993 @@ +{ + "Entries": [ + { + "RequestUri": "/dfe47ca8-acfc-4539-9519-7d196a9c79e4/users/subadmin@aztestkmsbvtoutlook.ccsctp.net?api-version=1.42-previewInternal", + "EncodedRequestUri": "L2RmZTQ3Y2E4LWFjZmMtNDUzOS05NTE5LTdkMTk2YTljNzllNC91c2Vycy9zdWJhZG1pbkBhenRlc3RrbXNidnRvdXRsb29rLmNjc2N0cC5uZXQ/YXBpLXZlcnNpb249MS40Mi1wcmV2aWV3SW50ZXJuYWw=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5d628d16-b9ef-4930-9dec-0bf540cfb18d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/2.2.2-preview" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/dfe47ca8-acfc-4539-9519-7d196a9c79e4/$metadata#directoryObjects/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Subscription Admin\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": null,\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"subadmin\",\r\n \"mobile\": null,\r\n \"netId\": \"10037FFE8D4B0C05\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [],\r\n \"passwordPolicies\": \"DisablePasswordExpiration\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": null,\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": null,\r\n \"telephoneNumber\": null,\r\n \"thumbnailPhoto@odata.mediaEditLink\": \"directoryObjects/5abe9358-10ae-4095-ba23-d34111430228/Microsoft.WindowsAzure.ActiveDirectory.User/thumbnailPhoto\",\r\n \"usageLocation\": null,\r\n \"userPrincipalName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2100" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "ocp-aad-diagnostics-server-name": [ + "ZE0QSYmhZQQLTZydJhtukJWOmhRx4jcY3NbmCe9pPIU=" + ], + "request-id": [ + "b60b3f11-e378-4d71-9dde-1264296bcfc4" + ], + "client-request-id": [ + "57f7d2b1-4e97-4241-a158-82272ca9fd03" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "hfb6I_ua0xp5AmTIPFsLVxTEIw_ktDHsKQdIK-Dy5XNbTw1nqfwgXKkdwiRGuAxg7AqfedmDXePzPPas3HaFyw1p09aMC7p9c5U4y4ZjuDH-DfxO0EuFeCUfmarWz073.R9YTuz_u8R1UdNgv-4K8NEgZdWW8osJkfzadJSy_a4I" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Duration": [ + "758417" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7d8c8bff-9d7d-436c-abf7-50aa4800a50a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults/accessPolicies\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "83515460-9226-4d9d-8c2b-b11fb4a7d2ff" + ], + "x-ms-correlation-request-id": [ + "83515460-9226-4d9d-8c2b-b11fb4a7d2ff" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194421Z:83515460-9226-4d9d-8c2b-b11fb4a7d2ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourcegroups/sdktestrg5702?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzU3MDI/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ], + "x-ms-client-request-id": [ + "867ced4a-d715-4ba3-8016-ffaee506f593" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702\",\r\n \"name\": \"sdktestrg5702\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "180" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "af7c125b-97b7-48be-b519-adc44033b7cf" + ], + "x-ms-correlation-request-id": [ + "af7c125b-97b7-48be-b519-adc44033b7cf" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194422Z:af7c125b-97b7-48be-b519-adc44033b7cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0OTUxMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "820" + ], + "x-ms-client-request-id": [ + "56c56e16-7d37-4788-9c4e-b5f60308a737" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511\",\r\n \"name\": \"sdktestvault9511\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault9511.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a8e7542b-1f2e-4982-9c44-b6b0aebe25ec" + ], + "x-ms-correlation-request-id": [ + "a8e7542b-1f2e-4982-9c44-b6b0aebe25ec" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194423Z:a8e7542b-1f2e-4982-9c44-b6b0aebe25ec" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0OTUxMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "17a65dbe-8ce3-47ba-b18b-5d7de30b77ef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "5c98b63b-9e52-438c-8638-93d4c91b53db" + ], + "x-ms-correlation-request-id": [ + "5c98b63b-9e52-438c-8638-93d4c91b53db" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194424Z:5c98b63b-9e52-438c-8638-93d4c91b53db" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault9511?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ5NTExP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d6936882-ca7f-4232-b823-cd6f2d6be2d9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault9511\",\r\n \"name\": \"sdktestvault9511\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:23Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:23Z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "4a752bfe-c5b6-4835-a76b-c2a959eb1920" + ], + "x-ms-correlation-request-id": [ + "4a752bfe-c5b6-4835-a76b-c2a959eb1920" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194425Z:4a752bfe-c5b6-4835-a76b-c2a959eb1920" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjcxOD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "820" + ], + "x-ms-client-request-id": [ + "9346ba76-8a9c-43f0-bbca-5a636e45e1aa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718\",\r\n \"name\": \"sdktestvault2718\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault2718.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "eb757458-4312-4c8b-87fc-6789d42384f4" + ], + "x-ms-correlation-request-id": [ + "eb757458-4312-4c8b-87fc-6789d42384f4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194425Z:eb757458-4312-4c8b-87fc-6789d42384f4" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjcxOD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7959d11a-5218-4452-96a4-dd4faa50cbfb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "c2f032a0-c1ba-4c7d-9915-e1b6be46866e" + ], + "x-ms-correlation-request-id": [ + "c2f032a0-c1ba-4c7d-9915-e1b6be46866e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194426Z:c2f032a0-c1ba-4c7d-9915-e1b6be46866e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault2718?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQyNzE4P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "750acfde-a8d2-4bd4-89c7-5c6c1d15717e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault2718\",\r\n \"name\": \"sdktestvault2718\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:24Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:24Z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "2a4f27c3-f504-4e7c-a0c3-8fba986a175f" + ], + "x-ms-correlation-request-id": [ + "2a4f27c3-f504-4e7c-a0c3-8fba986a175f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194426Z:2a4f27c3-f504-4e7c-a0c3-8fba986a175f" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NzYxMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "820" + ], + "x-ms-client-request-id": [ + "cd4200ed-8315-46f6-93ac-bd4669158217" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613\",\r\n \"name\": \"sdktestvault7613\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault7613.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "12b12523-4f3d-4f14-af01-d44e867c6112" + ], + "x-ms-correlation-request-id": [ + "12b12523-4f3d-4f14-af01-d44e867c6112" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194426Z:12b12523-4f3d-4f14-af01-d44e867c6112" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NzYxMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4de861da-a902-4867-a049-b881f2173321" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "e38432e2-9f52-496e-b6bd-6023089eba5c" + ], + "x-ms-correlation-request-id": [ + "e38432e2-9f52-496e-b6bd-6023089eba5c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194427Z:e38432e2-9f52-496e-b6bd-6023089eba5c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault7613?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ3NjEzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d3b3df6-2802-40d5-a8a2-7c6fb4bfd475" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault7613\",\r\n \"name\": \"sdktestvault7613\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:26Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:26Z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "a3455454-fbc4-467b-a780-6e25911cac3c" + ], + "x-ms-correlation-request-id": [ + "a3455454-fbc4-467b-a780-6e25911cac3c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194427Z:a3455454-fbc4-467b-a780-6e25911cac3c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvZGVsZXRlZFZhdWx0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bb65e20d-482f-40ce-b23d-2dc26625f125" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault7613\",\r\n \"name\": \"sdktestvault7613\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:26Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:26Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault2718\",\r\n \"name\": \"sdktestvault2718\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:24Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:24Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault9511\",\r\n \"name\": \"sdktestvault9511\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:23Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:23Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault1045\",\r\n \"name\": \"sdktestvault1045\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9888/providers/Microsoft.KeyVault/vaults/sdktestvault1045\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:17Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:17Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault9911\",\r\n \"name\": \"sdktestvault9911\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg196/providers/Microsoft.KeyVault/vaults/sdktestvault9911\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:50Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:50Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/SoftDeleteTestNCU-0\",\r\n \"name\": \"SoftDeleteTestNCU-0\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/SoftDeleteTestGroup/providers/Microsoft.KeyVault/vaults/SoftDeleteTestNCU-0\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-03 23:47:35Z\",\r\n \"scheduledPurgeDate\": \"2017-05-04 23:47:35Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/SoftDeleteTestSCU-0\",\r\n \"name\": \"SoftDeleteTestSCU-0\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/SoftDeleteTestGroup/providers/Microsoft.KeyVault/vaults/SoftDeleteTestSCU-0\",\r\n \"location\": \" South Central US\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-03 23:48:07Z\",\r\n \"scheduledPurgeDate\": \"2017-05-04 23:48:07Z\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=5dLRbpswFAbgd0HVrkYwBFoSqZqS2sm6xbYwNpN2R7CTghGOsFMoVd%2b9NI%2bxXR7p6PxHn%2f53r1OjO9Sdtt763UObnIs88tbei3MXuw6C8lL70pxPxshFr6y59pWyi6HupBmsX3du0SkX2OvRVn19cbXpbHAqowTEq8i%2fV6r043Ip%2fTRNHvyjSh6Oq0SCKFXBpTevtVS9DXBd9caak1v8Vm9FeW1dIFWrnJK3wf74%2buF13pyPP0YgvPdD4IPw253Vc6LRqnsUuvjDil%2bcCbbjqBC5WNGDaMUJPoeY65HwaqBcR5RXIeWbmPJtygQKcdPuKWwRhdlAEBoY1wOFf7cZEFEmxIh1NmCNvO8eoYz%2ffEKEs81B5P8eUIMmwhEgsAoJFDPYNsUTTkiTAXpDfIEEETRjLDHCE4XFLpvknjTnkAAxA%2bVU%2fAdAI26el7jR8dySFAMcZ6BAZNru6A2u3c8tGpkudgSeI4bEG0EM4QZ7Hx%2bf\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-original-request-ids": [ + "", + "", + "", + "" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "646fd53b-171e-4311-bf6d-d01448d7ddc4" + ], + "x-ms-correlation-request-id": [ + "646fd53b-171e-4311-bf6d-d01448d7ddc4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194429Z:646fd53b-171e-4311-bf6d-d01448d7ddc4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=5dLRbpswFAbgd0HVrkYwBFoSqZqS2sm6xbYwNpN2R7CTghGOsFMoVd%2b9NI%2bxXR7p6PxHn%2f53r1OjO9Sdtt763UObnIs88tbei3MXuw6C8lL70pxPxshFr6y59pWyi6HupBmsX3du0SkX2OvRVn19cbXpbHAqowTEq8i%2fV6r043Ip%2fTRNHvyjSh6Oq0SCKFXBpTevtVS9DXBd9caak1v8Vm9FeW1dIFWrnJK3wf74%2buF13pyPP0YgvPdD4IPw253Vc6LRqnsUuvjDil%2bcCbbjqBC5WNGDaMUJPoeY65HwaqBcR5RXIeWbmPJtygQKcdPuKWwRhdlAEBoY1wOFf7cZEFEmxIh1NmCNvO8eoYz%2ffEKEs81B5P8eUIMmwhEgsAoJFDPYNsUTTkiTAXpDfIEEETRjLDHCE4XFLpvknjTnkAAxA%2bVU%2fAdAI26el7jR8dySFAMcZ6BAZNru6A2u3c8tGpkudgSeI4bEG0EM4QZ7Hx%2bf", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvZGVsZXRlZFZhdWx0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiUyNHNraXB0b2tlbj01ZExSYnBzd0ZBYmdkMEhWcmtZd0JGb1NxWnFTMnNtNnhiWXdOcE4yUjdDVGdoR09zRk1vVmQlMmI5TkklMmJ4WFI3cDZQeEhuJTJmNTNyMU9qTzlTZHR0NzYzVU9ibklzODh0YmVpM01YdXc2QzhsTDcwcHhQeHNoRnI2eTU5cFd5aTZIdXBCbXNYM2R1MFNrWDJPdlJWbjE5Y2JYcGJIQXFvd1RFcThpJTJmVjZyMDQzSXAlMmZUUk5IdnlqU2g2T3EwU0NLRlhCcFRldnRWUzlEWEJkOWNhYWsxdjhWbTlGZVcxZElGV3JuSkszd2Y3NCUyYnVGMTNweVBQMFlndlBkRDRJUHcyNTNWYzZMUnFuc1V1dmpEaWwlMmJjQ2JianFCQzVXTkdEYU1VSlBvZVk2NUh3YXFCY1I1UlhJZVdibVBKdHlnUUtjZFB1S1d3UmhkbEFFQm9ZMXdPRmY3Y1pFRkVteEloMU5tQ052Tzhlb1l6JTJmZkVLRXM4MUI1UDhlVUlNbXdoRWdzQW9KRkRQWU5zVVRUa2lUQVhwRGZJRUVFVFJqTERIQ0U0WEZMcHZrbmpUbmtBQXhBJTJiVlUlMmZBZEFJMjZlbDdqUjhkeVNGQU1jWjZCQVpOcnU2QTJ1M2M4dEdwa3VkZ1NlSTRiRUcwRU00UVo3SHglMmJm", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0a4c3742-a346-480b-8765-7d461a2eb987" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault4795\",\r\n \"name\": \"sdktestvault4795\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9038/providers/Microsoft.KeyVault/vaults/sdktestvault4795\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:29Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:29Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault4494\",\r\n \"name\": \"sdktestvault4494\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9038/providers/Microsoft.KeyVault/vaults/sdktestvault4494\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:27Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:27Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault8961\",\r\n \"name\": \"sdktestvault8961\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9038/providers/Microsoft.KeyVault/vaults/sdktestvault8961\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:26Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:26Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault3297\",\r\n \"name\": \"sdktestvault3297\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg4897/providers/Microsoft.KeyVault/vaults/sdktestvault3297\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:32:54Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:32:54Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault6044\",\r\n \"name\": \"sdktestvault6044\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg4897/providers/Microsoft.KeyVault/vaults/sdktestvault6044\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:32:52Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:32:52Z\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=HY5db4IwGIX%2fC1l2V74UBROzbAGNm%2b0itiy7RPriaklLaBXU%2bN%2fHdnlOnpzn3B0Fg90KJY2zuDvZ656yfegsnB9rW7PwvLIViOtjrTV3OzD63FVg3F4ornuDhLKuAuuZ88FUnWit0Mp4dRlG%2fjQJ0QygRNNywlEcR3N0gGh%2bSCLuhzF4bacvgkNnPCyqThtdW%2fcDrkV5bqzHoQEL%2fD%2bYl78Pl5Ecx5ehH8xQ4CM%2feH4ycjRqCWrJZPGVF%2b80Z%2fmKZgXbs%2bRzyxpWp5sAUzkQWg2Ybq7khn2Sfk9ISmKS7W6E8gxT8oZPTTZ2a3w69vgmhzzd9OS0Wu8YDncSO4%2fHLw%3d%3d\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 19:44:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-original-request-ids": [ + "", + "", + "" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "e59bd1a0-e01e-47f9-90e2-e26fcb04ecbb" + ], + "x-ms-correlation-request-id": [ + "e59bd1a0-e01e-47f9-90e2-e26fcb04ecbb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T194429Z:e59bd1a0-e01e-47f9-90e2-e26fcb04ecbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Initialize": [ + "sdktestrg5702", + "sdktestvault7931" + ], + "KeyVaultManagementListDeletedVaults": [ + "sdktestvault9511", + "sdktestvault2718", + "sdktestvault7613" + ] + }, + "Variables": { + "SubscriptionId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "TenantId": "dfe47ca8-acfc-4539-9519-7d196a9c79e4", + "ObjectId": "5abe9358-10ae-4095-ba23-d34111430228", + "SubId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "ApplicationId": "d92e3440-a29f-418a-8d21-b5b0a99a9892" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListVaults.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListVaults.json index 8379797580b5..9f3a5a2d6bca 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListVaults.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListVaults.json @@ -1,25 +1,26 @@ { "Entries": [ { - "RequestUri": "/dab60df3-eb31-470e-9aa7-0bb580c2624c/users/testuser@mstestkeyvaultoutlook.onmicrosoft.com?api-version=1.42-previewInternal", - "EncodedRequestUri": "L2RhYjYwZGYzLWViMzEtNDcwZS05YWE3LTBiYjU4MGMyNjI0Yy91c2Vycy90ZXN0dXNlckBtc3Rlc3RrZXl2YXVsdG91dGxvb2sub25taWNyb3NvZnQuY29tP2FwaS12ZXJzaW9uPTEuNDItcHJldmlld0ludGVybmFs", + "RequestUri": "/dfe47ca8-acfc-4539-9519-7d196a9c79e4/users/subadmin@aztestkmsbvtoutlook.ccsctp.net?api-version=1.42-previewInternal", + "EncodedRequestUri": "L2RmZTQ3Y2E4LWFjZmMtNDUzOS05NTE5LTdkMTk2YTljNzllNC91c2Vycy9zdWJhZG1pbkBhenRlc3RrbXNidnRvdXRsb29rLmNjc2N0cC5uZXQ/YXBpLXZlcnNpb249MS40Mi1wcmV2aWV3SW50ZXJuYWw=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c365172e-d291-48e4-9e3c-ed7249b05941" + "42db05bd-e639-4ec5-8c23-e5d020d7ed87" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24214.01", "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/2.2.2-preview" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.windows.net/dab60df3-eb31-470e-9aa7-0bb580c2624c/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.User/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Test User\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": \"Test\",\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"testuser\",\r\n \"mobile\": null,\r\n \"netId\": \"10033FFF933CA699\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [\r\n \"karlaug@microsoft.com\"\r\n ],\r\n \"passwordPolicies\": \"DisablePasswordExpiration, DisableStrongPassword\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": \"en-US\",\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"testuser@mstestkeyvaultoutlook.onmicrosoft.com\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": \"User\",\r\n \"telephoneNumber\": null,\r\n \"usageLocation\": \"US\",\r\n \"userPrincipalName\": \"testuser@mstestkeyvaultoutlook.onmicrosoft.com\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/dfe47ca8-acfc-4539-9519-7d196a9c79e4/$metadata#directoryObjects/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Subscription Admin\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": null,\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"subadmin\",\r\n \"mobile\": null,\r\n \"netId\": \"10037FFE8D4B0C05\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [],\r\n \"passwordPolicies\": \"DisablePasswordExpiration\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": null,\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": null,\r\n \"telephoneNumber\": null,\r\n \"thumbnailPhoto@odata.mediaEditLink\": \"directoryObjects/5abe9358-10ae-4095-ba23-d34111430228/Microsoft.WindowsAzure.ActiveDirectory.User/thumbnailPhoto\",\r\n \"usageLocation\": null,\r\n \"userPrincipalName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "2046" + "2100" ], "Content-Type": [ "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" @@ -31,7 +32,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:53 GMT" + "Wed, 08 Feb 2017 21:32:34 GMT" ], "Pragma": [ "no-cache" @@ -40,22 +41,19 @@ "Microsoft-IIS/8.5" ], "ocp-aad-diagnostics-server-name": [ - "u1zY2RAEFJujUTEm17mVSvn6K80FdHiv6WbV1yhVndQ=" + "T9/56u+IxXzVBkloeOIfRE0GeKZr+9AWbLSz9dsy+Eo=" ], "request-id": [ - "5532c90a-676c-4ea5-b9c4-76aa63c3c0c5" + "02c94df5-1b6c-4e0d-8ee4-c4ea1e5b739a" ], "client-request-id": [ - "feba2746-3d6c-4f8e-9cc8-f3289f50d4f9" + "917673da-1411-4585-b729-7a78360bb3ad" ], "x-ms-dirapi-data-contract-version": [ "1.42-previewInternal" ], "ocp-aad-session-key": [ - "wqXt6rxoEtCkCDMOoWRMSIRXczPqqxIBrdHguI-mVu0p7KrO4TfI_ga-1CUvo4xW1mGBds6PUsqkb0rzlhl9tWei3Uft1LTpCku0vrlhySvpWokqBuVQWn7iCDbSC-th.9JVLG9WEnDc3oDfvNrYvQqexgYkQrjPh9XlSdny4Jhg" - ], - "X-Content-Type-Options": [ - "nosniff" + "PpG2-ODd_QLtig6ReaIu6JXoqY5Kgfb-ecim4iAo91HgAhgwAyWykVMjhxGeVbi-pytRvzfiXQfPjHGs3YfwLJCBlzFsTv6lMES42U_CkwtACKPvkRV7Ok_8nmEcHXSD.q-xHite7FUoBFxq4hEGMiJFKsvXAkfb-U2dxp9I6MZc" ], "DataServiceVersion": [ "3.0;" @@ -74,28 +72,29 @@ "ASP.NET" ], "Duration": [ - "781611" + "802456" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/providers/Microsoft.KeyVault?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ab271311-4c65-495a-886c-0baf42be6735" + "ceca575c-5ad8-4fb8-91a6-b4d125124c48" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"East US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK North\",\r\n \"UK South 2\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"East US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK North\",\r\n \"UK South 2\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults/accessPolicies\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -107,7 +106,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:54 GMT" + "Wed, 08 Feb 2017 21:32:34 GMT" ], "Pragma": [ "no-cache" @@ -116,16 +115,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14993" ], "x-ms-request-id": [ - "9343a4bb-6ea5-45a1-959a-19229acf4f04" + "8f2da5aa-6904-4a83-984a-e8da09e663e0" ], "x-ms-correlation-request-id": [ - "9343a4bb-6ea5-45a1-959a-19229acf4f04" + "8f2da5aa-6904-4a83-984a-e8da09e663e0" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044454Z:9343a4bb-6ea5-45a1-959a-19229acf4f04" + "CENTRALUS:20170208T213235Z:8f2da5aa-6904-4a83-984a-e8da09e663e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -134,31 +133,32 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourcegroups/sdktestrg811?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzgxMT9hcGktdmVyc2lvbj0yMDE2LTAyLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourcegroups/sdktestrg9384?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzkzODQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\"\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "38" + "31" ], "x-ms-client-request-id": [ - "bc25628a-b7a6-4ca3-a49d-7937d0182333" + "a49276cd-4603-4d9f-b86d-ec086e271b6b" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811\",\r\n \"name\": \"sdktestrg811\",\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384\",\r\n \"name\": \"sdktestrg9384\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "185" + "180" ], "Content-Type": [ "application/json; charset=utf-8" @@ -170,22 +170,22 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:54 GMT" + "Wed, 08 Feb 2017 21:32:35 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1186" ], "x-ms-request-id": [ - "f29434fa-ca6c-4928-b49d-e41bf4297a6a" + "b21b07cf-ccec-4164-9561-1f760665e783" ], "x-ms-correlation-request-id": [ - "f29434fa-ca6c-4928-b49d-e41bf4297a6a" + "b21b07cf-ccec-4164-9561-1f760665e783" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044454Z:f29434fa-ca6c-4928-b49d-e41bf4297a6a" + "CENTRALUS:20170208T213235Z:b21b07cf-ccec-4164-9561-1f760665e783" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -194,28 +194,29 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault7829?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cy9zZGt0ZXN0dmF1bHQ3ODI5P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault8553?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0ODU1Mz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "796" + "789" ], "x-ms-client-request-id": [ - "dac63a3b-782b-4cc3-950a-eb13c39dc1f1" + "ca28a003-b9b7-48e5-b09a-c35ca9d6323f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault7829\",\r\n \"name\": \"sdktestvault7829\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault7829.vault.azure.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault8553\",\r\n \"name\": \"sdktestvault8553\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault8553.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -227,7 +228,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:55 GMT" + "Wed, 08 Feb 2017 21:32:36 GMT" ], "Pragma": [ "no-cache" @@ -241,6 +242,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -254,43 +258,44 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1177" ], "x-ms-request-id": [ - "32632c1c-1517-4fe7-84d9-88bdfee2529d" + "d3520df6-5995-432d-9e93-f8dc459903af" ], "x-ms-correlation-request-id": [ - "32632c1c-1517-4fe7-84d9-88bdfee2529d" + "d3520df6-5995-432d-9e93-f8dc459903af" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044455Z:32632c1c-1517-4fe7-84d9-88bdfee2529d" + "CENTRALUS:20170208T213237Z:d3520df6-5995-432d-9e93-f8dc459903af" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault9122?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cy9zZGt0ZXN0dmF1bHQ5MTIyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6076?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjA3Nj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "796" + "789" ], "x-ms-client-request-id": [ - "f2ab13e0-298a-4c0f-9f9e-533d21efd7db" + "c7223e2e-62e6-45db-8ea0-95dec7e91a6d" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault9122\",\r\n \"name\": \"sdktestvault9122\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault9122.vault.azure.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6076\",\r\n \"name\": \"sdktestvault6076\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault6076.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -302,7 +307,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:55 GMT" + "Wed, 08 Feb 2017 21:32:37 GMT" ], "Pragma": [ "no-cache" @@ -316,6 +321,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -329,43 +337,44 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1176" ], "x-ms-request-id": [ - "bfb46a7c-5180-4cc2-a68a-10db738d118c" + "c92eb1bd-41db-4015-bef6-f83ede571252" ], "x-ms-correlation-request-id": [ - "bfb46a7c-5180-4cc2-a68a-10db738d118c" + "c92eb1bd-41db-4015-bef6-f83ede571252" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044456Z:bfb46a7c-5180-4cc2-a68a-10db738d118c" + "CENTRALUS:20170208T213237Z:c92eb1bd-41db-4015-bef6-f83ede571252" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault5656?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cy9zZGt0ZXN0dmF1bHQ1NjU2P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6984?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0Njk4ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "796" + "789" ], "x-ms-client-request-id": [ - "8b8332f0-b8df-4965-8d1d-3ff4b675d4ee" + "757b8933-4c99-407c-add1-5397f4d20b7a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault5656\",\r\n \"name\": \"sdktestvault5656\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault5656.vault.azure.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6984\",\r\n \"name\": \"sdktestvault6984\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault6984.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -377,7 +386,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:56 GMT" + "Wed, 08 Feb 2017 21:32:38 GMT" ], "Pragma": [ "no-cache" @@ -391,6 +400,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -404,37 +416,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1175" ], "x-ms-request-id": [ - "609e51d5-e6fb-41fb-8cae-0f0f6149ff7c" + "75bedb83-04a2-43fd-8c92-63af3de5d6c4" ], "x-ms-correlation-request-id": [ - "609e51d5-e6fb-41fb-8cae-0f0f6149ff7c" + "75bedb83-04a2-43fd-8c92-63af3de5d6c4" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044457Z:609e51d5-e6fb-41fb-8cae-0f0f6149ff7c" + "CENTRALUS:20170208T213238Z:75bedb83-04a2-43fd-8c92-63af3de5d6c4" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults?$top=2&api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cz8kdG9wPTImYXBpLXZlcnNpb249MjAxNS0wNi0wMQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults?$top=2&api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHM/JHRvcD0yJmFwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d9174cca-6d7f-4022-ad71-b6b25cea6067" + "273ab6c6-f9ac-430e-be70-f1ca126a9fbb" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault5656\",\r\n \"name\": \"sdktestvault5656\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault5656.vault.azure.net/\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault7829\",\r\n \"name\": \"sdktestvault7829\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault7829.vault.azure.net/\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault9122\",\r\n \"name\": \"sdktestvault9122\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault9122.vault.azure.net/\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults?$top=2&api-version=2015-06-01&$skiptoken=c2RrdGVzdHZhdWx0OTEyMg==\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6076\",\r\n \"name\": \"sdktestvault6076\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault6076.vault-int.azure-int.net/\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6984\",\r\n \"name\": \"sdktestvault6984\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault6984.vault-int.azure-int.net/\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault8553\",\r\n \"name\": \"sdktestvault8553\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault8553.vault-int.azure-int.net/\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults?$top=2&api-version=2016-10-01&$skiptoken=c2RrdGVzdHZhdWx0ODU1Mw==\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -446,7 +459,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:56 GMT" + "Wed, 08 Feb 2017 21:32:38 GMT" ], "Pragma": [ "no-cache" @@ -460,6 +473,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -473,34 +489,35 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14984" ], "x-ms-request-id": [ - "e3073404-955b-4a70-8fa4-f69edd142de3" + "18f254b6-c08a-4c1a-a0a1-d29dedad398b" ], "x-ms-correlation-request-id": [ - "e3073404-955b-4a70-8fa4-f69edd142de3" + "18f254b6-c08a-4c1a-a0a1-d29dedad398b" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044457Z:e3073404-955b-4a70-8fa4-f69edd142de3" + "CENTRALUS:20170208T213239Z:18f254b6-c08a-4c1a-a0a1-d29dedad398b" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults?$top=2&api-version=2015-06-01&$skiptoken=c2RrdGVzdHZhdWx0OTEyMg==", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cz8kdG9wPTImYXBpLXZlcnNpb249MjAxNS0wNi0wMSYkc2tpcHRva2VuPWMyUnJkR1Z6ZEhaaGRXeDBPVEV5TWc9PQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults?$top=2&api-version=2016-10-01&$skiptoken=c2RrdGVzdHZhdWx0ODU1Mw==", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHM/JHRvcD0yJmFwaS12ZXJzaW9uPTIwMTYtMTAtMDEmJHNraXB0b2tlbj1jMlJyZEdWemRIWmhkV3gwT0RVMU13PT0=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c8edac35-e52b-4646-be61-77d5915b1003" + "50595d2c-f244-426a-b9cf-ba337ef4592a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -515,7 +532,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:57 GMT" + "Wed, 08 Feb 2017 21:32:38 GMT" ], "Pragma": [ "no-cache" @@ -529,6 +546,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -542,37 +562,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14983" ], "x-ms-request-id": [ - "c2304319-bd53-4165-931d-056d36b1ffa2" + "440ca357-f868-4784-b5a6-c00d474a66bc" ], "x-ms-correlation-request-id": [ - "c2304319-bd53-4165-931d-056d36b1ffa2" + "440ca357-f868-4784-b5a6-c00d474a66bc" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044458Z:c2304319-bd53-4165-931d-056d36b1ffa2" + "CENTRALUS:20170208T213239Z:440ca357-f868-4784-b5a6-c00d474a66bc" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resources?$filter=resourceType%20eq%20'Microsoft.KeyVault%2Fvaults'&$top=2&api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJTI3TWljcm9zb2Z0LktleVZhdWx0JTJGdmF1bHRzJTI3JiR0b3A9MiZhcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resources?$filter=resourceType%20eq%20'Microsoft.KeyVault%2Fvaults'&$top=2&api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJTI3TWljcm9zb2Z0LktleVZhdWx0JTJGdmF1bHRzJTI3JiR0b3A9MiZhcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a05af9bd-c0b6-4657-b263-244ba17877a9" + "7afccabe-356e-4456-99d9-e4f97a49f8f2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/JenkinsTesting/providers/Microsoft.KeyVault/vaults/JenkinsSecrets\",\r\n \"name\": \"JenkinsSecrets\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"centralus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/KVTestRG7d4685ea/providers/Microsoft.KeyVault/vaults/KVTestVault2f18a602\",\r\n \"name\": \"KVTestVault2f18a602\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"centralus\",\r\n \"tags\": {}\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resources?%24filter=resourceType+eq+%27Microsoft.KeyVault%2fvaults%27&%24top=2&api-version=2015-11-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IVFVWTVNalUtIiwibmV4dFJvd0tleSI6IjEhMTYwIU5FWkNSVEk0TVRBNFJVTTBORFEwTXpnNFJqUXhSREJCTmtFeU1USkVNREpmVkVkT1RDMU5TVU5TVDFOUFJsUTZNa1ZMUlZsV1FWVk1WRG95UmxaQlZVeFVVeTFMVmxSRlUxUldRVlZNVkRnMFFqVTBORUZFTFV0V1ZFVlRWRlpCVlV4VU5UVkRNRVpHUTBFdFFsSkJXa2xNVTA5VlZFZy0ifQ%3d%3d\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1015/providers/Microsoft.KeyVault/vaults/sdktestvault6217\",\r\n \"name\": \"sdktestvault6217\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg3279/providers/Microsoft.KeyVault/vaults/sdktestvault3912\",\r\n \"name\": \"sdktestvault3912\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resources?%24filter=resourceType+eq+%27Microsoft.KeyVault%2fvaults%27&%24top=2&api-version=2015-11-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IVJFSTNOakUtIiwibmV4dFJvd0tleSI6IjEhMTQ0IVJrRXlOVEEwT1RJMlJVVkJORUV6UkRnNE5UZENSVFUzUWprMVJEQXlPRVZmVkVkT1RDMU5TVU5TVDFOUFJsUTZNa1ZMUlZsV1FWVk1WRG95UmxaQlZVeFVVeTFUUkV0VVJWTlVVa2MxT0RjNUxWTkVTMVJGVTFSV1FWVk1WRGs1TURRdFJVRlRWRlZUTWctLSJ9\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -584,7 +605,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:57 GMT" + "Wed, 08 Feb 2017 21:32:38 GMT" ], "Pragma": [ "no-cache" @@ -593,16 +614,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14982" ], "x-ms-request-id": [ - "b2a34d84-49cd-42b1-a22c-6106241e3854" + "6b50c23b-c283-49a6-bab0-71f053819c83" ], "x-ms-correlation-request-id": [ - "b2a34d84-49cd-42b1-a22c-6106241e3854" + "6b50c23b-c283-49a6-bab0-71f053819c83" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044458Z:b2a34d84-49cd-42b1-a22c-6106241e3854" + "CENTRALUS:20170208T213239Z:6b50c23b-c283-49a6-bab0-71f053819c83" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -611,19 +632,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault7829?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cy9zZGt0ZXN0dmF1bHQ3ODI5P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault8553?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0ODU1Mz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4659782b-f47e-49bc-9b46-f6f5597f2163" + "c1e1581c-96bc-4c30-9746-50f3ffa6e0fc" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, "ResponseBody": "", @@ -638,7 +660,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:58 GMT" + "Wed, 08 Feb 2017 21:32:39 GMT" ], "Pragma": [ "no-cache" @@ -646,6 +668,9 @@ "Server": [ "Microsoft-IIS/8.5" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -659,34 +684,35 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1174" ], "x-ms-request-id": [ - "1f8a9939-726d-46bb-8050-5cd6bad00936" + "6c573ea1-ac88-4909-98a6-d043121a5a48" ], "x-ms-correlation-request-id": [ - "1f8a9939-726d-46bb-8050-5cd6bad00936" + "6c573ea1-ac88-4909-98a6-d043121a5a48" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044459Z:1f8a9939-726d-46bb-8050-5cd6bad00936" + "CENTRALUS:20170208T213240Z:6c573ea1-ac88-4909-98a6-d043121a5a48" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault9122?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cy9zZGt0ZXN0dmF1bHQ5MTIyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6076?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjA3Nj9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "30a07762-13c5-47b8-a480-aaa3ce84f56c" + "284c24ef-de50-458a-9bb8-4c4ef55dd87d" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, "ResponseBody": "", @@ -701,7 +727,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:59 GMT" + "Wed, 08 Feb 2017 21:32:40 GMT" ], "Pragma": [ "no-cache" @@ -709,6 +735,9 @@ "Server": [ "Microsoft-IIS/8.5" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -722,34 +751,35 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1173" ], "x-ms-request-id": [ - "fb1478c9-c999-41e6-8a41-6faa766c81fb" + "0463992e-ed4b-44f3-b3bd-578e8609d9d2" ], "x-ms-correlation-request-id": [ - "fb1478c9-c999-41e6-8a41-6faa766c81fb" + "0463992e-ed4b-44f3-b3bd-578e8609d9d2" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044500Z:fb1478c9-c999-41e6-8a41-6faa766c81fb" + "CENTRALUS:20170208T213241Z:0463992e-ed4b-44f3-b3bd-578e8609d9d2" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg811/providers/Microsoft.KeyVault/vaults/sdktestvault5656?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMS9wcm92aWRlcnMvTWljcm9zb2Z0LktleVZhdWx0L3ZhdWx0cy9zZGt0ZXN0dmF1bHQ1NjU2P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9384/providers/Microsoft.KeyVault/vaults/sdktestvault6984?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzkzODQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0Njk4ND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "260f719b-1f19-403c-b23e-d8bb151e0b71" + "a05383ef-5d82-417f-8f3c-af16867ee070" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, "ResponseBody": "", @@ -764,7 +794,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:45:00 GMT" + "Wed, 08 Feb 2017 21:32:42 GMT" ], "Pragma": [ "no-cache" @@ -772,6 +802,9 @@ "Server": [ "Microsoft-IIS/8.5" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -785,34 +818,37 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" + "1172" ], "x-ms-request-id": [ - "ec07af58-42f7-48bb-80b9-35024888d6d4" + "19de1076-4a38-4cd9-bc9a-68c9f4afdec7" ], "x-ms-correlation-request-id": [ - "ec07af58-42f7-48bb-80b9-35024888d6d4" + "19de1076-4a38-4cd9-bc9a-68c9f4afdec7" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044501Z:ec07af58-42f7-48bb-80b9-35024888d6d4" + "CENTRALUS:20170208T213242Z:19de1076-4a38-4cd9-bc9a-68c9f4afdec7" ] }, "StatusCode": 200 } ], "Names": { + "Initialize": [ + "sdktestrg9384", + "sdktestvault6422" + ], "KeyVaultManagementListVaults": [ - "sdktestrg811", - "sdktestvault7829", - "sdktestvault9122", - "sdktestvault5656" + "sdktestvault8553", + "sdktestvault6076", + "sdktestvault6984" ] }, "Variables": { - "SubscriptionId": "4fbe2810-8ec4-4443-88f4-1d0a6a212d02", - "TenantId": "dab60df3-eb31-470e-9aa7-0bb580c2624c", - "ObjectId": "8d3eb738-13c6-4117-aa01-b8aa50beba40", - "SubId": "4fbe2810-8ec4-4443-88f4-1d0a6a212d02", - "ApplicationId": "4a51b5db-82d7-4216-b48a-2d6724410532" + "SubscriptionId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "TenantId": "dfe47ca8-acfc-4539-9519-7d196a9c79e4", + "ObjectId": "5abe9358-10ae-4095-ba23-d34111430228", + "SubId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "ApplicationId": "da227136-7cf7-4f1e-8cee-fe3f46a0bc47" } } \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementRecoverDeletedVault.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementRecoverDeletedVault.json new file mode 100644 index 000000000000..a679e4e32a26 --- /dev/null +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementRecoverDeletedVault.json @@ -0,0 +1,849 @@ +{ + "Entries": [ + { + "RequestUri": "/dfe47ca8-acfc-4539-9519-7d196a9c79e4/users/subadmin@aztestkmsbvtoutlook.ccsctp.net?api-version=1.42-previewInternal", + "EncodedRequestUri": "L2RmZTQ3Y2E4LWFjZmMtNDUzOS05NTE5LTdkMTk2YTljNzllNC91c2Vycy9zdWJhZG1pbkBhenRlc3RrbXNidnRvdXRsb29rLmNjc2N0cC5uZXQ/YXBpLXZlcnNpb249MS40Mi1wcmV2aWV3SW50ZXJuYWw=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3f8f2ec6-3b62-4c50-b5df-234dec36a48c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/2.2.2-preview" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/dfe47ca8-acfc-4539-9519-7d196a9c79e4/$metadata#directoryObjects/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Subscription Admin\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": null,\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"subadmin\",\r\n \"mobile\": null,\r\n \"netId\": \"10037FFE8D4B0C05\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [],\r\n \"passwordPolicies\": \"DisablePasswordExpiration\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": null,\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": null,\r\n \"telephoneNumber\": null,\r\n \"thumbnailPhoto@odata.mediaEditLink\": \"directoryObjects/5abe9358-10ae-4095-ba23-d34111430228/Microsoft.WindowsAzure.ActiveDirectory.User/thumbnailPhoto\",\r\n \"usageLocation\": null,\r\n \"userPrincipalName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2100" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "ocp-aad-diagnostics-server-name": [ + "T9/56u+IxXzVBkloeOIfRE0GeKZr+9AWbLSz9dsy+Eo=" + ], + "request-id": [ + "3a12371a-7008-4079-b088-970a7a766ad9" + ], + "client-request-id": [ + "c54ef4d3-9feb-4752-a54e-b66ca96f40af" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "yoKIUnKDeB7E6oF4fEK0qg46sxV36DPga0eheGXFtERbeJP_qjdq36M-cq5qWLFrIDEG18mIGZW8_AshxjaqYBEPrvFw8-TAUyFuRmw1ubS6NIrO3tZVtZ2vM2AXgwBs.6tLZQyIUEE46nLyF6_j9JF0wn8GnHIf4nyXpWYmIkds" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Duration": [ + "800326" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3ef0a9ba-1765-4e24-b871-b76c0e374872" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults/accessPolicies\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "424c6721-9fdd-459f-9fd8-214820d5f873" + ], + "x-ms-correlation-request-id": [ + "424c6721-9fdd-459f-9fd8-214820d5f873" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202715Z:424c6721-9fdd-459f-9fd8-214820d5f873" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourcegroups/sdktestrg2024?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzIwMjQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ], + "x-ms-client-request-id": [ + "072d9dab-e5e5-427c-8202-c0081f8b4bae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024\",\r\n \"name\": \"sdktestrg2024\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "180" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "86b5be18-0443-4978-93e6-28c664cd51a1" + ], + "x-ms-correlation-request-id": [ + "86b5be18-0443-4978-93e6-28c664cd51a1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202715Z:86b5be18-0443-4978-93e6-28c664cd51a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "820" + ], + "x-ms-client-request-id": [ + "8eb0c2ee-cfcb-44f2-9e53-12b4afad92cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390\",\r\n \"name\": \"sdktestvault5390\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault5390.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "6c13243c-5599-46c1-a4f6-e9c106f6f20a" + ], + "x-ms-correlation-request-id": [ + "6c13243c-5599-46c1-a4f6-e9c106f6f20a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202717Z:6c13243c-5599-46c1-a4f6-e9c106f6f20a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "820" + ], + "x-ms-client-request-id": [ + "030dd77e-6a45-459e-9015-a3d35fa07169" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390\",\r\n \"name\": \"sdktestvault5390\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault5390.vault-int.azure-int.net/\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "840f84af-f0ff-4461-adcb-51f9f9f57e64" + ], + "x-ms-correlation-request-id": [ + "840f84af-f0ff-4461-adcb-51f9f9f57e64" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202718Z:840f84af-f0ff-4461-adcb-51f9f9f57e64" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"createMode\": \"recover\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "299" + ], + "x-ms-client-request-id": [ + "5c3abf1d-762d-4f65-ba4d-6e4856e8cb5e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390\",\r\n \"name\": \"sdktestvault5390\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault5390.vault-int.azure-int.net/\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "3159235b-8222-4e8f-b484-a194ff0212a9" + ], + "x-ms-correlation-request-id": [ + "3159235b-8222-4e8f-b484-a194ff0212a9" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202719Z:3159235b-8222-4e8f-b484-a194ff0212a9" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "221c5ab7-f8b1-466e-9785-422754f6f549" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "a82e9222-2c1d-4f5f-b240-8124af0ea6ef" + ], + "x-ms-correlation-request-id": [ + "a82e9222-2c1d-4f5f-b240-8124af0ea6ef" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202718Z:a82e9222-2c1d-4f5f-b240-8124af0ea6ef" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eaa7636e-88b1-4319-b492-cd9705c4dde4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "3ddf5d85-325c-4410-8b65-af7547a28957" + ], + "x-ms-correlation-request-id": [ + "3ddf5d85-325c-4410-8b65-af7547a28957" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202719Z:3ddf5d85-325c-4410-8b65-af7547a28957" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96af750c-c1ee-4a32-974e-22a781238648" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-request-id": [ + "66a2fec4-b37a-4cbd-a3db-7ea52112cf34" + ], + "x-ms-correlation-request-id": [ + "66a2fec4-b37a-4cbd-a3db-7ea52112cf34" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202720Z:66a2fec4-b37a-4cbd-a3db-7ea52112cf34" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2985bc66-05fc-441f-a9ec-05af043153bb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.KeyVault/vaults/sdktestvault5390' under resource group 'sdktestrg2024' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "159" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "d19bca04-f900-4831-a501-38cec05a2542" + ], + "x-ms-correlation-request-id": [ + "d19bca04-f900-4831-a501-38cec05a2542" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202718Z:d19bca04-f900-4831-a501-38cec05a2542" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "14d79418-50a8-4668-9c9d-211ab7880fef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390\",\r\n \"name\": \"sdktestvault5390\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault5390.vault-int.azure-int.net/\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "96f471ab-f8ae-481a-8b98-3907ea89d6a4" + ], + "x-ms-correlation-request-id": [ + "96f471ab-f8ae-481a-8b98-3907ea89d6a4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202719Z:96f471ab-f8ae-481a-8b98-3907ea89d6a4" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzIwMjQvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTM5MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e155079-214c-4377-8f65-8053edb43e6b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg2024/providers/Microsoft.KeyVault/vaults/sdktestvault5390\",\r\n \"name\": \"sdktestvault5390\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault5390.vault-int.azure-int.net/\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 20:27:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "7614159f-b728-4750-89c5-57d8af2c2e7a" + ], + "x-ms-correlation-request-id": [ + "7614159f-b728-4750-89c5-57d8af2c2e7a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T202720Z:7614159f-b728-4750-89c5-57d8af2c2e7a" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Initialize": [ + "sdktestrg2024", + "sdktestvault5390" + ] + }, + "Variables": { + "SubscriptionId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "TenantId": "dfe47ca8-acfc-4539-9519-7d196a9c79e4", + "ObjectId": "5abe9358-10ae-4095-ba23-d34111430228", + "SubId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "ApplicationId": "28f5f4cf-d015-48f2-b3e3-e1a2b2b3149b" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json index 0008ddaa1f0f..429fe8584a0e 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultCreateUpdateDelete.json @@ -1,26 +1,26 @@ { "Entries": [ { - "RequestUri": "/de86f3e7-1fe3-414c-812a-817ab249ad9b/users/admin@aad140.ccsctp.net?api-version=1.42-previewInternal", - "EncodedRequestUri": "L2RlODZmM2U3LTFmZTMtNDE0Yy04MTJhLTgxN2FiMjQ5YWQ5Yi91c2Vycy9hZG1pbkBhYWQxNDAuY2NzY3RwLm5ldD9hcGktdmVyc2lvbj0xLjQyLXByZXZpZXdJbnRlcm5hbA==", + "RequestUri": "/dfe47ca8-acfc-4539-9519-7d196a9c79e4/users/subadmin@aztestkmsbvtoutlook.ccsctp.net?api-version=1.42-previewInternal", + "EncodedRequestUri": "L2RmZTQ3Y2E4LWFjZmMtNDUzOS05NTE5LTdkMTk2YTljNzllNC91c2Vycy9zdWJhZG1pbkBhenRlc3RrbXNidnRvdXRsb29rLmNjc2N0cC5uZXQ/YXBpLXZlcnNpb249MS40Mi1wcmV2aWV3SW50ZXJuYWw=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "094a26e3-0a8e-413c-b187-7f9d2a799bf7" + "9a961fad-889e-4454-aa78-4b316be75dc9" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/2.2.2-preview" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/de86f3e7-1fe3-414c-812a-817ab249ad9b/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.User/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [\r\n {\r\n \"disabledPlans\": [],\r\n \"skuId\": \"078d2b04-f1bd-4111-bbd4-b4b1b354cef4\"\r\n }\r\n ],\r\n \"assignedPlans\": [\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:40Z\",\r\n \"capabilityStatus\": \"Enabled\",\r\n \"service\": \"AADPremiumService\",\r\n \"servicePlanId\": \"41781fb2-bc02-4b7c-bd55-b576c07bb09d\"\r\n },\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:40Z\",\r\n \"capabilityStatus\": \"Enabled\",\r\n \"service\": \"MultiFactorService\",\r\n \"servicePlanId\": \"8a256a2b-b617-496d-b51b-e76466e88db0\"\r\n },\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:04Z\",\r\n \"capabilityStatus\": \"Deleted\",\r\n \"service\": \"SCO\",\r\n \"servicePlanId\": \"c1ec4a95-1f05-45b3-a911-aa3fa01094f5\"\r\n },\r\n {\r\n \"assignedTimestamp\": \"2014-04-29T22:06:04Z\",\r\n \"capabilityStatus\": \"Deleted\",\r\n \"service\": \"RMSOnline\",\r\n \"servicePlanId\": \"bea4c11e-220a-4e6d-8eb8-8ea15d019f90\"\r\n }\r\n ],\r\n \"city\": \"Redmond\",\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Jon Doe\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": \"Jon\",\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": \"I am the boss\",\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"admin\",\r\n \"mobile\": \"+1 (123) 456-7890\",\r\n \"netId\": \"1003000087E8C55A\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [\r\n \"jon@doe.com\"\r\n ],\r\n \"passwordPolicies\": \"DisablePasswordExpiration\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": \"98052\",\r\n \"preferredLanguage\": \"en-US\",\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [\r\n {\r\n \"capabilityStatus\": \"Enabled\",\r\n \"provisioningStatus\": \"Success\",\r\n \"service\": \"SCO\"\r\n }\r\n ],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"admin@aad140.ccsctp.net\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": \"WA\",\r\n \"streetAddress\": \"One Microsoft Way\",\r\n \"surname\": \"Doe\",\r\n \"telephoneNumber\": null,\r\n \"usageLocation\": \"US\",\r\n \"userPrincipalName\": \"admin@aad140.ccsctp.net\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/dfe47ca8-acfc-4539-9519-7d196a9c79e4/$metadata#directoryObjects/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Subscription Admin\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": null,\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"subadmin\",\r\n \"mobile\": null,\r\n \"netId\": \"10037FFE8D4B0C05\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [],\r\n \"passwordPolicies\": \"DisablePasswordExpiration\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": null,\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": null,\r\n \"telephoneNumber\": null,\r\n \"thumbnailPhoto@odata.mediaEditLink\": \"directoryObjects/5abe9358-10ae-4095-ba23-d34111430228/Microsoft.WindowsAzure.ActiveDirectory.User/thumbnailPhoto\",\r\n \"usageLocation\": null,\r\n \"userPrincipalName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "2771" + "2100" ], "Content-Type": [ "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" @@ -32,7 +32,7 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:11 GMT" + "Wed, 08 Feb 2017 21:32:16 GMT" ], "Pragma": [ "no-cache" @@ -44,19 +44,16 @@ "3KJX1Gy2hruUIUgwZttKte3ayI+bWJZKm1QQ2LDyX2Q=" ], "request-id": [ - "fdb9cb0c-d8d1-40b7-9eee-7b6bab659852" + "1b5f1f97-4d87-45a2-82be-14030200117b" ], "client-request-id": [ - "4571f1a8-e208-4bb2-834b-8b802514e0bd" + "90b45890-98d9-4050-a298-50b7972499f9" ], "x-ms-dirapi-data-contract-version": [ "1.42-previewInternal" ], "ocp-aad-session-key": [ - "BhCZfBbfV5aHHBK-NKabzJ05stTmjuaG_IVC7QuksDdrn-HxZhB88jdMsJrrHxwkEVL4nLkVTAdf0oljsSn9kNa6f5ne8aTZsGfxHaupnZE_GjCjtgu6jolwczbMc_tn.DZ-DYHpMbdjFgcPi4yXzX6Lxag66NS0dxmtVIhiCYf4" - ], - "X-Content-Type-Options": [ - "nosniff" + "mvrVXZYxCa-LRU-a528OnQ4VBbWN7KqZpzMnL-V1Xk7WTKWXMl06glNLIuwcElBKXKy5ssqhETYayPLo76SqSApSEe6vUq702_yFkScB65BWPlt1GrLLUiVJI-enXJZh.5fRda2fXrkYSLxYxUn1bMuhKo9F6QtnhRXfIfb779rE" ], "DataServiceVersion": [ "3.0;" @@ -75,29 +72,29 @@ "ASP.NET" ], "Duration": [ - "1534322" + "3379622" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/providers/Microsoft.KeyVault?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4fb22653-c0b0-47a5-9d4c-109b2a827386" + "20216690-83c5-41de-bc8a-18e630dfdea8" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults/accessPolicies\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults/accessPolicies\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -109,7 +106,7 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:22 GMT" + "Wed, 08 Feb 2017 21:32:17 GMT" ], "Pragma": [ "no-cache" @@ -118,16 +115,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14986" ], "x-ms-request-id": [ - "5f912037-3b67-4cfd-a0a2-fe0cfd1c86bc" + "ab5c1725-4c43-4394-96f0-a50026565718" ], "x-ms-correlation-request-id": [ - "5f912037-3b67-4cfd-a0a2-fe0cfd1c86bc" + "ab5c1725-4c43-4394-96f0-a50026565718" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170130T230623Z:5f912037-3b67-4cfd-a0a2-fe0cfd1c86bc" + "CENTRALUS:20170208T213218Z:ab5c1725-4c43-4394-96f0-a50026565718" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -136,8 +133,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourcegroups/sdktestrg7903?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzc5MDM/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourcegroups/sdktestrg1069?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzEwNjk/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -148,17 +145,17 @@ "31" ], "x-ms-client-request-id": [ - "57c6ceda-44ee-429f-85dc-839978fb7235" + "956754cb-ac7a-4ffc-8ed9-d247f6d4ef54" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903\",\r\n \"name\": \"sdktestrg7903\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069\",\r\n \"name\": \"sdktestrg1069\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "180" @@ -173,22 +170,22 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:24 GMT" + "Wed, 08 Feb 2017 21:32:18 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1179" ], "x-ms-request-id": [ - "242a8a79-d185-4e0d-9601-b4be5d709faf" + "f45c7268-3445-4fa5-a412-426496f9f92d" ], "x-ms-correlation-request-id": [ - "242a8a79-d185-4e0d-9601-b4be5d709faf" + "f45c7268-3445-4fa5-a412-426496f9f92d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170130T230624Z:242a8a79-d185-4e0d-9601-b4be5d709faf" + "CENTRALUS:20170208T213218Z:f45c7268-3445-4fa5-a412-426496f9f92d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -197,29 +194,29 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEwNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjMwND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "763" + "789" ], "x-ms-client-request-id": [ - "8cf99bce-61ee-4863-b320-c07788cdca1c" + "3f598752-d790-4920-abf9-a53dc9fb596e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286\",\r\n \"name\": \"sdktestvault6286\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304\",\r\n \"name\": \"sdktestvault2304\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault2304.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -231,7 +228,7 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:25 GMT" + "Wed, 08 Feb 2017 21:32:19 GMT" ], "Pragma": [ "no-cache" @@ -246,7 +243,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.650" + "1.0.1.660" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -264,41 +261,41 @@ "1199" ], "x-ms-request-id": [ - "90fbf0f5-c702-4aff-a506-7d265efc7096" + "7e88cee5-4af4-440a-bb8c-dc05e20d0919" ], "x-ms-correlation-request-id": [ - "90fbf0f5-c702-4aff-a506-7d265efc7096" + "7e88cee5-4af4-440a-bb8c-dc05e20d0919" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170130T230625Z:90fbf0f5-c702-4aff-a506-7d265efc7096" + "CENTRALUS:20170208T213220Z:7e88cee5-4af4-440a-bb8c-dc05e20d0919" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEwNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjMwND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net\",\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"sku\": {\r\n \"name\": \"premium\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"https://sdktestvault2304.vault-int.azure-int.net\",\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"premium\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "833" + "802" ], "x-ms-client-request-id": [ - "a411a190-3b58-41fd-884d-77083166a1da" + "fffb04a0-6f6e-4d8c-a136-2e93e15f44e0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286\",\r\n \"name\": \"sdktestvault6286\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net/\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304\",\r\n \"name\": \"sdktestvault2304\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault2304.vault-int.azure-int.net/\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -310,7 +307,7 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:25 GMT" + "Wed, 08 Feb 2017 21:32:19 GMT" ], "Pragma": [ "no-cache" @@ -325,7 +322,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.650" + "1.0.1.660" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -343,35 +340,35 @@ "1198" ], "x-ms-request-id": [ - "7034bd56-4960-4cfb-86a9-bb2ff62aae5b" + "4a25509c-8fb8-4727-8804-50a6b598a264" ], "x-ms-correlation-request-id": [ - "7034bd56-4960-4cfb-86a9-bb2ff62aae5b" + "4a25509c-8fb8-4727-8804-50a6b598a264" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170130T230626Z:7034bd56-4960-4cfb-86a9-bb2ff62aae5b" + "CENTRALUS:20170208T213220Z:4a25509c-8fb8-4727-8804-50a6b598a264" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEwNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjMwND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c66a7d37-9a1a-428b-9478-a82849fc2a3a" + "db991b01-4760-4dc2-826e-6fe4d23bf27b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286\",\r\n \"name\": \"sdktestvault6286\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"de86f3e7-1fe3-414c-812a-817ab249ad9b\",\r\n \"objectId\": \"3bffcb49-ad00-45f7-a400-34137c7ab0a3\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault6286.vault-int.azure-int.net/\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304\",\r\n \"name\": \"sdktestvault2304\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"premium\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"secrets\": [\r\n \"get\",\r\n \"set\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault2304.vault-int.azure-int.net/\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -383,7 +380,7 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:25 GMT" + "Wed, 08 Feb 2017 21:32:20 GMT" ], "Pragma": [ "no-cache" @@ -398,7 +395,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.650" + "1.0.1.660" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -413,38 +410,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14999" ], "x-ms-request-id": [ - "621e2b4e-7f45-4cec-a735-a8efc712aff0" + "3ea7fa6d-3776-4e08-97e7-11f466752ecc" ], "x-ms-correlation-request-id": [ - "621e2b4e-7f45-4cec-a735-a8efc712aff0" + "3ea7fa6d-3776-4e08-97e7-11f466752ecc" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170130T230626Z:621e2b4e-7f45-4cec-a735-a8efc712aff0" + "CENTRALUS:20170208T213220Z:3ea7fa6d-3776-4e08-97e7-11f466752ecc" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEwNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjMwND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f8cf1991-f4f3-448f-9ba9-8427264565ff" + "fe78d3a1-1cf0-4735-af89-6fd5de0d4150" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.KeyVault/vaults/sdktestvault6286' under resource group 'sdktestrg7903' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.KeyVault/vaults/sdktestvault2304' under resource group 'sdktestrg1069' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "159" @@ -459,7 +456,7 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:26 GMT" + "Wed, 08 Feb 2017 21:32:20 GMT" ], "Pragma": [ "no-cache" @@ -468,13 +465,13 @@ "gateway" ], "x-ms-request-id": [ - "c90948c1-ae45-4760-9fc5-d2df7b1234d5" + "ac939cf0-958e-4d75-9d77-55a768d88d70" ], "x-ms-correlation-request-id": [ - "c90948c1-ae45-4760-9fc5-d2df7b1234d5" + "ac939cf0-958e-4d75-9d77-55a768d88d70" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170130T230627Z:c90948c1-ae45-4760-9fc5-d2df7b1234d5" + "CENTRALUS:20170208T213221Z:ac939cf0-958e-4d75-9d77-55a768d88d70" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -483,19 +480,19 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/f813c091-cdad-457f-a11b-5066f3ccfec0/resourceGroups/sdktestrg7903/providers/Microsoft.KeyVault/vaults/sdktestvault6286?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjgxM2MwOTEtY2RhZC00NTdmLWExMWItNTA2NmYzY2NmZWMwL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzc5MDMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjI4Nj9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg1069/providers/Microsoft.KeyVault/vaults/sdktestvault2304?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEwNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjMwND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5df92c3f-0c90-4f97-b44e-a027b09ffe2a" + "f2fa6540-8a6b-4d85-ac23-25548e5e62b4" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24709.01", + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, @@ -511,7 +508,7 @@ "no-cache" ], "Date": [ - "Mon, 30 Jan 2017 23:06:26 GMT" + "Wed, 08 Feb 2017 21:32:20 GMT" ], "Pragma": [ "no-cache" @@ -520,7 +517,7 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-service-version": [ - "1.0.1.650" + "1.0.1.660" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -538,29 +535,29 @@ "1197" ], "x-ms-request-id": [ - "90a4d096-acdc-42b7-aad8-5e4df1246794" + "a4ea647d-4eaf-45f0-883f-37d47cc53d7f" ], "x-ms-correlation-request-id": [ - "90a4d096-acdc-42b7-aad8-5e4df1246794" + "a4ea647d-4eaf-45f0-883f-37d47cc53d7f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170130T230627Z:90a4d096-acdc-42b7-aad8-5e4df1246794" + "CENTRALUS:20170208T213221Z:a4ea647d-4eaf-45f0-883f-37d47cc53d7f" ] }, "StatusCode": 200 } ], "Names": { - "KeyVaultManagementVaultCreateUpdateDelete": [ - "sdktestrg7903", - "sdktestvault6286" + "Initialize": [ + "sdktestrg1069", + "sdktestvault2304" ] }, "Variables": { - "SubscriptionId": "f813c091-cdad-457f-a11b-5066f3ccfec0", - "TenantId": "de86f3e7-1fe3-414c-812a-817ab249ad9b", - "ObjectId": "3bffcb49-ad00-45f7-a400-34137c7ab0a3", - "SubId": "f813c091-cdad-457f-a11b-5066f3ccfec0", - "ApplicationId": "260fde02-7266-459b-aead-2f219e610210" + "SubscriptionId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "TenantId": "dfe47ca8-acfc-4539-9519-7d196a9c79e4", + "ObjectId": "5abe9358-10ae-4095-ba23-d34111430228", + "SubId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "ApplicationId": "ef0a08a5-f132-48cf-9a62-76a708a79379" } } \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy.json index e25dfb58f4d5..566502a39cd7 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy.json @@ -1,25 +1,26 @@ { "Entries": [ { - "RequestUri": "/dab60df3-eb31-470e-9aa7-0bb580c2624c/users/testuser@mstestkeyvaultoutlook.onmicrosoft.com?api-version=1.42-previewInternal", - "EncodedRequestUri": "L2RhYjYwZGYzLWViMzEtNDcwZS05YWE3LTBiYjU4MGMyNjI0Yy91c2Vycy90ZXN0dXNlckBtc3Rlc3RrZXl2YXVsdG91dGxvb2sub25taWNyb3NvZnQuY29tP2FwaS12ZXJzaW9uPTEuNDItcHJldmlld0ludGVybmFs", + "RequestUri": "/dfe47ca8-acfc-4539-9519-7d196a9c79e4/users/subadmin@aztestkmsbvtoutlook.ccsctp.net?api-version=1.42-previewInternal", + "EncodedRequestUri": "L2RmZTQ3Y2E4LWFjZmMtNDUzOS05NTE5LTdkMTk2YTljNzllNC91c2Vycy9zdWJhZG1pbkBhenRlc3RrbXNidnRvdXRsb29rLmNjc2N0cC5uZXQ/YXBpLXZlcnNpb249MS40Mi1wcmV2aWV3SW50ZXJuYWw=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5bce3dc4-16dc-487d-960b-3c797360c2b8" + "a5ef6b5c-8b17-4a24-9e3d-02731ffc81a6" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24214.01", "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/2.2.2-preview" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.windows.net/dab60df3-eb31-470e-9aa7-0bb580c2624c/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.User/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Test User\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": \"Test\",\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"testuser\",\r\n \"mobile\": null,\r\n \"netId\": \"10033FFF933CA699\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [\r\n \"karlaug@microsoft.com\"\r\n ],\r\n \"passwordPolicies\": \"DisablePasswordExpiration, DisableStrongPassword\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": \"en-US\",\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"testuser@mstestkeyvaultoutlook.onmicrosoft.com\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": \"User\",\r\n \"telephoneNumber\": null,\r\n \"usageLocation\": \"US\",\r\n \"userPrincipalName\": \"testuser@mstestkeyvaultoutlook.onmicrosoft.com\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/dfe47ca8-acfc-4539-9519-7d196a9c79e4/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.User/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.User\",\r\n \"objectType\": \"User\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"softDeletionTimestamp\": null,\r\n \"acceptedAs\": null,\r\n \"acceptedOn\": null,\r\n \"accountEnabled\": true,\r\n \"alternativeSecurityIds\": [],\r\n \"appMetadata\": null,\r\n \"assignedLicenses\": [],\r\n \"assignedPlans\": [],\r\n \"city\": null,\r\n \"country\": null,\r\n \"creationType\": null,\r\n \"department\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"Subscription Admin\",\r\n \"extensionAttribute1\": null,\r\n \"extensionAttribute2\": null,\r\n \"extensionAttribute3\": null,\r\n \"extensionAttribute4\": null,\r\n \"extensionAttribute5\": null,\r\n \"extensionAttribute6\": null,\r\n \"extensionAttribute7\": null,\r\n \"extensionAttribute8\": null,\r\n \"extensionAttribute9\": null,\r\n \"extensionAttribute10\": null,\r\n \"extensionAttribute11\": null,\r\n \"extensionAttribute12\": null,\r\n \"extensionAttribute13\": null,\r\n \"extensionAttribute14\": null,\r\n \"extensionAttribute15\": null,\r\n \"facsimileTelephoneNumber\": null,\r\n \"givenName\": null,\r\n \"immutableId\": null,\r\n \"invitedOn\": null,\r\n \"inviteReplyUrl\": [],\r\n \"inviteResources\": [],\r\n \"inviteTicket\": [],\r\n \"isCompromised\": null,\r\n \"jobTitle\": null,\r\n \"jrnlAddress\": null,\r\n \"lastDirSyncTime\": null,\r\n \"logonIdentifiers\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"subadmin\",\r\n \"mobile\": null,\r\n \"netId\": \"10037FFE8D4B0C05\",\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"otherMails\": [],\r\n \"passwordPolicies\": \"DisablePasswordExpiration\",\r\n \"passwordProfile\": null,\r\n \"physicalDeliveryOfficeName\": null,\r\n \"postalCode\": null,\r\n \"preferredLanguage\": null,\r\n \"primarySMTPAddress\": null,\r\n \"provisionedPlans\": [],\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"searchableDeviceKey\": [],\r\n \"selfServePasswordResetData\": null,\r\n \"signInName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"sipProxyAddress\": null,\r\n \"smtpAddresses\": [],\r\n \"state\": null,\r\n \"streetAddress\": null,\r\n \"surname\": null,\r\n \"telephoneNumber\": null,\r\n \"usageLocation\": null,\r\n \"userPrincipalName\": \"subadmin@aztestkmsbvtoutlook.ccsctp.net\",\r\n \"userState\": null,\r\n \"userStateChangedOn\": null,\r\n \"userType\": \"Member\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "2046" + "1992" ], "Content-Type": [ "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" @@ -31,7 +32,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:48 GMT" + "Wed, 08 Feb 2017 21:32:29 GMT" ], "Pragma": [ "no-cache" @@ -40,19 +41,19 @@ "Microsoft-IIS/8.5" ], "ocp-aad-diagnostics-server-name": [ - "HIDIlXA97MLaYaGq6RNQ/VPopq18Y5SezVeO/oPxf0A=" + "ZE0QSYmhZQQLTZydJhtukJWOmhRx4jcY3NbmCe9pPIU=" ], "request-id": [ - "096a566b-1696-4795-b4af-ad5d975f1de0" + "91cf57d0-b5b3-4444-a744-e8888743e560" ], "client-request-id": [ - "079ee504-efa8-4432-8325-bdfb32adffaf" + "1a49c86a-ecdd-4495-a882-d0057ddde89b" ], "x-ms-dirapi-data-contract-version": [ "1.42-previewInternal" ], "ocp-aad-session-key": [ - "Es4YlbT3poLHjpwjbyUFgFQ9CwjYQsOV6KoZKGCKqakT_OYFeQzcBuYVs-te9-3WGeo0C73Ba7OJ_L0wva-OFvGulxrLnfw3EKHuzUVFXMzOTVRK0lfXD2lCYpG5EO09.KG0_wxmBiRFVRwBDujx8TSbPuQ8ocxD5SW55FetmTdg" + "b4KOIX_PIUVVgyACSvOu-cZdRlFuJgQ7FaHyaNWT2dQYP1_qRo6tMSRLMStZr2TRHJJ0RHNl8h9GUrarK3WZWXZI55AN_4ctvQFLh7lfIyvywggLPUQ8OfBvZvA2heZz.ivyCPym_dU1rmkIYZIvKWddiuyJ5wdC4pB9jwTbdynM" ], "X-Content-Type-Options": [ "nosniff" @@ -74,28 +75,29 @@ "ASP.NET" ], "Duration": [ - "789675" + "3962956" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/providers/Microsoft.KeyVault?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQ/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d0cd4954-cc34-44fd-b213-485b1eef2f65" + "afee4d7f-bcbe-4d6a-a725-859f31759b0d" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"East US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK North\",\r\n \"UK South 2\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"East US\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK North\",\r\n \"UK South 2\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault\",\r\n \"namespace\": \"Microsoft.KeyVault\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\",\r\n \"2014-12-19-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"vaults/secrets\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"vaults/accessPolicies\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\",\r\n \"2015-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deletedVaults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\",\r\n \"North Central US\",\r\n \"South Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-10-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -107,7 +109,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:49 GMT" + "Wed, 08 Feb 2017 21:32:29 GMT" ], "Pragma": [ "no-cache" @@ -119,13 +121,13 @@ "14998" ], "x-ms-request-id": [ - "92272636-3d5d-45f4-8b95-5ddeca4ea23d" + "c288d7eb-60b7-4273-8582-53e7ca816a0d" ], "x-ms-correlation-request-id": [ - "92272636-3d5d-45f4-8b95-5ddeca4ea23d" + "c288d7eb-60b7-4273-8582-53e7ca816a0d" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044449Z:92272636-3d5d-45f4-8b95-5ddeca4ea23d" + "CENTRALUS:20170208T213230Z:c288d7eb-60b7-4273-8582-53e7ca816a0d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -134,31 +136,32 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourcegroups/sdktestrg1220?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzEyMjA/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourcegroups/sdktestrg8133?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzgxMzM/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\"\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "38" + "31" ], "x-ms-client-request-id": [ - "3eebe6df-0e3c-4696-a517-021c06ef689f" + "36c2008f-7f87-4fb1-a263-dc668a44f26c" ], "accept-language": [ "en-US" ], "User-Agent": [ + "FxVersion/4.6.24214.01", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg1220\",\r\n \"name\": \"sdktestrg1220\",\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8133\",\r\n \"name\": \"sdktestrg8133\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "187" + "180" ], "Content-Type": [ "application/json; charset=utf-8" @@ -170,22 +173,22 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:49 GMT" + "Wed, 08 Feb 2017 21:32:30 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-request-id": [ - "7cd3bc1c-4d83-43e6-bb8d-7ee2da86d453" + "ad4d1661-579c-41f0-8226-b08ec2d9fc23" ], "x-ms-correlation-request-id": [ - "7cd3bc1c-4d83-43e6-bb8d-7ee2da86d453" + "ad4d1661-579c-41f0-8226-b08ec2d9fc23" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044450Z:7cd3bc1c-4d83-43e6-bb8d-7ee2da86d453" + "CENTRALUS:20170208T213230Z:ad4d1661-579c-41f0-8226-b08ec2d9fc23" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -194,28 +197,29 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg1220/providers/Microsoft.KeyVault/vaults/sdktestvault3487?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEyMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MzQ4Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8133/providers/Microsoft.KeyVault/vaults/sdktestvault6823?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMzMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjgyMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"applicationId\": \"8b654ae6-39e7-4137-b959-7f5e3b5f35a4\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"vaultUri\": \"\",\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"applicationId\": \"4027dc19-c17b-45d8-88cf-29f922a5713b\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "805" + "855" ], "x-ms-client-request-id": [ - "03e04a7d-2bee-47c7-9dd0-98b3250fb093" + "b201c86f-e34b-4026-815a-40f249369342" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg1220/providers/Microsoft.KeyVault/vaults/sdktestvault3487\",\r\n \"name\": \"sdktestvault3487\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"applicationId\": \"8b654ae6-39e7-4137-b959-7f5e3b5f35a4\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault3487.vault.azure.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8133/providers/Microsoft.KeyVault/vaults/sdktestvault6823\",\r\n \"name\": \"sdktestvault6823\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"applicationId\": \"4027dc19-c17b-45d8-88cf-29f922a5713b\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault6823.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -227,7 +231,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:50 GMT" + "Wed, 08 Feb 2017 21:32:31 GMT" ], "Pragma": [ "no-cache" @@ -241,6 +245,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -254,37 +261,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1195" ], "x-ms-request-id": [ - "e6dbc67f-4546-4a5b-b9a5-09eb44bdedaa" + "b64cd468-38ce-4231-890b-feb9a8956640" ], "x-ms-correlation-request-id": [ - "e6dbc67f-4546-4a5b-b9a5-09eb44bdedaa" + "b64cd468-38ce-4231-890b-feb9a8956640" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044451Z:e6dbc67f-4546-4a5b-b9a5-09eb44bdedaa" + "CENTRALUS:20170208T213231Z:b64cd468-38ce-4231-890b-feb9a8956640" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg1220/providers/Microsoft.KeyVault/vaults/sdktestvault3487?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEyMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MzQ4Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8133/providers/Microsoft.KeyVault/vaults/sdktestvault6823?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMzMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjgyMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a9b01609-233a-4dde-809d-de78616011ce" + "d45b50f8-60f3-4c81-b733-dc91f1e70fba" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg1220/providers/Microsoft.KeyVault/vaults/sdktestvault3487\",\r\n \"name\": \"sdktestvault3487\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dab60df3-eb31-470e-9aa7-0bb580c2624c\",\r\n \"objectId\": \"8d3eb738-13c6-4117-aa01-b8aa50beba40\",\r\n \"applicationId\": \"8b654ae6-39e7-4137-b959-7f5e3b5f35a4\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault3487.vault.azure.net/\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8133/providers/Microsoft.KeyVault/vaults/sdktestvault6823\",\r\n \"name\": \"sdktestvault6823\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"applicationId\": \"4027dc19-c17b-45d8-88cf-29f922a5713b\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"vaultUri\": \"https://sdktestvault6823.vault-int.azure-int.net/\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -296,7 +304,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:50 GMT" + "Wed, 08 Feb 2017 21:32:31 GMT" ], "Pragma": [ "no-cache" @@ -310,6 +318,9 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -326,34 +337,35 @@ "14997" ], "x-ms-request-id": [ - "e7c363fe-e82b-4eda-8824-136e16ea6d6f" + "09392939-68dd-4c76-aabf-8123f5507e6b" ], "x-ms-correlation-request-id": [ - "e7c363fe-e82b-4eda-8824-136e16ea6d6f" + "09392939-68dd-4c76-aabf-8123f5507e6b" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044451Z:e7c363fe-e82b-4eda-8824-136e16ea6d6f" + "CENTRALUS:20170208T213232Z:09392939-68dd-4c76-aabf-8123f5507e6b" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg1220/providers/Microsoft.KeyVault/vaults/sdktestvault3487?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEyMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MzQ4Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8133/providers/Microsoft.KeyVault/vaults/sdktestvault6823?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMzMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjgyMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ad1f86a5-ad96-4570-a1c7-22817a5b5731" + "3b81c3aa-0e7f-43a7-8b1b-c76ec32e1d70" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.KeyVault/vaults/sdktestvault3487' under resource group 'sdktestrg1220' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.KeyVault/vaults/sdktestvault6823' under resource group 'sdktestrg8133' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "159" @@ -368,7 +380,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:51 GMT" + "Wed, 08 Feb 2017 21:32:32 GMT" ], "Pragma": [ "no-cache" @@ -377,13 +389,13 @@ "gateway" ], "x-ms-request-id": [ - "505d6bc5-77ba-439d-ac4e-c88102cbc3c7" + "6d85d319-55e9-4d64-a803-cca49e198814" ], "x-ms-correlation-request-id": [ - "505d6bc5-77ba-439d-ac4e-c88102cbc3c7" + "6d85d319-55e9-4d64-a803-cca49e198814" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044452Z:505d6bc5-77ba-439d-ac4e-c88102cbc3c7" + "CENTRALUS:20170208T213233Z:6d85d319-55e9-4d64-a803-cca49e198814" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -392,19 +404,20 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/4fbe2810-8ec4-4443-88f4-1d0a6a212d02/resourceGroups/sdktestrg1220/providers/Microsoft.KeyVault/vaults/sdktestvault3487?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNGZiZTI4MTAtOGVjNC00NDQzLTg4ZjQtMWQwYTZhMjEyZDAyL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzEyMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MzQ4Nz9hcGktdmVyc2lvbj0yMDE1LTA2LTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8133/providers/Microsoft.KeyVault/vaults/sdktestvault6823?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgxMzMvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjgyMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "38439ab0-b3f7-4bea-9e47-096d2f73a3d8" + "5be9def3-c6bf-406c-9d6a-6bf086f4ccdd" ], "accept-language": [ "en-US" ], "User-Agent": [ - "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.0-preview" + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2" ] }, "ResponseBody": "", @@ -419,7 +432,7 @@ "no-cache" ], "Date": [ - "Mon, 11 Jul 2016 04:44:51 GMT" + "Wed, 08 Feb 2017 21:32:32 GMT" ], "Pragma": [ "no-cache" @@ -427,6 +440,9 @@ "Server": [ "Microsoft-IIS/8.5" ], + "x-ms-keyvault-service-version": [ + "1.0.1.660" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -440,32 +456,32 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1194" ], "x-ms-request-id": [ - "cc1357bf-49eb-4f31-bc7c-b4554c22c95a" + "0c1a1c97-4d52-4475-a5fb-04a5ba315237" ], "x-ms-correlation-request-id": [ - "cc1357bf-49eb-4f31-bc7c-b4554c22c95a" + "0c1a1c97-4d52-4475-a5fb-04a5ba315237" ], "x-ms-routing-request-id": [ - "WESTUS:20160711T044452Z:cc1357bf-49eb-4f31-bc7c-b4554c22c95a" + "CENTRALUS:20170208T213233Z:0c1a1c97-4d52-4475-a5fb-04a5ba315237" ] }, "StatusCode": 200 } ], "Names": { - "KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy": [ - "sdktestrg1220", - "sdktestvault3487" + "Initialize": [ + "sdktestrg8133", + "sdktestvault6823" ] }, "Variables": { - "SubscriptionId": "4fbe2810-8ec4-4443-88f4-1d0a6a212d02", - "TenantId": "dab60df3-eb31-470e-9aa7-0bb580c2624c", - "ObjectId": "8d3eb738-13c6-4117-aa01-b8aa50beba40", - "SubId": "4fbe2810-8ec4-4443-88f4-1d0a6a212d02", - "ApplicationId": "8b654ae6-39e7-4137-b959-7f5e3b5f35a4" + "SubscriptionId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "TenantId": "dfe47ca8-acfc-4539-9519-7d196a9c79e4", + "ObjectId": "5abe9358-10ae-4095-ba23-d34111430228", + "SubId": "fa250492-6eea-4a3d-8857-be57b95d028e", + "ApplicationId": "4027dc19-c17b-45d8-88cf-29f922a5713b" } } \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs index a5c1e9cb6acd..42bb1dec70fb 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Collections.Generic; using Microsoft.Azure.Management.ResourceManager; -using Microsoft.Azure.Management.ResourceManager.Models; using Xunit; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using Microsoft.Azure.Management.KeyVault; @@ -24,127 +23,96 @@ public void KeyVaultManagementVaultCreateUpdateDelete() using (MockContext context = MockContext.Start(this.GetType().FullName)) { var testBase = new KeyVaultTestBase(context); - var client = testBase.client; + testBase.vaultProperties.EnableSoftDelete = null; - string rgName = TestUtilities.GenerateName("sdktestrg"); - testBase.resourcesClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup { Location = testBase.location }); - - string vaultName = TestUtilities.GenerateName("sdktestvault"); - var tenantIdGuid = Guid.Parse(testBase.tenantId); - var objectIdGuid = testBase.objectId; - var tags = new Dictionary { { "tag1", "value1" }, { "tag2", "value2" }, { "tag3", "value3" } }; - var accPol = new AccessPolicyEntry - { - TenantId = tenantIdGuid, - ObjectId = objectIdGuid, - Permissions = new Permissions - { - Keys = new string[] { "all" }, - Secrets = null, - Certificates = new string[] { "all" } - } - }; - var createdVault = client.Vaults.CreateOrUpdate( - resourceGroupName: rgName, - vaultName: vaultName, + var createdVault = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName, parameters: new VaultCreateOrUpdateParameters { Location = testBase.location, - Tags = tags, - Properties = new VaultProperties - { - EnabledForDeployment = true, - EnabledForDiskEncryption = true, - EnabledForTemplateDeployment = true, - EnableSoftDelete = true, - Sku = new Microsoft.Azure.Management.KeyVault.Models.Sku { Name = SkuName.Standard }, - TenantId = tenantIdGuid, - VaultUri = "", - AccessPolicies = new[] - { - accPol - } - } + Tags = testBase.tags, + Properties = testBase.vaultProperties } ); ValidateVault(createdVault, - vaultName, - rgName, + testBase.vaultName, + testBase.rgName, testBase.subscriptionId, - tenantIdGuid, + testBase.tenantIdGuid, testBase.location, "A", SkuName.Standard, true, true, true, - true, - new[] { accPol }, - tags); + null, + new[] { testBase.accPol }, + testBase.tags); //Update createdVault.Properties.Sku.Name = SkuName.Premium; - accPol.Permissions.Secrets = new string[] { "get", "set" }; - accPol.Permissions.Keys = null; - createdVault.Properties.AccessPolicies = new[] { accPol }; + testBase.accPol.Permissions.Secrets = new string[] { "get", "set" }; + testBase.accPol.Permissions.Keys = null; + createdVault.Properties.AccessPolicies = new[] { testBase.accPol }; - var updateVault = client.Vaults.CreateOrUpdate( - resourceGroupName: rgName, - vaultName: vaultName, + var updateVault = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName, parameters: new VaultCreateOrUpdateParameters { Location = testBase.location, - Tags = tags, + Tags = testBase.tags, Properties = createdVault.Properties } ); ValidateVault(updateVault, - vaultName, - rgName, + testBase.vaultName, + testBase.rgName, testBase.subscriptionId, - tenantIdGuid, + testBase.tenantIdGuid, testBase.location, "A", SkuName.Premium, true, true, true, - true, - new[] { accPol }, - tags); + null, + new[] { testBase.accPol }, + testBase.tags); - var retrievedVault = client.Vaults.Get( - resourceGroupName: rgName, - vaultName: vaultName); + var retrievedVault = testBase.client.Vaults.Get( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); ValidateVault(retrievedVault, - vaultName, - rgName, + testBase.vaultName, + testBase.rgName, testBase.subscriptionId, - tenantIdGuid, + testBase.tenantIdGuid, testBase.location, "A", SkuName.Premium, true, true, true, - true, - new[] { accPol }, - tags); + null, + new[] { testBase.accPol }, + testBase.tags); // Delete - client.Vaults.Delete( - resourceGroupName: rgName, - vaultName: vaultName); + testBase.client.Vaults.Delete( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); Assert.Throws(() => { - client.Vaults.Get( - resourceGroupName: rgName, - vaultName: vaultName); + testBase.client.Vaults.Get( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); }); } } @@ -155,56 +123,25 @@ public void KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy() using (MockContext context = MockContext.Start(this.GetType().FullName)) { var testBase = new KeyVaultTestBase(context); - var client = testBase.client; - - string rgName = TestUtilities.GenerateName("sdktestrg"); - testBase.resourcesClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup { Location = testBase.location }); + testBase.accPol.ApplicationId = Guid.Parse(testBase.applicationId); + testBase.vaultProperties.EnableSoftDelete = null; - string vaultName = TestUtilities.GenerateName("sdktestvault"); - var tenantIdGuid = Guid.Parse(testBase.tenantId); - var objectIdGuid = testBase.objectId; - var applicationId = Guid.Parse(testBase.applicationId); - var tags = new Dictionary { { "tag1", "value1" }, { "tag2", "value2" }, { "tag3", "value3" } }; - var accPol = new AccessPolicyEntry - { - TenantId = tenantIdGuid, - ObjectId = objectIdGuid, - ApplicationId = applicationId, - Permissions = new Permissions - { - Keys = new string[] { "all" }, - Secrets = null, - Certificates = new string[] { "all" } - } - }; - var createVault = client.Vaults.CreateOrUpdate( - resourceGroupName: rgName, - vaultName: vaultName, + var createVault = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName, parameters: new VaultCreateOrUpdateParameters { Location = testBase.location, - Tags = tags, - Properties = new VaultProperties - { - EnabledForDeployment = true, - EnabledForDiskEncryption = true, - EnabledForTemplateDeployment = true, - Sku = new Microsoft.Azure.Management.KeyVault.Models.Sku { Name = SkuName.Standard }, - TenantId = tenantIdGuid, - VaultUri = "", - AccessPolicies = new[] - { - accPol - } - } + Tags = testBase.tags, + Properties = testBase.vaultProperties } ); ValidateVault(createVault, - vaultName, - rgName, + testBase.vaultName, + testBase.rgName, testBase.subscriptionId, - tenantIdGuid, + testBase.tenantIdGuid, testBase.location, "A", SkuName.Standard, @@ -212,19 +149,19 @@ public void KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy() true, true, null, - new[] { accPol }, - tags); + new[] { testBase.accPol }, + testBase.tags); // Get - var retrievedVault = client.Vaults.Get( - resourceGroupName: rgName, - vaultName: vaultName); + var retrievedVault = testBase.client.Vaults.Get( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); ValidateVault(retrievedVault, - vaultName, - rgName, + testBase.vaultName, + testBase.rgName, testBase.subscriptionId, - tenantIdGuid, + testBase.tenantIdGuid, testBase.location, "A", SkuName.Standard, @@ -232,96 +169,24 @@ public void KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy() true, true, null, - new[] { accPol }, - tags); + new[] { testBase.accPol }, + testBase.tags); // Delete - client.Vaults.Delete( - resourceGroupName: rgName, - vaultName: vaultName); + testBase.client.Vaults.Delete( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); Assert.Throws(() => { - client.Vaults.Get( - resourceGroupName: rgName, - vaultName: vaultName); + testBase.client.Vaults.Get( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); }); } } - private void ValidateVault( - Vault vault, - string expectedVaultName, - string expectedResourceGroupName, - string expectedSubId, - Guid expectedTenantId, - string expectedLocation, - string expectedSkuFamily, - SkuName expectedSku, - bool expectedEnabledForDeployment, - bool expectedEnabledForTemplateDeployment, - bool expectedEnabledForDiskEncryption, - bool? expectedEnableSoftDelete, - AccessPolicyEntry[] expectedPolicies, - Dictionary expectedTags) - { - Assert.NotNull(vault); - Assert.NotNull(vault.Properties); - - string resourceIdFormat = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.KeyVault/vaults/{2}"; - string expectedResourceId = string.Format(resourceIdFormat, expectedSubId, expectedResourceGroupName, expectedVaultName); - - Assert.Equal(expectedResourceId, vault.Id); - Assert.Equal(expectedLocation, vault.Location); - Assert.Equal(expectedTenantId, vault.Properties.TenantId); - Assert.Equal(expectedSku, vault.Properties.Sku.Name); - Assert.Equal(expectedVaultName, vault.Name); - Assert.Equal(expectedEnabledForDeployment, vault.Properties.EnabledForDeployment); - Assert.Equal(expectedEnabledForTemplateDeployment, vault.Properties.EnabledForTemplateDeployment); - Assert.Equal(expectedEnabledForDiskEncryption, vault.Properties.EnabledForDiskEncryption); - Assert.Equal(expectedEnableSoftDelete, vault.Properties.EnableSoftDelete); - Assert.True(expectedTags.DictionaryEqual(vault.Tags)); - Assert.True(CompareAccessPolicies(expectedPolicies, vault.Properties.AccessPolicies.ToArray())); - } - - private bool CompareAccessPolicies(AccessPolicyEntry[] expected, AccessPolicyEntry[] actual) - { - if (expected == null && actual == null) - return true; - - if (expected == null || actual == null) - return false; - - if (expected.Length != actual.Length) - return false; - - AccessPolicyEntry[] expectedCopy = new AccessPolicyEntry[expected.Length]; - expected.CopyTo(expectedCopy, 0); - - foreach (AccessPolicyEntry a in actual) - { - var match = expectedCopy.Where(e => - e.TenantId == a.TenantId && - e.ObjectId == a.ObjectId && - e.ApplicationId == a.ApplicationId && - ((a.Permissions.Secrets == null && e.Permissions.Secrets == null) || - Enumerable.SequenceEqual(e.Permissions.Secrets, a.Permissions.Secrets)) && - ((a.Permissions.Keys == null && e.Permissions.Keys == null) || - Enumerable.SequenceEqual(a.Permissions.Keys, a.Permissions.Keys)) - ).FirstOrDefault(); - if (match == null) - return false; - - expectedCopy = expectedCopy.Where(e => e != match).ToArray(); - } - if (expectedCopy.Length > 0) - return false; - - return true; - } - - [Fact] public void KeyVaultManagementListVaults() { @@ -330,49 +195,21 @@ public void KeyVaultManagementListVaults() using (MockContext context = MockContext.Start(this.GetType().FullName)) { var testBase = new KeyVaultTestBase(context); - var client = testBase.client; - - string rgName = TestUtilities.GenerateName("sdktestrg"); - var tenantIdGuid = Guid.Parse(testBase.tenantId); - var objectIdGuid = testBase.objectId; - - var tags = new Dictionary { { "tag1", "value1" }, { "tag2", "value2" }, { "tag3", "value3" } }; + testBase.vaultProperties.EnableSoftDelete = null; - testBase.resourcesClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup { Location = testBase.location }); List resourceIds = new List(); List vaultNameList = new List(); for (int i = 0; i < n; i++) { string vaultName = TestUtilities.GenerateName("sdktestvault"); - var createdVault = client.Vaults.CreateOrUpdate( - resourceGroupName: rgName, + var createdVault = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, vaultName: vaultName, parameters: new VaultCreateOrUpdateParameters { Location = testBase.location, - Tags = tags, - Properties = new VaultProperties - { - EnabledForDeployment = true, - EnabledForDiskEncryption = true, - EnabledForTemplateDeployment = true, - Sku = new Microsoft.Azure.Management.KeyVault.Models.Sku { Name = SkuName.Standard }, - TenantId = tenantIdGuid, - VaultUri = "", - AccessPolicies = new[] - { - new AccessPolicyEntry - { - TenantId = tenantIdGuid, - ObjectId = objectIdGuid, - Permissions = new Permissions{ - Keys = new string[]{"all"}, - Secrets = new string[]{"all"}, - Certificates = new string[] { "all" } - } - } - } - } + Tags = testBase.tags, + Properties = testBase.vaultProperties } ); @@ -382,7 +219,7 @@ public void KeyVaultManagementListVaults() vaultNameList.Add(createdVault.Name); } - var vaults = client.Vaults.ListByResourceGroup(rgName, top); + var vaults = testBase.client.Vaults.ListByResourceGroup(testBase.rgName, top); Assert.NotNull(vaults); foreach (var v in vaults) @@ -392,7 +229,7 @@ public void KeyVaultManagementListVaults() while (vaults.NextPageLink != null) { - vaults = client.Vaults.ListByResourceGroupNext(vaults.NextPageLink); + vaults = testBase.client.Vaults.ListByResourceGroupNext(vaults.NextPageLink); Assert.NotNull(vaults); foreach (var v in vaults) { @@ -401,16 +238,196 @@ public void KeyVaultManagementListVaults() } Assert.True(resourceIds.Count == 0); - var allVaults = client.Vaults.List(top); + var allVaults = testBase.client.Vaults.List(top); Assert.NotNull(vaults); // Delete foreach (var v in vaultNameList) { - client.Vaults.Delete(resourceGroupName: rgName, vaultName: v); + testBase.client.Vaults.Delete(resourceGroupName: testBase.rgName, vaultName: v); + } + } + } + + [Fact] + public void KeyVaultManagementRecoverDeletedVault() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var testBase = new KeyVaultTestBase(context); + + var createdVault = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName, + parameters: new VaultCreateOrUpdateParameters + { + Location = testBase.location, + Tags = testBase.tags, + Properties = testBase.vaultProperties + } + ); + + // Delete + testBase.client.Vaults.Delete( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); + + // Get deleted vault + Assert.Throws(() => + { + testBase.client.Vaults.Get( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); + }); + + // Recover in default mode + var recoveredVault = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName, + parameters: new VaultCreateOrUpdateParameters + { + Location = testBase.location, + Tags = testBase.tags, + Properties = testBase.vaultProperties + } + ); + + Assert.True(recoveredVault.IsEqual(createdVault)); + + // Get recovered vault + testBase.client.Vaults.Get( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); + + // Delete + testBase.client.Vaults.Delete( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); + + // Recover in recover mode + var recoveredVault2 = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName, + parameters: new VaultCreateOrUpdateParameters + { + Location = testBase.location, + Tags = testBase.tags, + Properties = new VaultProperties + { + CreateMode = CreateMode.Recover + } + } + ); + + Assert.True(recoveredVault2.IsEqual(createdVault)); + + // Get recovered vault + testBase.client.Vaults.Get( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); + + // Delete + testBase.client.Vaults.Delete( + resourceGroupName: testBase.rgName, + vaultName: testBase.vaultName); + } + } + + [Fact] + public void KeyVaultManagementListDeletedVaults() + { + int n = 3; + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var testBase = new KeyVaultTestBase(context); + + List resourceIds = new List(); + List vaultNameList = new List(); + for (int i = 0; i < n; i++) + { + string vaultName = TestUtilities.GenerateName("sdktestvault"); + var createdVault = testBase.client.Vaults.CreateOrUpdate( + resourceGroupName: testBase.rgName, + vaultName: vaultName, + parameters: new VaultCreateOrUpdateParameters + { + Location = testBase.location, + Tags = testBase.tags, + Properties = testBase.vaultProperties + } + ); + + Assert.NotNull(createdVault); + Assert.NotNull(createdVault.Id); + resourceIds.Add(createdVault.Id); + vaultNameList.Add(createdVault.Name); + + testBase.client.Vaults.Delete(resourceGroupName: testBase.rgName, vaultName: vaultName); + + var deletedVault = testBase.client.Vaults.GetDeleted(vaultName, testBase.location); + deletedVault.IsEqual(createdVault); + } + + var deletedVaults = testBase.client.Vaults.ListDeleted(); + Assert.NotNull(deletedVaults); + + foreach (var v in deletedVaults) + { + resourceIds.Remove(v.Properties.VaultId); + } + + while (deletedVaults.NextPageLink != null) + { + deletedVaults = testBase.client.Vaults.ListDeletedNext(deletedVaults.NextPageLink); + Assert.NotNull(deletedVaults); + foreach (var v in deletedVaults) + { + resourceIds.Remove(v.Id); + } + + if (resourceIds.Count == 0) + break; } + Assert.True(resourceIds.Count == 0); + + // Purge ... } } + + private void ValidateVault( + Vault vault, + string expectedVaultName, + string expectedResourceGroupName, + string expectedSubId, + Guid expectedTenantId, + string expectedLocation, + string expectedSkuFamily, + SkuName expectedSku, + bool expectedEnabledForDeployment, + bool expectedEnabledForTemplateDeployment, + bool expectedEnabledForDiskEncryption, + bool? expectedEnableSoftDelete, + AccessPolicyEntry[] expectedPolicies, + Dictionary expectedTags) + { + Assert.NotNull(vault); + Assert.NotNull(vault.Properties); + + string resourceIdFormat = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.KeyVault/vaults/{2}"; + string expectedResourceId = string.Format(resourceIdFormat, expectedSubId, expectedResourceGroupName, expectedVaultName); + + Assert.Equal(expectedResourceId, vault.Id); + Assert.Equal(expectedLocation, vault.Location); + Assert.Equal(expectedTenantId, vault.Properties.TenantId); + Assert.Equal(expectedSku, vault.Properties.Sku.Name); + Assert.Equal(expectedVaultName, vault.Name); + Assert.Equal(expectedEnabledForDeployment, vault.Properties.EnabledForDeployment); + Assert.Equal(expectedEnabledForTemplateDeployment, vault.Properties.EnabledForTemplateDeployment); + Assert.Equal(expectedEnabledForDiskEncryption, vault.Properties.EnabledForDiskEncryption); + Assert.Equal(expectedEnableSoftDelete, vault.Properties.EnableSoftDelete); + Assert.True(expectedTags.DictionaryEqual(vault.Tags)); + Assert.True(expectedPolicies.IsEqual(vault.Properties.AccessPolicies)); + } } public static class Extensions @@ -438,5 +455,72 @@ public static bool DictionaryEqual( } return true; } + + public static bool IsEqual(this DeletedVault deletedVault, Vault createdVault) + { + Assert.Equal(createdVault.Location, deletedVault.Properties.Location); + Assert.Equal(createdVault.Name, deletedVault.Name); + Assert.Equal(createdVault.Id, deletedVault.Properties.VaultId); + Assert.Equal("Microsoft.KeyVault/deletedVaults", deletedVault.Type); + Assert.True(createdVault.Tags.DictionaryEqual(deletedVault.Properties.Tags)); + Assert.NotNull(deletedVault.Properties.ScheduledPurgeDate); + Assert.NotNull(deletedVault.Properties.DeletionDate); + Assert.NotNull(deletedVault.Id); + return true; + } + + public static bool IsEqual(this Vault vault1, Vault vault2) + { + Assert.Equal(vault2.Location, vault1.Location); + Assert.Equal(vault2.Name, vault1.Name); + Assert.Equal(vault2.Id, vault1.Id); + Assert.True(vault2.Tags.DictionaryEqual(vault1.Tags)); + + Assert.Equal(vault2.Properties.VaultUri.TrimEnd('/'), vault1.Properties.VaultUri.TrimEnd('/')); + Assert.Equal(vault2.Properties.TenantId, vault1.Properties.TenantId); + Assert.Equal(vault2.Properties.Sku.Name, vault1.Properties.Sku.Name); + Assert.Equal(vault2.Properties.EnableSoftDelete, vault1.Properties.EnableSoftDelete); + Assert.Equal(vault2.Properties.EnabledForTemplateDeployment, vault1.Properties.EnabledForTemplateDeployment); + Assert.Equal(vault2.Properties.EnabledForDiskEncryption, vault1.Properties.EnabledForDiskEncryption); + Assert.Equal(vault2.Properties.EnabledForDeployment, vault1.Properties.EnabledForDeployment); + Assert.True(vault2.Properties.AccessPolicies.IsEqual(vault1.Properties.AccessPolicies)); + return true; + } + + public static bool IsEqual(this IList expected, IList actual) + { + if (expected == null && actual == null) + return true; + + if (expected == null || actual == null) + return false; + + if (expected.Count != actual.Count) + return false; + + AccessPolicyEntry[] expectedCopy = new AccessPolicyEntry[expected.Count]; + expected.CopyTo(expectedCopy, 0); + + foreach (AccessPolicyEntry a in actual) + { + var match = expectedCopy.Where(e => + e.TenantId == a.TenantId && + e.ObjectId == a.ObjectId && + e.ApplicationId == a.ApplicationId && + ((a.Permissions.Secrets == null && e.Permissions.Secrets == null) || + Enumerable.SequenceEqual(e.Permissions.Secrets, a.Permissions.Secrets)) && + ((a.Permissions.Keys == null && e.Permissions.Keys == null) || + Enumerable.SequenceEqual(a.Permissions.Keys, a.Permissions.Keys)) + ).FirstOrDefault(); + if (match == null) + return false; + + expectedCopy = expectedCopy.Where(e => e != match).ToArray(); + } + if (expectedCopy.Length > 0) + return false; + + return true; + } } } \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json index a547834c313c..93e4cfba9b97 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json @@ -17,9 +17,9 @@ }, "dependencies": { "Microsoft.Azure.Test.HttpRecorder": "[1.6.7-preview,2.0.0)", - "Microsoft.Rest.ClientRuntime.Azure.TestFramework": "[1.5.0-preview,2.0.0)", + "Microsoft.Rest.ClientRuntime.Azure.TestFramework": "[1.5.1-preview,2.0.0)", "Microsoft.Rest.ClientRuntime.Azure": "[3.3.1,4.0.0)", - "Microsoft.Azure.Management.KeyVault": "2.0.2", + "Microsoft.Azure.Management.KeyVault": "2.0.2-preview", "Microsoft.Azure.Management.ResourceManager": "1.1.3-preview", "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029", diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs index d1e308bb5945..4d54e855a831 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs @@ -124,6 +124,50 @@ public partial interface IVaultsOperations /// Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListDeletedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the deleted Azure key vault. + /// + /// + /// The name of the vault. + /// + /// + /// The location of the deleted vault. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetDeletedWithHttpMessagesAsync(string vaultName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// The List operation gets information about the vaults associated /// with the subscription. /// @@ -170,6 +214,28 @@ public partial interface IVaultsOperations /// Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListDeletedNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// The List operation gets information about the vaults associated /// with the subscription. /// diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/KeyVaultManagementClient.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/KeyVaultManagementClient.cs index e248b0de0a3e..8d0f6e32e3c3 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/KeyVaultManagementClient.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/KeyVaultManagementClient.cs @@ -288,7 +288,7 @@ private void Initialize() { this.Vaults = new VaultsOperations(this); this.BaseUri = new Uri("https://management.azure.com"); - this.ApiVersion = "2015-06-01"; + this.ApiVersion = "2016-10-01"; this.AcceptLanguage = "en-US"; this.LongRunningOperationRetryTimeout = 30; this.GenerateClientRequestId = true; diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CertificatePermissions.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CertificatePermissions.cs index 371d1b7a41f7..f4d0e83c042b 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CertificatePermissions.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CertificatePermissions.cs @@ -17,7 +17,6 @@ namespace Microsoft.Azure.Management.KeyVault.Models /// public static class CertificatePermissions { - public const string All = "all"; public const string Get = "get"; public const string List = "list"; public const string Delete = "delete"; diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CreateMode.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CreateMode.cs new file mode 100644 index 000000000000..c94626ffb154 --- /dev/null +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/CreateMode.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.KeyVault.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime.Serialization; + + /// + /// Defines values for CreateMode. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CreateMode + { + [EnumMember(Value = "recover")] + Recover, + [EnumMember(Value = "default")] + Default + } +} diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVault.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVault.cs new file mode 100644 index 000000000000..34f35b0f8212 --- /dev/null +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVault.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.KeyVault.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Deleted vault information with extended details. + /// + public partial class DeletedVault + { + /// + /// Initializes a new instance of the DeletedVault class. + /// + public DeletedVault() { } + + /// + /// Initializes a new instance of the DeletedVault class. + /// + /// The resource ID for the deleted key vault. + /// The name of the key vault. + /// The resource type of the key vault. + /// Properties of the vault + public DeletedVault(string id = default(string), string name = default(string), string type = default(string), DeletedVaultProperties properties = default(DeletedVaultProperties)) + { + Id = id; + Name = name; + Type = type; + Properties = properties; + } + + /// + /// Gets the resource ID for the deleted key vault. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the key vault. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the resource type of the key vault. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets properties of the vault + /// + [JsonProperty(PropertyName = "properties")] + public DeletedVaultProperties Properties { get; set; } + + } +} diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVaultProperties.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVaultProperties.cs new file mode 100644 index 000000000000..752ed759c78b --- /dev/null +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/DeletedVaultProperties.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.KeyVault.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Properties of the deleted vault. + /// + public partial class DeletedVaultProperties + { + /// + /// Initializes a new instance of the DeletedVaultProperties class. + /// + public DeletedVaultProperties() { } + + /// + /// Initializes a new instance of the DeletedVaultProperties class. + /// + /// The resource id of the original + /// vault. + /// The location of the original vault. + /// The deleted date. + /// The scheduled purged date. + /// Tags of the original vault. + public DeletedVaultProperties(string vaultId = default(string), string location = default(string), DateTime? deletionDate = default(DateTime?), DateTime? scheduledPurgeDate = default(DateTime?), IDictionary tags = default(IDictionary)) + { + VaultId = vaultId; + Location = location; + DeletionDate = deletionDate; + ScheduledPurgeDate = scheduledPurgeDate; + Tags = tags; + } + + /// + /// Gets the resource id of the original vault. + /// + [JsonProperty(PropertyName = "vaultId")] + public string VaultId { get; private set; } + + /// + /// Gets the location of the original vault. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; private set; } + + /// + /// Gets the deleted date. + /// + [JsonProperty(PropertyName = "deletionDate")] + public DateTime? DeletionDate { get; private set; } + + /// + /// Gets the scheduled purged date. + /// + [JsonProperty(PropertyName = "scheduledPurgeDate")] + public DateTime? ScheduledPurgeDate { get; private set; } + + /// + /// Gets tags of the original vault. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; private set; } + + } +} diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs index c07f428f749c..7b35dd3ba788 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/KeyPermissions.cs @@ -17,10 +17,6 @@ namespace Microsoft.Azure.Management.KeyVault.Models /// public static class KeyPermissions { - /// - /// All permission will be deprecated in a later release. - /// - public const string All = "all"; public const string Encrypt = "encrypt"; public const string Decrypt = "decrypt"; public const string WrapKey = "wrapKey"; diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs index 1429b539a780..1f4617de6ad5 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/SecretPermissions.cs @@ -17,10 +17,6 @@ namespace Microsoft.Azure.Management.KeyVault.Models /// public static class SecretPermissions { - /// - /// All permission will be deprecated in a later release. - /// - public const string All = "all"; public const string Get = "get"; public const string List = "list"; public const string Set = "set"; diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultCreateOrUpdateParameters.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultCreateOrUpdateParameters.cs index 782365435a7b..5732941e3cdb 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultCreateOrUpdateParameters.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultCreateOrUpdateParameters.cs @@ -38,7 +38,7 @@ public VaultCreateOrUpdateParameters() /// vault should be created. /// Properties of the vault /// The tags that will be assigned to the key - /// vault. + /// vault. public VaultCreateOrUpdateParameters(string location, VaultProperties properties, IDictionary tags = default(IDictionary)) { Properties = new VaultProperties(); diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs index 561a7cf4951d..463438776ced 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/Models/VaultProperties.cs @@ -51,27 +51,25 @@ public VaultProperties() /// whether Azure Resource Manager is permitted to retrieve secrets /// from the key vault. /// Property to specify whether the - /// 'soft delete' functionality is enabled for this key vault. - public VaultProperties(Guid tenantId, Sku sku, IList accessPolicies, string vaultUri = default(string), bool? enabledForDeployment = default(bool?), bool? enabledForDiskEncryption = default(bool?), bool? enabledForTemplateDeployment = default(bool?), bool? enableSoftDelete = default(bool?)) + /// 'soft delete' functionality is enabled for this key vault. It + /// does not accept false value. + /// The vault's create mode to indicate + /// whether the vault need to be recovered or not. Possible values + /// include: 'recover', 'default' + public VaultProperties(Guid tenantId, Sku sku, IList accessPolicies = default(IList), string vaultUri = default(string), bool? enabledForDeployment = default(bool?), bool? enabledForDiskEncryption = default(bool?), bool? enabledForTemplateDeployment = default(bool?), bool? enableSoftDelete = default(bool?), CreateMode? createMode = default(CreateMode?)) { Sku = new Sku(); - VaultUri = vaultUri; TenantId = tenantId; Sku = sku; AccessPolicies = accessPolicies; + VaultUri = vaultUri; EnabledForDeployment = enabledForDeployment; EnabledForDiskEncryption = enabledForDiskEncryption; EnabledForTemplateDeployment = enabledForTemplateDeployment; EnableSoftDelete = enableSoftDelete; + CreateMode = createMode; } - /// - /// Gets or sets the URI of the vault for performing operations on - /// keys and secrets. - /// - [JsonProperty(PropertyName = "vaultUri")] - public string VaultUri { get; set; } - /// /// Gets or sets the Azure Active Directory tenant ID that should be /// used for authenticating requests to the key vault. @@ -93,6 +91,13 @@ public VaultProperties() [JsonProperty(PropertyName = "accessPolicies")] public IList AccessPolicies { get; set; } + /// + /// Gets or sets the URI of the vault for performing operations on + /// keys and secrets. + /// + [JsonProperty(PropertyName = "vaultUri")] + public string VaultUri { get; set; } + /// /// Gets or sets property to specify whether Azure Virtual Machines /// are permitted to retrieve certificates stored as secrets from the @@ -117,11 +122,20 @@ public VaultProperties() /// /// Gets or sets property to specify whether the 'soft delete' - /// functionality is enabled for this key vault. + /// functionality is enabled for this key vault. It does not accept + /// false value. /// [JsonProperty(PropertyName = "enableSoftDelete")] public bool? EnableSoftDelete { get; set; } + /// + /// Gets or sets the vault's create mode to indicate whether the vault + /// need to be recovered or not. Possible values include: 'recover', + /// 'default' + /// + [JsonProperty(PropertyName = "createMode")] + public CreateMode? CreateMode { get; set; } + /// /// Validate the object. /// @@ -134,10 +148,6 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); } - if (AccessPolicies == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccessPolicies"); - } if (this.Sku != null) { this.Sku.Validate(); diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs index 8f3608445ee5..c3f92a910aae 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs @@ -834,6 +834,370 @@ internal VaultsOperations(KeyVaultManagementClient client) return _result; } + /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListDeletedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (this.Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (this.Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListDeleted", tracingParameters); + } + // Construct URL + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new Uri(new Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults").ToString(); + _url = _url.Replace("{subscriptionId}", Uri.EscapeDataString(this.Client.SubscriptionId)); + List _queryParameters = new List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the deleted Azure key vault. + /// + /// + /// The name of the vault. + /// + /// + /// The location of the deleted vault. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetDeletedWithHttpMessagesAsync(string vaultName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultName"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (this.Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (this.Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultName", vaultName); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetDeleted", tracingParameters); + } + // Construct URL + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new Uri(new Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}").ToString(); + _url = _url.Replace("{vaultName}", Uri.EscapeDataString(vaultName)); + _url = _url.Replace("{location}", Uri.EscapeDataString(location)); + _url = _url.Replace("{subscriptionId}", Uri.EscapeDataString(this.Client.SubscriptionId)); + List _queryParameters = new List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// The List operation gets information about the vaults associated with the /// subscription. @@ -1189,6 +1553,174 @@ internal VaultsOperations(KeyVaultManagementClient client) return _result; } + /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListDeletedNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListDeletedNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// The List operation gets information about the vaults associated with the /// subscription. diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs index 7159de4f8fc0..90934a1a8ff6 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs @@ -187,6 +187,74 @@ public static Vault Get(this IVaultsOperations operations, string resourceGroupN } } + /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage ListDeleted(this IVaultsOperations operations) + { + return Task.Factory.StartNew(s => ((IVaultsOperations)s).ListDeletedAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + } + + /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListDeletedAsync(this IVaultsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDeletedWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the deleted Azure key vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the vault. + /// + /// + /// The location of the deleted vault. + /// + public static DeletedVault GetDeleted(this IVaultsOperations operations, string vaultName, string location) + { + return Task.Factory.StartNew(s => ((IVaultsOperations)s).GetDeletedAsync(vaultName, location), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + } + + /// + /// Gets the deleted Azure key vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the vault. + /// + /// + /// The location of the deleted vault. + /// + /// + /// The cancellation token. + /// + public static async Task GetDeletedAsync(this IVaultsOperations operations, string vaultName, string location, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeletedWithHttpMessagesAsync(vaultName, location, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// The List operation gets information about the vaults associated with the /// subscription. @@ -259,6 +327,40 @@ public static IPage ListByResourceGroupNext(this IVaultsOperations operat } } + /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListDeletedNext(this IVaultsOperations operations, string nextPageLink) + { + return Task.Factory.StartNew(s => ((IVaultsOperations)s).ListDeletedNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + } + + /// + /// Gets information about the deleted vaults in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListDeletedNextAsync(this IVaultsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDeletedNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// The List operation gets information about the vaults associated with the /// subscription. From 90057c97ba43fe9655b7f8b0b85d2e7f1191238d Mon Sep 17 00:00:00 2001 From: Pooneh Date: Thu, 16 Feb 2017 16:46:19 -0800 Subject: [PATCH 6/8] key vault package upgrade --- .../Microsoft.Azure.KeyVault.Extensions.Tests/project.json | 2 +- src/KeyVault/Microsoft.Azure.KeyVault.Extensions/project.json | 2 +- .../Microsoft.Azure.KeyVault.TestFramework/project.json | 2 +- src/KeyVault/Microsoft.Azure.KeyVault.Tests/project.json | 2 +- src/KeyVault/Microsoft.Azure.KeyVault/project.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/project.json b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/project.json index 93d55ab34f39..20fe30e24e38 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/project.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions.Tests/project.json @@ -34,7 +34,7 @@ }, "dependencies": { - "Microsoft.Azure.KeyVault": "[2.0.6, 3.0)", + "Microsoft.Azure.KeyVault": "[2.1.0-preview, 3.0)", "Microsoft.Azure.KeyVault.Cryptography": "[2.0.5, 3.0)", "Microsoft.Azure.KeyVault.Extensions": "[2.0.5, 3.0)", "Microsoft.Azure.KeyVault.Core": "[2.0.4, 3.0)", diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions/project.json b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions/project.json index 0d1039c81752..cae0c9e7467f 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Extensions/project.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Extensions/project.json @@ -20,7 +20,7 @@ }, "dependencies": { - "Microsoft.Azure.KeyVault": "[2.0.6, 3.0)", + "Microsoft.Azure.KeyVault": "[2.1.0-preview, 3.0)", "Microsoft.Azure.KeyVault.Core": "[2.0.4, 3.0)", "Microsoft.Azure.KeyVault.Cryptography": "[2.0.5, 3.0)", "Microsoft.Azure.KeyVault.WebKey": "[2.0.4, 3.0)" diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/project.json b/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/project.json index a4f50b02e348..12a0854ac59f 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/project.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.TestFramework/project.json @@ -15,7 +15,7 @@ "Microsoft.Rest.ClientRuntime": "[2.3.3, 3.0)", "Microsoft.Rest.ClientRuntime.Azure": "[3.3.1, 4.0)", "Microsoft.Azure.Graph.RBAC": "2.2.2-preview", - "Microsoft.Azure.KeyVault": "[2.0.6, 3.0)", + "Microsoft.Azure.KeyVault": "[2.1.0-preview, 3.0)", "Microsoft.Azure.Management.ResourceManager": "1.1.4-preview", "Microsoft.Rest.ClientRuntime.Azure.TestFramework": "[1.3.5-preview, 2.0.0)", "Microsoft.Extensions.Configuration": "1.0.0", diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/project.json b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/project.json index 65559d5bd731..d9618cc0bc05 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/project.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/project.json @@ -15,7 +15,7 @@ "dependencies": { "dotnet-test-xunit": "2.2.0-preview2-build1029", - "Microsoft.Azure.KeyVault": "[2.0.6, 3.0)", + "Microsoft.Azure.KeyVault": "[2.1.0-preview, 3.0)", "Microsoft.AspNet.WebApi.Client": "5.2.2", "Microsoft.Azure.KeyVault.TestFramework": "[2.0.2-preview, 3.0)", "xunit": "2.2.0-beta2-build3300" diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/project.json b/src/KeyVault/Microsoft.Azure.KeyVault/project.json index 82eac978990a..ae356daf5edf 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/project.json +++ b/src/KeyVault/Microsoft.Azure.KeyVault/project.json @@ -1,5 +1,5 @@ { - "version": "2.0.7-preview", + "version": "2.1.0-preview", "title": "Microsoft Azure key vault", "description": "Azure Key Vault enables users to store and use cryptographic keys within the Microsoft Azure environment. Azure Key Vault supports multiple key types and algorithms and enables the use of Hardware Security Modules (HSM) for high value customer keys. In addition, Azure Key Vault allows users to securely store secrets in a Key Vault; secrets are limited size octet objects and Azure Key Vault applies no specific semantics to these objects. A Key Vault may contain a mix of keys and secrets at the same time, and access control for the two types of object is independently controlled. Users, subject to appropriate authorization, may: 1) Manage cryptographic keys using Create, Import, Update, Delete and other operations 2) Manage secrets using Get, Set, Delete and other operations 3) Use cryptographic keys with Sign/Verify, WrapKey/UnwrapKey and Encrypt/Decrypt operations. Operations against Key Vaults are authenticated and authorized using Azure Active Directory. Key Vault now supports certificates, a complex type that makes use of existing key and secret infrastructure for certificate operations. KV certificates also support notification and auto-renewal as well as other management features.", "authors": [ "Microsoft" ], From e64651784b4c739783ed6742dbba3713dff20080 Mon Sep 17 00:00:00 2001 From: Pooneh Date: Fri, 17 Feb 2017 13:28:13 -0800 Subject: [PATCH 7/8] adding purge disabled property for key and vault purge --- .../KeyVaultOperationsTest.cs | 10 + .../Generated/Models/KeyAttributes.cs | 27 +- .../KeyVaultManagementListDeletedVaults.json | 1310 +++++++++++++++-- .../VaultOperationsTest.cs | 30 +- .../Generated/IVaultsOperations.cs | 46 + .../Generated/VaultsOperations.cs | 187 +++ .../Generated/VaultsOperationsExtensions.cs | 78 + 7 files changed, 1542 insertions(+), 146 deletions(-) diff --git a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs index 0fe676305d9e..36bf5911ae19 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault.Tests/KeyVaultOperationsTest.cs @@ -281,6 +281,7 @@ public void KeyVaultCreateHsmKeyTest() //Trace.WriteLine("Verify generated key is as expected"); VerifyKeyAttributesAreEqual(attributes, createdKey.Attributes); Assert.Equal(JsonWebKeyType.RsaHsm, createdKey.Key.Kty); + Assert.NotNull(createdKey.Attributes.PurgeDisabled); //Trace.WriteLine("Get the key"); var retrievedKey = client.GetKeyAsync(createdKey.Key.Kid).GetAwaiter().GetResult(); @@ -295,6 +296,7 @@ public void KeyVaultCreateHsmKeyTest() VerifyKeyAttributesAreEqual(deletedKey.Attributes, createdKey.Attributes); VerifyWebKeysAreEqual(deletedKey.Key, createdKey.Key); + Assert.NotNull(deletedKey.Attributes.PurgeDisabled); if (_softDeleteEnabled) { @@ -325,6 +327,7 @@ public void KeyVaultImportSoftKeyTest() var importedKey = client.ImportKeyAsync(_vaultAddress, "ImportSoftKeyTest", keyBundle).GetAwaiter().GetResult(); + Assert.NotNull(importedKey.Attributes.PurgeDisabled); try { @@ -336,6 +339,7 @@ public void KeyVaultImportSoftKeyTest() VerifyKeyAttributesAreEqual(importedKey.Attributes, retrievedKey.Attributes); VerifyWebKeysAreEqual(importedKey.Key, retrievedKey.Key); + Assert.NotNull(retrievedKey.Attributes.PurgeDisabled); } finally { @@ -383,6 +387,7 @@ public void KeyVaultUpdateKeyAttributesTest() VerifyKeyOperationsAreEqual(updatedKey.Key.KeyOps, operations); updatedKey.Key.KeyOps = JsonWebKeyOperation.AllOperations; VerifyWebKeysAreEqual(updatedKey.Key, createdKey.Key); + Assert.NotNull(updatedKey.Attributes.PurgeDisabled); // Create a new version of the key var newkeyVersion = client.CreateKeyAsync(_vaultAddress, keyName, JsonWebKeyType.Rsa, 2048, @@ -400,6 +405,7 @@ public void KeyVaultUpdateKeyAttributesTest() VerifyKeyOperationsAreEqual(updatedKey.Key.KeyOps, operations); updatedKey.Key.KeyOps = JsonWebKeyOperation.AllOperations; VerifyWebKeysAreEqual(updatedKey.Key, createdKey.Key); + Assert.NotNull(updatedKey.Attributes.PurgeDisabled); } finally { @@ -451,6 +457,7 @@ public void KeyVaultUpdateKeyAttributesWithNoChangeTest() VerifyKeyAttributesAreEqual(updatedKey.Attributes, createdKey.Attributes); VerifyKeyOperationsAreEqual(updatedKey.Key.KeyOps, createdKey.Key.KeyOps); VerifyWebKeysAreEqual(updatedKey.Key, createdKey.Key); + Assert.NotNull(updatedKey.Attributes.PurgeDisabled); } finally { @@ -507,6 +514,7 @@ public void KeyVaultBackupRestoreTest() VerifyKeyAttributesAreEqual(restoredDeletedKey.Attributes, createdKey.Attributes); Assert.Equal(restoredDeletedKey.Key.Kty, createdKey.Key.Kty); Assert.Equal(createdKey.Key.Kid, restoredDeletedKey.Key.Kid); + Assert.NotNull(restoredDeletedKey.Attributes.PurgeDisabled); } finally { @@ -707,6 +715,7 @@ public void KeyVaultKeyCreateDeleteRecoverPurgeTest() VerifyKeyOperationsAreEqual(recoveredKey.Key.KeyOps, originalKey.Key.KeyOps); Assert.Equal(keyName, recoveredKey.KeyIdentifier.Name); Assert.Equal(originalKey.Key.Kid, recoveredKey.Key.Kid); + Assert.NotNull(recoveredKey.Attributes.PurgeDisabled); this.fixture.WaitOnKey(client, _vaultAddress, keyName); @@ -715,6 +724,7 @@ public void KeyVaultKeyCreateDeleteRecoverPurgeTest() VerifyKeyOperationsAreEqual(recoveredGetKey.Key.KeyOps, originalKey.Key.KeyOps); Assert.Equal(keyName, recoveredGetKey.KeyIdentifier.Name); Assert.Equal(originalKey.Key.Kid, recoveredGetKey.Key.Kid); + Assert.NotNull(recoveredGetKey.Attributes.PurgeDisabled); } finally { diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs index 8559dd8cdc19..e9150cd22328 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs @@ -1,19 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault.Models { - using Azure; - using KeyVault; + using System; using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; /// - /// The attributes of a key managed by the key vault service. + /// The attributes of a key managed by the KeyVault service /// public partial class KeyAttributes : Attributes { @@ -31,11 +35,20 @@ public KeyAttributes() { } /// Expiry date in UTC. /// Creation time in UTC. /// Last updated time in UTC. - public KeyAttributes(bool? enabled = default(bool?), System.DateTime? notBefore = default(System.DateTime?), System.DateTime? expires = default(System.DateTime?), System.DateTime? created = default(System.DateTime?), System.DateTime? updated = default(System.DateTime?)) + /// Reflects the purge protection status of + /// the key. If true, purge is disabled, false, otherwise. + public KeyAttributes(bool? enabled = default(bool?), System.DateTime? notBefore = default(System.DateTime?), System.DateTime? expires = default(System.DateTime?), System.DateTime? created = default(System.DateTime?), System.DateTime? updated = default(System.DateTime?), bool purgeDisabled = default(bool)) : base(enabled, notBefore, expires, created, updated) { + PurgeDisabled = purgeDisabled; } + /// + /// Gets reflects the purge protection status of the key. If true, + /// purge is disabled, false, otherwise. + /// + [JsonProperty(PropertyName = "purgeDisabled")] + public bool PurgeDisabled { get; protected set; } + } } - diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json index 3283e53144a2..71340aaa4776 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/SessionRecords/KeyVault.Management.Tests.VaultOperationsTest/KeyVaultManagementListDeletedVaults.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5d628d16-b9ef-4930-9dec-0bf540cfb18d" + "25a93111-9b21-4544-8694-39c3324c31fb" ], "accept-language": [ "en-US" @@ -32,7 +32,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:20 GMT" + "Fri, 17 Feb 2017 00:08:03 GMT" ], "Pragma": [ "no-cache" @@ -44,16 +44,16 @@ "ZE0QSYmhZQQLTZydJhtukJWOmhRx4jcY3NbmCe9pPIU=" ], "request-id": [ - "b60b3f11-e378-4d71-9dde-1264296bcfc4" + "56f79192-5581-40ec-8e25-e808c5679491" ], "client-request-id": [ - "57f7d2b1-4e97-4241-a158-82272ca9fd03" + "0007a3cb-1935-435a-9091-7c2234f13cd5" ], "x-ms-dirapi-data-contract-version": [ "1.42-previewInternal" ], "ocp-aad-session-key": [ - "hfb6I_ua0xp5AmTIPFsLVxTEIw_ktDHsKQdIK-Dy5XNbTw1nqfwgXKkdwiRGuAxg7AqfedmDXePzPPas3HaFyw1p09aMC7p9c5U4y4ZjuDH-DfxO0EuFeCUfmarWz073.R9YTuz_u8R1UdNgv-4K8NEgZdWW8osJkfzadJSy_a4I" + "VmAa8LzHENKrcvHbAHfY-rRjtt7WjVPaOPh8Ez675C5GwQkDVVbe9B1uSf57pBcTF-IWSt-RuW1xArrMI2twAEtVU7tHMvjiFpMtEYElDdW1MVPVvEiEZMn8L5842sV-.gEj6P2bAvFoE8e4owlzHGAP2pTCeid7UEp7bwxvbU40" ], "DataServiceVersion": [ "3.0;" @@ -72,7 +72,7 @@ "ASP.NET" ], "Duration": [ - "758417" + "1948512" ] }, "StatusCode": 200 @@ -84,7 +84,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7d8c8bff-9d7d-436c-abf7-50aa4800a50a" + "9c2f5728-af8c-49df-871d-ba79e5455d2c" ], "accept-language": [ "en-US" @@ -106,7 +106,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:21 GMT" + "Fri, 17 Feb 2017 00:08:04 GMT" ], "Pragma": [ "no-cache" @@ -115,16 +115,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14996" ], "x-ms-request-id": [ - "83515460-9226-4d9d-8c2b-b11fb4a7d2ff" + "e55d88b4-28b3-46ef-b5a6-570832a46b48" ], "x-ms-correlation-request-id": [ - "83515460-9226-4d9d-8c2b-b11fb4a7d2ff" + "e55d88b4-28b3-46ef-b5a6-570832a46b48" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194421Z:83515460-9226-4d9d-8c2b-b11fb4a7d2ff" + "CENTRALUS:20170217T000805Z:e55d88b4-28b3-46ef-b5a6-570832a46b48" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -133,8 +133,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourcegroups/sdktestrg5702?api-version=2016-02-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzU3MDI/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourcegroups/sdktestrg8225?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RyZzgyMjU/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -145,7 +145,7 @@ "31" ], "x-ms-client-request-id": [ - "867ced4a-d715-4ba3-8016-ffaee506f593" + "2a5bf8eb-e541-4b3f-841c-e731caf37aa6" ], "accept-language": [ "en-US" @@ -155,7 +155,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702\",\r\n \"name\": \"sdktestrg5702\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225\",\r\n \"name\": \"sdktestrg8225\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "180" @@ -170,22 +170,22 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:21 GMT" + "Fri, 17 Feb 2017 00:08:04 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-request-id": [ - "af7c125b-97b7-48be-b519-adc44033b7cf" + "38911ee7-af76-4e5d-b2a9-1af797bae70a" ], "x-ms-correlation-request-id": [ - "af7c125b-97b7-48be-b519-adc44033b7cf" + "38911ee7-af76-4e5d-b2a9-1af797bae70a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194422Z:af7c125b-97b7-48be-b519-adc44033b7cf" + "CENTRALUS:20170217T000805Z:38911ee7-af76-4e5d-b2a9-1af797bae70a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -194,8 +194,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0OTUxMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault6368?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjM2OD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", "RequestHeaders": { @@ -206,7 +206,7 @@ "820" ], "x-ms-client-request-id": [ - "56c56e16-7d37-4788-9c4e-b5f60308a737" + "83e46f20-5b4e-4873-9af0-1810edd889ff" ], "accept-language": [ "en-US" @@ -216,7 +216,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511\",\r\n \"name\": \"sdktestvault9511\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault9511.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault6368\",\r\n \"name\": \"sdktestvault6368\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault6368.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -228,7 +228,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:22 GMT" + "Fri, 17 Feb 2017 00:08:06 GMT" ], "Pragma": [ "no-cache" @@ -243,7 +243,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -258,28 +258,28 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1191" ], "x-ms-request-id": [ - "a8e7542b-1f2e-4982-9c44-b6b0aebe25ec" + "b2806ce7-c90b-4257-be7e-d6d2616898b6" ], "x-ms-correlation-request-id": [ - "a8e7542b-1f2e-4982-9c44-b6b0aebe25ec" + "b2806ce7-c90b-4257-be7e-d6d2616898b6" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194423Z:a8e7542b-1f2e-4982-9c44-b6b0aebe25ec" + "CENTRALUS:20170217T000807Z:b2806ce7-c90b-4257-be7e-d6d2616898b6" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0OTUxMT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault6368?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NjM2OD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "17a65dbe-8ce3-47ba-b18b-5d7de30b77ef" + "b03dbdf4-baa4-4abd-9263-203438f62bce" ], "accept-language": [ "en-US" @@ -301,7 +301,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:24 GMT" + "Fri, 17 Feb 2017 00:08:08 GMT" ], "Pragma": [ "no-cache" @@ -310,7 +310,7 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -325,28 +325,28 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1190" ], "x-ms-request-id": [ - "5c98b63b-9e52-438c-8638-93d4c91b53db" + "00c93f78-0816-4bf6-89ed-f35434f414e7" ], "x-ms-correlation-request-id": [ - "5c98b63b-9e52-438c-8638-93d4c91b53db" + "00c93f78-0816-4bf6-89ed-f35434f414e7" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194424Z:5c98b63b-9e52-438c-8638-93d4c91b53db" + "CENTRALUS:20170217T000808Z:00c93f78-0816-4bf6-89ed-f35434f414e7" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault9511?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ5NTExP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault6368?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ2MzY4P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d6936882-ca7f-4232-b823-cd6f2d6be2d9" + "74886024-ed78-4ff3-a780-085c30ecdef5" ], "accept-language": [ "en-US" @@ -356,7 +356,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault9511\",\r\n \"name\": \"sdktestvault9511\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:23Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:23Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault6368\",\r\n \"name\": \"sdktestvault6368\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault6368\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-17 00:08:07Z\",\r\n \"scheduledPurgeDate\": \"2017-05-18 00:08:07Z\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -368,7 +368,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:24 GMT" + "Fri, 17 Feb 2017 00:08:08 GMT" ], "Pragma": [ "no-cache" @@ -383,7 +383,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -398,23 +398,93 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14993" ], "x-ms-request-id": [ - "4a752bfe-c5b6-4835-a76b-c2a959eb1920" + "0e9865a2-57fc-4c16-963e-6ad1d13dec12" ], "x-ms-correlation-request-id": [ - "4a752bfe-c5b6-4835-a76b-c2a959eb1920" + "0e9865a2-57fc-4c16-963e-6ad1d13dec12" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194425Z:4a752bfe-c5b6-4835-a76b-c2a959eb1920" + "CENTRALUS:20170217T000808Z:0e9865a2-57fc-4c16-963e-6ad1d13dec12" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjcxOD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault6368?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ2MzY4P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d0cfa1ac-7ed4-44b9-bfc6-185de7b83b73" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The specified resource does not exist.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:12:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "5795a316-5640-49ad-b73c-570ddd84f31a" + ], + "x-ms-correlation-request-id": [ + "5795a316-5640-49ad-b73c-570ddd84f31a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001251Z:5795a316-5640-49ad-b73c-570ddd84f31a" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault3724?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MzcyND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", "RequestHeaders": { @@ -425,7 +495,7 @@ "820" ], "x-ms-client-request-id": [ - "9346ba76-8a9c-43f0-bbca-5a636e45e1aa" + "daa499d3-0eb0-422c-b93b-d10cadd433fa" ], "accept-language": [ "en-US" @@ -435,7 +505,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718\",\r\n \"name\": \"sdktestvault2718\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault2718.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault3724\",\r\n \"name\": \"sdktestvault3724\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault3724.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -447,7 +517,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:25 GMT" + "Fri, 17 Feb 2017 00:08:09 GMT" ], "Pragma": [ "no-cache" @@ -462,7 +532,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -477,28 +547,28 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1189" ], "x-ms-request-id": [ - "eb757458-4312-4c8b-87fc-6789d42384f4" + "087580a4-9af2-421e-8805-f206cfe8d3c1" ], "x-ms-correlation-request-id": [ - "eb757458-4312-4c8b-87fc-6789d42384f4" + "087580a4-9af2-421e-8805-f206cfe8d3c1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194425Z:eb757458-4312-4c8b-87fc-6789d42384f4" + "CENTRALUS:20170217T000809Z:087580a4-9af2-421e-8805-f206cfe8d3c1" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MjcxOD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault3724?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0MzcyND9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7959d11a-5218-4452-96a4-dd4faa50cbfb" + "e0e85f98-b562-46b4-bc6f-4b07aaea898d" ], "accept-language": [ "en-US" @@ -520,7 +590,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:25 GMT" + "Fri, 17 Feb 2017 00:08:09 GMT" ], "Pragma": [ "no-cache" @@ -529,7 +599,7 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -544,28 +614,28 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1188" ], "x-ms-request-id": [ - "c2f032a0-c1ba-4c7d-9915-e1b6be46866e" + "51298e67-4d29-422a-950d-463080b0ab6d" ], "x-ms-correlation-request-id": [ - "c2f032a0-c1ba-4c7d-9915-e1b6be46866e" + "51298e67-4d29-422a-950d-463080b0ab6d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194426Z:c2f032a0-c1ba-4c7d-9915-e1b6be46866e" + "CENTRALUS:20170217T000810Z:51298e67-4d29-422a-950d-463080b0ab6d" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault2718?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQyNzE4P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault3724?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQzNzI0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "750acfde-a8d2-4bd4-89c7-5c6c1d15717e" + "7a001c2c-c6a6-4173-b56e-c012b3ed2f6e" ], "accept-language": [ "en-US" @@ -575,7 +645,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault2718\",\r\n \"name\": \"sdktestvault2718\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:24Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:24Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault3724\",\r\n \"name\": \"sdktestvault3724\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault3724\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-17 00:08:09Z\",\r\n \"scheduledPurgeDate\": \"2017-05-18 00:08:09Z\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -587,7 +657,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:25 GMT" + "Fri, 17 Feb 2017 00:08:09 GMT" ], "Pragma": [ "no-cache" @@ -602,7 +672,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -617,23 +687,93 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14992" ], "x-ms-request-id": [ - "2a4f27c3-f504-4e7c-a0c3-8fba986a175f" + "6ca90f9e-8659-455b-b6e8-56a203516e3a" ], "x-ms-correlation-request-id": [ - "2a4f27c3-f504-4e7c-a0c3-8fba986a175f" + "6ca90f9e-8659-455b-b6e8-56a203516e3a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194426Z:2a4f27c3-f504-4e7c-a0c3-8fba986a175f" + "CENTRALUS:20170217T000810Z:6ca90f9e-8659-455b-b6e8-56a203516e3a" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NzYxMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault3724?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQzNzI0P2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "94f5ac2c-5ceb-48ad-af5b-b4ab62b87fa4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The specified resource does not exist.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:11:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "12d48e31-f87b-4334-b945-1598e46f3c28" + ], + "x-ms-correlation-request-id": [ + "12d48e31-f87b-4334-b945-1598e46f3c28" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001118Z:12d48e31-f87b-4334-b945-1598e46f3c28" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault5980?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTk4MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"sku\": {\r\n \"name\": \"standard\",\r\n \"family\": \"A\"\r\n },\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"vaultUri\": \"\",\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true\r\n }\r\n}", "RequestHeaders": { @@ -644,7 +784,7 @@ "820" ], "x-ms-client-request-id": [ - "cd4200ed-8315-46f6-93ac-bd4669158217" + "7a281596-d384-4203-b438-38ddff2ba856" ], "accept-language": [ "en-US" @@ -654,7 +794,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613\",\r\n \"name\": \"sdktestvault7613\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault7613.vault-int.azure-int.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault5980\",\r\n \"name\": \"sdktestvault5980\",\r\n \"type\": \"Microsoft.KeyVault/vaults\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"family\": \"A\",\r\n \"name\": \"standard\"\r\n },\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"accessPolicies\": [\r\n {\r\n \"tenantId\": \"dfe47ca8-acfc-4539-9519-7d196a9c79e4\",\r\n \"objectId\": \"5abe9358-10ae-4095-ba23-d34111430228\",\r\n \"permissions\": {\r\n \"keys\": [\r\n \"all\"\r\n ],\r\n \"secrets\": [\r\n \"all\"\r\n ],\r\n \"certificates\": [\r\n \"all\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"enabledForDeployment\": true,\r\n \"enabledForDiskEncryption\": true,\r\n \"enabledForTemplateDeployment\": true,\r\n \"enableSoftDelete\": true,\r\n \"vaultUri\": \"https://sdktestvault5980.vault-int.azure-int.net\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -666,7 +806,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:26 GMT" + "Fri, 17 Feb 2017 00:08:10 GMT" ], "Pragma": [ "no-cache" @@ -681,7 +821,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -696,28 +836,28 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1187" ], "x-ms-request-id": [ - "12b12523-4f3d-4f14-af01-d44e867c6112" + "ba192348-4932-4405-b812-75d9532de445" ], "x-ms-correlation-request-id": [ - "12b12523-4f3d-4f14-af01-d44e867c6112" + "ba192348-4932-4405-b812-75d9532de445" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194426Z:12b12523-4f3d-4f14-af01-d44e867c6112" + "CENTRALUS:20170217T000810Z:ba192348-4932-4405-b812-75d9532de445" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzU3MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NzYxMz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault5980?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RyZzgyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5LZXlWYXVsdC92YXVsdHMvc2RrdGVzdHZhdWx0NTk4MD9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4de861da-a902-4867-a049-b881f2173321" + "fab3dd2c-39fe-4c55-aa4d-6574c56a9997" ], "accept-language": [ "en-US" @@ -739,7 +879,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:26 GMT" + "Fri, 17 Feb 2017 00:08:10 GMT" ], "Pragma": [ "no-cache" @@ -748,7 +888,7 @@ "Microsoft-IIS/8.5" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -763,28 +903,28 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1186" ], "x-ms-request-id": [ - "e38432e2-9f52-496e-b6bd-6023089eba5c" + "2b702ecb-25ce-4161-8a36-551baef10ce5" ], "x-ms-correlation-request-id": [ - "e38432e2-9f52-496e-b6bd-6023089eba5c" + "2b702ecb-25ce-4161-8a36-551baef10ce5" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194427Z:e38432e2-9f52-496e-b6bd-6023089eba5c" + "CENTRALUS:20170217T000811Z:2b702ecb-25ce-4161-8a36-551baef10ce5" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault7613?api-version=2016-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ3NjEzP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault5980?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ1OTgwP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4d3b3df6-2802-40d5-a8a2-7c6fb4bfd475" + "2045b711-786c-43eb-a822-c83f8f55fa3b" ], "accept-language": [ "en-US" @@ -794,7 +934,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault7613\",\r\n \"name\": \"sdktestvault7613\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:26Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:26Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault5980\",\r\n \"name\": \"sdktestvault5980\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault5980\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-17 00:08:11Z\",\r\n \"scheduledPurgeDate\": \"2017-05-18 00:08:11Z\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -806,7 +946,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:26 GMT" + "Fri, 17 Feb 2017 00:08:10 GMT" ], "Pragma": [ "no-cache" @@ -821,7 +961,7 @@ "Accept-Encoding" ], "x-ms-keyvault-service-version": [ - "1.0.1.660" + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,20 +976,90 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14991" ], "x-ms-request-id": [ - "a3455454-fbc4-467b-a780-6e25911cac3c" + "124630eb-8371-4ba9-a3fe-67339b50ce6e" ], "x-ms-correlation-request-id": [ - "a3455454-fbc4-467b-a780-6e25911cac3c" + "124630eb-8371-4ba9-a3fe-67339b50ce6e" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194427Z:a3455454-fbc4-467b-a780-6e25911cac3c" + "CENTRALUS:20170217T000811Z:124630eb-8371-4ba9-a3fe-67339b50ce6e" ] }, "StatusCode": 200 }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault5980?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ1OTgwP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "26083a11-bfbc-4b0d-bf41-567b9aec3223" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The specified resource does not exist.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "88" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:09:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "5a01ff9c-9ee0-4cfe-90ea-461b8a6bf3a6" + ], + "x-ms-correlation-request-id": [ + "5a01ff9c-9ee0-4cfe-90ea-461b8a6bf3a6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T000946Z:5a01ff9c-9ee0-4cfe-90ea-461b8a6bf3a6" + ] + }, + "StatusCode": 404 + }, { "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvZGVsZXRlZFZhdWx0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", @@ -857,7 +1067,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bb65e20d-482f-40ce-b23d-2dc26625f125" + "fa9d500c-b2d3-4c8f-a5e7-9d4be2c517e9" ], "accept-language": [ "en-US" @@ -867,7 +1077,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault7613\",\r\n \"name\": \"sdktestvault7613\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault7613\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:26Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:26Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault2718\",\r\n \"name\": \"sdktestvault2718\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault2718\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:24Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:24Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault9511\",\r\n \"name\": \"sdktestvault9511\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg5702/providers/Microsoft.KeyVault/vaults/sdktestvault9511\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:23Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:23Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault1045\",\r\n \"name\": \"sdktestvault1045\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9888/providers/Microsoft.KeyVault/vaults/sdktestvault1045\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-09 19:44:17Z\",\r\n \"scheduledPurgeDate\": \"2017-05-10 19:44:17Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault9911\",\r\n \"name\": \"sdktestvault9911\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg196/providers/Microsoft.KeyVault/vaults/sdktestvault9911\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:50Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:50Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/SoftDeleteTestNCU-0\",\r\n \"name\": \"SoftDeleteTestNCU-0\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/SoftDeleteTestGroup/providers/Microsoft.KeyVault/vaults/SoftDeleteTestNCU-0\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-03 23:47:35Z\",\r\n \"scheduledPurgeDate\": \"2017-05-04 23:47:35Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/SoftDeleteTestSCU-0\",\r\n \"name\": \"SoftDeleteTestSCU-0\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/SoftDeleteTestGroup/providers/Microsoft.KeyVault/vaults/SoftDeleteTestSCU-0\",\r\n \"location\": \" South Central US\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-03 23:48:07Z\",\r\n \"scheduledPurgeDate\": \"2017-05-04 23:48:07Z\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=5dLRbpswFAbgd0HVrkYwBFoSqZqS2sm6xbYwNpN2R7CTghGOsFMoVd%2b9NI%2bxXR7p6PxHn%2f53r1OjO9Sdtt763UObnIs88tbei3MXuw6C8lL70pxPxshFr6y59pWyi6HupBmsX3du0SkX2OvRVn19cbXpbHAqowTEq8i%2fV6r043Ip%2fTRNHvyjSh6Oq0SCKFXBpTevtVS9DXBd9caak1v8Vm9FeW1dIFWrnJK3wf74%2buF13pyPP0YgvPdD4IPw253Vc6LRqnsUuvjDil%2bcCbbjqBC5WNGDaMUJPoeY65HwaqBcR5RXIeWbmPJtygQKcdPuKWwRhdlAEBoY1wOFf7cZEFEmxIh1NmCNvO8eoYz%2ffEKEs81B5P8eUIMmwhEgsAoJFDPYNsUTTkiTAXpDfIEEETRjLDHCE4XFLpvknjTnkAAxA%2bVU%2fAdAI26el7jR8dySFAMcZ6BAZNru6A2u3c8tGpkudgSeI4bEG0EM4QZ7Hx%2bf\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault5980\",\r\n \"name\": \"sdktestvault5980\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault5980\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-17 00:08:11Z\",\r\n \"scheduledPurgeDate\": \"2017-05-18 00:08:11Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault3724\",\r\n \"name\": \"sdktestvault3724\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault3724\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-17 00:08:09Z\",\r\n \"scheduledPurgeDate\": \"2017-05-18 00:08:09Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault6368\",\r\n \"name\": \"sdktestvault6368\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg8225/providers/Microsoft.KeyVault/vaults/sdktestvault6368\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-17 00:08:07Z\",\r\n \"scheduledPurgeDate\": \"2017-05-18 00:08:07Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault1359\",\r\n \"name\": \"sdktestvault1359\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg6867/providers/Microsoft.KeyVault/vaults/sdktestvault1359\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-16 23:57:23Z\",\r\n \"scheduledPurgeDate\": \"2017-05-17 23:57:23Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/pnh-sdk-test\",\r\n \"name\": \"pnh-sdk-test\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/keyvault/providers/Microsoft.KeyVault/vaults/pnh-sdk-test\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-16 23:47:52Z\",\r\n \"scheduledPurgeDate\": \"2017-05-17 23:47:52Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/SoftDeleteTestNCU-0\",\r\n \"name\": \"SoftDeleteTestNCU-0\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/SoftDeleteTestGroup/providers/Microsoft.KeyVault/vaults/SoftDeleteTestNCU-0\",\r\n \"location\": \"North Central US\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-03 23:47:35Z\",\r\n \"scheduledPurgeDate\": \"2017-05-04 23:47:35Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/SoftDeleteTestSCU-0\",\r\n \"name\": \"SoftDeleteTestSCU-0\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/SoftDeleteTestGroup/providers/Microsoft.KeyVault/vaults/SoftDeleteTestSCU-0\",\r\n \"location\": \" South Central US\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-03 23:48:07Z\",\r\n \"scheduledPurgeDate\": \"2017-05-04 23:48:07Z\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=5dLBjpswEAbgd0FVTyUYEnZJpFWVrB2aNB4LsKnUG8FOFoxwhMmGsNp3L81jtKfRSKN%2fRp%2fmw2nV0B%2bqVltn9eGQdcZFFjgr563vL3blecWlcqU5n4yRs05Zc%2b1KZWe3qpXmZt2q7Wet6j17Pdqyqy59ZVrrnYogRItl4D4pVbiLYi7dKAqf3aMKn4%2fLUKIgUt6lM%2b%2bVVJ31aFV2xppTP%2fup7nlxbXpPqkb1Sj4a%2b%2f3vDe%2fT5BT%2bEiD%2fyfWRi%2fyvX6yeNhqt2heh819pvuepSLec5CITS3YQjTjhnU%2b5HoCvh6neYRQI6vJO8T5ifB%2bDzgmQ3Q24DgFvXhnZY8BJSHkTJ%2fXuxriMU0Gdbw6wlP94JcDT9UFk%2fx5QTUbgBAEufcBiAttEdKQh1AliD8Q3DBMV1WROCR0ZzrfJKGOozz4gMQFlTPwHQAOtd3Na6wXDvyOK6CJB0weNmy17wDUxEDKkOt8CPgcpEXcgKaE1dT4%2f%2fwA%3d\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -879,7 +1089,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:28 GMT" + "Fri, 17 Feb 2017 00:08:13 GMT" ], "Pragma": [ "no-cache" @@ -894,31 +1104,871 @@ "" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14990" ], "x-ms-request-id": [ - "646fd53b-171e-4311-bf6d-d01448d7ddc4" + "66063f0d-d54a-4e6f-9cc7-cfcb5f9f007a" ], "x-ms-correlation-request-id": [ - "646fd53b-171e-4311-bf6d-d01448d7ddc4" + "66063f0d-d54a-4e6f-9cc7-cfcb5f9f007a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194429Z:646fd53b-171e-4311-bf6d-d01448d7ddc4" + "CENTRALUS:20170217T000813Z:66063f0d-d54a-4e6f-9cc7-cfcb5f9f007a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault5980/purge?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ1OTgwL3B1cmdlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ae81f34-1964-4258-95f0-4b22cf7036b7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:08:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2ODk0MzE5NTIxMHwzNUFFQkNENkYxM0M0Mzg1QjQzQTQzNzk3NDI4QzQ4Ng?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "03b678fc-509c-4fbd-bd93-c1013c79840b" + ], + "x-ms-correlation-request-id": [ + "03b678fc-509c-4fbd-bd93-c1013c79840b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T000814Z:03b678fc-509c-4fbd-bd93-c1013c79840b" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2ODk0MzE5NTIxMHwzNUFFQkNENkYxM0M0Mzg1QjQzQTQzNzk3NDI4QzQ4Ng?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGcyT0RrME16RTVOVEl4TUh3ek5VRkZRa05FTmtZeE0wTTBNemcxUWpRelFUUXpOemszTkRJNFF6UTROZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:08:13Z\",\r\n \"status\": \"NotStarted\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:08:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2ODk0MzE5NTIxMHwzNUFFQkNENkYxM0M0Mzg1QjQzQTQzNzk3NDI4QzQ4Ng?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "fc30dd7b-2a99-49e8-99a3-864264e3a365" + ], + "x-ms-correlation-request-id": [ + "fc30dd7b-2a99-49e8-99a3-864264e3a365" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T000844Z:fc30dd7b-2a99-49e8-99a3-864264e3a365" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2ODk0MzE5NTIxMHwzNUFFQkNENkYxM0M0Mzg1QjQzQTQzNzk3NDI4QzQ4Ng?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGcyT0RrME16RTVOVEl4TUh3ek5VRkZRa05FTmtZeE0wTTBNemcxUWpRelFUUXpOemszTkRJNFF6UTROZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:08:13Z\",\r\n \"status\": \"NotStarted\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:09:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2ODk0MzE5NTIxMHwzNUFFQkNENkYxM0M0Mzg1QjQzQTQzNzk3NDI4QzQ4Ng?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "c8bf5616-7065-4a67-9623-e0056d78a886" + ], + "x-ms-correlation-request-id": [ + "c8bf5616-7065-4a67-9623-e0056d78a886" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T000914Z:c8bf5616-7065-4a67-9623-e0056d78a886" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2ODk0MzE5NTIxMHwzNUFFQkNENkYxM0M0Mzg1QjQzQTQzNzk3NDI4QzQ4Ng?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGcyT0RrME16RTVOVEl4TUh3ek5VRkZRa05FTmtZeE0wTTBNemcxUWpRelFUUXpOemszTkRJNFF6UTROZz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:08:13Z\",\r\n \"lastActionDateTime\": \"2017-02-17 00:09:46Z\",\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:09:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-request-id": [ + "817078af-8247-4895-8028-82ed82c24d43" + ], + "x-ms-correlation-request-id": [ + "817078af-8247-4895-8028-82ed82c24d43" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T000946Z:817078af-8247-4895-8028-82ed82c24d43" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault3724/purge?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQzNzI0L3B1cmdlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6ea7323f-584f-48ba-be0c-7c4d0fb6e2da" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:09:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2OTg3NjcyNjkzN3xCODVFNjUwRjNBM0U0NDJEOEU1RTUxMDYyQzM3Njg3NQ?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-request-id": [ + "bd46acb7-d1fc-4909-ad01-ac08be18c651" + ], + "x-ms-correlation-request-id": [ + "bd46acb7-d1fc-4909-ad01-ac08be18c651" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T000947Z:bd46acb7-d1fc-4909-ad01-ac08be18c651" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2OTg3NjcyNjkzN3xCODVFNjUwRjNBM0U0NDJEOEU1RTUxMDYyQzM3Njg3NQ?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGcyT1RnM05qY3lOamt6TjN4Q09EVkZOalV3UmpOQk0wVTBOREpFT0VVMVJUVXhNRFl5UXpNM05qZzNOUT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:09:47Z\",\r\n \"status\": \"NotStarted\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:10:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2OTg3NjcyNjkzN3xCODVFNjUwRjNBM0U0NDJEOEU1RTUxMDYyQzM3Njg3NQ?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-request-id": [ + "5141cd31-07e9-4c06-a329-2379808388cd" + ], + "x-ms-correlation-request-id": [ + "5141cd31-07e9-4c06-a329-2379808388cd" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001017Z:5141cd31-07e9-4c06-a329-2379808388cd" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2OTg3NjcyNjkzN3xCODVFNjUwRjNBM0U0NDJEOEU1RTUxMDYyQzM3Njg3NQ?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGcyT1RnM05qY3lOamt6TjN4Q09EVkZOalV3UmpOQk0wVTBOREpFT0VVMVJUVXhNRFl5UXpNM05qZzNOUT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:09:47Z\",\r\n \"status\": \"NotStarted\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:10:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2OTg3NjcyNjkzN3xCODVFNjUwRjNBM0U0NDJEOEU1RTUxMDYyQzM3Njg3NQ?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-request-id": [ + "9809b644-28aa-406e-a92d-396fe743a469" + ], + "x-ms-correlation-request-id": [ + "9809b644-28aa-406e-a92d-396fe743a469" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001047Z:9809b644-28aa-406e-a92d-396fe743a469" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg2OTg3NjcyNjkzN3xCODVFNjUwRjNBM0U0NDJEOEU1RTUxMDYyQzM3Njg3NQ?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGcyT1RnM05qY3lOamt6TjN4Q09EVkZOalV3UmpOQk0wVTBOREpFT0VVMVJUVXhNRFl5UXpNM05qZzNOUT9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:09:47Z\",\r\n \"lastActionDateTime\": \"2017-02-17 00:11:18Z\",\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:11:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-request-id": [ + "807c5ff4-a014-49e8-9bdc-e2e2b2798c07" + ], + "x-ms-correlation-request-id": [ + "807c5ff4-a014-49e8-9bdc-e2e2b2798c07" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001118Z:807c5ff4-a014-49e8-9bdc-e2e2b2798c07" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/East%20US%202/deletedVaults/sdktestvault6368/purge?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL0Vhc3QlMjBVUyUyMDIvZGVsZXRlZFZhdWx0cy9zZGt0ZXN0dmF1bHQ2MzY4L3B1cmdlP2FwaS12ZXJzaW9uPTIwMTYtMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c50fadd5-a32d-44b6-86f1-1192d92fd1e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:11:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg3MDgwMTM4MTM4MnxEMDAxQTI1RDM4RjU0QTFCQUY5MjNBQkEyOENCODk0Mw?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1183" + ], + "x-ms-request-id": [ + "b98e4ade-4e0f-4c69-8e74-6e1a1abf16d0" + ], + "x-ms-correlation-request-id": [ + "b98e4ade-4e0f-4c69-8e74-6e1a1abf16d0" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001119Z:b98e4ade-4e0f-4c69-8e74-6e1a1abf16d0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg3MDgwMTM4MTM4MnxEMDAxQTI1RDM4RjU0QTFCQUY5MjNBQkEyOENCODk0Mw?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGczTURnd01UTTRNVE00TW54RU1EQXhRVEkxUkRNNFJqVTBRVEZDUVVZNU1qTkJRa0V5T0VOQ09EazBNdz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:11:19Z\",\r\n \"status\": \"NotStarted\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:11:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg3MDgwMTM4MTM4MnxEMDAxQTI1RDM4RjU0QTFCQUY5MjNBQkEyOENCODk0Mw?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "c6fcaad0-fc1d-4aae-bc69-84dfa50a3817" + ], + "x-ms-correlation-request-id": [ + "c6fcaad0-fc1d-4aae-bc69-84dfa50a3817" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001150Z:c6fcaad0-fc1d-4aae-bc69-84dfa50a3817" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg3MDgwMTM4MTM4MnxEMDAxQTI1RDM4RjU0QTFCQUY5MjNBQkEyOENCODk0Mw?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGczTURnd01UTTRNVE00TW54RU1EQXhRVEkxUkRNNFJqVTBRVEZDUVVZNU1qTkJRa0V5T0VOQ09EazBNdz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:11:19Z\",\r\n \"status\": \"NotStarted\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:12:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg3MDgwMTM4MTM4MnxEMDAxQTI1RDM4RjU0QTFCQUY5MjNBQkEyOENCODk0Mw?api-version=2016-10-01" + ], + "Retry-After": [ + "5" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "ee5e86fd-5f3b-4aae-becf-9742d662f268" + ], + "x-ms-correlation-request-id": [ + "ee5e86fd-5f3b-4aae-becf-9742d662f268" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001220Z:ee5e86fd-5f3b-4aae-becf-9742d662f268" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/operationResults/VVR8MDYzNjIyODg3MDgwMTM4MTM4MnxEMDAxQTI1RDM4RjU0QTFCQUY5MjNBQkEyOENCODk0Mw?api-version=2016-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvbG9jYXRpb25zL2Vhc3R1czIvb3BlcmF0aW9uUmVzdWx0cy9WVlI4TURZek5qSXlPRGczTURnd01UTTRNVE00TW54RU1EQXhRVEkxUkRNNFJqVTBRVEZDUVVZNU1qTkJRa0V5T0VOQ09EazBNdz9hcGktdmVyc2lvbj0yMDE2LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24214.01", + "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"createdDateTime\": \"2017-02-17 00:11:19Z\",\r\n \"lastActionDateTime\": \"2017-02-17 00:12:51Z\",\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 17 Feb 2017 00:12:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-keyvault-service-version": [ + "1.0.1.664" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "89973380-158c-4440-aa62-38f9b74ceec3" + ], + "x-ms-correlation-request-id": [ + "89973380-158c-4440-aa62-38f9b74ceec3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170217T001251Z:89973380-158c-4440-aa62-38f9b74ceec3" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=5dLRbpswFAbgd0HVrkYwBFoSqZqS2sm6xbYwNpN2R7CTghGOsFMoVd%2b9NI%2bxXR7p6PxHn%2f53r1OjO9Sdtt763UObnIs88tbei3MXuw6C8lL70pxPxshFr6y59pWyi6HupBmsX3du0SkX2OvRVn19cbXpbHAqowTEq8i%2fV6r043Ip%2fTRNHvyjSh6Oq0SCKFXBpTevtVS9DXBd9caak1v8Vm9FeW1dIFWrnJK3wf74%2buF13pyPP0YgvPdD4IPw253Vc6LRqnsUuvjDil%2bcCbbjqBC5WNGDaMUJPoeY65HwaqBcR5RXIeWbmPJtygQKcdPuKWwRhdlAEBoY1wOFf7cZEFEmxIh1NmCNvO8eoYz%2ffEKEs81B5P8eUIMmwhEgsAoJFDPYNsUTTkiTAXpDfIEEETRjLDHCE4XFLpvknjTnkAAxA%2bVU%2fAdAI26el7jR8dySFAMcZ6BAZNru6A2u3c8tGpkudgSeI4bEG0EM4QZ7Hx%2bf", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvZGVsZXRlZFZhdWx0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiUyNHNraXB0b2tlbj01ZExSYnBzd0ZBYmdkMEhWcmtZd0JGb1NxWnFTMnNtNnhiWXdOcE4yUjdDVGdoR09zRk1vVmQlMmI5TkklMmJ4WFI3cDZQeEhuJTJmNTNyMU9qTzlTZHR0NzYzVU9ibklzODh0YmVpM01YdXc2QzhsTDcwcHhQeHNoRnI2eTU5cFd5aTZIdXBCbXNYM2R1MFNrWDJPdlJWbjE5Y2JYcGJIQXFvd1RFcThpJTJmVjZyMDQzSXAlMmZUUk5IdnlqU2g2T3EwU0NLRlhCcFRldnRWUzlEWEJkOWNhYWsxdjhWbTlGZVcxZElGV3JuSkszd2Y3NCUyYnVGMTNweVBQMFlndlBkRDRJUHcyNTNWYzZMUnFuc1V1dmpEaWwlMmJjQ2JianFCQzVXTkdEYU1VSlBvZVk2NUh3YXFCY1I1UlhJZVdibVBKdHlnUUtjZFB1S1d3UmhkbEFFQm9ZMXdPRmY3Y1pFRkVteEloMU5tQ052Tzhlb1l6JTJmZkVLRXM4MUI1UDhlVUlNbXdoRWdzQW9KRkRQWU5zVVRUa2lUQVhwRGZJRUVFVFJqTERIQ0U0WEZMcHZrbmpUbmtBQXhBJTJiVlUlMmZBZEFJMjZlbDdqUjhkeVNGQU1jWjZCQVpOcnU2QTJ1M2M4dEdwa3VkZ1NlSTRiRUcwRU00UVo3SHglMmJm", + "RequestUri": "/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=5dLBjpswEAbgd0FVTyUYEnZJpFWVrB2aNB4LsKnUG8FOFoxwhMmGsNp3L81jtKfRSKN%2fRp%2fmw2nV0B%2bqVltn9eGQdcZFFjgr563vL3blecWlcqU5n4yRs05Zc%2b1KZWe3qpXmZt2q7Wet6j17Pdqyqy59ZVrrnYogRItl4D4pVbiLYi7dKAqf3aMKn4%2fLUKIgUt6lM%2b%2bVVJ31aFV2xppTP%2fup7nlxbXpPqkb1Sj4a%2b%2f3vDe%2fT5BT%2bEiD%2fyfWRi%2fyvX6yeNhqt2heh819pvuepSLec5CITS3YQjTjhnU%2b5HoCvh6neYRQI6vJO8T5ifB%2bDzgmQ3Q24DgFvXhnZY8BJSHkTJ%2fXuxriMU0Gdbw6wlP94JcDT9UFk%2fx5QTUbgBAEufcBiAttEdKQh1AliD8Q3DBMV1WROCR0ZzrfJKGOozz4gMQFlTPwHQAOtd3Na6wXDvyOK6CJB0weNmy17wDUxEDKkOt8CPgcpEXcgKaE1dT4%2f%2fwA%3d", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmEyNTA0OTItNmVlYS00YTNkLTg4NTctYmU1N2I5NWQwMjhlL3Byb3ZpZGVycy9NaWNyb3NvZnQuS2V5VmF1bHQvZGVsZXRlZFZhdWx0cz9hcGktdmVyc2lvbj0yMDE2LTEwLTAxJiUyNHNraXB0b2tlbj01ZExCanBzd0VBYmdkMEZWVHlVWUVuWkpwRldWckIyYU5CNExzS25VRzhGT0ZveHdoTW1Hc05wM0w4MWp0S2ZSU0tOJTJmUnAlMmZtdzJuVjBCJTJicVZsdG45ZUdRZGNaRkZqZ3I1NjN2TDNibGVjV2xjcVU1bjR5UnMwNVpjJTJiMUtaV2UzcXBYbVp0MnE3V2V0NmoxN1BkcXlxeTU5WlZycm5Zb2dSSXRsNEQ0cFZiaUxZaTdkS0FxZjNhTUtuNCUyZkxVS0lnVXQ2bE0lMmIlMmJWVkozMWFGVjJ4cHBUUCUyZnVwN25seGJYcFBxa2IxU2o0YSUyYiUyZjN2RGUlMmZUNUJUJTJiRWlEJTJmeWZXUmklMmZ5dlg2eWVOaHF0MmhlaDgxOXB2dWVwU0xlYzVDSVRTM1lRalRqaG5VJTJiNUhvQ3ZoNm5lWVJRSTZ2Sk84VDVpZkIlMmJEemdtUTNRMjREZ0Z2WGhuWlk4QkpTSGtUSiUyZlh1eHJpTVUwR2RidzZ3bFA5NEpjRFQ5VUZrJTJmeDVRVFViZ0JBRXVmY0JpQXR0RWRLUWgxQWxpRDhRM0RCTVYxV1JPQ1IwWnpyZkpLR09veno0Z01RRmxUUHdIUUFPdGQzTmE2d1hEdnlPSzZDSkIwd2VObXkxN3dEVXhFREtrT3Q4Q1BnY3BFWGNnS2FFMWRUNCUyZiUyZndBJTNk", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0a4c3742-a346-480b-8765-7d461a2eb987" + "5d874805-1eb2-414f-8862-c78829417273" ], "accept-language": [ "en-US" @@ -928,7 +1978,7 @@ "Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient/2.0.2-preview" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault4795\",\r\n \"name\": \"sdktestvault4795\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9038/providers/Microsoft.KeyVault/vaults/sdktestvault4795\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:29Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:29Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault4494\",\r\n \"name\": \"sdktestvault4494\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9038/providers/Microsoft.KeyVault/vaults/sdktestvault4494\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:27Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:27Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault8961\",\r\n \"name\": \"sdktestvault8961\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg9038/providers/Microsoft.KeyVault/vaults/sdktestvault8961\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:53:26Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:53:26Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault3297\",\r\n \"name\": \"sdktestvault3297\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg4897/providers/Microsoft.KeyVault/vaults/sdktestvault3297\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:32:54Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:32:54Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/sdktestvault6044\",\r\n \"name\": \"sdktestvault6044\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/sdktestrg4897/providers/Microsoft.KeyVault/vaults/sdktestvault6044\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\"\r\n },\r\n \"deletionDate\": \"2017-02-08 21:32:52Z\",\r\n \"scheduledPurgeDate\": \"2017-05-09 21:32:52Z\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=HY5db4IwGIX%2fC1l2V74UBROzbAGNm%2b0itiy7RPriaklLaBXU%2bN%2fHdnlOnpzn3B0Fg90KJY2zuDvZ656yfegsnB9rW7PwvLIViOtjrTV3OzD63FVg3F4ornuDhLKuAuuZ88FUnWit0Mp4dRlG%2fjQJ0QygRNNywlEcR3N0gGh%2bSCLuhzF4bacvgkNnPCyqThtdW%2fcDrkV5bqzHoQEL%2fD%2bYl78Pl5Ecx5ehH8xQ4CM%2feH4ycjRqCWrJZPGVF%2b80Z%2fmKZgXbs%2bRzyxpWp5sAUzkQWg2Ybq7khn2Sfk9ISmKS7W6E8gxT8oZPTTZ2a3w69vgmhzzd9OS0Wu8YDncSO4%2fHLw%3d%3d\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/pnh-psh-sd\",\r\n \"name\": \"pnh-psh-sd\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/keyvault/providers/Microsoft.KeyVault/vaults/pnh-psh-sd\",\r\n \"location\": \"east us 2\",\r\n \"tags\": {\r\n \"x\": \"y\"\r\n },\r\n \"deletionDate\": \"2017-02-16 18:58:11Z\",\r\n \"scheduledPurgeDate\": \"2017-05-17 18:58:11Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/pshtv-pnh-0215174914\",\r\n \"name\": \"pshtv-pnh-0215174914\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/pshtrg-pnh-0215174847/providers/Microsoft.KeyVault/vaults/pshtv-pnh-0215174914\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-16 01:51:48Z\",\r\n \"scheduledPurgeDate\": \"2017-05-17 01:51:48Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/pshtv-pnh-0215174919\",\r\n \"name\": \"pshtv-pnh-0215174919\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/pshtrg-pnh-0215174847/providers/Microsoft.KeyVault/vaults/pshtv-pnh-0215174919\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {\r\n \"m\": \"n\"\r\n },\r\n \"deletionDate\": \"2017-02-16 01:51:43Z\",\r\n \"scheduledPurgeDate\": \"2017-05-17 01:51:43Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/pshtv-pnh-0215174434\",\r\n \"name\": \"pshtv-pnh-0215174434\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/pshtrg-pnh-0215174402/providers/Microsoft.KeyVault/vaults/pshtv-pnh-0215174434\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"deletionDate\": \"2017-02-16 01:47:06Z\",\r\n \"scheduledPurgeDate\": \"2017-05-17 01:47:06Z\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/pshtv-pnh-0215174437\",\r\n \"name\": \"pshtv-pnh-0215174437\",\r\n \"type\": \"Microsoft.KeyVault/deletedVaults\",\r\n \"properties\": {\r\n \"vaultId\": \"/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/resourceGroups/pshtrg-pnh-0215174402/providers/Microsoft.KeyVault/vaults/pshtv-pnh-0215174437\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {\r\n \"m\": \"n\"\r\n },\r\n \"deletionDate\": \"2017-02-16 01:47:06Z\",\r\n \"scheduledPurgeDate\": \"2017-05-17 01:47:06Z\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://api-dogfood.resources.windows-int.net/subscriptions/fa250492-6eea-4a3d-8857-be57b95d028e/providers/Microsoft.KeyVault/deletedVaults?api-version=2016-10-01&%24skiptoken=HY7RboIwGEbfhSy7Ky0IiiZmYaEmbhYjtixeIv1xXQ0ltCpqfPe5XX7JyTnf3WthcCvVauvN7h5Nt1xsQ2%2fmfTvX2RnGVaeQNIfGGOn3YM2pr8H6F9VKc7FItc5vwWF72tu6V51TprW4qcKYRNMQjQEqFFUjiZIknqA9xJP9NJYkTAB3vTkrCb3FTNW9saZx%2fidcy%2bp0dFjCERzI%2f2Hf%2fj6cn%2bRTPg9JMEYBQSR4fbH6WTQa2rnQ5VdRfvBCFAtOS7EV0%2fVKHEWTLQPG9ZDzNGacjtjtMKwzGuQ%2fZbLhdVzoXcQIvTKyjHK6HPJMR0WW3tY8DTZ68Z5nm5DRnfd4%2fAI%3d\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -940,7 +1990,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Feb 2017 19:44:29 GMT" + "Fri, 17 Feb 2017 00:12:51 GMT" ], "Pragma": [ "no-cache" @@ -954,16 +2004,16 @@ "" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14977" ], "x-ms-request-id": [ - "e59bd1a0-e01e-47f9-90e2-e26fcb04ecbb" + "a7356904-2381-4b9f-80cc-f8f79fe7ee19" ], "x-ms-correlation-request-id": [ - "e59bd1a0-e01e-47f9-90e2-e26fcb04ecbb" + "a7356904-2381-4b9f-80cc-f8f79fe7ee19" ], "x-ms-routing-request-id": [ - "CENTRALUS:20170209T194429Z:e59bd1a0-e01e-47f9-90e2-e26fcb04ecbb" + "CENTRALUS:20170217T001252Z:a7356904-2381-4b9f-80cc-f8f79fe7ee19" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -974,13 +2024,13 @@ ], "Names": { "Initialize": [ - "sdktestrg5702", - "sdktestvault7931" + "sdktestrg8225", + "sdktestvault7044" ], "KeyVaultManagementListDeletedVaults": [ - "sdktestvault9511", - "sdktestvault2718", - "sdktestvault7613" + "sdktestvault6368", + "sdktestvault3724", + "sdktestvault5980" ] }, "Variables": { @@ -988,6 +2038,6 @@ "TenantId": "dfe47ca8-acfc-4539-9519-7d196a9c79e4", "ObjectId": "5abe9358-10ae-4095-ba23-d34111430228", "SubId": "fa250492-6eea-4a3d-8857-be57b95d028e", - "ApplicationId": "d92e3440-a29f-418a-8d21-b5b0a99a9892" + "ApplicationId": "56db032e-936f-4f58-9cc8-9ca98e4a178a" } } \ No newline at end of file diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs index 42bb1dec70fb..612034c2e1da 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/VaultOperationsTest.cs @@ -3,15 +3,15 @@ // license information. // -using System.Linq; -using System.Collections.Generic; -using Microsoft.Azure.Management.ResourceManager; -using Xunit; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using Microsoft.Azure.Management.KeyVault; using Microsoft.Azure.Management.KeyVault.Models; +using Microsoft.Azure.Management.ResourceManager; using Microsoft.Rest.Azure; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using System; +using System.Collections.Generic; +using System.Linq; +using Xunit; namespace KeyVault.Management.Tests { @@ -373,7 +373,14 @@ public void KeyVaultManagementListDeletedVaults() foreach (var v in deletedVaults) { - resourceIds.Remove(v.Properties.VaultId); + var exists = resourceIds.Remove(v.Properties.VaultId); + + if (exists) + { + // Purge vault + testBase.client.Vaults.PurgeDeleted(v.Name, testBase.location); + Assert.Throws(() => testBase.client.Vaults.GetDeleted(v.Name, testBase.location)); + } } while (deletedVaults.NextPageLink != null) @@ -382,15 +389,20 @@ public void KeyVaultManagementListDeletedVaults() Assert.NotNull(deletedVaults); foreach (var v in deletedVaults) { - resourceIds.Remove(v.Id); + var exists = resourceIds.Remove(v.Id); + + if (exists) + { + // Purge vault + testBase.client.Vaults.PurgeDeleted(v.Name, testBase.location); + Assert.Throws(() => testBase.client.Vaults.GetDeleted(v.Name, testBase.location)); + } } if (resourceIds.Count == 0) break; } Assert.True(resourceIds.Count == 0); - - // Purge ... } } diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs index 4d54e855a831..c4567fa7c21a 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/IVaultsOperations.cs @@ -168,6 +168,52 @@ public partial interface IVaultsOperations /// Task> GetDeletedWithHttpMessagesAsync(string vaultName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Deletes the specified vault forever. aka Purges the deleted Azure + /// key vault. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task PurgeDeletedWithHttpMessagesAsync(string vaultName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified vault forever. aka Purges the deleted Azure + /// key vault. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginPurgeDeletedWithHttpMessagesAsync(string vaultName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// The List operation gets information about the vaults associated /// with the subscription. /// diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs index c3f92a910aae..ea96167fb2b2 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperations.cs @@ -1198,6 +1198,193 @@ internal VaultsOperations(KeyVaultManagementClient client) return _result; } + /// + /// Deletes the specified vault forever. aka Purges the deleted Azure key + /// vault. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task PurgeDeletedWithHttpMessagesAsync(string vaultName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPurgeDeletedWithHttpMessagesAsync( + vaultName, location, customHeaders, cancellationToken); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken); + } + + /// + /// Deletes the specified vault forever. aka Purges the deleted Azure key + /// vault. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginPurgeDeletedWithHttpMessagesAsync(string vaultName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (vaultName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vaultName"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (this.Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (this.Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("vaultName", vaultName); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPurgeDeleted", tracingParameters); + } + // Construct URL + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new Uri(new Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge").ToString(); + _url = _url.Replace("{vaultName}", Uri.EscapeDataString(vaultName)); + _url = _url.Replace("{location}", Uri.EscapeDataString(location)); + _url = _url.Replace("{subscriptionId}", Uri.EscapeDataString(this.Client.SubscriptionId)); + List _queryParameters = new List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + HttpRequestMessage _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + if (_httpResponse.Content != null) { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + } + else { + _responseContent = string.Empty; + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// The List operation gets information about the vaults associated with the /// subscription. diff --git a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs index 90934a1a8ff6..56047c84af9a 100644 --- a/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs +++ b/src/ResourceManagement/KeyVaultManagement/Microsoft.Azure.Management.KeyVault/Generated/VaultsOperationsExtensions.cs @@ -255,6 +255,84 @@ public static DeletedVault GetDeleted(this IVaultsOperations operations, string } } + /// + /// Deletes the specified vault forever. aka Purges the deleted Azure key + /// vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + public static void PurgeDeleted(this IVaultsOperations operations, string vaultName, string location) + { + Task.Factory.StartNew(s => ((IVaultsOperations)s).PurgeDeletedAsync(vaultName, location), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified vault forever. aka Purges the deleted Azure key + /// vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + /// + /// The cancellation token. + /// + public static async Task PurgeDeletedAsync(this IVaultsOperations operations, string vaultName, string location, CancellationToken cancellationToken = default(CancellationToken)) + { + await operations.PurgeDeletedWithHttpMessagesAsync(vaultName, location, null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified vault forever. aka Purges the deleted Azure key + /// vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + public static void BeginPurgeDeleted(this IVaultsOperations operations, string vaultName, string location) + { + Task.Factory.StartNew(s => ((IVaultsOperations)s).BeginPurgeDeletedAsync(vaultName, location), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified vault forever. aka Purges the deleted Azure key + /// vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the soft-deleted vault. + /// + /// + /// The location of the soft-deleted vault. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPurgeDeletedAsync(this IVaultsOperations operations, string vaultName, string location, CancellationToken cancellationToken = default(CancellationToken)) + { + await operations.BeginPurgeDeletedWithHttpMessagesAsync(vaultName, location, null, cancellationToken).ConfigureAwait(false); + } + /// /// The List operation gets information about the vaults associated with the /// subscription. From 97a92dbb87027826493c8c11c7195df42d7c0c48 Mon Sep 17 00:00:00 2001 From: Pooneh Date: Mon, 3 Apr 2017 13:17:10 -0700 Subject: [PATCH 8/8] Regenerate the SDK based on version 1.0.0 --- .../Generated/IKeyVaultClient.cs | 36 +- .../Generated/KeyVaultClient.cs | 3085 +++++++++-------- .../Generated/KeyVaultClientExtensions.cs | 425 +-- .../Generated/Models/DeletedKeyBundle.cs | 40 +- .../Generated/Models/DeletedKeyItem.cs | 40 +- .../Generated/Models/DeletedSecretBundle.cs | 40 +- .../Generated/Models/DeletedSecretItem.cs | 38 +- .../Generated/Models/KeyAttributes.cs | 16 +- .../Properties/AssemblyInfo.cs | 2 +- .../KeyVaultManagement.Tests/project.json | 4 +- 10 files changed, 2037 insertions(+), 1689 deletions(-) diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs index e27a5b5eba4d..96c6bee21987 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/IKeyVaultClient.cs @@ -456,11 +456,11 @@ public partial interface IKeyVaultClient : System.IDisposable /// List deleted keys in the specified vault /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified - /// the service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The headers that will be added to request. @@ -474,7 +474,7 @@ public partial interface IKeyVaultClient : System.IDisposable /// Retrieves the deleted key information plus its attributes /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the key @@ -488,10 +488,10 @@ public partial interface IKeyVaultClient : System.IDisposable Task> GetDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the specified key forever. aka purges the key. + /// Permanently deletes the specified key. aka purges the key. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the key @@ -508,7 +508,7 @@ public partial interface IKeyVaultClient : System.IDisposable /// Recovers the deleted key back to its current version under /keys /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the deleted key @@ -522,7 +522,7 @@ public partial interface IKeyVaultClient : System.IDisposable Task> RecoverDeletedKeyWithHttpMessagesAsync(string vaultBaseUrl, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Sets a secret in the specified vault. + /// Sets a secret in a specified key vault. /// /// /// The vault name, for example https://myvault.vault.azure.net. @@ -660,11 +660,11 @@ public partial interface IKeyVaultClient : System.IDisposable /// List deleted secrets in the specified vault /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified - /// the service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the + /// service will return up to 25 results. /// /// /// The headers that will be added to request. @@ -678,7 +678,7 @@ public partial interface IKeyVaultClient : System.IDisposable /// Retrieves the deleted secret information plus its attributes /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the secret @@ -692,10 +692,10 @@ public partial interface IKeyVaultClient : System.IDisposable Task> GetDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the specified secret forever. aka purges the secret. + /// Permanently deletes the specified secret. aka purges the secret. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the secret @@ -713,7 +713,7 @@ public partial interface IKeyVaultClient : System.IDisposable /// /secrets /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the deleted secret @@ -727,7 +727,7 @@ public partial interface IKeyVaultClient : System.IDisposable Task> RecoverDeletedSecretWithHttpMessagesAsync(string vaultBaseUrl, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List certificates in the specified vault + /// List certificates in a specified key vault /// /// /// The vault name, for example https://myvault.vault.azure.net. @@ -1213,7 +1213,7 @@ public partial interface IKeyVaultClient : System.IDisposable Task>> GetDeletedKeysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List secrets in the specified vault + /// List secrets in a specified key vault /// /// /// The NextLink from the previous successful call to List operation. @@ -1255,7 +1255,7 @@ public partial interface IKeyVaultClient : System.IDisposable Task>> GetDeletedSecretsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List certificates in the specified vault + /// List certificates in a specified key vault /// /// /// The NextLink from the previous successful call to List operation. diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs index a14f7c5d479f..28c321df71ac 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClient.cs @@ -1,34 +1,31 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault { - using System; - using System.Linq; + using Azure; + using Rest; + using Rest.Azure; + using Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; using System.Collections.Generic; - using System.Diagnostics; + using System.Linq; using System.Net; using System.Net.Http; - using System.Net.Http.Headers; - using System.Text; - using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using Microsoft.Rest.Azure; - using Models; using Microsoft.Azure.KeyVault.WebKey; /// - /// Performs cryptographic key operations and vault operations against the - /// Key Vault service. + /// The key vault client performs cryptographic key operations and vault + /// operations against the Key Vault service. /// public partial class KeyVaultClient : ServiceClient, IKeyVaultClient, IAzureClient { @@ -45,7 +42,7 @@ public partial class KeyVaultClient : ServiceClient, IKeyVaultCl /// /// Gets or sets json deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Credentials needed for the client to connect to Azure. @@ -53,7 +50,7 @@ public partial class KeyVaultClient : ServiceClient, IKeyVaultCl public ServiceClientCredentials Credentials { get; private set; } /// - /// Client Api Version. + /// Client API version. /// public string ApiVersion { get; private set; } @@ -80,9 +77,9 @@ public partial class KeyVaultClient : ServiceClient, IKeyVaultCl /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected KeyVaultClient(params DelegatingHandler[] handlers) : base(handlers) + protected KeyVaultClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) { - this.Initialize(); + Initialize(); } /// @@ -94,9 +91,9 @@ protected KeyVaultClient(params DelegatingHandler[] handlers) : base(handlers) /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected KeyVaultClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + protected KeyVaultClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) { - this.Initialize(); + Initialize(); } /// @@ -108,19 +105,19 @@ protected KeyVaultClient(HttpClientHandler rootHandler, params DelegatingHandler /// /// Optional. The delegating handlers to add to the http client pipeline. /// - /// + /// /// Thrown when a required parameter is null /// - public KeyVaultClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + public KeyVaultClient(ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { - throw new ArgumentNullException("credentials"); + throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -136,19 +133,19 @@ public KeyVaultClient(ServiceClientCredentials credentials, params DelegatingHan /// /// Optional. The delegating handlers to add to the http client pipeline. /// - /// + /// /// Thrown when a required parameter is null /// - public KeyVaultClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + public KeyVaultClient(ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { - throw new ArgumentNullException("credentials"); + throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -161,11 +158,11 @@ public KeyVaultClient(ServiceClientCredentials credentials, HttpClientHandler ro /// private void Initialize() { - this.BaseUri = "{vaultBaseUrl}"; - this.ApiVersion = "2016-10-01"; - this.AcceptLanguage = "en-US"; - this.LongRunningOperationRetryTimeout = 30; - this.GenerateClientRequestId = true; + BaseUri = "{vaultBaseUrl}"; + ApiVersion = "2016-10-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Formatting.Indented, @@ -192,31 +189,35 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } /// - /// Creates a new, named, key in the specified vault. + /// Creates a new key, stores it, then returns key parameters and attributes to + /// the client. The create key operation can be used to create any key type in + /// Azure Key Vault. If the named key already exists, Azure Key Vault creates a + /// new version of the key. Authorization: Requires the keys/create permission. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name for the new key. The system will generate the version name for the + /// new key. /// /// - /// The type of key to create. Valid key types, see JsonWebKeyType. Supported - /// JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. Possible - /// values include: 'EC', 'RSA', 'RSA-HSM', 'oct' + /// The type of key to create. For valid key types, see JsonWebKeyType. + /// Supported JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. + /// Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct' /// /// - /// The key size in bytes. e.g. 1024 or 2048. + /// The key size in bytes. For example, 1024 or 2048. /// /// /// /// /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -233,6 +234,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -253,7 +257,7 @@ private void Initialize() throw new ValidationException(ValidationRules.Pattern, "keyName", "^[0-9a-zA-Z-]+$"); } } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -269,7 +273,7 @@ private void Initialize() } } KeyCreateParameters parameters = new KeyCreateParameters(); - if (kty != null || keyOps != null || keyAttributes != null || tags != null) + if (kty != null || keySize != null || keyOps != null || keyAttributes != null || tags != null) { parameters.Kty = kty; parameters.KeySize = keySize; @@ -291,37 +295,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "CreateKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/create"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -338,15 +344,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -354,7 +360,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -368,7 +374,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -405,7 +411,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -425,25 +431,29 @@ private void Initialize() } /// - /// Imports a key into the specified vault + /// Imports an externally created key, stores it, and returns key parameters + /// and attributes to the client. The import key operation may be used to + /// import any key type into an Azure Key Vault. If the named key already + /// exists, Azure Key Vault creates a new version of the key. Authorization: + /// requires the keys/import permission. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// Name for the imported key. /// /// /// The Json web key /// /// - /// Whether to import as a hardware key (HSM) or software key + /// Whether to import as a hardware key (HSM) or software key. /// /// - /// The key management attributes + /// The key management attributes. /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -460,6 +470,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -480,7 +493,7 @@ private void Initialize() throw new ValidationException(ValidationRules.Pattern, "keyName", "^[0-9a-zA-Z-]+$"); } } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -489,7 +502,7 @@ private void Initialize() throw new ValidationException(ValidationRules.CannotBeNull, "key"); } KeyImportParameters parameters = new KeyImportParameters(); - if (key != null || keyAttributes != null || tags != null) + if (hsm != null || key != null || keyAttributes != null || tags != null) { parameters.Hsm = hsm; parameters.Key = key; @@ -510,37 +523,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "ImportKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -557,15 +572,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -573,7 +588,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -587,7 +602,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -624,7 +639,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -644,13 +659,17 @@ private void Initialize() } /// - /// Deletes the specified key + /// Deletes a key of any type from storage in Azure Key Vault. The delete key + /// operation cannot be used to remove individual versions of a key. This + /// operation removes the cryptographic material associated with the key, which + /// means the key is not usable for Sign/Verify, Wrap/Unwrap or Encrypt/Decrypt + /// operations. Authorization: Requires the keys/delete permission. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key to delete. /// /// /// Headers that will be added to request. @@ -667,6 +686,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -680,7 +702,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -697,37 +719,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "DeleteKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -743,10 +767,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -754,7 +778,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -768,7 +792,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -805,7 +829,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -825,16 +849,20 @@ private void Initialize() } /// - /// Updates the Key Attributes associated with the specified key + /// The update key operation changes specified attributes of a stored key and + /// can be applied to any key type and key version stored in Azure Key Vault. + /// The cryptographic material of a key itself cannot be changed. In order to + /// perform this operation, the key must already exist in the Key Vault. + /// Authorization: requires the keys/update permission. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of key to update. /// /// - /// The version of the key + /// The version of the key to update. /// /// /// Json web key operations. For more information on possible key operations, @@ -843,7 +871,7 @@ private void Initialize() /// /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -860,6 +888,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -877,7 +908,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -903,38 +934,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UpdateKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -951,15 +984,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -967,7 +1000,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -981,7 +1014,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1018,7 +1051,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -1038,16 +1071,19 @@ private void Initialize() } /// - /// Retrieves the public portion of a key plus its attributes + /// Gets the public part of a stored key. The get key operation is applicable + /// to all key types. If the requested key is symmetric, then no key material + /// is released in the response. Authorization: Requires the keys/get + /// permission. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key to get. /// /// - /// The version of the key + /// Adding the version parameter retrieves a specific version of a key. /// /// /// Headers that will be added to request. @@ -1064,6 +1100,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -1081,7 +1120,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1099,38 +1138,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1146,10 +1187,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1157,7 +1198,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1171,7 +1212,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1208,7 +1249,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -1228,17 +1269,19 @@ private void Initialize() } /// - /// List the versions of the specified key + /// Retrieves a list of individual key versions with the same key name. The + /// full key identifier, attributes, and tags are provided in the response. + /// Authorization: Requires the keys/list permission. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -1255,6 +1298,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -1276,7 +1322,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1294,41 +1340,43 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetKeyVersions", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/versions"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1344,10 +1392,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1355,7 +1403,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1369,7 +1417,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1406,7 +1454,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -1426,14 +1474,14 @@ private void Initialize() } /// - /// List keys in the specified vault + /// List keys in the specified vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -1450,6 +1498,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -1467,7 +1518,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1484,40 +1535,42 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetKeys", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1533,10 +1586,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1544,7 +1597,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1558,7 +1611,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1595,7 +1648,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -1618,10 +1671,10 @@ private void Initialize() /// Requests that a backup of the specified key be downloaded to the client. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// /// Headers that will be added to request. @@ -1638,6 +1691,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -1651,7 +1707,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1668,37 +1724,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "BackupKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/backup"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1714,10 +1772,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1725,7 +1783,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1739,7 +1797,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1776,7 +1834,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -1796,13 +1854,13 @@ private void Initialize() } /// - /// Restores the backup key in to a vault + /// Restores a backed up key to a vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// the backup blob associated with a key bundle + /// The backup blob associated with a key bundle. /// /// /// Headers that will be added to request. @@ -1819,6 +1877,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -1828,7 +1889,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -1854,36 +1915,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "RestoreKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/restore"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1900,15 +1963,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -1916,7 +1979,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -1930,7 +1993,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -1967,7 +2030,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -1988,16 +2051,16 @@ private void Initialize() /// /// Encrypts an arbitrary sequence of bytes using an encryption key that is - /// stored in Azure Key Vault. + /// stored in a key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -2019,6 +2082,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -2036,7 +2102,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2076,38 +2142,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Encrypt", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/encrypt"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2124,15 +2192,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2140,7 +2208,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2154,7 +2222,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2191,7 +2259,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -2211,16 +2279,16 @@ private void Initialize() } /// - /// Decrypts a single block of encrypted data + /// Decrypts a single block of encrypted data. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -2242,6 +2310,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -2259,7 +2330,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2299,38 +2370,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Decrypt", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/decrypt"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2347,15 +2420,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2363,7 +2436,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2377,7 +2450,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2414,7 +2487,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -2434,21 +2507,21 @@ private void Initialize() } /// - /// Creates a signature from a digest using the specified key in the vault + /// Creates a signature from a digest using the specified key. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// The signing/verification algorithm identifier. For more information on - /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible - /// values include: 'RS256', 'RS384', 'RS512', 'RSNULL' + /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible values + /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// /// @@ -2467,6 +2540,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -2484,7 +2560,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2524,38 +2600,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Sign", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/sign"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2572,15 +2650,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2588,7 +2666,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2602,7 +2680,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2639,7 +2717,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -2659,27 +2737,27 @@ private void Initialize() } /// - /// Verifies a signature using the specified key + /// Verifies a signature using a specified key. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// The signing/verification algorithm. For more information on possible - /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values - /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' + /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values include: + /// 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// - /// The digest used for signing + /// The digest used for signing. /// /// - /// The signature to be verified + /// The signature to be verified. /// /// /// Headers that will be added to request. @@ -2696,6 +2774,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -2713,7 +2794,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2758,38 +2839,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "Verify", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/verify"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2806,15 +2889,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -2822,7 +2905,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -2836,7 +2919,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -2873,7 +2956,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -2893,16 +2976,16 @@ private void Initialize() } /// - /// Wraps a symmetric key using the specified key + /// Wraps a symmetric key using a specified key. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -2924,6 +3007,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -2941,7 +3027,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -2981,38 +3067,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "WrapKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/wrapkey"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3029,15 +3117,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3045,7 +3133,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3059,7 +3147,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3096,7 +3184,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -3116,17 +3204,17 @@ private void Initialize() } /// - /// Unwraps a symmetric key using the specified key in the vault that has - /// initially been used for wrapping the key. + /// Unwraps a symmetric key using the specified key that was initially used for + /// wrapping that key. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -3148,6 +3236,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -3165,7 +3256,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3205,38 +3296,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UnwrapKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "keys/{key-name}/{key-version}/unwrapkey"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); - _url = _url.Replace("{key-version}", Uri.EscapeDataString(keyVersion)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-version}", System.Uri.EscapeDataString(keyVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3253,15 +3346,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3269,7 +3362,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3283,7 +3376,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3320,7 +3413,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -3343,11 +3436,11 @@ private void Initialize() /// List deleted keys in the specified vault /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -3364,6 +3457,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -3381,7 +3477,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3398,40 +3494,42 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetDeletedKeys", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3447,10 +3545,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3458,7 +3556,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3472,7 +3570,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3509,7 +3607,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -3532,7 +3630,7 @@ private void Initialize() /// Retrieves the deleted key information plus its attributes /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the key @@ -3552,6 +3650,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -3565,7 +3666,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3582,37 +3683,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetDeletedKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3628,10 +3731,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3639,7 +3742,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3653,7 +3756,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3690,7 +3793,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -3710,10 +3813,10 @@ private void Initialize() } /// - /// Deletes the specified key forever. aka purges the key. + /// Permanently deletes the specified key. aka purges the key. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the key @@ -3730,6 +3833,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -3743,7 +3849,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3760,37 +3866,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "PurgeDeletedKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys/{key-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3806,10 +3914,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3817,7 +3925,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3831,7 +3939,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -3873,7 +3981,7 @@ private void Initialize() /// Recovers the deleted key back to its current version under /keys /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the deleted key @@ -3893,6 +4001,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -3906,7 +4017,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -3923,37 +4034,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "RecoverDeletedKey", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedkeys/{key-name}/recover"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{key-name}", Uri.EscapeDataString(keyName)); + _url = _url.Replace("{key-name}", System.Uri.EscapeDataString(keyName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3969,10 +4082,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -3980,7 +4093,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -3994,7 +4107,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4031,7 +4144,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -4051,25 +4164,25 @@ private void Initialize() } /// - /// Sets a secret in the specified vault. + /// Sets a secret in a specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// The value of the secret + /// The value of the secret. /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// - /// Type of the secret value such as a password + /// Type of the secret value such as a password. /// /// - /// The secret management attributes + /// The secret management attributes. /// /// /// Headers that will be added to request. @@ -4086,6 +4199,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -4106,7 +4222,7 @@ private void Initialize() throw new ValidationException(ValidationRules.Pattern, "secretName", "^[0-9a-zA-Z-]+$"); } } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4136,37 +4252,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "SetSecret", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4183,15 +4301,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4199,7 +4317,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4213,7 +4331,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4250,7 +4368,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -4270,13 +4388,13 @@ private void Initialize() } /// - /// Deletes a secret from the specified vault. + /// Deletes a secret from a specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// /// Headers that will be added to request. @@ -4293,6 +4411,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -4306,7 +4427,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4323,37 +4444,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "DeleteSecret", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4369,10 +4492,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4380,7 +4503,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4394,7 +4517,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4431,7 +4554,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -4451,25 +4574,26 @@ private void Initialize() } /// - /// Updates the attributes associated with the specified secret + /// Updates the attributes associated with a specified secret in a given key + /// vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// The version of the secret + /// The version of the secret. /// /// - /// Type of the secret value such as a password + /// Type of the secret value such as a password. /// /// - /// The secret management attributes + /// The secret management attributes. /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -4486,6 +4610,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -4503,7 +4630,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "secretVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4529,38 +4656,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UpdateSecret", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/{secret-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); - _url = _url.Replace("{secret-version}", Uri.EscapeDataString(secretVersion)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-version}", System.Uri.EscapeDataString(secretVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4577,15 +4706,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4593,7 +4722,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4607,7 +4736,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4644,7 +4773,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -4664,16 +4793,16 @@ private void Initialize() } /// - /// Gets a secret. + /// Get a specified secret from a given key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// The version of the secret + /// The version of the secret. /// /// /// Headers that will be added to request. @@ -4690,6 +4819,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -4707,7 +4839,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "secretVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4725,38 +4857,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetSecret", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/{secret-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); - _url = _url.Replace("{secret-version}", Uri.EscapeDataString(secretVersion)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-version}", System.Uri.EscapeDataString(secretVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4772,10 +4906,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4783,7 +4917,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4797,7 +4931,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -4834,7 +4968,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -4854,14 +4988,14 @@ private void Initialize() } /// - /// List secrets in the specified vault + /// List secrets in a specified key vault /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -4878,6 +5012,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -4895,7 +5032,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -4912,40 +5049,42 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetSecrets", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4961,10 +5100,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -4972,7 +5111,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -4986,7 +5125,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5023,7 +5162,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -5043,17 +5182,17 @@ private void Initialize() } /// - /// List the versions of the specified secret + /// List the versions of the specified secret. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -5070,6 +5209,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -5091,7 +5233,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5109,41 +5251,43 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetSecretVersions", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "secrets/{secret-name}/versions"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5159,10 +5303,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5170,7 +5314,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5184,7 +5328,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5221,7 +5365,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -5244,11 +5388,11 @@ private void Initialize() /// List deleted secrets in the specified vault /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -5265,6 +5409,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -5282,7 +5429,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5299,40 +5446,42 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetDeletedSecrets", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5348,10 +5497,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5359,7 +5508,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5373,7 +5522,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5410,7 +5559,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -5433,7 +5582,7 @@ private void Initialize() /// Retrieves the deleted secret information plus its attributes /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the secret @@ -5453,6 +5602,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -5466,7 +5618,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5483,37 +5635,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetDeletedSecret", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets/{secret-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5529,10 +5683,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5540,7 +5694,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5554,7 +5708,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5591,7 +5745,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -5611,10 +5765,10 @@ private void Initialize() } /// - /// Deletes the specified secret forever. aka purges the secret. + /// Permanently deletes the specified secret. aka purges the secret. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the secret @@ -5631,6 +5785,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -5644,7 +5801,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5661,37 +5818,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "PurgeDeletedSecret", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets/{secret-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5707,10 +5866,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5718,7 +5877,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5732,7 +5891,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5774,7 +5933,7 @@ private void Initialize() /// Recovers the deleted secret back to its current version under /secrets /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the deleted secret @@ -5794,6 +5953,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -5807,7 +5969,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "secretName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -5824,37 +5986,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "RecoverDeletedSecret", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "deletedsecrets/{secret-name}/recover"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{secret-name}", Uri.EscapeDataString(secretName)); + _url = _url.Replace("{secret-name}", System.Uri.EscapeDataString(secretName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -5870,10 +6034,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -5881,7 +6045,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -5895,7 +6059,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -5932,7 +6096,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -5952,14 +6116,14 @@ private void Initialize() } /// - /// List certificates in the specified vault + /// List certificates in a specified key vault /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -5976,6 +6140,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -5993,7 +6160,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -6010,40 +6177,42 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificates", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6059,10 +6228,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6070,7 +6239,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6084,7 +6253,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6121,7 +6290,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -6141,13 +6310,13 @@ private void Initialize() } /// - /// Deletes a certificate from the specified vault. + /// Deletes a certificate from a specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault + /// The name of the certificate. /// /// /// Headers that will be added to request. @@ -6164,6 +6333,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -6177,7 +6349,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -6194,37 +6366,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificate", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6240,10 +6414,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6251,7 +6425,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6265,7 +6439,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6302,7 +6476,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -6322,13 +6496,13 @@ private void Initialize() } /// - /// Sets the certificate contacts for the specified vault. + /// Sets the certificate contacts for the specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The contacts for the vault certificates. + /// The contacts for the key vault certificate. /// /// /// Headers that will be added to request. @@ -6345,6 +6519,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -6358,7 +6535,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "contacts"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -6375,36 +6552,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "SetCertificateContacts", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6421,15 +6600,15 @@ private void Initialize() string _requestContent = null; if(contacts != null) { - _requestContent = SafeJsonConvert.SerializeObject(contacts, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(contacts, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6437,7 +6616,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6451,7 +6630,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6488,7 +6667,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -6508,10 +6687,10 @@ private void Initialize() } /// - /// Gets the certificate contacts for the specified vault. + /// Lists the certificate contacts for a specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// Headers that will be added to request. @@ -6528,6 +6707,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -6537,7 +6719,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -6553,36 +6735,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificateContacts", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6598,10 +6782,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6609,7 +6793,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6623,7 +6807,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6660,7 +6844,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -6680,10 +6864,10 @@ private void Initialize() } /// - /// Deletes the certificate contacts for the specified vault. + /// Deletes the certificate contacts for a specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// Headers that will be added to request. @@ -6700,6 +6884,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -6709,7 +6896,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "vaultBaseUrl"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -6725,36 +6912,38 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateContacts", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/contacts"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6770,10 +6959,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6781,7 +6970,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6795,7 +6984,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -6832,7 +7021,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -6852,14 +7041,14 @@ private void Initialize() } /// - /// List certificate issuers for the specified vault. + /// List certificate issuers for a specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -6876,6 +7065,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -6893,7 +7085,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -6910,40 +7102,42 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificateIssuers", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -6959,10 +7153,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -6970,7 +7164,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -6984,7 +7178,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7021,7 +7215,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -7044,7 +7238,7 @@ private void Initialize() /// Sets the specified certificate issuer. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -7076,6 +7270,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -7089,7 +7286,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7119,37 +7316,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "SetCertificateIssuer", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7166,15 +7365,15 @@ private void Initialize() string _requestContent = null; if(parameter != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameter, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameter, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7182,7 +7381,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7196,7 +7395,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7233,7 +7432,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -7256,7 +7455,7 @@ private void Initialize() /// Updates the specified certificate issuer. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -7288,6 +7487,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -7301,7 +7503,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7327,37 +7529,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificateIssuer", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7374,15 +7578,15 @@ private void Initialize() string _requestContent = null; if(parameter != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameter, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameter, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7390,7 +7594,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7404,7 +7608,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7441,7 +7645,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -7461,10 +7665,10 @@ private void Initialize() } /// - /// Gets the specified certificate issuer. + /// Lists the specified certificate issuer. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -7484,6 +7688,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -7497,7 +7704,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7514,37 +7721,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificateIssuer", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7560,10 +7769,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7571,7 +7780,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7585,7 +7794,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7622,7 +7831,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -7645,7 +7854,7 @@ private void Initialize() /// Deletes the specified certificate issuer. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -7665,6 +7874,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -7678,7 +7890,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "issuerName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7695,37 +7907,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateIssuer", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/issuers/{issuer-name}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{issuer-name}", Uri.EscapeDataString(issuerName)); + _url = _url.Replace("{issuer-name}", System.Uri.EscapeDataString(issuerName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7741,10 +7955,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7752,7 +7966,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7766,7 +7980,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -7803,7 +8017,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -7823,23 +8037,23 @@ private void Initialize() } /// - /// Creates a new certificate version. If this is the first version, the - /// certificate resource is created. + /// Creates a new certificate. If this is the first version, the certificate + /// resource is created. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// - /// The management policy for the certificate + /// The management policy for the certificate. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -7856,6 +8070,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -7876,7 +8093,7 @@ private void Initialize() throw new ValidationException(ValidationRules.Pattern, "certificateName", "^[0-9a-zA-Z-]+$"); } } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -7905,37 +8122,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "CreateCertificate", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/create"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -7952,15 +8171,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -7968,7 +8187,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -7982,7 +8201,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8019,7 +8238,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -8039,13 +8258,13 @@ private void Initialize() } /// - /// Imports a certificate into the specified vault + /// Imports a certificate into a specified key vault. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// Base64 encoded representation of the certificate object to import. This @@ -8053,16 +8272,16 @@ private void Initialize() /// /// /// If the private key in base64EncodedCertificate is encrypted, the password - /// used for encryption + /// used for encryption. /// /// - /// The management policy for the certificate + /// The management policy for the certificate. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -8079,6 +8298,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -8099,7 +8321,7 @@ private void Initialize() throw new ValidationException(ValidationRules.Pattern, "certificateName", "^[0-9a-zA-Z-]+$"); } } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -8134,37 +8356,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "ImportCertificate", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/import"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8181,15 +8405,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8197,7 +8421,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8211,7 +8435,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8248,7 +8472,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -8271,14 +8495,14 @@ private void Initialize() /// List the versions of a certificate. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// Headers that will be added to request. @@ -8295,6 +8519,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -8316,7 +8543,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "maxresults", 1); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -8334,41 +8561,43 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificateVersions", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/versions"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); if (maxresults != null) { - _queryParameters.Add(string.Format("maxresults={0}", Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, this.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("maxresults={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(maxresults, SerializationSettings).Trim('"')))); } - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8384,10 +8613,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8395,7 +8624,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8409,7 +8638,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8446,7 +8675,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -8466,13 +8695,13 @@ private void Initialize() } /// - /// Gets the policy for a certificate. + /// Lists the policy for a certificate. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault. + /// The name of the certificate in a given key vault. /// /// /// Headers that will be added to request. @@ -8489,6 +8718,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -8502,7 +8734,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -8519,37 +8751,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificatePolicy", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/policy"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8565,10 +8799,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8576,7 +8810,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8590,7 +8824,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8627,7 +8861,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -8647,11 +8881,11 @@ private void Initialize() } /// - /// Updates the policy for a certificate. Set appropriate members in the - /// certificatePolicy that must be updated. Leave others as null. + /// Updates the policy for a certificate. Set specified members in the + /// certificate policy. Leave others as null. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the certificate in the given vault. @@ -8674,6 +8908,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -8691,7 +8928,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificatePolicy"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -8709,37 +8946,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificatePolicy", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/policy"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8756,15 +8995,15 @@ private void Initialize() string _requestContent = null; if(certificatePolicy != null) { - _requestContent = SafeJsonConvert.SerializeObject(certificatePolicy, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(certificatePolicy, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8772,7 +9011,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -8786,7 +9025,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -8823,7 +9062,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -8843,25 +9082,25 @@ private void Initialize() } /// - /// Updates the attributes associated with the specified certificate + /// Updates the specified attributes associated with the given certificate. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault + /// The name of the certificate in the given key vault. /// /// - /// The version of the certificate + /// The version of the certificate. /// /// - /// The management policy for the certificate + /// The management policy for the certificate. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -8878,6 +9117,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -8895,7 +9137,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -8925,38 +9167,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificate", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/{certificate-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); - _url = _url.Replace("{certificate-version}", Uri.EscapeDataString(certificateVersion)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-version}", System.Uri.EscapeDataString(certificateVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -8973,15 +9217,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -8989,7 +9233,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9003,7 +9247,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9040,7 +9284,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -9060,16 +9304,16 @@ private void Initialize() } /// - /// Gets a Certificate. + /// Gets information about a specified certificate. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault + /// The name of the certificate in the given vault. /// /// - /// The version of the certificate + /// The version of the certificate. /// /// /// Headers that will be added to request. @@ -9086,6 +9330,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -9103,7 +9350,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateVersion"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -9121,38 +9368,40 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificate", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/{certificate-version}"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); - _url = _url.Replace("{certificate-version}", Uri.EscapeDataString(certificateVersion)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-version}", System.Uri.EscapeDataString(certificateVersion)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9168,10 +9417,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9179,7 +9428,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9193,7 +9442,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9230,7 +9479,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -9253,10 +9502,10 @@ private void Initialize() /// Updates a certificate operation. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// Indicates if cancellation was requested on the certificate operation. @@ -9276,6 +9525,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -9289,7 +9541,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -9309,37 +9561,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "UpdateCertificateOperation", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9356,15 +9610,15 @@ private void Initialize() string _requestContent = null; if(certificateOperation != null) { - _requestContent = SafeJsonConvert.SerializeObject(certificateOperation, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(certificateOperation, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9372,7 +9626,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9386,7 +9640,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9423,7 +9677,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -9443,13 +9697,13 @@ private void Initialize() } /// - /// Gets the certificate operation response. + /// Gets the operation associated with a specified certificate. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// Headers that will be added to request. @@ -9466,6 +9720,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -9479,7 +9736,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -9496,37 +9753,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "GetCertificateOperation", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9542,10 +9801,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9553,7 +9812,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9567,7 +9826,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9604,7 +9863,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -9624,13 +9883,13 @@ private void Initialize() } /// - /// Deletes the certificate operation. + /// Deletes the operation for a specified certificate. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// Headers that will be added to request. @@ -9647,6 +9906,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -9660,7 +9922,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -9677,37 +9939,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateOperation", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9723,10 +9987,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9734,7 +9998,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9748,7 +10012,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9785,7 +10049,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -9805,23 +10069,23 @@ private void Initialize() } /// - /// Merges a certificate or a certificate chain with a key pair existing on - /// the server. + /// Merges a certificate or a certificate chain with a key pair existing on the + /// server. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// - /// The certificate or the certificate chain to merge + /// The certificate or the certificate chain to merge. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// Headers that will be added to request. @@ -9838,6 +10102,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -9851,7 +10118,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); } - if (this.ApiVersion == null) + if (ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); } @@ -9880,37 +10147,39 @@ private void Initialize() ServiceClientTracing.Enter(_invocationId, this, "MergeCertificate", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri; + var _baseUrl = BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "certificates/{certificate-name}/pending/merge"; _url = _url.Replace("{vaultBaseUrl}", vaultBaseUrl); - _url = _url.Replace("{certificate-name}", Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{certificate-name}", System.Uri.EscapeDataString(certificateName)); List _queryParameters = new List(); - if (this.ApiVersion != null) + if (ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", Uri.EscapeDataString(this.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); } if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -9927,15 +10196,15 @@ private void Initialize() string _requestContent = null; if(parameters != null) { - _requestContent = SafeJsonConvert.SerializeObject(parameters, this.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _requestContent = SafeJsonConvert.SerializeObject(parameters, SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -9943,7 +10212,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -9957,7 +10226,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -9994,7 +10263,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -10014,7 +10283,9 @@ private void Initialize() } /// - /// List the versions of the specified key + /// Retrieves a list of individual key versions with the same key name. The + /// full key identifier, attributes, and tags are provided in the response. + /// Authorization: Requires the keys/list permission. /// /// /// The NextLink from the previous successful call to List operation. @@ -10034,6 +10305,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -10060,26 +10334,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -10095,10 +10371,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -10106,7 +10382,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -10120,7 +10396,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -10157,7 +10433,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -10177,7 +10453,7 @@ private void Initialize() } /// - /// List keys in the specified vault + /// List keys in the specified vault. /// /// /// The NextLink from the previous successful call to List operation. @@ -10197,6 +10473,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -10223,26 +10502,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -10258,10 +10539,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -10269,7 +10550,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -10283,7 +10564,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -10320,7 +10601,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -10360,6 +10641,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -10386,26 +10670,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -10421,10 +10707,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -10432,7 +10718,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -10446,7 +10732,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -10483,7 +10769,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -10503,7 +10789,7 @@ private void Initialize() } /// - /// List secrets in the specified vault + /// List secrets in a specified key vault /// /// /// The NextLink from the previous successful call to List operation. @@ -10523,6 +10809,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -10549,26 +10838,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -10584,10 +10875,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -10595,7 +10886,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -10609,7 +10900,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -10646,7 +10937,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -10666,7 +10957,7 @@ private void Initialize() } /// - /// List the versions of the specified secret + /// List the versions of the specified secret. /// /// /// The NextLink from the previous successful call to List operation. @@ -10686,6 +10977,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -10712,26 +11006,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -10747,10 +11043,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -10758,7 +11054,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -10772,7 +11068,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -10809,7 +11105,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -10849,6 +11145,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -10875,26 +11174,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -10910,10 +11211,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -10921,7 +11222,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -10935,7 +11236,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -10972,7 +11273,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -10992,7 +11293,7 @@ private void Initialize() } /// - /// List certificates in the specified vault + /// List certificates in a specified key vault /// /// /// The NextLink from the previous successful call to List operation. @@ -11012,6 +11313,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -11038,26 +11342,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -11073,10 +11379,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -11084,7 +11390,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -11098,7 +11404,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -11135,7 +11441,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -11155,7 +11461,7 @@ private void Initialize() } /// - /// List certificate issuers for the specified vault. + /// List certificate issuers for a specified key vault. /// /// /// The NextLink from the previous successful call to List operation. @@ -11175,6 +11481,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -11201,26 +11510,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -11236,10 +11547,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -11247,7 +11558,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -11261,7 +11572,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -11298,7 +11609,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -11338,6 +11649,9 @@ private void Initialize() /// /// Thrown when a required parameter is null /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// @@ -11364,26 +11678,28 @@ private void Initialize() List _queryParameters = new List(); if (_queryParameters.Count > 0) { - _url += "?" + string.Join("&", _queryParameters); + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - HttpRequestMessage _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new Uri(_url); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Guid.NewGuid().ToString()); + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.AcceptLanguage != null) + if (AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -11399,10 +11715,10 @@ private void Initialize() // Serialize Request string _requestContent = null; // Set Credentials - if (this.Credentials != null) + if (Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) @@ -11410,7 +11726,7 @@ private void Initialize() ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); @@ -11424,7 +11740,7 @@ private void Initialize() try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + KeyVaultError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -11461,7 +11777,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (JsonException ex) { @@ -11482,3 +11798,4 @@ private void Initialize() } } + diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs index 21cc2261bc38..cbee66088301 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/KeyVaultClientExtensions.cs @@ -1,21 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault { - using System; + using Azure; + using Rest; + using Rest.Azure; + using Models; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; using Microsoft.Azure.KeyVault.WebKey; /// @@ -24,31 +24,35 @@ namespace Microsoft.Azure.KeyVault public static partial class KeyVaultClientExtensions { /// - /// Creates a new, named, key in the specified vault. + /// Creates a new key, stores it, then returns key parameters and attributes to + /// the client. The create key operation can be used to create any key type in + /// Azure Key Vault. If the named key already exists, Azure Key Vault creates a + /// new version of the key. Authorization: Requires the keys/create permission. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name for the new key. The system will generate the version name for the + /// new key. /// /// - /// The type of key to create. Valid key types, see JsonWebKeyType. Supported - /// JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. Possible - /// values include: 'EC', 'RSA', 'RSA-HSM', 'oct' + /// The type of key to create. For valid key types, see JsonWebKeyType. + /// Supported JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. + /// Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct' /// /// - /// The key size in bytes. e.g. 1024 or 2048. + /// The key size in bytes. For example, 1024 or 2048. /// /// /// /// /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -62,28 +66,32 @@ public static partial class KeyVaultClientExtensions } /// - /// Imports a key into the specified vault + /// Imports an externally created key, stores it, and returns key parameters + /// and attributes to the client. The import key operation may be used to + /// import any key type into an Azure Key Vault. If the named key already + /// exists, Azure Key Vault creates a new version of the key. Authorization: + /// requires the keys/import permission. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// Name for the imported key. /// /// /// The Json web key /// /// - /// Whether to import as a hardware key (HSM) or software key + /// Whether to import as a hardware key (HSM) or software key. /// /// - /// The key management attributes + /// The key management attributes. /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -97,16 +105,20 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes the specified key + /// Deletes a key of any type from storage in Azure Key Vault. The delete key + /// operation cannot be used to remove individual versions of a key. This + /// operation removes the cryptographic material associated with the key, which + /// means the key is not usable for Sign/Verify, Wrap/Unwrap or Encrypt/Decrypt + /// operations. Authorization: Requires the keys/delete permission. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key to delete. /// /// /// The cancellation token. @@ -120,19 +132,23 @@ public static partial class KeyVaultClientExtensions } /// - /// Updates the Key Attributes associated with the specified key + /// The update key operation changes specified attributes of a stored key and + /// can be applied to any key type and key version stored in Azure Key Vault. + /// The cryptographic material of a key itself cannot be changed. In order to + /// perform this operation, the key must already exist in the Key Vault. + /// Authorization: requires the keys/update permission. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of key to update. /// /// - /// The version of the key + /// The version of the key to update. /// /// /// Json web key operations. For more information on possible key operations, @@ -141,7 +157,7 @@ public static partial class KeyVaultClientExtensions /// /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -155,19 +171,22 @@ public static partial class KeyVaultClientExtensions } /// - /// Retrieves the public portion of a key plus its attributes + /// Gets the public part of a stored key. The get key operation is applicable + /// to all key types. If the requested key is symmetric, then no key material + /// is released in the response. Authorization: Requires the keys/get + /// permission. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key to get. /// /// - /// The version of the key + /// Adding the version parameter retrieves a specific version of a key. /// /// /// The cancellation token. @@ -181,20 +200,22 @@ public static partial class KeyVaultClientExtensions } /// - /// List the versions of the specified key + /// Retrieves a list of individual key versions with the same key name. The + /// full key identifier, attributes, and tags are provided in the response. + /// Authorization: Requires the keys/list permission. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -208,17 +229,17 @@ public static partial class KeyVaultClientExtensions } /// - /// List keys in the specified vault + /// List keys in the specified vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -238,10 +259,10 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// /// The cancellation token. @@ -255,16 +276,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Restores the backup key in to a vault + /// Restores a backed up key to a vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// the backup blob associated with a key bundle + /// The backup blob associated with a key bundle. /// /// /// The cancellation token. @@ -279,19 +300,19 @@ public static partial class KeyVaultClientExtensions /// /// Encrypts an arbitrary sequence of bytes using an encryption key that is - /// stored in Azure Key Vault. + /// stored in a key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -310,19 +331,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Decrypts a single block of encrypted data + /// Decrypts a single block of encrypted data. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -341,24 +362,24 @@ public static partial class KeyVaultClientExtensions } /// - /// Creates a signature from a digest using the specified key in the vault + /// Creates a signature from a digest using the specified key. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// The signing/verification algorithm identifier. For more information on - /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible - /// values include: 'RS256', 'RS384', 'RS512', 'RSNULL' + /// possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible values + /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// /// @@ -374,30 +395,30 @@ public static partial class KeyVaultClientExtensions } /// - /// Verifies a signature using the specified key + /// Verifies a signature using a specified key. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// The signing/verification algorithm. For more information on possible - /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values - /// include: 'RS256', 'RS384', 'RS512', 'RSNULL' + /// algorithm types, see JsonWebKeySignatureAlgorithm. Possible values include: + /// 'RS256', 'RS384', 'RS512', 'RSNULL' /// /// - /// The digest used for signing + /// The digest used for signing. /// /// - /// The signature to be verified + /// The signature to be verified. /// /// /// The cancellation token. @@ -411,19 +432,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Wraps a symmetric key using the specified key + /// Wraps a symmetric key using a specified key. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -442,20 +463,20 @@ public static partial class KeyVaultClientExtensions } /// - /// Unwraps a symmetric key using the specified key in the vault that has - /// initially been used for wrapping the key. + /// Unwraps a symmetric key using the specified key that was initially used for + /// wrapping that key. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the key + /// The name of the key. /// /// - /// The version of the key + /// The version of the key. /// /// /// algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' @@ -480,11 +501,11 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -504,7 +525,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the key @@ -521,13 +542,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes the specified key forever. aka purges the key. + /// Permanently deletes the specified key. aka purges the key. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the key @@ -547,7 +568,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the deleted key @@ -564,28 +585,28 @@ public static partial class KeyVaultClientExtensions } /// - /// Sets a secret in the specified vault. + /// Sets a secret in a specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// The value of the secret + /// The value of the secret. /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// - /// Type of the secret value such as a password + /// Type of the secret value such as a password. /// /// - /// The secret management attributes + /// The secret management attributes. /// /// /// The cancellation token. @@ -599,16 +620,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes a secret from the specified vault. + /// Deletes a secret from a specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// /// The cancellation token. @@ -622,28 +643,29 @@ public static partial class KeyVaultClientExtensions } /// - /// Updates the attributes associated with the specified secret + /// Updates the attributes associated with a specified secret in a given key + /// vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// The version of the secret + /// The version of the secret. /// /// - /// Type of the secret value such as a password + /// Type of the secret value such as a password. /// /// - /// The secret management attributes + /// The secret management attributes. /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -657,19 +679,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets a secret. + /// Get a specified secret from a given key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// The version of the secret + /// The version of the secret. /// /// /// The cancellation token. @@ -683,17 +705,17 @@ public static partial class KeyVaultClientExtensions } /// - /// List secrets in the specified vault + /// List secrets in a specified key vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -707,20 +729,20 @@ public static partial class KeyVaultClientExtensions } /// - /// List the versions of the specified secret + /// List the versions of the specified secret. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the secret in the given vault + /// The name of the secret. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -740,11 +762,11 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -764,7 +786,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the secret @@ -781,13 +803,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes the specified secret forever. aka purges the secret. + /// Permanently deletes the specified secret. aka purges the secret. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the secret @@ -807,7 +829,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the deleted secret @@ -824,17 +846,17 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificates in the specified vault + /// List certificates in a specified key vault /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -848,16 +870,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes a certificate from the specified vault. + /// Deletes a certificate from a specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault + /// The name of the certificate. /// /// /// The cancellation token. @@ -871,16 +893,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Sets the certificate contacts for the specified vault. + /// Sets the certificate contacts for the specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The contacts for the vault certificates. + /// The contacts for the key vault certificate. /// /// /// The cancellation token. @@ -894,13 +916,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets the certificate contacts for the specified vault. + /// Lists the certificate contacts for a specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The cancellation token. @@ -914,13 +936,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes the certificate contacts for the specified vault. + /// Deletes the certificate contacts for a specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The cancellation token. @@ -934,17 +956,17 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificate issuers for the specified vault. + /// List certificate issuers for a specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -964,7 +986,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -999,7 +1021,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -1028,13 +1050,13 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets the specified certificate issuer. + /// Lists the specified certificate issuer. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -1057,7 +1079,7 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the issuer. @@ -1074,26 +1096,26 @@ public static partial class KeyVaultClientExtensions } /// - /// Creates a new certificate version. If this is the first version, the - /// certificate resource is created. + /// Creates a new certificate. If this is the first version, the certificate + /// resource is created. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// - /// The management policy for the certificate + /// The management policy for the certificate. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -1107,16 +1129,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Imports a certificate into the specified vault + /// Imports a certificate into a specified key vault. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// Base64 encoded representation of the certificate object to import. This @@ -1124,16 +1146,16 @@ public static partial class KeyVaultClientExtensions /// /// /// If the private key in base64EncodedCertificate is encrypted, the password - /// used for encryption + /// used for encryption. /// /// - /// The management policy for the certificate + /// The management policy for the certificate. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -1153,14 +1175,14 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// - /// Maximum number of results to return in a page. If not specified the - /// service will return up to 25 results. + /// Maximum number of results to return in a page. If not specified the service + /// will return up to 25 results. /// /// /// The cancellation token. @@ -1174,16 +1196,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets the policy for a certificate. + /// Lists the policy for a certificate. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault. + /// The name of the certificate in a given key vault. /// /// /// The cancellation token. @@ -1197,14 +1219,14 @@ public static partial class KeyVaultClientExtensions } /// - /// Updates the policy for a certificate. Set appropriate members in the - /// certificatePolicy that must be updated. Leave others as null. + /// Updates the policy for a certificate. Set specified members in the + /// certificate policy. Leave others as null. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// /// The name of the certificate in the given vault. @@ -1224,28 +1246,28 @@ public static partial class KeyVaultClientExtensions } /// - /// Updates the attributes associated with the specified certificate + /// Updates the specified attributes associated with the given certificate. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault + /// The name of the certificate in the given key vault. /// /// - /// The version of the certificate + /// The version of the certificate. /// /// - /// The management policy for the certificate + /// The management policy for the certificate. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -1259,19 +1281,19 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets a Certificate. + /// Gets information about a specified certificate. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate in the given vault + /// The name of the certificate in the given vault. /// /// - /// The version of the certificate + /// The version of the certificate. /// /// /// The cancellation token. @@ -1291,10 +1313,10 @@ public static partial class KeyVaultClientExtensions /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// Indicates if cancellation was requested on the certificate operation. @@ -1311,16 +1333,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Gets the certificate operation response. + /// Gets the operation associated with a specified certificate. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// The cancellation token. @@ -1334,16 +1356,16 @@ public static partial class KeyVaultClientExtensions } /// - /// Deletes the certificate operation. + /// Deletes the operation for a specified certificate. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// /// The cancellation token. @@ -1357,26 +1379,26 @@ public static partial class KeyVaultClientExtensions } /// - /// Merges a certificate or a certificate chain with a key pair existing on - /// the server. + /// Merges a certificate or a certificate chain with a key pair existing on the + /// server. /// /// /// The operations group for this extension method. /// /// - /// The vault name, e.g. https://myvault.vault.azure.net + /// The vault name, for example https://myvault.vault.azure.net. /// /// - /// The name of the certificate + /// The name of the certificate. /// /// - /// The certificate or the certificate chain to merge + /// The certificate or the certificate chain to merge. /// /// - /// The attributes of the certificate (optional) + /// The attributes of the certificate (optional). /// /// - /// Application-specific metadata in the form of key-value pairs + /// Application specific metadata in the form of key-value pairs. /// /// /// The cancellation token. @@ -1390,7 +1412,9 @@ public static partial class KeyVaultClientExtensions } /// - /// List the versions of the specified key + /// Retrieves a list of individual key versions with the same key name. The + /// full key identifier, attributes, and tags are provided in the response. + /// Authorization: Requires the keys/list permission. /// /// /// The operations group for this extension method. @@ -1410,7 +1434,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List keys in the specified vault + /// List keys in the specified vault. /// /// /// The operations group for this extension method. @@ -1450,7 +1474,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List secrets in the specified vault + /// List secrets in a specified key vault /// /// /// The operations group for this extension method. @@ -1470,7 +1494,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List the versions of the specified secret + /// List the versions of the specified secret. /// /// /// The operations group for this extension method. @@ -1510,7 +1534,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificates in the specified vault + /// List certificates in a specified key vault /// /// /// The operations group for this extension method. @@ -1530,7 +1554,7 @@ public static partial class KeyVaultClientExtensions } /// - /// List certificate issuers for the specified vault. + /// List certificate issuers for a specified key vault. /// /// /// The operations group for this extension method. @@ -1571,3 +1595,4 @@ public static partial class KeyVaultClientExtensions } } + diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs index c7f371c398c7..559858b78016 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyBundle.cs @@ -1,21 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault.Models { - using System; - using System.Linq; - using System.Collections.Generic; + using Azure; + using KeyVault; + using Rest; + using Rest.Serialization; using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; using Microsoft.Azure.KeyVault.WebKey; + using System.Collections; + using System.Collections.Generic; + using System.Linq; /// /// A DeletedKeyBundle consisting of a WebKey plus its Attributes and @@ -31,20 +32,20 @@ public DeletedKeyBundle() { } /// /// Initializes a new instance of the DeletedKeyBundle class. /// - /// The Json web key - /// The key management attributes - /// Application-specific metadata in the form of - /// key-value pairs + /// The Json web key. + /// The key management attributes. + /// Application specific metadata in the form of + /// key-value pairs. /// True if the key's lifetime is managed by key - /// vault i.e. if this is a key backing a certificate, then managed - /// will be true. + /// vault. If this is a key backing a certificate, then managed will be + /// true. /// The url of the recovery object, used to /// identify and recover the deleted key. - /// The time when the key is - /// scheduled to be purged, in UTC + /// The time when the key is scheduled + /// to be purged, in UTC /// The time when the key was deleted, in /// UTC - public DeletedKeyBundle(JsonWebKey key = default(JsonWebKey), KeyAttributes attributes = default(KeyAttributes), IDictionary tags = default(IDictionary), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + public DeletedKeyBundle(JsonWebKey key = default(JsonWebKey), KeyAttributes attributes = default(KeyAttributes), IDictionary tags = default(IDictionary), bool? managed = default(bool?), string recoveryId = default(string), System.DateTime? scheduledPurgeDate = default(System.DateTime?), System.DateTime? deletedDate = default(System.DateTime?)) : base(key, attributes, tags, managed) { RecoveryId = recoveryId; @@ -64,14 +65,15 @@ public DeletedKeyBundle() { } /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "scheduledPurgeDate")] - public DateTime? ScheduledPurgeDate { get; private set; } + public System.DateTime? ScheduledPurgeDate { get; protected set; } /// /// Gets the time when the key was deleted, in UTC /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "deletedDate")] - public DateTime? DeletedDate { get; private set; } + public System.DateTime? DeletedDate { get; protected set; } } } + diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs index ec4da7796e64..58c21f7cc65c 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedKeyItem.cs @@ -1,20 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault.Models { - using System; - using System.Linq; - using System.Collections.Generic; + using Azure; + using KeyVault; + using Rest; + using Rest.Serialization; using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; + using System.Collections; + using System.Collections.Generic; + using System.Linq; /// /// The deleted key item containing the deleted key metadata and @@ -30,20 +31,20 @@ public DeletedKeyItem() { } /// /// Initializes a new instance of the DeletedKeyItem class. /// - /// Key Identifier - /// The key management attributes - /// Application-specific metadata in the form of - /// key-value pairs + /// Key identifier. + /// The key management attributes. + /// Application specific metadata in the form of + /// key-value pairs. /// True if the key's lifetime is managed by key - /// vault i.e. if this is a key backing a certificate, then managed - /// will be true. + /// vault. If this is a key backing a certificate, then managed will be + /// true. /// The url of the recovery object, used to /// identify and recover the deleted key. - /// The time when the key is - /// scheduled to be purged, in UTC + /// The time when the key is scheduled + /// to be purged, in UTC /// The time when the key was deleted, in /// UTC - public DeletedKeyItem(string kid = default(string), KeyAttributes attributes = default(KeyAttributes), IDictionary tags = default(IDictionary), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + public DeletedKeyItem(string kid = default(string), KeyAttributes attributes = default(KeyAttributes), IDictionary tags = default(IDictionary), bool? managed = default(bool?), string recoveryId = default(string), System.DateTime? scheduledPurgeDate = default(System.DateTime?), System.DateTime? deletedDate = default(System.DateTime?)) : base(kid, attributes, tags, managed) { RecoveryId = recoveryId; @@ -63,14 +64,15 @@ public DeletedKeyItem() { } /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "scheduledPurgeDate")] - public DateTime? ScheduledPurgeDate { get; private set; } + public System.DateTime? ScheduledPurgeDate { get; protected set; } /// /// Gets the time when the key was deleted, in UTC /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "deletedDate")] - public DateTime? DeletedDate { get; private set; } + public System.DateTime? DeletedDate { get; protected set; } } } + diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs index d1cc624be869..117fa9f285df 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretBundle.cs @@ -1,20 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault.Models { - using System; - using System.Linq; - using System.Collections.Generic; + using Azure; + using KeyVault; + using Rest; + using Rest.Serialization; using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; + using System.Collections; + using System.Collections.Generic; + using System.Linq; /// /// A Deleted Secret consisting of its previous id, attributes and its @@ -30,25 +31,25 @@ public DeletedSecretBundle() { } /// /// Initializes a new instance of the DeletedSecretBundle class. /// - /// The secret value - /// The secret id - /// The content type of the secret - /// The secret management attributes - /// Application-specific metadata in the form of - /// key-value pairs + /// The secret value. + /// The secret id. + /// The content type of the secret. + /// The secret management attributes. + /// Application specific metadata in the form of + /// key-value pairs. /// If this is a secret backing a KV certificate, /// then this field specifies the corresponding key backing the KV /// certificate. /// True if the secret's lifetime is managed by - /// key vault i.e. if this is a secret backing a certificate, then - /// managed will be true. + /// key vault. If this is a secret backing a certificate, then managed + /// will be true. /// The url of the recovery object, used to /// identify and recover the deleted secret. /// The time when the secret is /// scheduled to be purged, in UTC /// The time when the secret was deleted, in /// UTC - public DeletedSecretBundle(string value = default(string), string id = default(string), string contentType = default(string), SecretAttributes attributes = default(SecretAttributes), IDictionary tags = default(IDictionary), string kid = default(string), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + public DeletedSecretBundle(string value = default(string), string id = default(string), string contentType = default(string), SecretAttributes attributes = default(SecretAttributes), IDictionary tags = default(IDictionary), string kid = default(string), bool? managed = default(bool?), string recoveryId = default(string), System.DateTime? scheduledPurgeDate = default(System.DateTime?), System.DateTime? deletedDate = default(System.DateTime?)) : base(value, id, contentType, attributes, tags, kid, managed) { RecoveryId = recoveryId; @@ -68,14 +69,15 @@ public DeletedSecretBundle() { } /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "scheduledPurgeDate")] - public DateTime? ScheduledPurgeDate { get; private set; } + public System.DateTime? ScheduledPurgeDate { get; protected set; } /// /// Gets the time when the secret was deleted, in UTC /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "deletedDate")] - public DateTime? DeletedDate { get; private set; } + public System.DateTime? DeletedDate { get; protected set; } } } + diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs index b13100e56c4b..fb47c9f23c8a 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/DeletedSecretItem.cs @@ -1,20 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault.Models { - using System; - using System.Linq; - using System.Collections.Generic; + using Azure; + using KeyVault; + using Rest; + using Rest.Serialization; using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; + using System.Collections; + using System.Collections.Generic; + using System.Linq; /// /// The deleted secret item containing metadata about the deleted secret. @@ -29,22 +30,22 @@ public DeletedSecretItem() { } /// /// Initializes a new instance of the DeletedSecretItem class. /// - /// Secret Identifier - /// The secret management attributes - /// Application-specific metadata in the form of - /// key-value pairs + /// Secret identifier. + /// The secret management attributes. + /// Application specific metadata in the form of + /// key-value pairs. /// Type of the secret value such as a - /// password + /// password. /// True if the secret's lifetime is managed by - /// key vault i.e. if this is a secret backing a certificate, then - /// managed will be true. + /// key vault. If this is a key backing a certificate, then managed + /// will be true. /// The url of the recovery object, used to /// identify and recover the deleted secret. /// The time when the secret is /// scheduled to be purged, in UTC /// The time when the secret was deleted, in /// UTC - public DeletedSecretItem(string id = default(string), SecretAttributes attributes = default(SecretAttributes), IDictionary tags = default(IDictionary), string contentType = default(string), bool? managed = default(bool?), string recoveryId = default(string), DateTime? scheduledPurgeDate = default(DateTime?), DateTime? deletedDate = default(DateTime?)) + public DeletedSecretItem(string id = default(string), SecretAttributes attributes = default(SecretAttributes), IDictionary tags = default(IDictionary), string contentType = default(string), bool? managed = default(bool?), string recoveryId = default(string), System.DateTime? scheduledPurgeDate = default(System.DateTime?), System.DateTime? deletedDate = default(System.DateTime?)) : base(id, attributes, tags, contentType, managed) { RecoveryId = recoveryId; @@ -64,14 +65,15 @@ public DeletedSecretItem() { } /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "scheduledPurgeDate")] - public DateTime? ScheduledPurgeDate { get; private set; } + public System.DateTime? ScheduledPurgeDate { get; protected set; } /// /// Gets the time when the secret was deleted, in UTC /// [JsonConverter(typeof(UnixTimeJsonConverter))] [JsonProperty(PropertyName = "deletedDate")] - public DateTime? DeletedDate { get; private set; } + public System.DateTime? DeletedDate { get; protected set; } } } + diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs index e9150cd22328..dd9fd2a76c18 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Generated/Models/KeyAttributes.cs @@ -1,23 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.KeyVault.Models { - using System; - using System.Linq; - using System.Collections.Generic; + using Azure; + using KeyVault; using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; + using System.Linq; /// - /// The attributes of a key managed by the KeyVault service + /// The attributes of a key managed by the key vault service. /// public partial class KeyAttributes : Attributes { @@ -52,3 +49,4 @@ public KeyAttributes() { } } } + diff --git a/src/KeyVault/Microsoft.Azure.KeyVault/Properties/AssemblyInfo.cs b/src/KeyVault/Microsoft.Azure.KeyVault/Properties/AssemblyInfo.cs index 92a1687bca2e..2ddd42bc4682 100644 --- a/src/KeyVault/Microsoft.Azure.KeyVault/Properties/AssemblyInfo.cs +++ b/src/KeyVault/Microsoft.Azure.KeyVault/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyDescription("Azure Key Vault enables users to store and use cryptographic keys within the Microsoft Azure environment. Azure Key Vault supports multiple key types and algorithms and enables the use of Hardware Security Modules (HSM) for high value customer keys. In addition, Azure Key Vault allows users to securely store secrets in a Key Vault; secrets are limited size octet objects and Azure Key Vault applies no specific semantics to these objects. A Key Vault may contain a mix of keys and secrets at the same time, and access control for the two types of object is independently controlled. Users, subject to appropriate authorization, may: 1) Manage cryptographic keys using Create, Import, Update, Delete and other operations 2) Manage secrets using Get, Set, Delete and other operations 3) Use cryptographic keys with Sign/Verify, WrapKey/UnwrapKey and Encrypt/Decrypt operations. Operations against Key Vaults are authenticated and authorized using Azure Active Directory.")] [assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.0.6.0")] +[assembly: AssemblyFileVersion("2.1.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] diff --git a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json index 93e4cfba9b97..0051e9c0df7e 100644 --- a/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json +++ b/src/ResourceManagement/KeyVaultManagement/KeyVaultManagement.Tests/project.json @@ -18,8 +18,8 @@ "dependencies": { "Microsoft.Azure.Test.HttpRecorder": "[1.6.7-preview,2.0.0)", "Microsoft.Rest.ClientRuntime.Azure.TestFramework": "[1.5.1-preview,2.0.0)", - "Microsoft.Rest.ClientRuntime.Azure": "[3.3.1,4.0.0)", - "Microsoft.Azure.Management.KeyVault": "2.0.2-preview", + "Microsoft.Rest.ClientRuntime.Azure": "[3.3.5,4.0.0)", + "Microsoft.Azure.Management.KeyVault": "2.1.0-preview", "Microsoft.Azure.Management.ResourceManager": "1.1.3-preview", "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029",