AnsweredAssumed Answered

Publish all Service Types through arcpy

Question asked by afox on Sep 16, 2019

We are trying to setup a publishing scripts to move all published content from staging to production.

 

There are 7 different types of services people can publish to staging through Pro

 

Hosted - Vector Tile, Feature, Tile and Map image

Federated - Feature, Map Image, Image Service

 

With the API I can see 3 covered off by the following

 

sharing_draft = m.getWebLayerSharingDraft("FEDERATED_SERVER", "MAP_IMAGE", service)
sharing_draft = m.getWebLayerSharingDraft("HOSTING_SERVER", "FEATURE", service)
sharing_draft = m.getWebLayerSharingDraft("HOSTING_SERVER", "TILE", service, lyrs)

 

How do we accomplish the missing four - Federated Feature and Image Service, plus Hosted Vector Tile and Map Image

Outcomes