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.
Antoshni cosmos db 2021 10 15 preview cek management (#1)
* Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview * Updates readme * Updates API version in new specs and examples * ClientEncryptionKey management API changes * Address semantics validation errors * Fix representation of wrappedDek * fix Swagger prettier formatting check * minor edits to address comments" * fix LintDiff error * Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview * Updates readme * Updates API version in new specs and examples * remove CreateUpdateOptions as they arent applicable for CEK * fix Model validation check Co-authored-by: anujtoshniwal <[email protected]> Co-authored-by: Anuj Toshniwal <[email protected]>
- Loading branch information
1 parent
1db5652
commit 60844c7
Showing
5 changed files
with
377 additions
and
0 deletions.
There are no files selected for viewing
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
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
46 changes: 46 additions & 0 deletions
46
...entDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.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,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-10-15-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rgName", | ||
"accountName": "accountName", | ||
"databaseName": "databaseName", | ||
"clientEncryptionKeyName": "cekName", | ||
"createUpdateClientEncryptionKeyParameters": { | ||
"properties": { | ||
"resource": { | ||
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256", | ||
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example", | ||
"keyWrapMetadata": { | ||
"name": "customerManagedKey", | ||
"type": "AzureKeyVault", | ||
"value": "AzureKeyVault Key URL" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientEncryptionKeys/cekName", | ||
"name": "cekName", | ||
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", | ||
"properties": { | ||
"resource": { | ||
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256", | ||
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example", | ||
"keyWrapMetadata": { | ||
"name": "customerManagedKey", | ||
"type": "AzureKeyVault", | ||
"value": "AzureKeyVault Key URL" | ||
}, | ||
"_rid": "tNc4AAAAAAAQkjzWAgAAAA==", | ||
"_ts": 1626425552, | ||
"_etag": "00000000-0000-0000-7a1f-bc0828e801d7" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...oft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyGet.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,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-10-15-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rgName", | ||
"accountName": "accountName", | ||
"databaseName": "databaseName", | ||
"clientEncryptionKeyName": "cekName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientEncryptionKeys/cekName", | ||
"name": "cekName", | ||
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", | ||
"properties": { | ||
"resource": { | ||
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256", | ||
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example", | ||
"keyWrapMetadata": { | ||
"name": "customerManagedKey", | ||
"type": "AzureKeyVault", | ||
"value": "AzureKeyVault Key URL" | ||
}, | ||
"_rid": "tNc4AAAAAAAQkjzWAgAAAA==", | ||
"_ts": 1626425552, | ||
"_etag": "00000000-0000-0000-7a1f-bc0828e801d7" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.