Job

URL:
https://<root>/jobs/<jobid>
Methods:
GET
Required Capability:
Access allowed with either the "Update", "Delete", or "Security and infrastructure" privileges, or the Publisher role
Version Introduced:
10.9.1

Description

This resource returns the progress and status messages of an asynchronous job. Updated progress information can be acquired by periodically querying this operation.

Request parameters

ParameterDetails

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample request URL used to access an individual job resource:

Use dark colors for code blocksCopy
1
https://organization.domain.com/context/admin/jobs/j2bcbcd49-83a4-4cc1-a034-40e4a266e96d?f=pjson

JSON Response examples

The following response is returned upon the initial query to the job resource after an asynchronous operation was initiated. While a job is still in progress, the job's status will return EXECUTING.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
{
  "updatedtime": 1635961542589,
  "jobid": "j2bcbcd49-83a4-4cc1-a034-40e4a266e96d",
  "endtime": 0,
  "starttime": 1635961542583,
  "operationURI": "/context/admin/services/FireWatchWeather.MapServer/edit",
  "status": "EXECUTING",
  "username": "serviceAdmin"
}

The sample response below is an example of a successful asynchronous operation, returning a status of COMPLETED. This final JSON response returns the full GIS service JSON object and associated job information, such as the job's jobid, as well as its starttime and endtime.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
  "result": {
    "service": {
      "allowedUploadFileTypes": "",
      "private": false,
      "maxUsageTime": 600,
      "description": "Updating description using the edit operation, run asynchronously",
      "maxInstancesPerNode": 2,
      "minInstancesPerNode": 1,
      "datasets": [],
      "type": "MapServer",
      "frameworkProperties": {},
      "instancesPerContainer": 1,
      "recycleStartTime": "00:00",
      "maxUploadFileSize": 0,
      "provider": "ArcObjects11",
      "clusterName": "default",
      "deploymentId": "kx21q2lis4z5beekzep0k",
      "id": "sckomokcru548qo27uhde",
      "maxStartupTime": 300,
      "capabilities": "Map,Query,Data",
      "maxWaitTime": 60,
      "recycleInterval": 24,
      "maxIdleTime": 180,
      "serviceName": "FireWeatherWatch",
      "loadBalancing": "ROUND_ROBIN",
      "keepAliveInterval": -1,
      "configuredState": "STOPPED",
      "isDefault": false,
      "extensions": [
        {
          "allowedUploadFileTypes": "",
          "capabilities": "GetCapabilities,GetFeatureInfo,GetLegendGraphic,GetMap,GetSchemaExtension,GetStyles",
          "maxUploadFileSize": 0,
          "typeName": "WMSServer",
          "enabled": "true",
          "properties": {
            "name": "SampleWorldCities",
            "title": "WMS"
          }
        },
        {
          "allowedUploadFileTypes": "",
          "capabilities": "SingleImage,SeparateImages,Vectors",
          "maxUploadFileSize": 0,
          "typeName": "KmlServer",
          "enabled": "true",
          "properties": {
            "compatibilityMode": "GoogleEarth",
            "useDefaultSnippets": "true",
            "featureLimit": "1000000",
            "minRefreshPeriod": "30",
            "imageSize": "1024",
            "dpi": "96"
          }
        },
        {
          "allowedUploadFileTypes": "",
          "capabilities": "Create,Query,Update,Delete,Uploads",
          "maxUploadFileSize": 0,
          "typeName": "FeatureServer",
          "enabled": "false",
          "properties": {}
        }
      ],
      "isolationLevel": "HIGH",
      "folderName": "",
      "properties": {
        "useLocalCacheDir": "true",
        "outputDir": "/arcgisusr/directories/arcgisoutput",
        "cacheDir": "/arcgisusr/directories/arcgiscache",
        "maxScale": "4000",
        "filePath": "/arcgis/framework/etc/data/WorldCities/WorldCities.msd",
        "maxRecordCount": "1000",
        "supportedImageReturnTypes": "MIME+URL",
        "clientCachingAllowed": "true",
        "isCached": "false",
        "virtualOutputDir": "/rest/directories/arcgisoutput",
        "maxExportTilesCount": "100000",
        "ignoreCache": "false",
        "exportTilesAllowed": "false",
        "outputStore": "{...}",
        "cacheOnDemand": "false",
        "minScale": "295000000",
        "serviceId": "sckomokcru548qo27uhde"
      },
      "portalProperties": {
        "isHosted": false,
        "portalItems": [
          {
            "itemID": "79b641d2e7234b898cb56313d44a41f4",
            "type": "WMSServer"
          }
        ]
      }
    }
  },
  "updatedtime": 1635961402579,
  "jobid": "j47c0c626-7188-4053-be06-ae93de987b01",
  "endtime": 1635961402584,
  "starttime": 1635961389632,
  "operationURI": "/context/admin/services/FireWeatherWatch.MapServer/edit",
  "status": "COMPLETED",
  "username": "serviceAdmin"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.