forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add encryption scope API to 2019-06-01. (Azure#8381)
* Add encryption scope API to 2019-06-01. Add encryption scope API to 2019-06-01. * Address CI failures. * Fix CI failures #2. * Address CI failures #3. Co-authored-by: Anthony Kunnel Jose <[email protected]>
- Loading branch information
1 parent
e529759
commit 74cf8e9
Showing
5 changed files
with
435 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...nager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountEncryptionScopeList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "resource-group-name", | ||
"accountName": "{storage-account-name}", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/{storage-account-name}/encryptionScopes/scope-1", | ||
"name": "scope-1", | ||
"type": "Microsoft.Storage/storageAccounts/encryptionScopes", | ||
"properties": { | ||
"source": "Microsoft.Storage", | ||
"state": "Enabled", | ||
"creationTime": "2018-10-16T02:42:41.7633306Z", | ||
"lastModifiedTime": "2018-10-16T02:42:41.7633306Z" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/{storage-account-name}/encryptionScopes/scope-2", | ||
"name": "scope-2", | ||
"type": "Microsoft.Storage/storageAccounts/encryptionScopes", | ||
"properties": { | ||
"source": "Microsoft.KeyVault", | ||
"state": "Enabled", | ||
"keyVaultProperties": { | ||
"keyUri": "https://testvault.vault.core.windows.net/keys/key1/863425f1358359c" | ||
}, | ||
"creationTime": "2018-10-16T04:32:14.3355306Z", | ||
"lastModifiedTime": "2018-10-17T06:23:14.4513306Z" | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...anager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountGetEncryptionScope.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "resource-group-name", | ||
"accountName": "{storage-account-name}", | ||
"encryptionScopeName": "{encryption-scope-name}", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/{storage-account-name}/encryptionScopes/{encryption-scope-name}", | ||
"name": "{encyrption-scope-name}", | ||
"type": "Microsoft.Storage/storageAccounts/encryptionScopes", | ||
"properties": { | ||
"source": "Microsoft.Storage", | ||
"state": "Enabled", | ||
"creationTime": "2018-10-16T02:42:41.7633306Z", | ||
"lastModifiedTime": "2018-10-16T02:42:41.7633306Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountPatchEncryptionScope.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "resource-group-name", | ||
"accountName": "{storage-account-name}", | ||
"encryptionScopeName": "{encryption-scope-name}", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"encryptionScope": { | ||
"properties": { | ||
"source": "Microsoft.KeyVault", | ||
"keyVaultProperties": { | ||
"keyUri": "https://testvault.vault.core.windows.net/keys/key1/863425f1358359c" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/{storage-account-name}/encryptionScopes/{encryption-scope-name}", | ||
"name": "{encryption-scope-name}", | ||
"type": "Microsoft.Storage/storageAccounts/encryptionScopes", | ||
"properties": { | ||
"source": "Microsoft.KeyVault", | ||
"state": "Enabled", | ||
"keyVaultProperties": { | ||
"keyUri": "https://testvault.vault.core.windows.net/keys/key1/863425f1358359c" | ||
}, | ||
"creationTime": "2018-10-16T02:42:41.7633306Z", | ||
"lastModifiedTime": "2018-10-17T06:23:14.4513306Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...anager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountPutEncryptionScope.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "resource-group-name", | ||
"accountName": "{storage-account-name}", | ||
"encryptionScopeName": "{encryption-scope-name}", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"encryptionScope": {} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/{storage-account-name}/encryptionScopes/{encryption-scope-name}", | ||
"name": "{encryption-scope-name}", | ||
"type": "Microsoft.Storage/storageAccounts/encryptionScopes", | ||
"properties": { | ||
"source": "Microsoft.Storage", | ||
"state": "Enabled", | ||
"creationTime": "2018-10-16T02:42:41.7633306Z", | ||
"lastModifiedTime": "2018-10-16T02:42:41.7633306Z" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/{storage-account-name}/encryptionScopes/{encryption-scope-name}", | ||
"name": "{encryption-scope-name}", | ||
"type": "Microsoft.Storage/storageAccounts/encryptionScopes", | ||
"properties": { | ||
"source": "Microsoft.Storage", | ||
"state": "Enabled", | ||
"creationTime": "2018-10-16T02:42:41.7633306Z", | ||
"lastModifiedTime": "2018-10-16T02:42:41.7633306Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.