Method: projects.locations.cmekConfigs.patch
Stay organized with collections
Save and categorize content based on your preferences.
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.
HTTP request
PATCH https://discoveryengine.googleapis.com/v1alpha/{config.name=projects/*/locations/*/cmekConfigs/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
config.name |
string
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
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
discoveryengine.cmekConfigs.update
For more information, see the IAM documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["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-03 UTC."],[[["This document describes how to update a Customer-Managed Encryption Key (CMEK) configuration for a specific location within a project."],["The update operation is performed via a PATCH HTTP request to a specified URL that includes path parameters for identifying the CMEK configuration."],["Setting a default CMEK configuration for child resources within a project location is an option, using the 'setDefault' query parameter."],["Updating the CMEK configuration requires appropriate authorization scopes and the 'discoveryengine.cmekConfigs.update' IAM permission."],["A successful CMEK configuration update will return an Operation instance in the response body."]]],[]]