---
title: "Retrieve a job of a test environment"
method: GET
path: "/test-environments/{id}/jobs/{jobId}"
tags: ["Test Environment Jobs"]
---

# Retrieve a job of a test environment

`GET /test-environments/{id}/jobs/{jobId}`

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.

## Path parameters

- `id` string, required
- `jobId` string, required

## Headers

- `Zuora-Entity-Ids` string
- `Zuora-Track-Id` string
- `Accept-Encoding` string
- `Content-Encoding` string

## Response `200`

Successfully retrieved a Test Environment job response

- JobResponse — The job response
  - `createTime` string, date-time — The date and time when the job was first synced to self service
  - `createdById` string — The automatically generated ID of the Zuora user who created the job object
  - `estimatedCompletionTime` string, date-time — The date and time when the job is estimated to be completed
  - `id` string — The unique ID (UUID) of the Test Environment job
  - `jobEndTime` string, date-time — The date and time when the job completed
  - `jobStartTime` string, date-time — The date and time when the job was started
  - `jobType` 'REFRESH' | 'CREATE' | 'DELETE' — The type of Test Environment job being performed
  - `progressPercentage` integer — The progress percentage of the job
  - `scheduledRefreshTime` string, 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
  - `testEnvironmentId` string — The Test Environment to which this job belongs
  - `updateTime` string, date-time — The date and time when the job was last synced to self-service
  - `updatedById` string — The automatically generated ID of the Zuora user who updated the job object

## Other responses

- `404` — The resource you were trying to reach was not found
- `500` — Internal Error

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
