dcos job show

Displaying job definitions

Description

The dcos job show command displays a job definition.

Usage

  1. dcos job show <job-id> [--json]

Options

NameDescription
-h, —helpPrint usage.

Positional arguments

NameDescription
<job-id>Specify the job ID. You can view the job IDs with the dcos job list command.

Examples

Show the job definition

In this example, the job definition for my-scheduled-job is shown.

  1. dcos job show my-scheduled-job

Here is the output:

  1. {
  2. "description": "A job that sleeps on a schedule",
  3. "id": "my-scheduled-job",
  4. "labels": {},
  5. "run": {
  6. "artifacts": [],
  7. "cmd": "sleep 20000",
  8. "cpus": 0.01,
  9. "disk": 0,
  10. "env": {},
  11. "maxLaunchDelaySeconds": 300,
  12. "mem": 32,
  13. "placement": {
  14. "constraints": []
  15. },
  16. "restart": {
  17. "policy": "NEVER"
  18. },
  19. "volumes": []
  20. }
  21. }

Parent command

CommandDescription
dcos jobDeploy and manage jobs in DC/OS.