Map Service Job

URL:
https://Map Service/jobs/<jobId>
Methods:
GET
Version Introduced:
10.2.1

Description

The Map Service job resource represents a job submitted using the Export Tiles (Map Service) or Estimate Export Tile Size (Map Service) operations or a Map Service resource for consuming the result from an asynchronous Geoprocessing Service. If a job represents the exportTiles or estimateExportTilesSize operation, you will see basic information about the job such as the job ID, status, and messages. Additionally, if the job has successfully completed, it provides information about the result parameters as well as the input parameters.

All result values can be accessed via the Map Service Result. The JSON response specifies a relative URL to the result resource with a paramUrl field. Similarly, all input parameter values are accessed via the Map Service Input. The JSON response specifies a relative URL to the input resource with a paramUrl field as well.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json | pjson

Example usage

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/World_Street_Map/MapServer/jobs/j1fb60facc9194208929f90a7fd64fc9d_et?f=json
Use dark colors for code blocksCopy
1
https://serverurl/arcgis/rest/services/World_Street_Map/MapServer/jobs/jb96ae2b8b6b84f1cbd169ee130dac435_et?f=json

JSON Response syntax

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
{
  "jobId": "<jobId>",
  "jobStatus": "<jobStatus>",
  "results": {
    "<param1>": {
      "paramUrl": "<relativeUrlToParam1>"
    },
    "<param2>": {
      "paramUrl": "<relativeUrlToParam2>"
    }
  },
  "inputs": {
    "<param1>": {
      "paramUrl": "<relativeUrlToParam1>"
    },
    "<param2>": {
      "paramUrl": "<relativeUrlToParam2>"
    }
  },
  "messages": [
    {
      "type": "<type1>",
      "description": "<description1>"
    },
    {
      "type": "<type2>",
      "description": "<description2>"
    }
  ]
}

JSON Response example

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
106
107
108
109
{
  "jobId": "j1fb60facc9194208929f90a7fd64fc9d",
  "jobStatus": "esriJobSucceeded",
  "results": {
    "out_service_url": {
      "paramUrl": "results/out_service_url"
    }
  },
  "inputs": {
    "service_url": {
      "paramUrl": "inputs/service_url"
    },
    "target_cache": {
      "paramUrl": "inputs/target_cache"
    },
    "storage_format_type": {
      "paramUrl": "inputs/storage_format_type"
    },
    "copy_data_from_server": {
      "paramUrl": "inputs/copy_data_from_server"
    },
    "thread_count": {
      "paramUrl": "inputs/thread_count"
    },
    "tile_package": {
      "paramUrl": "inputs/tile_package"
    },
    "export_extent": {
      "paramUrl": "inputs/export_extent"
    },
    "levels": {
      "paramUrl": "inputs/levels"
    },
    "replace_existing_tiles": {
      "paramUrl": "inputs/replace_existing_tiles"
    },
    "area_of_interest": {
      "paramUrl": "inputs/area_of_interest"
    },
    "temp_output_path": {
      "paramUrl": "inputs/temp_output_path"
    },
    "export_options": {
      "paramUrl": "inputs/export_options"
    }
  },
  "messages": [
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Executing (Export Cache): ExportCache World_Street_Map:MapServer # COMPACT TRUE 1 TRUE # 0-2 FALSE \"Feature Set\" # {\"requestMode\":\"REST\",\"exportBy\":\"levelId\",\"recompress\":false,\"recompressQuality\":90}"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Start Time: Tue Oct  1 10:05:23 2013"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Finished:: 2 percent"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Finished:: 2 percent"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Estimated Time Remaining: Calculating..."
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Estimated Time Remaining: Calculating..."
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Finished:: 11 percent"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Estimated Time Remaining: Calculating..."
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Finished:: 32 percent"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Estimated Time Remaining: Calculating..."
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Finished:: 96 percent"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Estimated Time Remaining: Calculating..."
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Finished:: 96 percent"
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Estimated Time Remaining: Calculating..."
    },
    {
      "type": "esriJobMessageTypeInformative",
      "description": "Succeeded at Tue Oct  1 10:05:55 2013 (Elapsed Time: 31.72 seconds)"
    }
  ]
}

Cancel job

You can also cancel the job by making a request of the following form:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/World_Street_Map/MapServer/jobs/<jobId>/cancel?f=pjson

When the job is cancelled, the following response is returned:

Use dark colors for code blocksCopy
1
2
3
4
{
  "jobId": "ja34307c9308f4144aed630b264582df1",
  "jobStatus": "esriJobCancelling"
}

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