Skip to content

Commit

Permalink
Add support for default encryption scope & block encryption scope ove…
Browse files Browse the repository at this point in the history
…rride for blob container APIs. (#8595)

* Add support for default encryption scope & block encryption scope override for blob container APIs.

* Add examples.

* Fix prettier issues.

* Fix prettier errors.

* Really fix prettier errors.
  • Loading branch information
tonykjose committed Mar 26, 2020
1 parent 807dc03 commit 9fb516a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@
"x-ms-examples": {
"PutContainers": {
"$ref": "./examples/BlobContainersPut.json"
},
"PutContainerWithDefaultEncryptionScope": {
"$ref": "./examples/BlobContainersPutDefaultEncryptionScope.json"
}
},
"description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ",
Expand Down Expand Up @@ -797,6 +800,14 @@
"definitions": {
"ContainerProperties": {
"properties": {
"defaultEncryptionScope": {
"type": "string",
"description": "Default the container to use specified encryption scope for all writes."
},
"denyEncryptionScopeOverride": {
"type": "boolean",
"description": "Block override of encryption scope from the container default."
},
"publicAccess": {
"type": "string",
"enum": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res3376",
"accountName": "sto328",
"containerName": "container6185",
"api-version": "2019-06-01",
"monitor": "true",
"blobContainer": {
"properties": {
"defaultEncryptionScope": "encryptionscope185",
"denyEncryptionScopeOverride": true
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185",
"name": "container6185",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"properties": {
"defaultEncryptionScope": "encryptionscope185",
"denyEncryptionScopeOverride": true
}
}
},
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185",
"name": "container6185",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"properties": {
"defaultEncryptionScope": "encryptionscope185",
"denyEncryptionScopeOverride": true
}
}
}
}
}

0 comments on commit 9fb516a

Please sign in to comment.