I am writing a Python script to automate publishing Map Services for use in ArcGIS Online. My workflow follows the sample code in Example 1 from this ArcGIS Help page on the CreateMapSDDraft
tool: Create a Service Definition Draft (.sddraft) file with CreateMapSDDraft
, stage the service definition with StageService
, then UploadServiceDefinition
.
However, there are parameters available in the "point-and-click" process of publishing a service in ArcMap that I'm unable to add with the syntax of the CreateMapSDDraft tool. In the Item Description window of the ArcMap Service Editor, I want to add a Summary, list of Tags, Description, Access Constraints, and Credits before publishing a service.
The CreateMapSDDraft arcpy syntax only allows me to add a Summary and Tags to my item.
i.e., CreateMapSDDraft (map_document, out_sddraft, service_name, {server_type}, {connection_file_path}, {copy_data_to_server}, {folder_name}, {summary}, {tags})
.
I cannot find a place within the help files of the other geoprocessing tools used in my script to add/alter the Description, Access Constraints, or Credits of my service.
What can I add to my script to allow me to define these attributes in the service that is ultimately uploaded?