- [Resource: CryptoKey](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.SCHEMA_REPRESENTATION)
- [CryptoKeyPurpose](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose)
- [CryptoKeyVersionTemplate](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyVersionTemplate)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyVersionTemplate.SCHEMA_REPRESENTATION)
- [KeyAccessJustificationsPolicy](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#KeyAccessJustificationsPolicy)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#KeyAccessJustificationsPolicy.SCHEMA_REPRESENTATION)
- [AccessReason](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#AccessReason)
- [Methods](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#METHODS_SUMMARY)

## Resource: CryptoKey

A `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` represents a logical key that can be used for cryptographic operations.

A `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` is made up of zero or more `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion`, which represent the actual key material used in cryptographic operations.

| JSON representation |
|---|
| ``` { "name": string, "primary": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion`) }, "purpose": enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose`), "createTime": string, "nextRotationTime": string, "versionTemplate": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyVersionTemplate`) }, "labels": { string: string, ... }, "importOnly": boolean, "destroyScheduledDuration": string, "cryptoKeyBackend": string, "keyAccessJustificationsPolicy": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#KeyAccessJustificationsPolicy`) }, // Union field `rotation_schedule` can be only one of the following: "rotationPeriod": string // End of list of possible types for union field `rotation_schedule`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource name for this `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*`. |
| `primary` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion`)`` Output only. A copy of the "primary" `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` that will be used by `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/encrypt#google.cloud.kms.v1.KeyManagementService.Encrypt` when this `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` is given in `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/encrypt#body.PATH_PARAMETERS.name`. The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`'s primary version can be updated via `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/updatePrimaryVersion#google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion`. Keys with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.purpose` `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose.ENUM_VALUES.ENCRYPT_DECRYPT` may have a primary. For other keys, this field will be omitted. |
| `purpose` | ``enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose`)`` Immutable. The immutable purpose of this `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which this `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `nextRotationTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` At `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.next_rotation_time`, the Key Management Service will automatically: 1. Create a new version of this `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`. 2. Mark the new version as primary. Key rotations performed manually via `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/create#google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion` and `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/updatePrimaryVersion#google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion` do not affect `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.next_rotation_time`. Keys with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.purpose` `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose.ENUM_VALUES.ENCRYPT_DECRYPT` support automatic rotation. For other keys, this field must be omitted. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `versionTemplate` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyVersionTemplate`)`` A template describing settings for new `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` instances. The properties of new `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` instances created by either `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/create#google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion` or auto-rotation are controlled by this template. |
| `labels` | `map (key: string, value: string)` Labels with user-defined metadata. For more information, see [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys). |
| `importOnly` | `boolean` Immutable. Whether this key may contain imported versions only. |
| `destroyScheduledDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Immutable. The period of time that versions of this key spend in the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion.CryptoKeyVersionState.ENUM_VALUES.DESTROY_SCHEDULED` state before transitioning to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion.CryptoKeyVersionState.ENUM_VALUES.DESTROYED`. If not specified at creation time, the default duration is 30 days. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `cryptoKeyBackend` | `string` Immutable. The resource name of the backend environment where the key material for all `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` associated with this `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` reside and where all related cryptographic operations are performed. Only applicable if `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` have a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel` of `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel#ENUM_VALUES.EXTERNAL_VPC`, with the resource name in the format `projects/*/locations/*/ekmConnections/*`. Only applicable if `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` have a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel` of `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel#ENUM_VALUES.HSM_SINGLE_TENANT`, with the resource name in the format `projects/*/locations/*/singleTenantHsmInstances/*`. Note, this list is non-exhaustive. |
| `keyAccessJustificationsPolicy` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#KeyAccessJustificationsPolicy`)`` Optional. The policy used for Key Access Justifications Policy Enforcement. If this field is present and this key is enrolled in Key Access Justifications Policy Enforcement, the policy will be evaluated in encrypt, decrypt, and sign operations, and the operation will fail if rejected by the policy. The policy is defined by specifying zero or more allowed justification codes. <https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes> By default, this field is absent, and all justification codes are allowed. If the `keyAccessJustificationsPolicy.allowed_access_reasons` is empty (zero allowed justification code), all encrypt, decrypt, and sign operations will fail. |
| Union field `rotation_schedule`. Controls the rate of automatic rotation. `rotation_schedule` can be only one of the following: ||
| `rotationPeriod` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.next_rotation_time` will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.rotation_period` is set, `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.next_rotation_time` must also be set. Keys with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.purpose` `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose.ENUM_VALUES.ENCRYPT_DECRYPT` support automatic rotation. For other keys, this field must be omitted. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## CryptoKeyPurpose

`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose` describes the cryptographic capabilities of a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`. A given key can only be used for the operations allowed by its purpose. For more information, see [Key purposes](https://cloud.google.com/kms/docs/algorithms#key_purposes).

| Enums ||
|---|---|
| `CRYPTO_KEY_PURPOSE_UNSPECIFIED` | Not specified. |
| `ENCRYPT_DECRYPT` | `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with this purpose may be used with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/encrypt#google.cloud.kms.v1.KeyManagementService.Encrypt` and `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/decrypt#google.cloud.kms.v1.KeyManagementService.Decrypt`. |
| `ASYMMETRIC_SIGN` | `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with this purpose may be used with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/asymmetricSign#google.cloud.kms.v1.KeyManagementService.AsymmetricSign` and `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/getPublicKey#google.cloud.kms.v1.KeyManagementService.GetPublicKey`. |
| `ASYMMETRIC_DECRYPT` | `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with this purpose may be used with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/asymmetricDecrypt#google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt` and `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/getPublicKey#google.cloud.kms.v1.KeyManagementService.GetPublicKey`. |
| `RAW_ENCRYPT_DECRYPT` | `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with this purpose may be used with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/rawEncrypt#google.cloud.kms.v1.KeyManagementService.RawEncrypt` and `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/rawDecrypt#google.cloud.kms.v1.KeyManagementService.RawDecrypt`. This purpose is meant to be used for interoperable symmetric encryption and does not support automatic CryptoKey rotation. |
| `MAC` | `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with this purpose may be used with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/macSign#google.cloud.kms.v1.KeyManagementService.MacSign`. |
| `KEY_ENCAPSULATION` | `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with this purpose may be used with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/getPublicKey#google.cloud.kms.v1.KeyManagementService.GetPublicKey` and `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/decapsulate#google.cloud.kms.v1.KeyManagementService.Decapsulate`. |
| `AES_WRAPPING` | `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with this purpose may be used for AES key |

## CryptoKeyVersionTemplate

A `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyVersionTemplate` specifies the properties to use when creating a new `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion`, either manually with `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/create#google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion` or automatically as a result of auto-rotation.

| JSON representation |
|---|
| ``` { "protectionLevel": enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel`), "algorithm": enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm`) } ``` |

