Parameter question RE: Publishing a python script from ArcGIS Pro to ArcGIS Server.

329
0
05-19-2022 12:31 PM
JohnShupeMM
New Contributor

First, I'd like to confirm that this is the documentation I should start with; Publish geoprocessing services in a Python script—ArcGIS Pro | Documentation

How I intend for the geoprocessing service to be used is for Execute or SubmitJob to be called with a json POST that contains the parameters. (In contrast, I am not going to ingest the gp service in a web application where a popup supplies the parameters. That is the model I see most people following.) In ArcGIS Pro, I have to run the script to publish it, but I don't see a way to pass the script a json in a similar manner. If I am supposed to set up parameters when I create the script, how would Execute/SubmitJob know how to map the json parameters to the parameters that I defined in the script? Is it enough for them to be the same names?

0 Kudos
0 Replies