Menu
Bigquery.jobs.cancel
Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.
POST
/projects/{projectId}/jobs/{jobId}/cancelUse it in a workflow
- Add a step and choose the BigQuery connector.
- Pick the Bigquery.jobs.cancel action (under jobs).
- Fill in the fields below, then reference the result from later steps as
{{bigqueryJobsCancel.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{bigqueryJobsCancel.response.data.<field>}}.
{
"job": {
"configuration": {
"copy": {
"createDisposition": "string",
"destinationEncryptionConfiguration": {
"kmsKeyName": "string"
},
"destinationExpirationTime": null,
"destinationTable": {
"datasetId": "string",
"projectId": "string",
"tableId": "string"
},
"operationType": "string",
"sourceTable": {
"datasetId": "string",
"projectId": "string",
"tableId": "string"
},
"sourceTables": [
{
"datasetId": "string",
"projectId": "string",
"tableId": "string"
}
],
"writeDisposition": "string"
},
"dryRun": false,
"extract": {
"compression": "string",
"destinationFormat": "string",
"destinationUri": "string",
"destinationUris": [
"string"
],
"fieldDelimiter": "string",
"printHeader": true,
"sourceModel": {
"datasetId": "string",
"modelId": "string",
"projectId": "string"
},
"sourceTable": {
"datasetId": "string",
"projectId": "string",
"tableId": "string"
},
"useAvroLogicalTypes": false
},
"jobTimeoutMs": "string",
"jobType": "string",
"labels": {},
"load": {
"allowJaggedRows": false,
"allowQuotedNewlines": false,
"autodetect": false,
"clustering": {
"fields": [
"string"
]
},
"connectionProperties": [
{
"key": "string",
"value": "string"
}
],
"createDisposition": "string",
"createSession": false,
"decimalTargetTypes": [
"string"
],
"destinationEncryptionConfiguration": {
"kmsKeyName": "string"
},
"destinationTable": {
"datasetId": "string",
"projectId": "string",
"tableId": "string"
},
"destinationTableProperties": {
"description": "string",
"expirationTime": "2025-01-01T00:00:00Z",
"friendlyName": "string",
"labels": {}
},
"encoding": "string"
},
"query": {
"allowLargeResults": false,
"clustering": {
"fields": [
"string"
]
},
"connectionProperties": [
{
"key": "string",
"value": "string"
}
],
"continuous": false,
"createDisposition": "string",
"createSession": false,
"defaultDataset": {
"datasetId": "string",
"projectId": "string"
},
"destinationEncryptionConfiguration": {
"kmsKeyName": "string"
},
"destinationTable": {
"datasetId": "string",
"projectId": "string",
"tableId": "string"
},
"flattenResults": true,
"maximumBillingTier": 1,
"maximumBytesBilled": "string"
}
},
"etag": "string",
"id": "string",
"jobReference": {
"jobId": "string",
"location": "string",
"projectId": "string"
},
"kind": "bigquery#job",
"selfLink": "string",
"statistics": {
"completionRatio": 0,
"copy": {
"copied_logical_bytes": "string",
"copied_rows": "string"
},
"creationTime": "string",
"dataMaskingStatistics": {
"dataMaskingApplied": false
},
"endTime": "string",
"extract": {
"destinationUriFileCounts": [
"string"
],
"inputBytes": "string"
},
"load": {
"badRecords": "string",
"inputFileBytes": "string",
"inputFiles": "string",
"outputBytes": "string",
"outputRows": "string"
},
"numChildJobs": "string",
"parentJobId": "string",
"query": {
"biEngineStatistics": {
"accelerationMode": "",
"biEngineMode": "",
"biEngineReasons": [
{
"code": null,
"message": null
}
]
},
"billingTier": 0,
"cacheHit": false,
"ddlAffectedRowAccessPolicyCount": "string",
"ddlDestinationTable": {
"datasetId": "string",
"projectId": "string",
"tableId": "string"
},
"ddlOperationPerformed": "string",
"ddlTargetDataset": {
"datasetId": "string",
"projectId": "string"
},
"ddlTargetRoutine": {
"datasetId": "string",
"projectId": "string",
"routineId": "string"
},
"ddlTargetRowAccessPolicy": {
"datasetId": "string",
"policyId": "string",
"projectId": "string",
"tableId": "string"
},
"ddlTargetTable": {
"datasetId": "string",
"projectId": "string",
"tableId": "string"
},
"dmlStats": {
"deletedRowCount": "string",
"insertedRowCount": "string",
"updatedRowCount": "string"
},
"estimatedBytesProcessed": "string"
},
"quotaDeferments": [
"string"
],
"reservationUsage": [
{
"name": "string",
"slotMs": "string"
}
]
},
"status": {
"errorResult": {
"debugInfo": "string",
"location": "string",
"message": "string",
"reason": "string"
},
"errors": [
{
"debugInfo": "string",
"location": "string",
"message": "string",
"reason": "string"
}
],
"state": "string"
},
"user_email": "string"
},
"kind": "bigquery#jobCancelResponse"
}
Need more? See the BigQuery guide for connection setup and behaviour shared by every action.
Was this page helpful?