- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- Overrides
- ContainerOverride
Triggers creation of a new Execution of this Job.
HTTP request
POST https://run.googleapis.com/v2/{name}:run
Path parameters
Parameters | |
---|---|
name
|
Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number. It takes the form |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"validateOnly"
:
boolean
,
"etag"
:
string
,
"overrides"
:
{
object (
|
validateOnly
boolean
Indicates that the request should be validated without actually deleting any resources.
etag
string
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
Overrides
jobs.run Overrides that contains Execution fields to be overridden.
JSON representation |
---|
{
"containerOverrides"
:
[
{
object (
|
Fields | |
---|---|
containerOverrides[]
|
Per container override specification. |
taskCount
|
Optional. The desired number of tasks the execution should run. Will replace existing taskCount value. |
timeout
|
Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeoutSeconds value. A duration in seconds with up to nine fractional digits, ending with ' |
ContainerOverride
Per-container override specification.
JSON representation |
---|
{
"name"
:
string
,
"args"
:
[
string
]
,
"env"
:
[
{
object (
|
Fields | |
---|---|
name
|
The name of the container specified as a DNS_LABEL. |
args[]
|
Optional. Arguments to the entrypoint. Will replace existing args for override. |
env[]
|
List of environment variables to set in the container. Will be merged with existing env for override. |
clearArgs
|
Optional. True if the intention is to clear out existing args list. |