# Source: https://docs.datadoghq.com/ddsql_reference/data_directory/oci/oci.kms_key.dataset.md

---
title: Vault Key
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Vault Key
---

# Vault Key

A Vault Key in Oracle Cloud Infrastructure is a managed encryption key stored in the Vault service. It is used to protect sensitive data by enabling encryption and decryption operations for resources and applications. The key is backed by hardware security modules for strong security and can be rotated, disabled, or retired as needed.

```
oci.kms_key
```

## Fields

| Title                          | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                                                              | Description |
| ------------------------------ | ---- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                           | core | string     |
| auto_key_rotation_details      | core | json       | The value to assign to the auto_key_rotation_details property of this Key.                                                                                                                                                                                                                                                                                                                                             |
| cloud_account_id               | core | string     | The identifier of the related cloud account. The concept of an account might have different names in different cloud providers. AWS is calling it account, GCP calls it project and Azure uses the term subscription.                                                                                                                                                                                                  |
| cloud_account_name             | core | string     | The name of the account this resource belongs to.                                                                                                                                                                                                                                                                                                                                                                      |
| cloud_provider                 | core | string     | The name of the cloud provider.                                                                                                                                                                                                                                                                                                                                                                                        |
| cloud_tags                     | core | hstore     |
| compartment_id                 | core | string     | The value to assign to the compartment_id property of this Key.                                                                                                                                                                                                                                                                                                                                                        |
| created_at                     | core | timestamp  | Time when the resource has been created.                                                                                                                                                                                                                                                                                                                                                                               |
| current_key_version            | core | string     | The value to assign to the current_key_version property of this Key.                                                                                                                                                                                                                                                                                                                                                   |
| external_key_reference_details | core | json       | The value to assign to the external_key_reference_details property of this Key.                                                                                                                                                                                                                                                                                                                                        |
| freeform_tags                  | core | hstore     | The value to assign to the freeform_tags property of this Key.                                                                                                                                                                                                                                                                                                                                                         |
| id                             | core | string     | The value to assign to the id property of this Key.                                                                                                                                                                                                                                                                                                                                                                    |
| is_auto_rotation_enabled       | core | bool       | The value to assign to the is_auto_rotation_enabled property of this Key.                                                                                                                                                                                                                                                                                                                                              |
| is_primary                     | core | bool       | The value to assign to the is_primary property of this Key.                                                                                                                                                                                                                                                                                                                                                            |
| key_shape                      | core | json       | The value to assign to the key_shape property of this Key.                                                                                                                                                                                                                                                                                                                                                             |
| lifecycle_state                | core | string     | The value to assign to the lifecycle_state property of this Key. Allowed values for this property are: "CREATING", "ENABLING", "ENABLED", "DISABLING", "DISABLED", "DELETING", "DELETED", "PENDING_DELETION", "SCHEDULING_DELETION", "CANCELLING_DELETION", "UPDATING", "BACKUP_IN_PROGRESS", "RESTORING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. |
| name                           | core | string     | The name of this resource.                                                                                                                                                                                                                                                                                                                                                                                             |
| protection_mode                | core | string     | The value to assign to the protection_mode property of this Key. Allowed values for this property are: "HSM", "SOFTWARE", "EXTERNAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.                                                                                                                                                                      |
| region_id                      | core | string     | The region this resource resides within.                                                                                                                                                                                                                                                                                                                                                                               |
| replica_details                | core | json       | The value to assign to the replica_details property of this Key.                                                                                                                                                                                                                                                                                                                                                       |
| resource_type                  | core | string     | The name of the resource type.                                                                                                                                                                                                                                                                                                                                                                                         |
| restored_from_key_id           | core | string     | The value to assign to the restored_from_key_id property of this Key.                                                                                                                                                                                                                                                                                                                                                  |
| tags                           | core | hstore_csv |
| time_created                   | core | timestamp  | The value to assign to the time_created property of this Key.                                                                                                                                                                                                                                                                                                                                                          |
| time_of_deletion               | core | timestamp  | The value to assign to the time_of_deletion property of this Key.                                                                                                                                                                                                                                                                                                                                                      |
| updated_at                     | core | timestamp  | Time when the resource has been updated the last time.                                                                                                                                                                                                                                                                                                                                                                 |
| vault_id                       | core | string     | The value to assign to the vault_id property of this Key.                                                                                                                                                                                                                                                                                                                                                              |
| zone_id                        | core | string     | The zone this resource resides within.                                                                                                                                                                                                                                                                                                                                                                                 |