Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Find jobs by filters

Returns jobs based on the filters provided. The user must have permission to see the jobs.

GET/rest/api/backup-restore/jobs
Query parameters
ownerstring

userName of user who had created a job.

spaceKeystring

the key of the Space the User is attempting to view.

fromDatestring

minimum job creation date. Supported date format is yyyy-MM-ddTHH:mm:ss.SSSZ

jobStatesstring

list of job states. Acceptable values: "QUEUED", "PROCESSING", "FINISHED", "CANCELLING", "CANCELLED", "FAILED"

toDatestring

maximum job create date. Supported date format is yyyy-MM-ddTHH:mm:ss.SSSZ

jobOperationstring

job operation. Acceptable values: "BACKUP" and "RESTORE"

limitstring

amount of jobs that should be returned

jobScopestring

scope of the job. Acceptable values: "SPACE" and "SITE"

Responses
200

Returns the List of backup/restore jobs visible to user based on the filter provided and the user's permissions.

Array of JobDetails
idinteger<int64>
jobOperationstring
Allowed:BACKUPRESTORE
jobScopestring
Allowed:SPACESITE
jobStatestring
Allowed:QUEUEDPROCESSINGCOMPLETINGFINISHEDCANCELLINGCANCELLEDFAILED
createTimestring<date-time>
startProcessingTimestring<date-time>
finishProcessingTimestring<date-time>
cancelTimestring<date-time>
errorMessagestring
ownerstring
cancelledBystring
fileNamestring
spaceKeysstring
fileDeleteTimestring<date-time>
fileExistsboolean
400

Returned if invalid filter parameters were passed

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/backup-restore/jobs' \
  -H 'Accept: application/json'
Response
[
  {
    "id": 1,
    "jobOperation": "BACKUP",
    "jobScope": "SITE",
    "jobState": "IN_PROGRESS",
    "createTime": "2020-01-01T01:01:01Z",
    "startProcessingTime": "2020-01-01T01:01:01Z",
    "finishProcessingTime": "2020-01-01T01:01:01Z",
    "cancelTime": "2020-01-01T01:01:01Z",
    "errorMessage": "Error message",
    "owner": "admin",
    "cancelledBy": "admin",
    "fileName": "backup-2020-01-01.zip",
    "spaceKeys": "spaceKey1,spaceKey2",
    "fileDeleteTime": "2020-01-01T01:01:01Z",
    "fileExists": true
  }
]

Was this page helpful?