Skip to main content

import_data_files

Creates, updates, deletes, gets or lists a import_data_files resource.

Overview

Nameimport_data_files
TypeResource
Idgoogle.migrationcenter.import_data_files

Fields

NameDatatypeDescription
namestringOutput only. The name of the file.
createTimestringOutput only. The timestamp when the file was created.
displayNamestringUser-friendly display name. Maximum length is 63 characters.
formatstringRequired. The payload format.
statestringOutput only. The state of the import data file.
uploadFileInfoobjectA resource that contains a URI to which a data file can be uploaded.

Methods

NameAccessible byRequired ParamsDescription
getSELECTimportDataFilesId, importJobsId, locationsId, projectsIdGets an import data file.
listSELECTimportJobsId, locationsId, projectsIdList import data files.
createINSERTimportJobsId, locationsId, projectsIdCreates an import data file.
deleteDELETEimportDataFilesId, importJobsId, locationsId, projectsIdDelete an import data file.

SELECT examples

List import data files.

SELECT
name,
createTime,
displayName,
format,
state,
uploadFileInfo
FROM google.migrationcenter.import_data_files
WHERE importJobsId = '{{ importJobsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new import_data_files resource.

/*+ create */
INSERT INTO google.migrationcenter.import_data_files (
importJobsId,
locationsId,
projectsId,
displayName,
format,
uploadFileInfo
)
SELECT
'{{ importJobsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ displayName }}',
'{{ format }}',
'{{ uploadFileInfo }}'
;

DELETE example

Deletes the specified import_data_files resource.

/*+ delete */
DELETE FROM google.migrationcenter.import_data_files
WHERE importDataFilesId = '{{ importDataFilesId }}'
AND importJobsId = '{{ importJobsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';