REST Resources
/api/space/job-management/jobs (v1)
The following operation is supported on this resource:
GET- Get all jobs which the current user has access to. <p> This API retrieves all the jobs based on a passed URI context and supports the paging, filtering, and sorting of data. The API returns the information in a Jobs transfer object. </p> <p> <b>Note:</b> The use of 'contains' and 'starts-with' operators for filtering on 'state' and 'status' fields is not supported. </p>
(Deprecated) |
Version 1 |
Sample Usage
GET /jobs
- Accept Headers:
application/vnd.net.juniper.space.job-management.jobs+xml;version=1
application/vnd.net.juniper.space.job-management.jobs+json;version=1
<jobs size="2" uri="/api/space/job-management/jobs">
<job key="131072" uri="/api/space/job-management/jobs/131072"
href="/api/space/job-management/jobs/131072">
<name>Discover Network Elements-131072</name>
<state>DONE</state>
<status>SUCCESS</status>
<recurring>false</recurring>
<user>super</user>
</job>
<job key="425990" uri="/api/space/job-management/jobs/425990">
<name>Resync Network Elements-425990</name>
<state>DONE</state>
<status>SUCCESS</status>
<recurring>false</recurring>
<user>newUser</user>
</job>
</jobs>
{
"jobs": {
"@size":"2",
"@uri":"/api/space/job-management/jobs",
"job": [
{
"@key":
"131072",
"@uri":
"/api/space/job-management/jobs/131072",
"@href":
"/api/space/job-management/jobs/131072",
"name":
"Discover Network Elements-131072",
"state":
"DONE",
"status":
"SUCCESS",
"recurring"
:false,
"user":
"super"
},
{
"@key":
"425990",
"@uri":
"/api/space/job-management/jobs/425990",
"name":
"Resync Network Elements-425990",
"state":
"DONE",
&nnbsp; "status":
"SUCCESS",
"recurring"
:false,
"user":
"newUser"
}
]
}
Access Control
The following capabilities are required to access this API: DefaultRead
For the current version of this API, refer to :