Job Management API

/api/space/job-management/jobs

The following operations are supported on this resource:

  • GET - List all jobs

GET /api/space/job-management/jobs (v2)


List all jobs.

Access Control

The following capabilities are required to access this API:
"JobMgr"


Example Usage

GET /api/space/job-management/jobs

Data Notification

This API supports data notification.

See the following links for information about enabling data notifications changes to be received for this service:

  • Data Notification Usage.


Content Types

  • Produces content types:
    application/vnd.net.juniper.space.job-management.jobs+xml;version=2;q=0.02
    application/vnd.net.juniper.space.job-management.jobs+json;version=2;q=0.02


  • Sample Output XML:
    <jobs total="Integer" uri="/api/space/job-management/jobs">
         <job uri="/api/space/job-management/jobs/{id}">
               <id>Integer</id>
               <name>String</name>
               <job-type>String</job-type>
               <job-state>SCHEDULED</job-state>
               <job-status>UNDETERMINED</job-status>
               <percent-complete>Double</percent-complete>
               <summary>String</summary>
               <user>String</user>
         </job>
         <purge-jobs href="/api/space/job-management/purge-jobs"/>
    </jobs>


  • Sample Output JSON:
    {
       "jobs" : {
         "@total" : "Integer" ,
         "@uri" : "/api/space/job-management/jobs" ,
         "job" : {
           "@uri" : "/api/space/job-management/jobs/{id}" ,
           "id" : "Integer" ,
           "name" : "String" ,
           "job-type" : "String" ,
           "job-state" : "SCHEDULED" ,
           "job-status" : "UNDETERMINED" ,
           "percent-complete" : "Double" ,
           "summary" : "String" ,
           "user" : "String"
         } ,
         "purge-jobs" : {
           "@href" : "/api/space/job-management/purge-jobs"
         }
       }
    }



    For the deprecated versions of this API, refer to :
  • version 1