Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next sequential id. If unset, state will be set to ENABLED.
Path parameters
Required. The name of the CryptoKey associated with the CryptoKeyVersions.
Request body
Output only. The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED.
Output only. The resource name for this CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.
Output only. The time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.
Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.
Output only. The time this CryptoKeyVersion's key material was destroyed. Only present if state is DESTROYED.
The current state of the CryptoKeyVersion.
Immutable. Field indicating that the key may be wrapped by a trusted key. This field can be set for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with protection level HSM_SINGLE_TENANT. This field can only be set at creation or import time via CreateCryptoKeyVersion, or ImportCryptoKeyVersion.
Output only. The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported.
Output only. The time at which this CryptoKeyVersion was created.
Output only. The root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED.
Output only. The time this CryptoKeyVersion's key material was generated.
Output only. The time at which this CryptoKeyVersion's key material was most recently imported.
Output only. The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.
Output only. The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.
Output only. Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version.
Output only. Field indicating that the key wrapping key is trusted. This field is only valid for key purpose AES_256_WRAPPING, and protection level HSM_SINGLE_TENANT.
Response
Successful response