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 given compartment or stack. For configurations stored in Git, job details include the relevant commit identifier.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Jobs.
      You can also access jobs from a stack detail page. Click Stacks and then click the name of the stack you want.
    2. Choose a compartment that you have permission to work in (on the left side of the page).
    3. Click the name of the job that you want.
    The Job details page opens.
    To view variables used in the job, click Variables under Resources.
  • Use the oci resource-manager job get command and required parameters to get a job.

    oci resource-manager job get [OPTIONS]

    For a complete list of flags and variable options 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"
        }
      }
    }