Select to view content in your preferred language

Publish SD to specific Server folder and to specific item id

846
1
07-17-2023 05:53 AM
Labels (1)
SimonSchütte_ct
MVP Regular Contributor

I´d like to publish a referenced service using an existing SD to ArcGIS Enterprise.

I found two different methods:

- publishing to Portal, which allows to set the item_id, but not the ArcGIS Server Folder:

publish(publish_parameters=Noneaddress_fields=Noneoutput_type=Noneoverwrite=Falsefile_type=Nonebuild_initial_cache=Falseitem_id=Nonegeocode_service=None)
arcgis.gis module | ArcGIS API for Python

- using the Service Manager publish_sd(sd_file, folder=None, service_config=None) arcgis.gis.server module | ArcGIS API for Python, I can publish the SD to a specific Server Folder, but I don´t see an option to define the Portal item id.

How can I define both?

1 Reply
CSDING_GIS
Occasional Contributor

I would also like some better documentation on these methods.

Also dropping this link to a related topic Publish_parameters aren't used when publishing .sd... - Esri Community

0 Kudos