v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-134796204.9 KB
projects

Create a new ImportJob within a KeyRing. ImportJob.import_method is required.

post/v1/{+parent}/importJobs

Path parameters

parentstring required

Required. The name of the KeyRing associated with the ImportJobs.

Query parameters

importJobIdstring

Required. It must be unique within a KeyRing and match the regular expression [a-zA-Z0-9_-]{1,63}

Request body

createTimestring google-datetime

Output only. The time at which this ImportJob was created.

publicKeyFormat'PUBLIC_KEY_FORMAT_UNSPECIFIED' | 'PEM' | 'DER' | 'NIST_PQC' | 'XWING_RAW_BYTES'

Output only. Specifies the WrappingPublicKey format provided by the customer in the KeyManagementService.GetImportJob request.

cryptoKeyBackendstring

Immutable. The resource name of the backend environment where the key material for the wrapping key resides and where all related cryptographic operations are performed. Currently, this field is only populated for keys stored in HSM_SINGLE_TENANT. Note, this list is non-exhaustive and may apply to additional ProtectionLevels in the future. Supported resources: * "projects/*/locations/*/singleTenantHsmInstances/*"

generateTimestring google-datetime

Output only. The time this ImportJob's key material was generated.

expireEventTimestring google-datetime

Output only. The time this ImportJob expired. Only present if state is EXPIRED.

protectionLevel'PROTECTION_LEVEL_UNSPECIFIED' | 'SOFTWARE' | 'HSM' | 'EXTERNAL' | 'EXTERNAL_VPC' | 'HSM_SINGLE_TENANT'

Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into.

state'IMPORT_JOB_STATE_UNSPECIFIED' | 'PENDING_GENERATION' | 'ACTIVE' | 'EXPIRED'

Output only. The current state of the ImportJob, indicating if it can be used.

expireTimestring google-datetime

Output only. The time at which this ImportJob is scheduled for expiration and can no longer be used to import key material.

namestring

Output only. The resource name for this ImportJob in the format projects/*/locations/*/keyRings/*/importJobs/*.

importMethod'IMPORT_METHOD_UNSPECIFIED' | 'RSA_OAEP_3072_SHA1_AES_256' | 'RSA_OAEP_4096_SHA1_AES_256' | 'RSA_OAEP_3072_SHA256_AES_256' | 'RSA_OAEP_4096_SHA256_AES_256' | 'RSA_OAEP_3072_SHA256' | 'RSA_OAEP_4096_SHA256' | 'HPKE_KEM_ML_KEM_768_HKDF_SHA256_AES_256_GCM' | 'HPKE_KEM_ML_KEM_1024_HKDF_SHA256_AES_256_GCM' | 'HPKE_KEM_XWING_HKDF_SHA256_AES_256_GCM'

Required. Immutable. The wrapping method to be used for incoming key material.

Response

Successful response