Skip to main content

Deployment states

A launch returns a deployment ID before the environment is ready. getStatus() returns one of three states: complete describes the environment. It does not mean the learner finished the lab.

Wait for readiness

The defaults are a five-second interval and a 15-minute deadline. The wait rides out network errors, timeouts, server errors, and rate limits, because the environment keeps building meanwhile. It stops at once on a definite error, such as not_found, and throws deployment_failed when the status is failed. Pass a signal to stop waiting early. Stopping the wait does not end the environment.

Expiration

A lab’s timeLimit is in minutes. Your organization can customize it within the permitted range. Cybr ends the lab automatically at its launch time plus timeLimit. The tracking guide shows the countdown and how to end a lab early.

End a lab

The request starts teardown. Ending a lab does not record learner completion. conflict means the lab is already ending. Read its status rather than repeating the request.

Deployment runs

You can read a deployment’s runs to show progress or diagnose a failed launch:
Run outputs can contain secrets, so keep them out of public logs.