Skip to content

Commit

Permalink
Add encryption scope API to 2019-06-01. (Azure#8381)
Browse files Browse the repository at this point in the history
* 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
anthonykjose and tonykjose authored Feb 14, 2020
1 parent e529759 commit 74cf8e9
Show file tree
Hide file tree
Showing 5 changed files with 435 additions and 0 deletions.
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
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
}
Loading

0 comments on commit 74cf8e9

Please sign in to comment.