Batches API v1Alpha

Create a job.

post/api/v1alpha/batches/{batch_id}/jobs/create

Request

  • Base URL: {{ base_url }}
  • URL: {{ base_url }}/api/v1alpha/batches/{batch_id}/jobs/create
  • Auth: none declared

Path parameters

batch_idnumber required

The ID of the batch.

Request body

job_idinteger required

Job ID, unique within the batch update. Job ids must be contiguous and increasing across the job specs in a request.

always_copy_outputboolean

Copy output files even if the job fails

always_runboolean

Run this job even if its parents failed or the batch was cancelled

attributesobject

Key-value pairs of attributes for the job

mount_tokensboolean

Mount user tokens into the container

network'public' | 'private'

Network access for the job

n_max_attemptsinteger

Maximum number of times this job may be attempted

unconfinedboolean

Run the container without default security confinement

parent_idsinteger[]

IDs of jobs this job depends on (alias for absolute_parent_ids)

absolute_parent_idsinteger[]

Batch-wide IDs of jobs this job depends on

in_update_parent_idsinteger[]

IDs, relative to the current update, of jobs this job depends on

absolute_job_group_idinteger

Batch-wide ID of the job group this job belongs to

in_update_job_group_idinteger

ID, relative to the current update, of the job group this job belongs to

portinteger

Port to expose

regionsstring[]

Regions in which this job may be scheduled

requester_pays_projectstring

Project to bill for accessing requester-pays buckets

timeoutnumber

Job timeout in seconds

user_codestring

The user code that created this job, for display purposes

Response

Successfully created the job.

object required

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • breaking

      added the new required request property

    • breaking

      request body became required