Skip to main content
Question

Create Replica using ArcGIS Rest API

  • December 9, 2024
  • 4 replies
  • 79 views

elmido13
Contributor
Forum|alt.badge.img+3

Does anyone have a sample Workbench (WB) for creating a replica using the ArcGIS REST API?

4 replies

birgit
Influencer
Forum|alt.badge.img+16
  • Influencer
  • December 9, 2024

Your question is too general to give an answer. What do you want to copy? All metadata from your portal items, your users, your Groups. features of all services, features in a single service, features in a specific sublayer of a service? Please specify. Also what you are asking is generally a lot of work and if people don't watch out they might share sensitive information.


hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • December 9, 2024

Have you looked at the Esri documentation on creating replicas? https://developers.arcgis.com/rest/services-reference/enterprise/create-replica/

In its simplest implementation you'd using an HTTPCaller and call the above endpoint.

 

Aligning with what ​@birgit has said, we don’t really have enough information to provide more than the most generic of solutions


elmido13
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • December 10, 2024

I would like to copy all features including attachment into a filegeodatabase. I was able to generate the token and create a replica using httpcaller but was stock downloading it to filegeodatabase.


birgit
Influencer
Forum|alt.badge.img+16
  • Influencer
  • December 10, 2024

Thanks for the additional info. Are you stuck because you don't know the call you need to download the FGDB or do you have the call and the Httpcaller transformer is not giving you the response you want (i.e. crashing or error messages)?

I don't have any experience with creating replica's, personally I use the export option on hosted feature layers and I do know how to download after that. I can give you an example httpcaller for the download but I'm still not quite sure what you need.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings