Replica Info

Description

The replica info resources lists replica metadata for a specific replica.

Request Parameters

Parameter

Details

f

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

Values: html | json

Example Usage

Example 1: URL listing replica info for a specific replica in the "USA" feature service

http://services.myserver.com/ERmEceOGq5cHrItq/ArcGIS/rest/services/USA/FeatureServer/replicas/c4189175-b90f-4622-938b-bed34eacc7f6?f=pjson

JSON Response Syntax

{
  "replicaName": "<Replica name>", 
  "replicaID": "<Replica ID, a GUID>", 
  "replicaOwner": "<Replica creator>", 
  "syncModel": "<perLayer>|perReplica>", 
  "replicaServerGen": <replicaServerGen>, 
  "layerServerGens": "[{"id":<layerId1>, "serverGen":<serverGen1>,
  "serverSibGen":<serverSibGen1>}, {"id":<layerId2>, "serverGen":<serverGen2>,
  "serverSibGen":<serverSibGen2>}]", 
  "creationDate": <creationDate>, 
  "lastSyncDate": <lastSyncDate>, 
  "returnAttachments": <true |false>,
  "attachmentsSyncDirection": <attachmentsSyncDirection>,
  "spatialRel": "<spatialRel>",
  "targetType": <targetType>,
  "syncDirection": <syncDirection>,
  "geometry": {
    "xmin": <xmin>, 
    "ymin": <ymin>, 
    "xmax": <xmax>,
    "ymax": <ymax> 
    "spatialReference" : {
      "wkid" : <wkid>, 
      "latestWkid" : <latestWkid>
    }
  },  	
  "layers": [
    {
      "id": <layerId1>, 
      "queryOption":"<none| useFilter| all>", 
      "useGeometry": <true| false>, 
      "includeRelated": <true|false>, 
      "where": "<expression>"
    },
    {"id": <layerId2>, ..   }
  ]
}

JSON Response Example 1

{
  "replicaName": "California", 
  "replicaID": "c4189175-b90f-4622-938b-bed34eacc7f6", 
  "replicaOwner": "John", 
  "layerServerGens" : "[{"id":0,"serverGen":4, "serverSibGen":10}]", 
  "creationDate": 1348522486000, 
  "lastSyncDate": 1348529890000, 
  "syncModel": "perLayer", 
  "returnAttachments" : true,
  "attachmentsSyncDirection": "bidirectional",
  "spatialRel" : "Intersects",
  "targetType": "server",
  "syncDirection": "download",
  "geometry" : {
    "xmin" : -13419265, 
    "ymin" : 3861847, 
    "xmax" : -12927414, 
    "ymax" : 4289543, 
    "spatialReference" : {
      "wkid" : 102100, 
      "latestWkid" : 3857
    }
  }, 
  "layers": [
    {
      "id": 0, 
      "queryOption": "useFilter", 
      "useGeometry": true, 
      "includeRelated": false, 
      "where": ""
    }
  ]
}

JSON Response Example 2

{
  "replicaName": "Oregon", 
  "replicaID": "ff704181-da25-4e82-8813-7d36c302a605", 
  "replicaOwner": "Paul", 
  "replicaServerGen" : 65103, 
  "creationDate": 1348522486000, 
  "lastSyncDate": 1348529890000, 
  "syncModel": "perReplica", 
  "returnAttachments" : true,
  "attachmentsSyncDirection": "bidirectional",
  "targetType": "client",
  "syncDirection": "bidirectional",
  "spatialRel" : "Intersects",
  "geometry" : {
    "xmin" : -13781450, 
    "ymin" : 5201387, 
    "xmax" : -13289599, 
    "ymax" : 5629084, 
    "spatialReference" : {
      "wkid" : 102100, 
      "latestWkid" : 3857
    }
  }, 
  "layers": [
    {
      "id": 0, 
      "queryOption": "useFilter", 
      "useGeometry": true, 
      "includeRelated": false, 
      "where": ""
    }
  ]
}

9/13/2017