Method: projects.locations.updateCmekConfig

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/*/cmekConfig}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
config.name

string

Required. 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.