All Layers and Tables

Description

The layers resource represents all the layers and stand-alone tables under a map
service published using ArcGIS for Server. It provides basic
information about the layers and tables such as name, type,
parent and sub-layers, fields, min and max scales, extent, and
copyright text.

New at 10.2

A new property is reported to indicate whether the layer requires the use of standardized queries: useStandardizedQueries. A value of true indicates the layer requires the use of standardized queries, a value of false indicates otherwise. Learn more about standardized queries.

New at 10.1
SP1

If ownership-based access control is enabled on
features, the ownershipBasedAccessControlForFeatures property of a layer will
include an allowOthersToQuery property.

New at 10.1

Support for
dynamicLayers was added.

Request parameters

Parameter

Details

f

Description: The response format. The default response format is html.

Values: html | json

dynamicLayers

This
option was added at 10.1.

Description: Dynamic layers definition. This parameter is required to
generate a layers resource for dynamic layers.

Note:

supportsDynamicLayers on the map service
resource
should be true to use the dynamicLayers
property when requesting layers resource.