Getting a Job's Details

Get the details of a job in Resource Manager. You can view name, type, status, and other key information about jobs for a specific compartment or stack. For configurations stored in Git, job details include the relevant commit identifier.

  • These steps show how to get a job in a compartment. You can also get a job in a stack.
    On the Jobs list page, select the job that you want to work with. If you need help finding the list page or the stack, see Listing Jobs.
    The job's details page opens.
  • Use the oci resource-manager job get command and required parameters to get a job.

    oci resource-manager job get --job-id <job_OCID>

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.

  • Use the GetJob operation to get a job.

    Example Response

    This example shows ACCEPTED for lifecycle-state.

    {
      "data": 
      {
        "compartment-id": " ocid1.compartment.oc1..uniqueid",
        "defined-tags": null,
        "display-name": "Example Plan Job",
        "freeform-tags": {},
        "id": "ocid1.ormjob.oc1..uniqueid",
        "lifecycle-state": "ACCEPTED",
        "operation": "PLAN",
        "jobOperationDetails": 
        {
          "operation": "PLAN"
        },
        "stack-id": " ocid1.ormstack.oc1..uniqueid",
        "time-created": "2019-03-09T20:52:13.922000+00:00",
        "time-finished": null,
        "variables": 
        {
          "compartment_ocid": "ocid1.compartment.oc1..uniqueid",
          "region": "us-phoenix-1"
        }
      }
    }