Skip to main content

SyncReplica

Summary

The SyncReplica object contains properties that describe a replica created through a sync-enabled feature service. Replicas created from nonversioned data with archiving or from branch versioned data are included.

Discussion

SyncReplica objects cannot be created directly. SyncReplica properties can be accessed through the arcpy.da.ListReplicas function.

Properties

Name Explanation Data type

creationDate

(Read only)

The date the replica was created. The date will be in UTC.

DateTime

datasets

(Read only)

A list of the datasets that belong to the replica.

List

direction

(Read only)

Specifies the direction of the replica.

  • bidirectional—The replica direction is bidirectional.

  • download—The replica direction is download only.

  • upload—The replica direction is upload only.

String

geometry

(Read only)

The replica's spatial filter geometry.

Geometry

lastSyncDate

(Read only)

The last sync date for the replica. This property is only available for replicas created from a feature service.

DateTime

layerServerGens

(Read only)

The last generation of changes that were sent to the relative replica on a layer-by-layer basis. This property is only applicable for replicas that use the per-layer sync model.

Dictionary

layerServerSibGens

(Read only)

The last generation of changes that were successfully received from the relative replica on a layer-by-layer basis. This property is only applicable for replicas that use the per-layer sync model and have the server target type.

Dictionary

name

(Read only)

The name of the replica.

String

owner

(Read only)

The owner of the replica on the server.

String

replicaID

(Read only)

The replica ID.

String

replicaServerGen

(Read only)

The last generation of changes that was successfully received from the relative replica. This property is only applicable for replicas that use the per-replica sync model.

Long

replicaServerSibGen

(Read only)

The last generation of changes that was sent to the relative replica. This property is only applicable for replicas that use the per-replica sync model and have the server target type.

Long

serviceName

(Read only)

The name of the feature service associated with the replica.

String

syncModel

(Read only)

Specifies the sync model that is being used for this replica.

  • perLayer—The replica uses a per-layer sync model.

  • perReplica—The replica uses a per-replica sync model.

  • None—The replica does not have a sync model set.

String

targetType

(Read only)

Specifies the target type for syncing the replica.

  • Client—The target was created from a feature service for syncing with an offline mobile editor.

  • Server—The target was created from a feature service for syncing with another feature service.

  • None—The target is a replica that was created through geodatabase replication workflows or by a feature service from an earlier release.

String

version

(Read only)

The version from which the replica was created.

String