[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-20 UTC."],[[["\u003cp\u003eThis webpage details the process for canceling a job using a POST request to the specified Dataproc API endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request URL requires the project ID, region, and job ID as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for canceling a job must be empty, indicating that no additional data is needed beyond the specified parameters in the URL.\u003c/p\u003e\n"],["\u003cp\u003eA successful job cancellation results in a response body containing an instance of the \u003ccode\u003eJob\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eCancelling a job requires the \u003ccode\u003edataproc.jobs.cancel\u003c/code\u003e IAM permission on the \u003ccode\u003ejobId\u003c/code\u003e and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.regions.jobs.cancel\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nStarts a job cancellation request. To access the job resource after cancellation, call [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).\n\n### HTTP request\n\n`POST https://dataproc.googleapis.com/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Job](/dataproc/docs/reference/rest/v1/projects.regions.jobs#Job).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]