import_jobs
Creates, updates, deletes, gets or lists an import_jobs
resource.
Overview
Name | import_jobs |
Type | Resource |
Id | google.cloudkms.import_jobs |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name for this ImportJob in the format projects/*/locations/*/keyRings/*/importJobs/* . |
attestation | object | Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen ImportMethod is one with a protection level of HSM. (id: KeyOperationAttestation) |
createTime | string (google-datetime) | Output only. The time at which this ImportJob was created. |
expireEventTime | string (google-datetime) | Output only. The time this ImportJob expired. Only present if state is EXPIRED. |
expireTime | string (google-datetime) | Output only. The time at which this ImportJob is scheduled for expiration and can no longer be used to import key material. |
generateTime | string (google-datetime) | 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 | Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE. (id: WrappingPublicKey) |
state | string | Output only. The current state of the ImportJob, indicating if it can be used. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name for this ImportJob in the format projects/*/locations/*/keyRings/*/importJobs/* . |
attestation | object | Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen ImportMethod is one with a protection level of HSM. (id: KeyOperationAttestation) |
createTime | string (google-datetime) | Output only. The time at which this ImportJob was created. |
expireEventTime | string (google-datetime) | Output only. The time this ImportJob expired. Only present if state is EXPIRED. |
expireTime | string (google-datetime) | Output only. The time at which this ImportJob is scheduled for expiration and can no longer be used to import key material. |
generateTime | string (google-datetime) | 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 | Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE. (id: WrappingPublicKey) |
state | string | Output only. The current state of the ImportJob, indicating if it can be used. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , keyRingsId , importJobsId | Returns metadata for a given ImportJob. | |
list | select | projectsId , locationsId , keyRingsId | pageSize , pageToken , filter , orderBy | Lists ImportJobs. |
create | insert | projectsId , locationsId , keyRingsId | importJobId | Create a new ImportJob within a KeyRing. ImportJob.import_method is required. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
importJobsId | string | |
keyRingsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
importJobId | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Returns metadata for a given ImportJob.
SELECT
name,
attestation,
createTime,
expireEventTime,
expireTime,
generateTime,
importMethod,
protectionLevel,
publicKey,
state
FROM google.cloudkms.import_jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND keyRingsId = '{{ keyRingsId }}' -- required
AND importJobsId = '{{ importJobsId }}' -- required;
Lists ImportJobs.
SELECT
name,
attestation,
createTime,
expireEventTime,
expireTime,
generateTime,
importMethod,
protectionLevel,
publicKey,
state
FROM google.cloudkms.import_jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND keyRingsId = '{{ keyRingsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Create a new ImportJob within a KeyRing. ImportJob.import_method is required.
INSERT INTO google.cloudkms.import_jobs (
data__importMethod,
data__protectionLevel,
projectsId,
locationsId,
keyRingsId,
importJobId
)
SELECT
'{{ importMethod }}',
'{{ protectionLevel }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ keyRingsId }}',
'{{ importJobId }}'
RETURNING
name,
attestation,
createTime,
expireEventTime,
expireTime,
generateTime,
importMethod,
protectionLevel,
publicKey,
state
;
# Description fields are for documentation purposes
- name: import_jobs
props:
- name: projectsId
value: string
description: Required parameter for the import_jobs resource.
- name: locationsId
value: string
description: Required parameter for the import_jobs resource.
- name: keyRingsId
value: string
description: Required parameter for the import_jobs resource.
- name: importMethod
value: string
description: >
Required. Immutable. The wrapping method to be used for incoming key material.
valid_values: ['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']
- name: protectionLevel
value: string
description: >
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.
valid_values: ['PROTECTION_LEVEL_UNSPECIFIED', 'SOFTWARE', 'HSM', 'EXTERNAL', 'EXTERNAL_VPC']
- name: importJobId
value: string