- URL:
- https://<adminservicecatalog-url>/services/<serviceName>/VectorTileServer/rebuildCache
- Methods:
GET
- Version Introduced:
- ArcGIS Online April 2021
Description
The rebuild
operation update the vector tile layer cache to reflect any changes made to the feature layer used to publish this vector tile layer. The results of the operation is a response indicating success
, which redirects you to the Job Statistics
page, or failure
.
Response properties
Parameter | Details |
---|---|
f | The response format. The default response format is Values: |
token | An access token that identifies the authenticated user and controls access to restricted resources and operations. |
Example usage
https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/rebuildCache?f=html
Job resource
The sample URL below can be used to access the job resource for the rebuild
job:
https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/jobs/<jobID>?f=html
JSON Response example
The following response is returned when accessing the job resource:
{
"jobId": "jobID",
"type": "CACHECOOKER",
"jobStatus": "SUBMITTED",
"submitter": "submitter",
"percentComplete": 0,
"message": "",
"submitTime": 1616380905827,
"lastTime": 1616380905933,
"extent": {
"xmin": -20037508.3428,
"ymin": -20037508.3428,
"xmax": 20037508.3428,
"ymax": 20037508.3428,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"numTasks": 1,
"numDoneTasks": 0,
"numErrorTasks": 0,
"numCanceledTasks": 0,
"numSubmittedTasks": 1,
"numProcessingTasks": 0,
"estimatedNumTiles": 0,
"numTiles": 0,
"estimatedTilesSize": 0,
"tilesSize": 0,
"averageTaskTime": 0,
"totalTaskTime": 0
}
Cancel job
The sample URL below can be used to cancel the currently running rebuild
job:
https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/jobs/<jobID>/cancel?f=html
JSON Response example
The following response is returned when the job is cancelled successfully:
{"success": true}
JSON Response example
{
"id": "id",
"name": "FeatureServiceName",
"status": "Success",
"itemId": "itemID",
"type": "Map Service",
"jobId": "jobID",
"message": "success"
}