Test Environment Jobs

Retrieve a job of a test environment

Use this operation to retrieve a specific job associated with a Test Environment by its unique job ID. It handles HTTP GET requests to the /test-environments/{id}/jobs/{jobId} endpoint and returns a JobResponse object if the job is found. If the specified job does not exist, it returns a 404 error.

User Access Permission

You must be assigned the Refresh Central Sandbox permission to run this operation.

get/test-environments/{id}/jobs/{jobId}

Path parameters

idstring required

Test Environment ID

jobIdstring required

Test Environment Job ID

Headers

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.

Zuora-Track-Idstring

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Response

Successfully retrieved a Test Environment job response

createTimestring date-time

The date and time when the job was first synced to self service

createdByIdstring

The automatically generated ID of the Zuora user who created the job object

estimatedCompletionTimestring date-time

The date and time when the job is estimated to be completed

idstring

The unique ID (UUID) of the Test Environment job

jobEndTimestring date-time

The date and time when the job completed

jobStartTimestring date-time

The date and time when the job was started

jobType'REFRESH' | 'CREATE' | 'DELETE'

The type of Test Environment job being performed

progressPercentageinteger

The progress percentage of the job

scheduledRefreshTimestring date-time

The optional date and time for scheduling a job

status'NEW' | 'SCHEDULED' | 'QUEUED' | 'INITIATED' | 'PROVISIONING' | 'DEPROVISIONING' | 'EXPORTING' | 'SCRUBBING' | 'RESETTING' | 'IMPORTING' | 'FINALIZING' | 'CANCELLING' | 'COMPLETED' | 'FAILED' | 'CANCELLED'

The status of the Test Environment job

testEnvironmentIdstring

The Test Environment to which this job belongs

updateTimestring date-time

The date and time when the job was last synced to self-service

updatedByIdstring

The automatically generated ID of the Zuora user who updated the job object

Example response

{
  "createdById": "58f182ab203c447b8b9cd90382da030a",
  "id": "11111111-1111-1111-1111-111111111111",
  "jobType": "REFRESH",
  "status": "QUEUED",
  "testEnvironmentId": "11111111-1111-1111-1111-111111111111",
  "updatedById": "58f182ab203c447b8b9cd90382da030a"
}

Changes

No recorded changes to this endpoint across all 4 revisions of this API.