From d8f2a223036bf569d767d5fd51b9c72318c57de4 Mon Sep 17 00:00:00 2001 From: Sameeksha Vaity Date: Thu, 1 Jun 2023 16:28:17 -0700 Subject: [PATCH] [Keyvault - administration] Migrate recordings to asset repo (#35249) * migrate recordings, intial push * update * Update CHANGELOG.md --------- Co-authored-by: vcolin7 --- .../CHANGELOG.md | 3 +- .../assets.json | 6 + .../pom.xml | 4 +- ...createExistingRoleAssignmentThrows[1].json | 153 ---- ...yncClientTest.createRoleAssignment[1].json | 118 --- ...ExistingRoleAssignmentDoesNotThrow[1].json | 60 -- ...ExistingRoleDefinitionDoesNotThrow[1].json | 60 -- ...yncClientTest.deleteRoleAssignment[1].json | 153 ---- ...yncClientTest.deleteRoleDefinition[1].json | 115 --- ...lAsyncClientTest.getRoleAssignment[1].json | 154 ---- ...lAsyncClientTest.getRoleDefinition[1].json | 116 --- ...syncClientTest.listRoleAssignments[1].json | 100 --- ...syncClientTest.listRoleDefinitions[1].json | 299 ------- ...lAsyncClientTest.setRoleDefinition[1].json | 76 -- ...createExistingRoleAssignmentThrows[1].json | 153 ---- ...rolClientTest.createRoleAssignment[1].json | 118 --- ...ExistingRoleAssignmentDoesNotThrow[1].json | 60 -- ...ExistingRoleDefinitionDoesNotThrow[1].json | 60 -- ...rolClientTest.deleteRoleAssignment[1].json | 153 ---- ...rolClientTest.deleteRoleDefinition[1].json | 115 --- ...ontrolClientTest.getRoleAssignment[1].json | 154 ---- ...ontrolClientTest.getRoleDefinition[1].json | 116 --- ...trolClientTest.listRoleAssignments[1].json | 170 ---- ...trolClientTest.listRoleDefinitions[1].json | 624 --------------- ...ontrolClientTest.setRoleDefinition[1].json | 76 -- ...tBackupAsyncClientTest.beginBackup[1].json | 339 -------- ...BackupAsyncClientTest.beginRestore[1].json | 754 ------------------ ...lientTest.beginSelectiveKeyRestore[1].json | 594 -------------- ...yVaultBackupClientTest.beginBackup[1].json | 339 -------- ...VaultBackupClientTest.beginRestore[1].json | 529 ------------ ...lientTest.beginSelectiveKeyRestore[1].json | 592 -------------- ...SettingsAsyncClientTest.getSetting[1].json | 61 -- ...ettingsAsyncClientTest.getSettings[1].json | 65 -- ...tingsAsyncClientTest.updateSetting[1].json | 127 --- ...VaultSettingsClientTest.getSetting[1].json | 61 -- ...aultSettingsClientTest.getSettings[1].json | 65 -- ...ltSettingsClientTest.updateSetting[1].json | 127 --- 37 files changed, 9 insertions(+), 6860 deletions(-) create mode 100644 sdk/keyvault/azure-security-keyvault-administration/assets.json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createExistingRoleAssignmentThrows[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createRoleAssignment[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleAssignment[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleDefinition[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleAssignment[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleDefinition[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleAssignments[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleDefinitions[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.setRoleDefinition[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createExistingRoleAssignmentThrows[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createRoleAssignment[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleAssignment[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleDefinition[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleAssignment[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleDefinition[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleAssignments[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleDefinitions[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.setRoleDefinition[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginBackup[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginRestore[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginSelectiveKeyRestore[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginBackup[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginRestore[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginSelectiveKeyRestore[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSetting[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSettings[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.updateSetting[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSetting[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSettings[1].json delete mode 100644 sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.updateSetting[1].json diff --git a/sdk/keyvault/azure-security-keyvault-administration/CHANGELOG.md b/sdk/keyvault/azure-security-keyvault-administration/CHANGELOG.md index a6a34755bb0fb..24d2644e673a1 100644 --- a/sdk/keyvault/azure-security-keyvault-administration/CHANGELOG.md +++ b/sdk/keyvault/azure-security-keyvault-administration/CHANGELOG.md @@ -9,11 +9,10 @@ ### Bugs Fixed ### Other Changes +- Migrate test recordings to assets repo. ## 4.3.2 (2023-05-23) -### Other Changes - #### Dependency Updates - Upgraded `azure-core-http-netty` from `1.13.2` to version `1.13.3`. diff --git a/sdk/keyvault/azure-security-keyvault-administration/assets.json b/sdk/keyvault/azure-security-keyvault-administration/assets.json new file mode 100644 index 0000000000000..38eef42d76431 --- /dev/null +++ b/sdk/keyvault/azure-security-keyvault-administration/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "java", + "TagPrefix": "java/keyvault/azure-security-keyvault-administration", + "Tag": "java/keyvault/azure-security-keyvault-administration_e6a49ade8c" +} diff --git a/sdk/keyvault/azure-security-keyvault-administration/pom.xml b/sdk/keyvault/azure-security-keyvault-administration/pom.xml index 3874329619518..7eb04d89b49b9 100644 --- a/sdk/keyvault/azure-security-keyvault-administration/pom.xml +++ b/sdk/keyvault/azure-security-keyvault-administration/pom.xml @@ -48,7 +48,7 @@ com.azure azure-core - 1.39.0 + 1.40.0-beta.1 com.azure @@ -94,7 +94,7 @@ com.azure azure-core-test - 1.17.0 + 1.18.0-beta.1 test diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createExistingRoleAssignmentThrows[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createExistingRoleAssignmentThrows[1].json deleted file mode 100644 index 40ce57cad26b2..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createExistingRoleAssignmentThrows[1].json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/da9d9b4f-9248-4458-b103-45238f1c1ae5?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "31fcf1f6-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/da9d9b4f-9248-4458-b103-45238f1c1ae5?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "da9d9b4f-9248-4458-b103-45238f1c1ae5" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "321434c4-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "39" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/da9d9b4f-9248-4458-b103-45238f1c1ae5", - "name": "da9d9b4f-9248-4458-b103-45238f1c1ae5", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "da9d9b4f-9248-4458-b103-45238f1c1ae5", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/5d0e3e66-bac8-484e-9221-8045540c9093?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/da9d9b4f-9248-4458-b103-45238f1c1ae5", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "35223daa-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "36" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/5d0e3e66-bac8-484e-9221-8045540c9093", - "name": "5d0e3e66-bac8-484e-9221-8045540c9093", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/da9d9b4f-9248-4458-b103-45238f1c1ae5", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/5d0e3e66-bac8-484e-9221-8045540c9093?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/da9d9b4f-9248-4458-b103-45238f1c1ae5", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "141", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "382e26e4-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "2" - }, - "ResponseBody": { - "error": { - "code": "RoleAssignmentExists", - "message": "The role assignment already exists. (Activity ID: 382e26e4-d8df-11ed-9bda-0022488d0014)" - } - } - } - ], - "Variables": { - "0": "da9d9b4f-9248-4458-b103-45238f1c1ae5", - "1": "5d0e3e66-bac8-484e-9221-8045540c9093" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createRoleAssignment[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createRoleAssignment[1].json deleted file mode 100644 index a7fcb6dae277b..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.createRoleAssignment[1].json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/5ceea5a4-a02b-449f-84b3-3242e1e05927?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "38b499c2-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/5ceea5a4-a02b-449f-84b3-3242e1e05927?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "5ceea5a4-a02b-449f-84b3-3242e1e05927" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "38df52ca-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "35" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5ceea5a4-a02b-449f-84b3-3242e1e05927", - "name": "5ceea5a4-a02b-449f-84b3-3242e1e05927", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "5ceea5a4-a02b-449f-84b3-3242e1e05927", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/1c43ec80-6288-4a2f-bcaf-f860da5dd7d3?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5ceea5a4-a02b-449f-84b3-3242e1e05927", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "3becadf0-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "52" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/1c43ec80-6288-4a2f-bcaf-f860da5dd7d3", - "name": "1c43ec80-6288-4a2f-bcaf-f860da5dd7d3", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5ceea5a4-a02b-449f-84b3-3242e1e05927", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - } - ], - "Variables": { - "0": "5ceea5a4-a02b-449f-84b3-3242e1e05927", - "1": "1c43ec80-6288-4a2f-bcaf-f860da5dd7d3" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json deleted file mode 100644 index 28bc4cef7c697..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/3c7ad3a4-6b16-4798-914a-1a98e5d1930a?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "278099e4-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/3c7ad3a4-6b16-4798-914a-1a98e5d1930a?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "143", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "279aace4-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "error": { - "code": "RoleAssignmentNotFound", - "message": "Requested role assignment not found (Activity ID: 279aace4-d8df-11ed-9bda-0022488d0014)" - } - } - } - ], - "Variables": { - "0": "3c7ad3a4-6b16-4798-914a-1a98e5d1930a" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json deleted file mode 100644 index 72199df5dfbdb..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/ca345a1b-89d2-4f30-a9ec-3888d0707bb7?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "1fb9a822-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/ca345a1b-89d2-4f30-a9ec-3888d0707bb7?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "143", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "1fe7e9b2-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "error": { - "code": "RoleDefinitionNotFound", - "message": "Requested role definition not found (Activity ID: 1fe7e9b2-d8df-11ed-9bda-0022488d0014)" - } - } - } - ], - "Variables": { - "0": "ca345a1b-89d2-4f30-a9ec-3888d0707bb7" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleAssignment[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleAssignment[1].json deleted file mode 100644 index 2e7312a0e9807..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleAssignment[1].json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/cae7afb5-e456-47e6-aee2-384da674cc7c?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "3f410f96-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/cae7afb5-e456-47e6-aee2-384da674cc7c?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "cae7afb5-e456-47e6-aee2-384da674cc7c" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "3f5a79b8-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "44" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/cae7afb5-e456-47e6-aee2-384da674cc7c", - "name": "cae7afb5-e456-47e6-aee2-384da674cc7c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "cae7afb5-e456-47e6-aee2-384da674cc7c", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/6d781287-2716-4cc5-8a0f-de6bf0338178?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/cae7afb5-e456-47e6-aee2-384da674cc7c", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "42680d00-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "38" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/6d781287-2716-4cc5-8a0f-de6bf0338178", - "name": "6d781287-2716-4cc5-8a0f-de6bf0338178", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/cae7afb5-e456-47e6-aee2-384da674cc7c", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/6d781287-2716-4cc5-8a0f-de6bf0338178?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "45742448-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "79" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/6d781287-2716-4cc5-8a0f-de6bf0338178", - "name": "6d781287-2716-4cc5-8a0f-de6bf0338178", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/cae7afb5-e456-47e6-aee2-384da674cc7c", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - } - ], - "Variables": { - "0": "cae7afb5-e456-47e6-aee2-384da674cc7c", - "1": "6d781287-2716-4cc5-8a0f-de6bf0338178" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleDefinition[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleDefinition[1].json deleted file mode 100644 index 3e195fdedaec1..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.deleteRoleDefinition[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/e76d73b6-18da-48a3-8ebc-1f646cd8bf69?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "2b4a7bbc-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/e76d73b6-18da-48a3-8ebc-1f646cd8bf69?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "e76d73b6-18da-48a3-8ebc-1f646cd8bf69" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "2b6b3a78-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "41" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/e76d73b6-18da-48a3-8ebc-1f646cd8bf69", - "name": "e76d73b6-18da-48a3-8ebc-1f646cd8bf69", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "e76d73b6-18da-48a3-8ebc-1f646cd8bf69", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/e76d73b6-18da-48a3-8ebc-1f646cd8bf69?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "2e7710b6-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "39" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/e76d73b6-18da-48a3-8ebc-1f646cd8bf69", - "name": "e76d73b6-18da-48a3-8ebc-1f646cd8bf69", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "e76d73b6-18da-48a3-8ebc-1f646cd8bf69", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - } - ], - "Variables": { - "0": "e76d73b6-18da-48a3-8ebc-1f646cd8bf69" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleAssignment[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleAssignment[1].json deleted file mode 100644 index 81bddfc06e405..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleAssignment[1].json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/eae47faa-356b-4856-a390-9134685ab49c?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "200e6cfe-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/eae47faa-356b-4856-a390-9134685ab49c?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "eae47faa-356b-4856-a390-9134685ab49c" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "202b64a8-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "80" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/eae47faa-356b-4856-a390-9134685ab49c", - "name": "eae47faa-356b-4856-a390-9134685ab49c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "eae47faa-356b-4856-a390-9134685ab49c", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/d263f753-38c0-49b7-814c-be8814af800f?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/eae47faa-356b-4856-a390-9134685ab49c", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "234580b0-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "42" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/d263f753-38c0-49b7-814c-be8814af800f", - "name": "d263f753-38c0-49b7-814c-be8814af800f", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/eae47faa-356b-4856-a390-9134685ab49c", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/d263f753-38c0-49b7-814c-be8814af800f?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "2654f420-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/d263f753-38c0-49b7-814c-be8814af800f", - "name": "d263f753-38c0-49b7-814c-be8814af800f", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/eae47faa-356b-4856-a390-9134685ab49c", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - } - ], - "Variables": { - "0": "eae47faa-356b-4856-a390-9134685ab49c", - "1": "d263f753-38c0-49b7-814c-be8814af800f" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleDefinition[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleDefinition[1].json deleted file mode 100644 index 66a7b73707275..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.getRoleDefinition[1].json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/b4778775-edb1-4208-b717-d16e925a1077?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "2e8d5e5c-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/b4778775-edb1-4208-b717-d16e925a1077?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "b4778775-edb1-4208-b717-d16e925a1077" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "2eb2c6f6-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "38" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/b4778775-edb1-4208-b717-d16e925a1077", - "name": "b4778775-edb1-4208-b717-d16e925a1077", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "b4778775-edb1-4208-b717-d16e925a1077", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/b4778775-edb1-4208-b717-d16e925a1077?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "31bfcf38-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/b4778775-edb1-4208-b717-d16e925a1077", - "name": "b4778775-edb1-4208-b717-d16e925a1077", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "b4778775-edb1-4208-b717-d16e925a1077", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - } - ], - "Variables": { - "0": "b4778775-edb1-4208-b717-d16e925a1077" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleAssignments[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleAssignments[1].json deleted file mode 100644 index 224525e2dfccf..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleAssignments[1].json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "2b118c6c-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1607", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "2b384c80-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "value": [ - { - "id": "/providers/Microsoft.Authorization/roleAssignments/e0c78b90-ecb6-0a6e-99ca-4778e5cad0aa", - "name": "e0c78b90-ecb6-0a6e-99ca-4778e5cad0aa", - "properties": { - "principalId": "f84ae8f9-c979-4750-a2fe-b350a00bebff", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/6d82eec1-bfa7-4958-90e2-da219874938e", - "name": "6d82eec1-bfa7-4958-90e2-da219874938e", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/fea49c00-4aad-0c85-1e5c-be79d2e63f67", - "name": "fea49c00-4aad-0c85-1e5c-be79d2e63f67", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/03041c0b-b225-4ea7-8f34-3153b8dd188d", - "name": "03041c0b-b225-4ea7-8f34-3153b8dd188d", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleDefinitions[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleDefinitions[1].json deleted file mode 100644 index 29f5a7e1f307d..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.listRoleDefinitions[1].json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "388a974e-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "6857", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "38a1ea02-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "value": [ - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", - "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/backup/start/action", - "Microsoft.KeyVault/managedHsm/backup/status/action", - "Microsoft.KeyVault/managedHsm/keys/backup/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Backup User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", - "name": "33413926-3206-4cdd-b39a-83574fe37a17", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/wrap/action", - "Microsoft.KeyVault/managedHsm/keys/unwrap/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Service Encryption User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", - "name": "21dbd100-6940-42c2-9190-5d6cb909625c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/keys/release/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Service Release User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", - "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Auditor", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", - "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Policy Administrator", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", - "name": "21dbd100-6940-42c2-9190-5d6cb909625b", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/write/action", - "Microsoft.KeyVault/managedHsm/keys/delete", - "Microsoft.KeyVault/managedHsm/keys/create", - "Microsoft.KeyVault/managedHsm/keys/rotate/action", - "Microsoft.KeyVault/managedHsm/keys/import/action", - "Microsoft.KeyVault/managedHsm/keys/release/action", - "Microsoft.KeyVault/managedHsm/keys/backup/action", - "Microsoft.KeyVault/managedHsm/keys/restore/action", - "Microsoft.KeyVault/managedHsm/keys/encrypt/action", - "Microsoft.KeyVault/managedHsm/keys/decrypt/action", - "Microsoft.KeyVault/managedHsm/keys/wrap/action", - "Microsoft.KeyVault/managedHsm/keys/unwrap/action", - "Microsoft.KeyVault/managedHsm/keys/sign/action", - "Microsoft.KeyVault/managedHsm/keys/verify/action", - "Microsoft.KeyVault/managedHsm/keys/derive/action", - "Microsoft.KeyVault/managedHsm/rng/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", - "Microsoft.KeyVault/managedHsm/keys/export/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Officer", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "name": "a290e904-7015-4bba-90c8-60543313cdb4", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/securitydomain/download/action", - "Microsoft.KeyVault/managedHsm/securitydomain/download/read", - "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", - "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", - "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", - "Microsoft.KeyVault/managedHsm/backup/start/action", - "Microsoft.KeyVault/managedHsm/restore/start/action", - "Microsoft.KeyVault/managedHsm/backup/status/action", - "Microsoft.KeyVault/managedHsm/restore/status/action", - "Microsoft.KeyVault/managedHsm/settings/read/action", - "Microsoft.KeyVault/managedHsm/settings/write/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Administrator", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.setRoleDefinition[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.setRoleDefinition[1].json deleted file mode 100644 index 0066a1500834a..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlAsyncClientTest.setRoleDefinition[1].json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/1955f2fa-a00d-46bc-aa43-ea56c9766ea2?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "27acab06-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/1955f2fa-a00d-46bc-aa43-ea56c9766ea2?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "1955f2fa-a00d-46bc-aa43-ea56c9766ea2" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "27cb7fcc-d8df-11ed-9bda-0022488d0014", - "x-ms-server-latency": "64" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/1955f2fa-a00d-46bc-aa43-ea56c9766ea2", - "name": "1955f2fa-a00d-46bc-aa43-ea56c9766ea2", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "1955f2fa-a00d-46bc-aa43-ea56c9766ea2", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - } - ], - "Variables": { - "0": "1955f2fa-a00d-46bc-aa43-ea56c9766ea2" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createExistingRoleAssignmentThrows[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createExistingRoleAssignmentThrows[1].json deleted file mode 100644 index ad394316aacef..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createExistingRoleAssignmentThrows[1].json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "4931a902-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "494cec58-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "36" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "name": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/1d8822ec-28c6-4e0c-881d-14e4ea4730e5?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "495c5a94-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "41" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/1d8822ec-28c6-4e0c-881d-14e4ea4730e5", - "name": "1d8822ec-28c6-4e0c-881d-14e4ea4730e5", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/1d8822ec-28c6-4e0c-881d-14e4ea4730e5?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "141", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "496cc744-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "error": { - "code": "RoleAssignmentExists", - "message": "The role assignment already exists. (Activity ID: 496cc744-d8df-11ed-bed5-000d3a602e9a)" - } - } - } - ], - "Variables": { - "0": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "1": "1d8822ec-28c6-4e0c-881d-14e4ea4730e5" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createRoleAssignment[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createRoleAssignment[1].json deleted file mode 100644 index a2556af9b7912..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.createRoleAssignment[1].json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/5b22a0a7-208a-4d50-b670-17112551f4ca?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "4a0ec33c-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/5b22a0a7-208a-4d50-b670-17112551f4ca?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "5b22a0a7-208a-4d50-b670-17112551f4ca" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4a2af26e-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "43" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5b22a0a7-208a-4d50-b670-17112551f4ca", - "name": "5b22a0a7-208a-4d50-b670-17112551f4ca", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "5b22a0a7-208a-4d50-b670-17112551f4ca", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/910dac10-d55f-4d9c-a95a-4af5a3279511?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5b22a0a7-208a-4d50-b670-17112551f4ca", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4a3f32ce-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "38" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/910dac10-d55f-4d9c-a95a-4af5a3279511", - "name": "910dac10-d55f-4d9c-a95a-4af5a3279511", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5b22a0a7-208a-4d50-b670-17112551f4ca", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - } - ], - "Variables": { - "0": "5b22a0a7-208a-4d50-b670-17112551f4ca", - "1": "910dac10-d55f-4d9c-a95a-4af5a3279511" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json deleted file mode 100644 index 91f4fff0a8e41..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleAssignmentDoesNotThrow[1].json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/d0003e1a-2609-476b-9517-18a590b3919d?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "47b9530e-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/d0003e1a-2609-476b-9517-18a590b3919d?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "143", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "47dcbfd8-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "2" - }, - "ResponseBody": { - "error": { - "code": "RoleAssignmentNotFound", - "message": "Requested role assignment not found (Activity ID: 47dcbfd8-d8df-11ed-bed5-000d3a602e9a)" - } - } - } - ], - "Variables": { - "0": "d0003e1a-2609-476b-9517-18a590b3919d" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json deleted file mode 100644 index 9a2c50c367d55..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteNonExistingRoleDefinitionDoesNotThrow[1].json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/9323b36a-ccb7-46ab-83ab-9c86a7688d13?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "46b52e1a-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/9323b36a-ccb7-46ab-83ab-9c86a7688d13?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "143", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "46e41d88-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "55" - }, - "ResponseBody": { - "error": { - "code": "RoleDefinitionNotFound", - "message": "Requested role definition not found (Activity ID: 46e41d88-d8df-11ed-bed5-000d3a602e9a)" - } - } - } - ], - "Variables": { - "0": "9323b36a-ccb7-46ab-83ab-9c86a7688d13" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleAssignment[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleAssignment[1].json deleted file mode 100644 index 31e0d503da298..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleAssignment[1].json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/2d962b8a-16b6-49cd-bcc8-d44ff277e324?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "4a7d40f0-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/2d962b8a-16b6-49cd-bcc8-d44ff277e324?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "2d962b8a-16b6-49cd-bcc8-d44ff277e324" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4aa46d7e-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "40" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2d962b8a-16b6-49cd-bcc8-d44ff277e324", - "name": "2d962b8a-16b6-49cd-bcc8-d44ff277e324", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "2d962b8a-16b6-49cd-bcc8-d44ff277e324", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/17400220-299a-4ac5-9c29-01e4710a9c45?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2d962b8a-16b6-49cd-bcc8-d44ff277e324", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4ab83994-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "43" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/17400220-299a-4ac5-9c29-01e4710a9c45", - "name": "17400220-299a-4ac5-9c29-01e4710a9c45", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2d962b8a-16b6-49cd-bcc8-d44ff277e324", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/17400220-299a-4ac5-9c29-01e4710a9c45?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4acc5e38-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "34" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/17400220-299a-4ac5-9c29-01e4710a9c45", - "name": "17400220-299a-4ac5-9c29-01e4710a9c45", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2d962b8a-16b6-49cd-bcc8-d44ff277e324", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - } - ], - "Variables": { - "0": "2d962b8a-16b6-49cd-bcc8-d44ff277e324", - "1": "17400220-299a-4ac5-9c29-01e4710a9c45" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleDefinition[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleDefinition[1].json deleted file mode 100644 index 78b819e7db830..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.deleteRoleDefinition[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/b8da4a7f-c047-4098-b3a9-771acc8fd935?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "48873760-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/b8da4a7f-c047-4098-b3a9-771acc8fd935?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "b8da4a7f-c047-4098-b3a9-771acc8fd935" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "48a2408c-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "37" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/b8da4a7f-c047-4098-b3a9-771acc8fd935", - "name": "b8da4a7f-c047-4098-b3a9-771acc8fd935", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "b8da4a7f-c047-4098-b3a9-771acc8fd935", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/b8da4a7f-c047-4098-b3a9-771acc8fd935?api-version=7.4", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "48b5c5c6-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "36" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/b8da4a7f-c047-4098-b3a9-771acc8fd935", - "name": "b8da4a7f-c047-4098-b3a9-771acc8fd935", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "b8da4a7f-c047-4098-b3a9-771acc8fd935", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - } - ], - "Variables": { - "0": "b8da4a7f-c047-4098-b3a9-771acc8fd935" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleAssignment[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleAssignment[1].json deleted file mode 100644 index 75d8cec3932e4..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleAssignment[1].json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/5f9e580e-e079-4220-a89a-fcd4c2dbc268?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "47109f5c-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/5f9e580e-e079-4220-a89a-fcd4c2dbc268?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "5f9e580e-e079-4220-a89a-fcd4c2dbc268" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4738439a-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "81" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5f9e580e-e079-4220-a89a-fcd4c2dbc268", - "name": "5f9e580e-e079-4220-a89a-fcd4c2dbc268", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "5f9e580e-e079-4220-a89a-fcd4c2dbc268", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/a9edf5b7-b959-4217-bd77-45a4233975d6?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5f9e580e-e079-4220-a89a-fcd4c2dbc268", - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4752a42e-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "33" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/a9edf5b7-b959-4217-bd77-45a4233975d6", - "name": "a9edf5b7-b959-4217-bd77-45a4233975d6", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5f9e580e-e079-4220-a89a-fcd4c2dbc268", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments/a9edf5b7-b959-4217-bd77-45a4233975d6?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "398", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "476598c2-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Authorization/roleAssignments/a9edf5b7-b959-4217-bd77-45a4233975d6", - "name": "a9edf5b7-b959-4217-bd77-45a4233975d6", - "properties": { - "principalId": "aed295e0-2ae7-4c2a-9abc-813f0ca233d3", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/5f9e580e-e079-4220-a89a-fcd4c2dbc268", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - } - ], - "Variables": { - "0": "5f9e580e-e079-4220-a89a-fcd4c2dbc268", - "1": "a9edf5b7-b959-4217-bd77-45a4233975d6" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleDefinition[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleDefinition[1].json deleted file mode 100644 index 3d56e1b3ab4e0..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.getRoleDefinition[1].json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/4137d863-7bd4-43a7-bf0a-33e9a91d5e5c?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "48ce75e4-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/4137d863-7bd4-43a7-bf0a-33e9a91d5e5c?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "48eb0d80-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "35" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "name": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/4137d863-7bd4-43a7-bf0a-33e9a91d5e5c?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "48fe53e0-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "name": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - } - ], - "Variables": { - "0": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleAssignments[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleAssignments[1].json deleted file mode 100644 index f64cdc3a1ca0b..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleAssignments[1].json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "484271d4-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1607", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "4865df16-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "value": [ - { - "id": "/providers/Microsoft.Authorization/roleAssignments/e0c78b90-ecb6-0a6e-99ca-4778e5cad0aa", - "name": "e0c78b90-ecb6-0a6e-99ca-4778e5cad0aa", - "properties": { - "principalId": "f84ae8f9-c979-4750-a2fe-b350a00bebff", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/6d82eec1-bfa7-4958-90e2-da219874938e", - "name": "6d82eec1-bfa7-4958-90e2-da219874938e", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/fea49c00-4aad-0c85-1e5c-be79d2e63f67", - "name": "fea49c00-4aad-0c85-1e5c-be79d2e63f67", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/03041c0b-b225-4ea7-8f34-3153b8dd188d", - "name": "03041c0b-b225-4ea7-8f34-3153b8dd188d", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - ] - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleAssignments?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1607", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "48739d04-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "value": [ - { - "id": "/providers/Microsoft.Authorization/roleAssignments/e0c78b90-ecb6-0a6e-99ca-4778e5cad0aa", - "name": "e0c78b90-ecb6-0a6e-99ca-4778e5cad0aa", - "properties": { - "principalId": "f84ae8f9-c979-4750-a2fe-b350a00bebff", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/6d82eec1-bfa7-4958-90e2-da219874938e", - "name": "6d82eec1-bfa7-4958-90e2-da219874938e", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/fea49c00-4aad-0c85-1e5c-be79d2e63f67", - "name": "fea49c00-4aad-0c85-1e5c-be79d2e63f67", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - }, - { - "id": "/providers/Microsoft.Authorization/roleAssignments/03041c0b-b225-4ea7-8f34-3153b8dd188d", - "name": "03041c0b-b225-4ea7-8f34-3153b8dd188d", - "properties": { - "principalId": "361e6952-7ae0-4197-971f-20d2ef1b0ca9", - "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "scope": "/" - }, - "type": "Microsoft.Authorization/roleAssignments" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleDefinitions[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleDefinitions[1].json deleted file mode 100644 index d0b64f68d49b9..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.listRoleDefinitions[1].json +++ /dev/null @@ -1,624 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "49a67c1e-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "7565", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "49eba41a-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "value": [ - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", - "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/backup/start/action", - "Microsoft.KeyVault/managedHsm/backup/status/action", - "Microsoft.KeyVault/managedHsm/keys/backup/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Backup User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", - "name": "33413926-3206-4cdd-b39a-83574fe37a17", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/wrap/action", - "Microsoft.KeyVault/managedHsm/keys/unwrap/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Service Encryption User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", - "name": "21dbd100-6940-42c2-9190-5d6cb909625c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/keys/release/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Service Release User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", - "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Auditor", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", - "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Policy Administrator", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", - "name": "21dbd100-6940-42c2-9190-5d6cb909625b", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/write/action", - "Microsoft.KeyVault/managedHsm/keys/delete", - "Microsoft.KeyVault/managedHsm/keys/create", - "Microsoft.KeyVault/managedHsm/keys/rotate/action", - "Microsoft.KeyVault/managedHsm/keys/import/action", - "Microsoft.KeyVault/managedHsm/keys/release/action", - "Microsoft.KeyVault/managedHsm/keys/backup/action", - "Microsoft.KeyVault/managedHsm/keys/restore/action", - "Microsoft.KeyVault/managedHsm/keys/encrypt/action", - "Microsoft.KeyVault/managedHsm/keys/decrypt/action", - "Microsoft.KeyVault/managedHsm/keys/wrap/action", - "Microsoft.KeyVault/managedHsm/keys/unwrap/action", - "Microsoft.KeyVault/managedHsm/keys/sign/action", - "Microsoft.KeyVault/managedHsm/keys/verify/action", - "Microsoft.KeyVault/managedHsm/keys/derive/action", - "Microsoft.KeyVault/managedHsm/rng/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", - "Microsoft.KeyVault/managedHsm/keys/export/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Officer", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "name": "a290e904-7015-4bba-90c8-60543313cdb4", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/securitydomain/download/action", - "Microsoft.KeyVault/managedHsm/securitydomain/download/read", - "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", - "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", - "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", - "Microsoft.KeyVault/managedHsm/backup/start/action", - "Microsoft.KeyVault/managedHsm/restore/start/action", - "Microsoft.KeyVault/managedHsm/backup/status/action", - "Microsoft.KeyVault/managedHsm/restore/status/action", - "Microsoft.KeyVault/managedHsm/settings/read/action", - "Microsoft.KeyVault/managedHsm/settings/write/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Administrator", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "name": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "name": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - ] - } - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "7565", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "49fa4506-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "value": [ - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", - "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/backup/start/action", - "Microsoft.KeyVault/managedHsm/backup/status/action", - "Microsoft.KeyVault/managedHsm/keys/backup/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Backup User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", - "name": "33413926-3206-4cdd-b39a-83574fe37a17", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/wrap/action", - "Microsoft.KeyVault/managedHsm/keys/unwrap/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Service Encryption User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", - "name": "21dbd100-6940-42c2-9190-5d6cb909625c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/keys/release/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Service Release User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", - "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Auditor", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", - "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Policy Administrator", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", - "name": "21dbd100-6940-42c2-9190-5d6cb909625b", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/write/action", - "Microsoft.KeyVault/managedHsm/keys/delete", - "Microsoft.KeyVault/managedHsm/keys/create", - "Microsoft.KeyVault/managedHsm/keys/rotate/action", - "Microsoft.KeyVault/managedHsm/keys/import/action", - "Microsoft.KeyVault/managedHsm/keys/release/action", - "Microsoft.KeyVault/managedHsm/keys/backup/action", - "Microsoft.KeyVault/managedHsm/keys/restore/action", - "Microsoft.KeyVault/managedHsm/keys/encrypt/action", - "Microsoft.KeyVault/managedHsm/keys/decrypt/action", - "Microsoft.KeyVault/managedHsm/keys/wrap/action", - "Microsoft.KeyVault/managedHsm/keys/unwrap/action", - "Microsoft.KeyVault/managedHsm/keys/sign/action", - "Microsoft.KeyVault/managedHsm/keys/verify/action", - "Microsoft.KeyVault/managedHsm/keys/derive/action", - "Microsoft.KeyVault/managedHsm/rng/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto User", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", - "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", - "Microsoft.KeyVault/managedHsm/keys/export/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Crypto Officer", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", - "name": "a290e904-7015-4bba-90c8-60543313cdb4", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [ - { - "actions": [], - "dataActions": [ - "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", - "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", - "Microsoft.KeyVault/managedHsm/securitydomain/download/action", - "Microsoft.KeyVault/managedHsm/securitydomain/download/read", - "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", - "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", - "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", - "Microsoft.KeyVault/managedHsm/backup/start/action", - "Microsoft.KeyVault/managedHsm/restore/start/action", - "Microsoft.KeyVault/managedHsm/backup/status/action", - "Microsoft.KeyVault/managedHsm/restore/status/action", - "Microsoft.KeyVault/managedHsm/settings/read/action", - "Microsoft.KeyVault/managedHsm/settings/write/action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "roleName": "Managed HSM Administrator", - "type": "AKVBuiltInRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "name": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "4137d863-7bd4-43a7-bf0a-33e9a91d5e5c", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - }, - { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "name": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "8bcb4a14-6bd5-4e0f-8ea4-f7f4e49eea02", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.setRoleDefinition[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.setRoleDefinition[1].json deleted file mode 100644 index ddd47aceca61d..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultAccessControlClientTest.setRoleDefinition[1].json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/4e731c75-aa69-4370-84c1-ef59e272bd8f?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "6afcd84e-d8e0-11ed-b0bb-000d3a612dea", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED///providers/Microsoft.Authorization/roleDefinitions/4e731c75-aa69-4370-84c1-ef59e272bd8f?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "properties": { - "roleName": "4e731c75-aa69-4370-84c1-ef59e272bd8f" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "353", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6bb86c08-d8e0-11ed-b0bb-000d3a612dea", - "x-ms-server-latency": "72" - }, - "ResponseBody": { - "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4e731c75-aa69-4370-84c1-ef59e272bd8f", - "name": "4e731c75-aa69-4370-84c1-ef59e272bd8f", - "properties": { - "assignableScopes": [ - "/" - ], - "description": "", - "permissions": [], - "roleName": "4e731c75-aa69-4370-84c1-ef59e272bd8f", - "type": "CustomRole" - }, - "type": "Microsoft.Authorization/roleDefinitions" - } - } - ], - "Variables": { - "0": "4e731c75-aa69-4370-84c1-ef59e272bd8f" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginBackup[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginBackup[1].json deleted file mode 100644 index 251288e42787d..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginBackup[1].json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "64715834-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "216", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup", - "token": "REDACTED" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/backup/4efb3fb7dc844be29015ad40866fdb8c/pending", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:09 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "649b13c2-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "438" - }, - "ResponseBody": { - "status": "InProgress", - "statusDetails": null, - "error": null, - "startTime": 1681268949, - "endTime": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "azureStorageBlobContainerUri": null - } - }, - { - "RequestUri": "https://REDACTED/backup/4efb3fb7dc844be29015ad40866fdb8c/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:11 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "65829f6c-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "219" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "startTime": 1681268949, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/4efb3fb7dc844be29015ad40866fdb8c/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:12 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "66483966-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "216" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "startTime": 1681268949, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/4efb3fb7dc844be29015ad40866fdb8c/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:13 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "670d6da8-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "239" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "startTime": 1681268949, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/4efb3fb7dc844be29015ad40866fdb8c/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:14 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "67d547b0-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "229" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "startTime": 1681268949, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/4efb3fb7dc844be29015ad40866fdb8c/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:16 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "689be3b6-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "210" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "startTime": 1681268949, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/4efb3fb7dc844be29015ad40866fdb8c/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:17 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "695e9230-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "203" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "startTime": 1681268949, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/4efb3fb7dc844be29015ad40866fdb8c/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "274", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:18 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6a229cfc-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "245" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/mhsm-azkvrecordtestshsm-2023041203090984", - "endTime": 1681268958, - "error": null, - "jobId": "4efb3fb7dc844be29015ad40866fdb8c", - "startTime": 1681268949, - "status": "Succeeded", - "statusDetails": null - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginRestore[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginRestore[1].json deleted file mode 100644 index 2c7b74c434c4b..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginRestore[1].json +++ /dev/null @@ -1,754 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "86045604-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "216", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup", - "token": "REDACTED" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/backup/03b7e8c9edf947ae8118fe4008bd94da/pending", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:06 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8625f5de-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "463" - }, - "ResponseBody": { - "status": "InProgress", - "statusDetails": null, - "error": null, - "startTime": 1681269006, - "endTime": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "azureStorageBlobContainerUri": null - } - }, - { - "RequestUri": "https://REDACTED/backup/03b7e8c9edf947ae8118fe4008bd94da/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:07 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "87111654-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "220" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "startTime": 1681269006, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/03b7e8c9edf947ae8118fe4008bd94da/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:08 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "87d62872-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "342" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "startTime": 1681269006, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/03b7e8c9edf947ae8118fe4008bd94da/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:09 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "88aeaa08-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "284" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "startTime": 1681269006, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/03b7e8c9edf947ae8118fe4008bd94da/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:11 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "897e966e-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "191" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "startTime": 1681269006, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/03b7e8c9edf947ae8118fe4008bd94da/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:12 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8a3f652e-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "242" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "startTime": 1681269006, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/03b7e8c9edf947ae8118fe4008bd94da/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:13 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8b08a862-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "209" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "startTime": 1681269006, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/03b7e8c9edf947ae8118fe4008bd94da/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "274", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:15 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8bcd3ace-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "268" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/mhsm-azkvrecordtestshsm-2023041203100611", - "endTime": 1681269014, - "error": null, - "jobId": "03b7e8c9edf947ae8118fe4008bd94da", - "startTime": 1681269006, - "status": "Succeeded", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "301", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "sasTokenParameters": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/", - "token": "REDACTED" - }, - "folderToRestore": "mhsm-azkvrecordtestshsm-2023041203100611" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/restore/9f696a2423df4142a08afbc0104f405d/pending", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:15 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8c01ad9a-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "386" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:16 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8ce07c3c-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "213" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:17 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8da5dcca-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "217" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:19 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8e6abb44-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "202" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:20 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8f2c7ab8-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "216" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:22 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "8ff47e32-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "211" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:23 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "90b909dc-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "187" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:24 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "9178e72a-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "221" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:25 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "923dd7e2-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "207" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:27 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "9300f7c2-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "200" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/9f696a2423df4142a08afbc0104f405d/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "143", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:10:28 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "93c340c0-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "212" - }, - "ResponseBody": { - "endTime": 1681269027, - "error": null, - "jobId": "9f696a2423df4142a08afbc0104f405d", - "startTime": 1681269015, - "status": "Succeeded", - "statusDetails": null - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginSelectiveKeyRestore[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginSelectiveKeyRestore[1].json deleted file mode 100644 index 7415e4832f49b..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupAsyncClientTest.beginSelectiveKeyRestore[1].json +++ /dev/null @@ -1,594 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/keys/backupkey63076420/create?api-version=7.2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Language": "en-US", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "6a69e8fa-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/keys/backupkey63076420/create?api-version=7.2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Content-Length": "81", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "kty": "RSA", - "attributes": { - "nbf": 949237199, - "exp": 2527113600 - }, - "public_exponent": 0 - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "761", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6a7d43be-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "244" - }, - "ResponseBody": { - "attributes": { - "created": 1681268959, - "enabled": true, - "exp": 2527113600, - "exportable": false, - "nbf": 949237199, - "recoverableDays": 7, - "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", - "updated": 1681268959 - }, - "key": { - "e": "AQAB", - "key_ops": [ - "wrapKey", - "decrypt", - "encrypt", - "unwrapKey", - "sign", - "verify" - ], - "kid": "https://azkvrecordtestshsm.managedhsm.azure.net/keys/backupkey63076420/c4d45a71be9500860128b1c5802b1bab", - "kty": "RSA-HSM", - "n": "iLxa4eDKrAA_mtwpx65n7ywUA1hANcfnd1kdhXUPnreE5kJgbkqsD5lBAsaGFL3fI0B1azFEaIrJPP826sf8h11ANe9XZxQjdh7Ezj_H8TaiqtX-yZ_8XBVP9n0kj6ipGHNWabl_j_LENQQm1IhTg5IAqF1uv44Q9v9BxRxQUpM24YfBD5z1AP7Ra8y8i5fmX7wls6F9CQ-IBkDH6fBUCLdwXXo_Nc5cXo_SWS6XBoMLFlYaG-wO3zB6Kl-jBbii0F_3-Tk6urZbe_LUQFIo10Zd1vCZUR0f3CBCufeg1OOZ2hs57wHG5qR89NBjJKx087bFDvxtkR-oq_xhQQnnOw" - } - } - }, - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "216", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup", - "token": "REDACTED" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/backup/a6027c96cb734c599dd6f0ea9284efd0/pending", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:19 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6abc79da-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "417" - }, - "ResponseBody": { - "status": "InProgress", - "statusDetails": null, - "error": null, - "startTime": 1681268960, - "endTime": null, - "jobId": "a6027c96cb734c599dd6f0ea9284efd0", - "azureStorageBlobContainerUri": null - } - }, - { - "RequestUri": "https://REDACTED/backup/a6027c96cb734c599dd6f0ea9284efd0/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:21 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6b9f5714-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "171" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "a6027c96cb734c599dd6f0ea9284efd0", - "startTime": 1681268960, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/a6027c96cb734c599dd6f0ea9284efd0/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:21 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6c5d3d6a-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "234" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "a6027c96cb734c599dd6f0ea9284efd0", - "startTime": 1681268960, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/a6027c96cb734c599dd6f0ea9284efd0/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:23 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6d2533b0-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "174" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "a6027c96cb734c599dd6f0ea9284efd0", - "startTime": 1681268960, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/a6027c96cb734c599dd6f0ea9284efd0/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:25 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6de31e52-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "210" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "a6027c96cb734c599dd6f0ea9284efd0", - "startTime": 1681268960, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/a6027c96cb734c599dd6f0ea9284efd0/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:26 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6ea6640c-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "733" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "a6027c96cb734c599dd6f0ea9284efd0", - "startTime": 1681268960, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/a6027c96cb734c599dd6f0ea9284efd0/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "274", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:27 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6fb9963e-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "232" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/mhsm-azkvrecordtestshsm-2023041203092010", - "endTime": 1681268968, - "error": null, - "jobId": "a6027c96cb734c599dd6f0ea9284efd0", - "startTime": 1681268960, - "status": "Succeeded", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/keys/backupkey63076420/restore?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "292", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "sasTokenParameters": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/", - "token": "REDACTED" - }, - "folder": "mhsm-azkvrecordtestshsm-2023041203092010" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/restore/c4a2958847494a7c8ba357c1efe4d0d4/pending", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:28 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6fe7a538-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "440" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "c4a2958847494a7c8ba357c1efe4d0d4", - "startTime": 1681268968, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/c4a2958847494a7c8ba357c1efe4d0d4/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:29 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "70cf5450-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "244" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "c4a2958847494a7c8ba357c1efe4d0d4", - "startTime": 1681268968, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/c4a2958847494a7c8ba357c1efe4d0d4/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:30 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "719957f0-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "256" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "c4a2958847494a7c8ba357c1efe4d0d4", - "startTime": 1681268968, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/c4a2958847494a7c8ba357c1efe4d0d4/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:32 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "7263c8a0-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "179" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "c4a2958847494a7c8ba357c1efe4d0d4", - "startTime": 1681268968, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/c4a2958847494a7c8ba357c1efe4d0d4/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:33 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "73239e28-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "213" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "c4a2958847494a7c8ba357c1efe4d0d4", - "startTime": 1681268968, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/c4a2958847494a7c8ba357c1efe4d0d4/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "233", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:09:34 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "73e9021c-d8df-11ed-a916-0022488d0014", - "x-ms-server-latency": "251" - }, - "ResponseBody": { - "endTime": 1681268974, - "error": null, - "jobId": "c4a2958847494a7c8ba357c1efe4d0d4", - "startTime": 1681268968, - "status": "Succeeded", - "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" - } - } - ], - "Variables": { - "0": "backupkey63076420" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginBackup[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginBackup[1].json deleted file mode 100644 index b24c612cf66d4..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginBackup[1].json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "d8619552-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "216", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup", - "token": "REDACTED" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/backup/8ac663ae16304631ba0237e5e3ea87d7/pending", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:15 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "d9188c9e-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "884" - }, - "ResponseBody": { - "status": "InProgress", - "statusDetails": null, - "error": null, - "startTime": 1681268716, - "endTime": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "azureStorageBlobContainerUri": null - } - }, - { - "RequestUri": "https://REDACTED/backup/8ac663ae16304631ba0237e5e3ea87d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:15 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "d9b2a28e-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "247" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "startTime": 1681268716, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/8ac663ae16304631ba0237e5e3ea87d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:17 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "da7f6f76-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "642" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "startTime": 1681268716, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/8ac663ae16304631ba0237e5e3ea87d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:19 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "db891a7a-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "233" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "startTime": 1681268716, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/8ac663ae16304631ba0237e5e3ea87d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:20 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "dc55ac8e-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "229" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "startTime": 1681268716, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/8ac663ae16304631ba0237e5e3ea87d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:21 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "dd1f62a4-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "326" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "startTime": 1681268716, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/8ac663ae16304631ba0237e5e3ea87d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:23 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "ddf840ec-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "262" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "startTime": 1681268716, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/8ac663ae16304631ba0237e5e3ea87d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "274", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:24 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "dec8efb2-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "275" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/mhsm-azkvrecordtestshsm-2023041203051622", - "endTime": 1681268724, - "error": null, - "jobId": "8ac663ae16304631ba0237e5e3ea87d7", - "startTime": 1681268716, - "status": "Succeeded", - "statusDetails": null - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginRestore[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginRestore[1].json deleted file mode 100644 index 01ac358898f58..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginRestore[1].json +++ /dev/null @@ -1,529 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "fd3ddcc8-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "0" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "216", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup", - "token": "REDACTED" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/backup/b218196019b04001a2fbc86316f8ba70/pending", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:18 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "fd68fd86-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "2763" - }, - "ResponseBody": { - "status": "InProgress", - "statusDetails": null, - "error": null, - "startTime": 1681268777, - "endTime": null, - "jobId": "b218196019b04001a2fbc86316f8ba70", - "azureStorageBlobContainerUri": null - } - }, - { - "RequestUri": "https://REDACTED/backup/b218196019b04001a2fbc86316f8ba70/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:20 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "ff1d7652-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "1567" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "b218196019b04001a2fbc86316f8ba70", - "startTime": 1681268777, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/b218196019b04001a2fbc86316f8ba70/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:23 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "00b43f96-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "1951" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "b218196019b04001a2fbc86316f8ba70", - "startTime": 1681268777, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/b218196019b04001a2fbc86316f8ba70/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:26 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "02859676-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "2163" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "b218196019b04001a2fbc86316f8ba70", - "startTime": 1681268777, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/b218196019b04001a2fbc86316f8ba70/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "274", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:28 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "04784942-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "1258" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/mhsm-azkvrecordtestshsm-2023041203062042", - "endTime": 1681268789, - "error": null, - "jobId": "b218196019b04001a2fbc86316f8ba70", - "startTime": 1681268777, - "status": "Succeeded", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "301", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "sasTokenParameters": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/", - "token": "REDACTED" - }, - "folderToRestore": "mhsm-azkvrecordtestshsm-2023041203062042" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/restore/0a28d8356e6e47de8d18628870485243/pending", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:31 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "0546fc7e-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "2797" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/0a28d8356e6e47de8d18628870485243/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:33 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "06ffaac0-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "1562" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/0a28d8356e6e47de8d18628870485243/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:34 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "0895e17e-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "172" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/0a28d8356e6e47de8d18628870485243/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:36 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "09585894-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "194" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/0a28d8356e6e47de8d18628870485243/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:37 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "0a1d90dc-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "174" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/0a28d8356e6e47de8d18628870485243/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:38 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "0ade764e-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "230" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/0a28d8356e6e47de8d18628870485243/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "143", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:40 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "0baa5c3c-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "176" - }, - "ResponseBody": { - "endTime": 1681268800, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "Succeeded", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/0a28d8356e6e47de8d18628870485243/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "143", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:06:40 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "0bd2f034-d8df-11ed-a717-0022488d0014", - "x-ms-server-latency": "639" - }, - "ResponseBody": { - "endTime": 1681268800, - "error": null, - "jobId": "0a28d8356e6e47de8d18628870485243", - "startTime": 1681268790, - "status": "Succeeded", - "statusDetails": null - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginSelectiveKeyRestore[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginSelectiveKeyRestore[1].json deleted file mode 100644 index fae6ca3eb7df5..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultBackupClientTest.beginSelectiveKeyRestore[1].json +++ /dev/null @@ -1,592 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/keys/backupkey71923735/create?api-version=7.2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Language": "en-US", - "Content-Length": "0", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "df2ec314-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "1" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/keys/backupkey71923735/create?api-version=7.2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Content-Length": "81", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "kty": "RSA", - "attributes": { - "nbf": 949237199, - "exp": 2527113600 - }, - "public_exponent": 0 - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "761", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "df58aa9e-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "236" - }, - "ResponseBody": { - "attributes": { - "created": 1681268725, - "enabled": true, - "exp": 2527113600, - "exportable": false, - "nbf": 949237199, - "recoverableDays": 7, - "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", - "updated": 1681268725 - }, - "key": { - "e": "AQAB", - "key_ops": [ - "wrapKey", - "decrypt", - "encrypt", - "unwrapKey", - "sign", - "verify" - ], - "kid": "https://azkvrecordtestshsm.managedhsm.azure.net/keys/backupkey71923735/d80a183fce6441b887baa8fdd6f56eed", - "kty": "RSA-HSM", - "n": "wj-1gqtxlbhjUXOkSWpfc60SMIPjoK5D52RxpmldikVJYRw1Nxf5x21A2cljni2Ua-ZPC9mwYyVh1JtAGmX74Z0XSgmPvezJT5GsobHWmWejxKBP1MY7K7FjapUB9y--nPDKkaxDU9mXg0zox8IhHWeE-0NnXpK3tb8gCcq9PMBHwN9mClyjHQa0tkNBk6ul_6iFai0tcxrXfmFF-JYGVet8HUaV4ssvnpHbYij6R6x6wOOlXEqV4fzjSH5XpW7Y0JDckJFfk4T6rVvXf315JOH5ouysUKCVlbWab81NxSII9Q8McTN4RQWtbK0as_R2fSoIcSl7io3uAo5OlWqPbw" - } - } - }, - { - "RequestUri": "https://REDACTED/backup?api-version=7.4", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "216", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup", - "token": "REDACTED" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/backup/1761020a750f488e9ecc50d5aac7f1d7/pending", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:27 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "dfa957fa-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "1375" - }, - "ResponseBody": { - "status": "InProgress", - "statusDetails": null, - "error": null, - "startTime": 1681268727, - "endTime": null, - "jobId": "1761020a750f488e9ecc50d5aac7f1d7", - "azureStorageBlobContainerUri": null - } - }, - { - "RequestUri": "https://REDACTED/backup/1761020a750f488e9ecc50d5aac7f1d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:27 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e08904f4-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "333" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "1761020a750f488e9ecc50d5aac7f1d7", - "startTime": 1681268727, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/1761020a750f488e9ecc50d5aac7f1d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:29 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e16357d0-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "250" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "1761020a750f488e9ecc50d5aac7f1d7", - "startTime": 1681268727, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/1761020a750f488e9ecc50d5aac7f1d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "174", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:30 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e2316828-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "220" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": null, - "endTime": null, - "error": null, - "jobId": "1761020a750f488e9ecc50d5aac7f1d7", - "startTime": 1681268727, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/backup/1761020a750f488e9ecc50d5aac7f1d7/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "274", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:36 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e2fbca46-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "4795" - }, - "ResponseBody": { - "azureStorageBlobContainerUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/mhsm-azkvrecordtestshsm-2023041203052768", - "endTime": 1681268735, - "error": null, - "jobId": "1761020a750f488e9ecc50d5aac7f1d7", - "startTime": 1681268727, - "status": "Succeeded", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/keys/backupkey71923735/restore?api-version=7.4", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "292", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "sasTokenParameters": { - "storageResourceUri": "https://azkvrecordtestsprim.blob.core.windows.net/backup/", - "token": "REDACTED" - }, - "folder": "mhsm-azkvrecordtestshsm-2023041203052768" - }, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "azure-asyncoperation": "https://azkvrecordtestshsm.managedhsm.azure.net/restore/840b9ad304c443e78d4604cee8668fc1/pending", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:37 GMT", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e5e6875a-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "1459" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/840b9ad304c443e78d4604cee8668fc1/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:37 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e6d38280-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "322" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/840b9ad304c443e78d4604cee8668fc1/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:39 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e7ad79b8-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "426" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/840b9ad304c443e78d4604cee8668fc1/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:41 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e896ea30-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "195" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/840b9ad304c443e78d4604cee8668fc1/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:42 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "e95bc7f6-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "235" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/840b9ad304c443e78d4604cee8668fc1/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "138", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:44 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "ea27dc24-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "268" - }, - "ResponseBody": { - "endTime": null, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "InProgress", - "statusDetails": null - } - }, - { - "RequestUri": "https://REDACTED/restore/840b9ad304c443e78d4604cee8668fc1/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "233", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:45 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "eaf997f0-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "195" - }, - "ResponseBody": { - "endTime": 1681268744, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "Succeeded", - "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" - } - }, - { - "RequestUri": "https://REDACTED/restore/840b9ad304c443e78d4604cee8668fc1/pending?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "20180927, 20211111", - "Cache-Control": "no-cache", - "Content-Length": "233", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Apr 2023 03:05:45 GMT", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "eb2511fa-d8de-11ed-a717-0022488d0014", - "x-ms-server-latency": "192" - }, - "ResponseBody": { - "endTime": 1681268744, - "error": null, - "jobId": "840b9ad304c443e78d4604cee8668fc1", - "startTime": 1681268738, - "status": "Succeeded", - "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" - } - } - ], - "Variables": { - "0": "backupkey71923735" - } -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSetting[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSetting[1].json deleted file mode 100644 index d77ecaa4211ee..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSetting[1].json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "6293a710-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "1" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "82", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "62bc9fd0-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSettings[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSettings[1].json deleted file mode 100644 index 252f322953a5d..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.getSettings[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/settings?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "62dc00be-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED/settings?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "97", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "62f498cc-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "settings": [ - { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.updateSetting[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.updateSetting[1].json deleted file mode 100644 index b0b5afb3ffac0..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsAsyncClientTest.updateSetting[1].json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "6303ae8e-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "82", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "631d0942-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "16", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "value": "true" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "81", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "6327da7a-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "67" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "true" - } - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "17", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "value": "false" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "82", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "633c82e0-d8df-11ed-9768-000d3a612dea", - "x-ms-server-latency": "32" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSetting[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSetting[1].json deleted file mode 100644 index bc08bdb60fc27..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSetting[1].json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "5628753c-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "82", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "564d825a-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSettings[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSettings[1].json deleted file mode 100644 index 3dc816ebb53e2..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.getSettings[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/settings?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "5670731e-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED/settings?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "97", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "56b26242-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": { - "settings": [ - { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - ] - } - } - ], - "Variables": {} -} diff --git a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.updateSetting[1].json b/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.updateSetting[1].json deleted file mode 100644 index 4b22e4d23a73f..0000000000000 --- a/sdk/keyvault/azure-security-keyvault-administration/src/test/resources/session-records/KeyVaultSettingsClientTest.updateSetting[1].json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47\u0022, resource=\u0022https://managedhsm.azure.net\u0022", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-request-id": "56c24324-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "0" - }, - "ResponseBody": "OK" - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "82", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-build-version": "1.0.20230403-1-1802edf4-develop", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "56e07038-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "1" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "16", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "value": "true" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "81", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "56eb12f4-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "70" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "true" - } - }, - { - "RequestUri": "https://REDACTED/settings/AllowKeyManagementOperationsThroughARM?api-version=7.4", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "17", - "Content-Type": "application/json", - "User-Agent": "azsdk-java-client_name/client_version (11.0.6; Windows 10; 10.0)" - }, - "RequestBody": { - "value": "false" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "82", - "Content-Security-Policy": "default-src \u0027self\u0027", - "Content-Type": "application/json; charset=utf-8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "X-Frame-Options": "SAMEORIGIN", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=172.92.148.195;act_addr_fam=Ipv4;", - "x-ms-keyvault-region": "northcentralus", - "x-ms-request-id": "56ffa700-d8df-11ed-bed5-000d3a602e9a", - "x-ms-server-latency": "41" - }, - "ResponseBody": { - "name": "AllowKeyManagementOperationsThroughARM", - "type": "boolean", - "value": "false" - } - } - ], - "Variables": {} -}