| Fields ||
|---|---|
| `protectionLevel` | ``enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel`)`` `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel` to use when creating a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` based on this template. Immutable. Defaults to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel#ENUM_VALUES.SOFTWARE`. |
| `algorithm` | ``enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm`)`` Required. `https://docs.cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm` to use when creating a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion` based on this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted and `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.purpose` is `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose.ENUM_VALUES.ENCRYPT_DECRYPT`. |

## KeyAccessJustificationsPolicy

A `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#KeyAccessJustificationsPolicy` specifies zero or more allowed `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#AccessReason` values for encrypt, decrypt, and sign operations on a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` or `https://docs.cloud.google.com/kms/docs/reference/rest/v1/KeyAccessJustificationsPolicyConfig` (the default Key Access Justifications policy).

| JSON representation |
|---|
| ``` { "allowedAccessReasons": [ enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#AccessReason`) ] } ``` |

| Fields ||
|---|---|
| `allowedAccessReasons[]` | ``enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#AccessReason`)`` The list of allowed reasons for access to a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`. Note that empty allowedAccessReasons has a different meaning depending on where this message appears. If this is under `https://docs.cloud.google.com/kms/docs/reference/rest/v1/KeyAccessJustificationsPolicyConfig`, it means allow-all. If this is under `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`, it means deny-all. |

## AccessReason

Describes the reason for a data access. Please refer to <https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes> for the detailed semantic meaning of justification reason codes.

| Enums ||
|---|---|
| `REASON_UNSPECIFIED` | Unspecified access reason. |
| `CUSTOMER_INITIATED_SUPPORT` | Customer-initiated support. |
| `GOOGLE_INITIATED_SERVICE` | Google-initiated access for system management and troubleshooting. |
| `THIRD_PARTY_DATA_REQUEST` | Google-initiated access in response to a legal request or legal process. |
| `GOOGLE_INITIATED_REVIEW` | Google-initiated access for security, fraud, abuse, or compliance purposes. |
| `CUSTOMER_INITIATED_ACCESS` | Customer uses their account to perform any access to their own data which their IAM policy authorizes. |
| `GOOGLE_INITIATED_SYSTEM_OPERATION` | Google systems access customer data to help optimize the structure of the data or quality for future uses by the customer. |
| `REASON_NOT_EXPECTED` | No reason is expected for this key request. |
| `MODIFIED_CUSTOMER_INITIATED_ACCESS` | Deprecated: This code is no longer generated by Google Cloud. The GOOGLE_RESPONSE_TO_PRODUCTION_ALERT justification codes available in both Key Access Justifications and Access Transparency logs provide customer-visible signals of emergency access in more precise contexts. Customer uses their account to perform any access to their own data which their IAM policy authorizes, and one of the following is true: - A Google administrator has reset the root-access account associated with the user's organization within the past 7 days. - A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days. > [!WARNING] > This item is deprecated! |
| `MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION` | Deprecated: This code is no longer generated by Google Cloud. The GOOGLE_RESPONSE_TO_PRODUCTION_ALERT justification codes available in both Key Access Justifications and Access Transparency logs provide customer-visible signals of emergency access in more precise contexts. Google systems access customer data to help optimize the structure of the data or quality for future uses by the customer, and one of the following is true: - A Google administrator has reset the root-access account associated with the user's organization within the past 7 days. - A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days. > [!WARNING] > This item is deprecated! |
| `GOOGLE_RESPONSE_TO_PRODUCTION_ALERT` | Google-initiated access to maintain system reliability. |
| `CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING` | One of the following operations is being executed while simultaneously encountering an internal technical issue which prevented a more precise justification code from being generated: - Your account has been used to perform any access to your own data which your IAM policy authorizes. - An automated Google system operates on encrypted customer data which your IAM policy authorizes. - Customer-initiated Google support access. - Google-initiated support access to protect system reliability. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/create` | Create a new `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` within a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings#KeyRing`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/decrypt` | Decrypts data that was protected by `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/encrypt#google.cloud.kms.v1.KeyManagementService.Encrypt`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/delete` | Permanently deletes the given `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/encrypt` | Encrypts data, so that it can only be recovered by a call to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/decrypt#google.cloud.kms.v1.KeyManagementService.Decrypt`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/get` | Returns metadata for a given `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`, as well as its `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey.FIELDS.primary` `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/list` | Lists `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/patch` | Update a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/testIamPermissions` | Returns permissions that a caller has on the specified resource. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/updatePrimaryVersion` | Update the version of a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` that will be used in `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/encrypt#google.cloud.kms.v1.KeyManagementService.Encrypt`. |