import_jobs
Creates, updates, deletes, gets or lists a import_jobs
resource.
Overview
Name | import_jobs |
Type | Resource |
Id | google.cloudkms.import_jobs |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name for this ImportJob in the format projects/*/locations/*/keyRings/*/importJobs/* . |
attestation | object | Contains an HSM-generated attestation about a key operation. For more information, see [Verifying attestations] (https://cloud.google.com/kms/docs/attest-key). |
createTime | string | Output only. The time at which this ImportJob was created. |
expireEventTime | string | Output only. The time this ImportJob expired. Only present if state is EXPIRED. |
expireTime | string | Output only. The time at which this ImportJob is scheduled for expiration and can no longer be used to import key material. |
generateTime | string | Output only. The time this ImportJob's key material was generated. |
importMethod | string | Required. Immutable. The wrapping method to be used for incoming key material. |
protectionLevel | string | 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. |
publicKey | object | The public key component of the wrapping key. For details of the type of key this public key corresponds to, see the ImportMethod. |
state | string | Output only. The current state of the ImportJob, indicating if it can be used. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | importJobsId, keyRingsId, locationsId, projectsId | Returns metadata for a given ImportJob. |
list | SELECT | keyRingsId, locationsId, projectsId | Lists ImportJobs. |
create | INSERT | keyRingsId, locationsId, projectsId | Create a new ImportJob within a KeyRing. ImportJob.import_method is required. |
SELECT
examples
Lists ImportJobs.
SELECT
name,
attestation,
createTime,
expireEventTime,
expireTime,
generateTime,
importMethod,
protectionLevel,
publicKey,
state
FROM google.cloudkms.import_jobs
WHERE keyRingsId = '{{ keyRingsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new import_jobs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.cloudkms.import_jobs (
keyRingsId,
locationsId,
projectsId,
importMethod,
protectionLevel
)
SELECT
'{{ keyRingsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ importMethod }}',
'{{ protectionLevel }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: importMethod
value: string
- name: protectionLevel
value: string
- name: createTime
value: string
- name: generateTime
value: string
- name: expireTime
value: string
- name: expireEventTime
value: string
- name: state
value: string
- name: publicKey
value:
- name: pem
value: string
- name: attestation
value:
- name: format
value: string
- name: content
value: string
- name: certChains
value:
- name: caviumCerts
value:
- string
- name: googleCardCerts
value:
- string
- name: googlePartitionCerts
value:
- string