diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json index 57b2fbf17f02..5cf9ba099a3c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json @@ -2017,6 +2017,7 @@ } }, "description": "Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly).", + "x-ms-long-running-operation": true, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" @@ -2047,6 +2048,9 @@ } ], "responses": { + "202": { + "description": "The client encryption key create or update operation will complete asynchronously." + }, "200": { "description": "The client encryption key create or update operation was completed successfully.", "schema": { @@ -8132,6 +8136,10 @@ "type": "object", "description": "Cosmos DB client encryption key resource object.", "properties": { + "id": { + "type": "string", + "description": "Name of the ClientEncryptionKey" + }, "encryptionAlgorithm": { "type": "string", "description": "Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data." diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json index b486ea283f0a..39ba75e99bfb 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json @@ -9,6 +9,7 @@ "createUpdateClientEncryptionKeyParameters": { "properties": { "resource": { + "id": "cekName", "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": { @@ -28,6 +29,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", "properties": { "resource": { + "id": "cekName", "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": { @@ -41,6 +43,7 @@ } } } - } + }, + "202": {} } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json index 8d6e46c61b70..dd048f352f29 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json @@ -15,6 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", "properties": { "resource": { + "id": "cekName", "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": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeysList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeysList.json index ac126fb736e7..6b7ad111a16d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeysList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeysList.json @@ -16,6 +16,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", "properties": { "resource": { + "id": "cekName1", "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": { @@ -35,6 +36,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", "properties": { "resource": { + "id": "cekName2", "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": {