Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Key Vault] Add 7.3-preview and random bytes API #19468

Merged
merged 11 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-keys/4.4.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-keys/4.5.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsm/keys/selective-restore-test-key45031a2b/create?api-version=7.2
uri: https://managedhsm/keys/selective-restore-test-key45031a2b/create?api-version=7.3-preview
response:
body:
string: ''
Expand All @@ -38,7 +38,7 @@ interactions:
x-frame-options:
- SAMEORIGIN
x-ms-server-latency:
- '0'
- '1'
status:
code: 401
message: Unauthorized
Expand All @@ -56,12 +56,12 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-keys/4.4.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-keys/4.5.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsm/keys/selective-restore-test-key45031a2b/create?api-version=7.2
uri: https://managedhsm/keys/selective-restore-test-key45031a2b/create?api-version=7.3-preview
response:
body:
string: '{"attributes":{"created":1623797343,"enabled":true,"exportable":false,"recoverableDays":90,"recoveryLevel":"Recoverable+Purgeable","updated":1623797343},"key":{"e":"AQAB","key_ops":["wrapKey","decrypt","encrypt","unwrapKey","sign","verify"],"kid":"https://managedhsm/keys/selective-restore-test-key45031a2b/755569fadcde0c7d2c2f634a76887ff1","kty":"RSA-HSM","n":"h7pkGvU2ejRfHUEoKF-ix-JjSbuaFq7Y4P4WvlnMybJo1o5B6c0adPvxDBztZt540RecfPEi4CQLkrwPtLGg_6L0nm2iIAJTIFXaUsTUKQJqgfueojpRifqSbItSPcex7sc-8gPVABW2Y1zDqsaWuTbIgfWErFF5X_A8c8-TK6aEUdeHUP0AfIyDIpoht1l84w_L8guG5k29lg8wGaT__wDcqVerhZGkRxsBoLDiJOgXTy-5Lhk14x8lRtsGudLKLggGBFAeGFbryP-q0U3FsGe2swQzGoz7xRn9ncUud-KAC6on1mdTODYXOkZgmnIDV4L5nGJCK3ukGWl6SWBP7w"}}'
string: '{"attributes":{"created":1625695228,"enabled":true,"exportable":false,"recoverableDays":90,"recoveryLevel":"Recoverable+Purgeable","updated":1625695228},"key":{"e":"AQAB","key_ops":["wrapKey","decrypt","encrypt","unwrapKey","sign","verify"],"kid":"https://managedhsm/keys/selective-restore-test-key45031a2b/d47a2215690841668194d0ea957d2aa7","kty":"RSA-HSM","n":"qJ9i5U07EfA5BDdKl-9Js_xHv1okv6gw3lEtH32-YkaUk5_HxH8WAxj3K8i8Gvb1VUNUONMB815NtlDLAl56g6hVOxksqub1QXmNKzCL2kPK23pMo4iz6MCPA1oO2-JJbc5jL1Ja99VQ0wrjm51Ap-5WkDmWg--RtI6shZSPzgPE0p8ar1uKepZKDNxi9EtEODHZGJCtvTUZcAZY92Vet-o8olKbfmHnwdX98Wbn4rI-Sa46CBRBOHZN1GHQw2vxVRWzR8EorJnZn0D9p8mdGJQk5kCgIeyJxn9_KYXeBr5svAr2DzD1AeXJOskunCaMKAYLYTSzG3QDpMNIY4UVUQ"}}'
headers:
cache-control:
- no-cache
Expand All @@ -80,9 +80,9 @@ interactions:
x-ms-keyvault-network-info:
- conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region:
- canadacentral
- westus
x-ms-server-latency:
- '240'
- '216'
status:
code: 200
message: OK
Expand All @@ -100,7 +100,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-administration/4.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-administration/4.0.1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsm/backup?api-version=7.2
response:
Expand All @@ -125,12 +125,12 @@ interactions:
x-frame-options:
- SAMEORIGIN
x-ms-server-latency:
- '1'
- '0'
status:
code: 401
message: Unauthorized
- request:
body: '{"storageResourceUri": "https://storname.blob.core.windows.net/containeruu6bhqlnypomdm7",
body: '{"storageResourceUri": "https://storname.blob.core.windows.net/containerokmfum4m5d7wvjs",
"token": "redacted"}'
headers:
Accept:
Expand All @@ -140,19 +140,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '237'
- '233'
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-administration/4.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-administration/4.0.1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsm/backup?api-version=7.2
response:
body:
string: '{"status":"InProgress","statusDetails":null,"error":null,"startTime":1623797347,"endTime":null,"jobId":"31b6b0454fc94f7f908474446526e57c","azureStorageBlobContainerUri":null}'
string: '{"status":"InProgress","statusDetails":null,"error":null,"startTime":1625695231,"endTime":null,"jobId":"23cd6741d96a4aeaad0adbeb7ee787be","azureStorageBlobContainerUri":null}'
headers:
azure-asyncoperation:
- https://managedhsm/backup/31b6b0454fc94f7f908474446526e57c/pending
- https://managedhsm/backup/23cd6741d96a4aeaad0adbeb7ee787be/pending
cache-control:
- no-cache
content-length:
Expand All @@ -162,7 +162,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 15 Jun 2021 22:49:06 GMT
- Wed, 07 Jul 2021 22:00:31 GMT
server:
- Kestrel
strict-transport-security:
Expand All @@ -174,9 +174,9 @@ interactions:
x-ms-keyvault-network-info:
- conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region:
- canadacentral
- westus
x-ms-server-latency:
- '2494'
- '2031'
status:
code: 202
message: ''
Expand All @@ -190,12 +190,12 @@ interactions:
Connection:
- keep-alive
User-Agent:
- azsdk-python-keyvault-administration/4.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-administration/4.0.1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://managedhsm/backup/31b6b0454fc94f7f908474446526e57c/pending
uri: https://managedhsm/backup/23cd6741d96a4aeaad0adbeb7ee787be/pending
response:
body:
string: '{"azureStorageBlobContainerUri":"https://storname.blob.core.windows.net/containeruu6bhqlnypomdm7/mhsm-mcpatinotesthsm-2021061522490750","endTime":1623797358,"error":null,"jobId":"31b6b0454fc94f7f908474446526e57c","startTime":1623797347,"status":"Succeeded","statusDetails":null}'
string: '{"azureStorageBlobContainerUri":"https://storname.blob.core.windows.net/containerokmfum4m5d7wvjs/mhsm-mcpatinotesthsm-2021070722003107","endTime":1625695238,"error":null,"jobId":"23cd6741d96a4aeaad0adbeb7ee787be","startTime":1625695231,"status":"Succeeded","statusDetails":null}'
headers:
cache-control:
- no-cache
Expand All @@ -206,7 +206,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 15 Jun 2021 22:49:19 GMT
- Wed, 07 Jul 2021 22:00:42 GMT
server:
- Kestrel
strict-transport-security:
Expand All @@ -216,19 +216,19 @@ interactions:
x-frame-options:
- SAMEORIGIN
x-ms-build-version:
- 1.0.20210520-1-d6634624-develop
- 1.0.20210605-1-ffd80f31-develop
x-ms-keyvault-network-info:
- conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region:
- canadacentral
- westus
x-ms-server-latency:
- '2229'
- '1629'
status:
code: 200
message: OK
- request:
body: '{"sasTokenParameters": {"storageResourceUri": "https://storname.blob.core.windows.net/containeruu6bhqlnypomdm7",
"token": "redacted"}, "folder": "mhsm-mcpatinotesthsm-2021061522490750"}'
body: '{"sasTokenParameters": {"storageResourceUri": "https://storname.blob.core.windows.net/containerokmfum4m5d7wvjs",
"token": "redacted"}, "folder": "mhsm-mcpatinotesthsm-2021070722003107"}'
headers:
Accept:
- application/json
Expand All @@ -237,19 +237,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '312'
- '308'
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-administration/4.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-administration/4.0.1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: PUT
uri: https://managedhsm/keys/selective-restore-test-key45031a2b/restore?api-version=7.2
response:
body:
string: '{"endTime":null,"error":null,"jobId":"46ce6cd28e9441cf812298a062c427cd","startTime":1623797362,"status":"InProgress","statusDetails":null}'
string: '{"endTime":null,"error":null,"jobId":"c57441368ef44d3a8a2dcfcc0a5c3102","startTime":1625695244,"status":"InProgress","statusDetails":null}'
headers:
azure-asyncoperation:
- https://managedhsm/restore/46ce6cd28e9441cf812298a062c427cd/pending
- https://managedhsm/restore/c57441368ef44d3a8a2dcfcc0a5c3102/pending
cache-control:
- no-cache
content-length:
Expand All @@ -259,7 +259,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 15 Jun 2021 22:49:22 GMT
- Wed, 07 Jul 2021 22:00:44 GMT
server:
- Kestrel
strict-transport-security:
Expand All @@ -271,9 +271,9 @@ interactions:
x-ms-keyvault-network-info:
- conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region:
- canadacentral
- westus
x-ms-server-latency:
- '2599'
- '1925'
status:
code: 202
message: ''
Expand All @@ -287,12 +287,12 @@ interactions:
Connection:
- keep-alive
User-Agent:
- azsdk-python-keyvault-administration/4.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-administration/4.0.1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://managedhsm/restore/46ce6cd28e9441cf812298a062c427cd/pending
uri: https://managedhsm/restore/c57441368ef44d3a8a2dcfcc0a5c3102/pending
response:
body:
string: '{"endTime":null,"error":null,"jobId":"46ce6cd28e9441cf812298a062c427cd","startTime":1623797362,"status":"InProgress","statusDetails":null}'
string: '{"endTime":null,"error":null,"jobId":"c57441368ef44d3a8a2dcfcc0a5c3102","startTime":1625695244,"status":"InProgress","statusDetails":null}'
headers:
cache-control:
- no-cache
Expand All @@ -303,7 +303,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 15 Jun 2021 22:49:34 GMT
- Wed, 07 Jul 2021 22:00:56 GMT
server:
- Kestrel
strict-transport-security:
Expand All @@ -313,13 +313,13 @@ interactions:
x-frame-options:
- SAMEORIGIN
x-ms-build-version:
- 1.0.20210520-1-d6634624-develop
- 1.0.20210605-1-ffd80f31-develop
x-ms-keyvault-network-info:
- conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region:
- canadacentral
- westus
x-ms-server-latency:
- '2284'
- '1778'
status:
code: 200
message: OK
Expand All @@ -333,12 +333,12 @@ interactions:
Connection:
- keep-alive
User-Agent:
- azsdk-python-keyvault-administration/4.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-keyvault-administration/4.0.1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://managedhsm/restore/46ce6cd28e9441cf812298a062c427cd/pending
uri: https://managedhsm/restore/c57441368ef44d3a8a2dcfcc0a5c3102/pending
response:
body:
string: '{"endTime":1623797379,"error":null,"jobId":"46ce6cd28e9441cf812298a062c427cd","startTime":1623797362,"status":"Succeeded","statusDetails":"Number
string: '{"endTime":1625695260,"error":null,"jobId":"c57441368ef44d3a8a2dcfcc0a5c3102","startTime":1625695244,"status":"Succeeded","statusDetails":"Number
of successful key versions restored: 0, Number of key versions could not overwrite:
2"}'
headers:
Expand All @@ -351,7 +351,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 15 Jun 2021 22:49:42 GMT
- Wed, 07 Jul 2021 22:01:03 GMT
server:
- Kestrel
strict-transport-security:
Expand All @@ -361,13 +361,13 @@ interactions:
x-frame-options:
- SAMEORIGIN
x-ms-build-version:
- 1.0.20210520-1-d6634624-develop
- 1.0.20210605-1-ffd80f31-develop
x-ms-keyvault-network-info:
- conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region:
- canadacentral
- westus
x-ms-server-latency:
- '2237'
- '1954'
status:
code: 200
message: OK
Expand Down
Loading