Publish all Service Types through arcpy

344
0
09-16-2019 06:16 PM
AlistairFox
Occasional Contributor

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

0 Kudos
0 Replies