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

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

# Key Version

A Key Version in Oracle Cloud Infrastructure represents a specific cryptographic version of a master encryption key stored in the Vault service. Each version contains unique cryptographic material used for encryption and decryption operations. Key versions enable secure key rotation, allowing users to retire old keys while maintaining access to previously encrypted data.

```
oci.kms_key_version
```

## Fields

| Title                          | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                      | Description |
| ------------------------------ | ---- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| _key                           | core | string     |
| 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 KeyVersion.                                                                                                                                                                                                                                                                                                         |
| created_at                     | core | timestamp  | Time when the resource has been created.                                                                                                                                                                                                                                                                                                                                       |
| external_key_reference_details | core | json       | The value to assign to the external_key_reference_details property of this KeyVersion.                                                                                                                                                                                                                                                                                         |
| freeform_tags                  | core | hstore     | The value to assign to the freeform_tags property of this Instance.                                                                                                                                                                                                                                                                                                            |
| id                             | core | string     | The value to assign to the id property of this KeyVersion.                                                                                                                                                                                                                                                                                                                     |
| is_auto_rotated                | core | bool       | The value to assign to the is_auto_rotated property of this KeyVersion.                                                                                                                                                                                                                                                                                                        |
| is_primary                     | core | bool       | The value to assign to the is_primary property of this KeyVersion.                                                                                                                                                                                                                                                                                                             |
| key_id                         | core | string     | The value to assign to the key_id property of this KeyVersion.                                                                                                                                                                                                                                                                                                                 |
| lifecycle_state                | core | string     | The value to assign to the lifecycle_state property of this KeyVersion. Allowed values for this property are: "CREATING", "ENABLING", "ENABLED", "DISABLING", "DISABLED", "DELETING", "DELETED", "PENDING_DELETION", "SCHEDULING_DELETION", "CANCELLING_DELETION", '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.                                                                                                                                                                                                                                                                                                                                                     |
| origin                         | core | string     | The value to assign to the origin property of this KeyVersion. Allowed values for this property are: "INTERNAL", "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 KeyVersion.                                                                                                                                                                                                                                                                                                        |
| resource_type                  | core | string     | The name of the resource type.                                                                                                                                                                                                                                                                                                                                                 |
| restored_from_key_version_id   | core | string     | The value to assign to the restored_from_key_version_id property of this KeyVersion.                                                                                                                                                                                                                                                                                           |
| tags                           | core | hstore_csv |
| time_created                   | core | timestamp  | The value to assign to the time_created property of this KeyVersion.                                                                                                                                                                                                                                                                                                           |
| time_of_deletion               | core | timestamp  | The value to assign to the time_of_deletion property of this KeyVersion.                                                                                                                                                                                                                                                                                                       |
| 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 KeyVersion.                                                                                                                                                                                                                                                                                                               |
| zone_id                        | core | string     | The zone this resource resides within.                                                                                                                                                                                                                                                                                                                                         |