Provisions a CMEK key for use in a location of a customer's project. This method will also conduct location validation on the provided cmekConfig to make sure the key is valid and can be used in the selected location.
Required. The name of the CmekConfig of the form projects/{project}/locations/{location}/cmekConfig or projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}.
Query parameters
Parameters
setDefault
boolean
Set the following CmekConfig as the default to be used for child resources if one is not specified.
Request body
The request body contains an instance of CmekConfig.
Response body
If successful, the response body contains an instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-19 UTC."],[[["This endpoint allows you to provision a Customer-Managed Encryption Key (CMEK) for use within a specified location of a customer's project, validating its usability in that location."],["The `PATCH` method, which uses gRPC Transcoding syntax, updates a `CmekConfig` resource identified by its name within the URL path."],["You can use the `setDefault` query parameter to designate the updated `CmekConfig` as the default for any child resources within the project location."],["The request requires an instance of `CmekConfig` within the request body, and successful operations return an instance of `Operation` in the response body."],["Updating the `CmekConfig` requires the `discoveryengine.cmekConfigs.update` IAM permission and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]