Method: jobs.executeTest

Full name: projects.locations.instances.integrations.jobs.executeTest

Executes a test on a job definition script.

HTTP request


Path parameters

Parameters
name

string

Required. The resource name of the IntegrationJob to test. Format: projects/{project}/locations/{location}/instances/{instance}/integrations/{integration}/jobs/{job}

Request body

The request body contains data with the following structure:

JSON representation
{
  "job": {
    object (IntegrationJob)
  },
  "agentId": string
}
Fields
job

object (IntegrationJob)

Required. The job that will be tested.

agentId

string

Optional. If the test is being executed on a remote agent, this field includes the agent identifier, else it's null.

Response body

Response message for ExecuteTest.

If successful, the response body contains data with the following structure:

JSON representation
{
  "output": string,
  "debugOutput": string,
  "resultObjectJson": string,
  "resultName": string,
  "resultValue": string
}
Fields
output

string

Required. The script output.

debugOutput

string

Required. The script debug output.

resultObjectJson

string

Optional. The result json if exists.

resultName

string

Optional. The script result.

resultValue

string

Optional. The script result value.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.