Skip to main content

runs

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

Overview

Nameruns
TypeResource
Idgoogle.bigquerydatatransfer.runs

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the transfer run. Transfer run names have the form projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}. The name is ignored when creating a transfer run.
dataSourceIdstringOutput only. Data source id.
destinationDatasetIdstringOutput only. The BigQuery target dataset id.
emailPreferencesobjectOutput only. Email notifications will be sent according to these preferences to the email address of the user who owns the transfer config this run was derived from. (id: EmailPreferences)
endTimestring (google-datetime)Output only. Time when transfer run ended. Parameter ignored by server for input requests.
errorStatusobjectStatus of the transfer run. (id: Status)
notificationPubsubTopicstringOutput only. Pub/Sub topic where a notification will be sent after this transfer run finishes. The format for specifying a pubsub topic is: projects/{project_id}/topics/{topic_id}
paramsobjectOutput only. Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
runTimestring (google-datetime)For batch transfer runs, specifies the date and time of the data should be ingested.
schedulestringOutput only. Describes the schedule of this transfer run if it was created as part of a regular schedule. For batch transfer runs that are scheduled manually, this is empty. NOTE: the system might choose to delay the schedule depending on the current load, so schedule_time doesn't always match this.
scheduleTimestring (google-datetime)Minimum time after which a transfer run can be started.
startTimestring (google-datetime)Output only. Time when transfer run was started. Parameter ignored by server for input requests.
statestringData transfer run state. Ignored for input requests.
updateTimestring (google-datetime)Output only. Last time the data transfer run state was updated.
userIdstring (int64)Deprecated. Unique ID of the user on whose behalf transfer is done.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_transfer_configs_runs_getselectprojectsId, locationsId, transferConfigsId, runsIdReturns information about the particular transfer run.
projects_transfer_configs_runs_getselectprojectsId, transferConfigsId, runsIdReturns information about the particular transfer run.
projects_locations_transfer_configs_runs_listselectprojectsId, locationsId, transferConfigsIdstates, pageToken, pageSize, runAttemptReturns information about running and completed transfer runs.
projects_transfer_configs_runs_listselectprojectsId, transferConfigsIdstates, pageToken, pageSize, runAttemptReturns information about running and completed transfer runs.
projects_locations_transfer_configs_runs_deletedeleteprojectsId, locationsId, transferConfigsId, runsIdDeletes the specified transfer run.
projects_transfer_configs_runs_deletedeleteprojectsId, transferConfigsId, runsIdDeletes the specified transfer run.

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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
runsIdstring
transferConfigsIdstring
pageSizeinteger (int32)
pageTokenstring
runAttemptstring
statesstring

SELECT examples

Returns information about the particular transfer run.

SELECT
name,
dataSourceId,
destinationDatasetId,
emailPreferences,
endTime,
errorStatus,
notificationPubsubTopic,
params,
runTime,
schedule,
scheduleTime,
startTime,
state,
updateTime,
userId
FROM google.bigquerydatatransfer.runs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND transferConfigsId = '{{ transferConfigsId }}' -- required
AND runsId = '{{ runsId }}' -- required;

DELETE examples

Deletes the specified transfer run.

DELETE FROM google.bigquerydatatransfer.runs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND transferConfigsId = '{{ transferConfigsId }}' --required
AND runsId = '{{ runsId }}' --required;