Hosted Map Service

Description

A map service offer access to map and layer content.

The REST API administrative map service resource represents a map service. This resource provides basic information about the map, including the layers that it contains, whether the map is cached or not, its spatial reference, initial and full extents, whether the service is allowed to export tiles and max tiles export count, etc. The administrative map service resource maintains a set of operations that manage the state and contents of the service.

Request parameters

ParameterDetails
f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Note:
This is an example URL only and is not an active link to an existing service.

https://services.myserver.com/arcgis/rest/admin/services/serviceName/MapServer?f=pjson

JSON Response Syntax


{
  "name": "<serviceName>",
  "status": <Started | Stopped>, 
  "lodInfos": [
    {
      "levelID": <layerId>
    },
    {
      "tileCount": "<tileCount>"
    },
    {
      "expectedTileCount": "<expectedTileCount>"
    },
    {
      "tilesSize": "<tilesSize>"
    },
    {
      "inProgress": "<true | false>"
    },
    {
      "status": "<Complete | InProgress | Canceled | Failed >"
    }
  ],
  "Supported Operations": ["Edit Service" | "Status" | "Refresh" | "Refresh from Source" | "Update Tiles" | "Tile Service Schedular" | "Delete Tiles" | "Delete All Tiles"] 
}

JSON Response example


{
  "serverId": "9d0259a2b0b2442b15f9aa459a46200", 
  "id": 12345, 
  "name": "world", 
  "access": "SECURE", 
  "fullExtent": {
    "xmin": -18341650.9613, 
    "ymin": 2428377.3527, 
    "xmax": -7454985.1505, 
    "ymax": 11203410.6593, 
    "spatialReference": {
      "wkid" : 102100, 
      "latestWkid": 3857
    }
  }, 
  "initialExtent": {
    "xmin": -20645750.6017876, 
    "ymin": 4752555.08098706, 
    "xmax": -6019554.68272909, 
    "ymax": 11906902.7230157, 
    "spatialReference": {
      "wkid": 102100, 
      "latestWkid": 3857
    }
  }, 
  "url": "https://services.myserver.com/arcgis/rest/admin/services/serviceName/MapServer ", 
  "created": null, 
  "modified": null, 
  "status": "STARTED", 
  "jobs": [
    "61c9ccfb-5b83-4e7d-aec7-cc8c121299f9"
  ], 
  "size": 19135, 
  "lodInfos": [
    {
      "levelID": 3, 
      "tileCount": 9, 
      "expectedTileCount": 9, 
      "tilesSize": 19135, 
      "inProgress": false, 
      "status": "COMPLETE"
    }
  ], 
  "cacheExecutionStatus": "NONE", 
  "minScale": 591657527.591555, 
  "maxScale": 18489297.737236, 
  "jobStatus": null, 
  "currentJob": "6e53ccfb-5r83-4e7d-aec7-cc8c122399f9", 
  "type": "MapServer"
}

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