Hi,
I am looking to publish a imageservice to a specific path to an existing imageserver.
For instance, i want to publish to <root>/ImageService/MyNewService
The arcpy.CreateImageSDDraft function allows me to specify folder_name as a string, but I have not been successful in specifying anything deeper that i.e <root>/MyNewService.
I have tried the following:
arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "ImageService\\MyNewService", "Name,"Description")
arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "ImageService/MyNewService", "Name,"Description")
arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, ["ImageService","MyNewService"], "Name,"Description")
All fail. The following works fine:
arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "MyNewService", "Name,"Description")
Any hints or tips are greatly appreciated!
Regards
Sven-Erik