---
title: "POST /v1/{+parent}/encryptionConfigs"
method: POST
path: "/v1/{+parent}/encryptionConfigs"
tags: ["organizations"]
---

# POST /v1/{+parent}/encryptionConfigs

`POST /v1/{+parent}/encryptionConfigs`

Create an EncryptionConfig.

## Path parameters

- `parent` string, required

## Query parameters

- `encryptionConfigId` string

## Request body

- GoogleCloudDataplexV1EncryptionConfig — A Resource designed to manage encryption configurations for customers to support Customer Managed Encryption Keys (CMEK).
  - `encryptionState` 'ENCRYPTION_STATE_UNSPECIFIED' | 'ENCRYPTING' | 'COMPLETED' | 'FAILED' — Output only. The state of encryption of the databases.
  - `key` string — Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.
  - `name` string — Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.
  - `etag` string — Etag of the EncryptionConfig. This is a strong etag.
  - `enableMetastoreEncryption` boolean — Optional. Represent the state of CMEK opt-in for metastore.
  - `updateTime` string, google-datetime — Output only. The time when the Encryption configuration was last updated.
  - `failureDetails` GoogleCloudDataplexV1EncryptionConfigFailureDetails — Details of the failure if anything related to Cmek db fails.
    - `errorCode` 'UNKNOWN' | 'INTERNAL_ERROR' | 'REQUIRE_USER_ACTION' — Output only. The error code for the failure.
    - `errorMessage` string — Output only. The error message will be shown to the user. Set only if the error code is REQUIRE_USER_ACTION.
  - `createTime` string, google-datetime — Output only. The time when the Encryption configuration was created.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/dataplex.md) · [All operations](https://skmtc.net/google/apis/dataplex/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/dataplex/versions/43a3b60ca93b/schema)
