- URL:
- https://<rasteranalysistools-url>/BatchPublishRaster
- Methods:
GET- Version Introduced:
- 10.9
Description
The Batch operation supports publishing multiple imagery layers from multiple raster dataset.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The service configuration JSON for each image service to be published. The image service configuration must contain the following under There are three possible scenarios for batch publish raster:
|
(Optional) | Flag to configure whether the raster data to be published will be converted to Cloud Raster Format (CRF) dataset or not.
Values: |
(Optional) | Context contains additional environment settings that affect task execution. For Batch Publish Raster service tools, the supported environment settings are:
|
| The response format. The default format is Values: |
Example usage
The following is a sample request URL for the Batch operation:
https://organization.example.com/<context>/rest/services/System/RasterAnalysisTools/GPServer/BatchPublishRaster/submitJob?inputServices={"services": [{"serviceConfig": { "serviceName": "test6397_1831d1","type": "ImageServer","capabilities": "Image, Metadata, Mensuration","provider": "ArcObjectsRasterRendering", "properties": {"path": "/fileShares/pubdata_ds_9npfc8c9wecwzfs2/6397_1831d.tif","isManaged": false,"isCached": false,"isTiledImagery": "false","colormapToRGB": "false","defaultResamplingMethod": 1}},"itemProperties": {"folderId": ""}},{"serviceConfig": {"serviceName": "test6403_1826b1","type": "ImageServer","capabilities": "Image, Metadata, Mensuration","provider": "ArcObjectsRasterRendering","properties": {"path": "/fileShares/pubdata_ds_9npfc8c9wecwzfs2/6403_1826b.tif","isManaged": false, "isCached": false, "isTiledImagery": "false","colormapToRGB": "false","defaultResamplingMethod": 1}}}]}&f=pjsonJSON Response example
The response returns the output output parameter, which has properties for parameter name, data type, and value. The content of value is a list of output service URLs.
{
"paramName": "outputServices",
"dataType": "GPString",
"value": ["https://<server url>/arcgis/rest/services/Hosted/byvalueA_1_1test/ImageServer","https://<server url>/arcgis/rest/services/Hosted/byvalueA_1_2test/ImageServer"
]
}Response
When you submit a request, the task assigns a unique job ID for the transaction.
Syntax:
{ "jobId": "<unique job identifier>", "jobStatus": "<job status>" }After the initial request is submitted, you can use the job to periodically check the status of the job and messages, as described in Check job status. Once the job has successfully completed, use the job to retrieve the results. To track the status, you can make a request of the following form:
https://<raster analysis tools url>/BatchPublishRaster/jobs/<jobId>When the status of the job request is esri , you can access the results of the analysis by making a request of the following form:
https://<raster analysis tools url>/BatchPublishRaster/jobs/<jobId>/results/result