Select to view content in your preferred language

Publish SD to specific Server folder and to specific item id

505
0
07-17-2023 05:53 AM
Labels (1)
SimonSchütte_ct
Frequent 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?

0 Kudos
0 Replies