REST Resource: projects.locations.customJobs

Stay organized with collections Save and categorize content based on your preferences.

Resource: CustomJob

Represents a job that runs custom workloads such as a Docker container or a Python package. A CustomJob can have multiple worker pools and each worker pool can have its own machine and input spec. A CustomJob will be cleaned up once the job enters terminal state (failed or succeeded).

JSON representation
{
  "name": string,
  "displayName": string,
  "jobSpec": {
    object (CustomJobSpec)
  },
  "state": enum (JobState),
  "createTime": string,
  "startTime": string,
  "endTime": string,
  "updateTime": string,
  "error": {
    object (Status)
  },
  "labels": {
    string: string,
    ...
  },
  "encryptionSpec": {
    object (EncryptionSpec)
  },
  "webAccessUris": {
    string: string,
    ...
  }
}
Fields
name

string

Output only. Resource name of a CustomJob.

displayName

string

Required. The display name of the CustomJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.

jobSpec

object (CustomJobSpec)

Required. Job spec.

state

enum (JobState)

Output only. The detailed state of the job.

createTime

string (Timestamp format)

Output only. Time when the CustomJob was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

startTime

string (Timestamp format)

Output only. Time when the CustomJob for the first time entered the JOB_STATE_RUNNING state.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".