Method: projects.locations.jobs.create

Creates a Job.

HTTP request

POST https://run.googleapis.com/v2/{parent}/jobs

Path parameters

Parameters
parent

string

Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. It takes the form projects/{project}/locations/{location}.

Authorization requires the following IAM permission on the specified resource parent:

  • run.jobs.create

Query parameters

Parameters
jobId

string

Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{jobId}.

validateOnly

boolean

Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.

Request body

The request body contains an instance of Job.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.