- URL:
- https://<site-url>/upgrade
- Methods:
POST
- Required Capability:
- Access allowed only with the default administrator role
- Version Introduced:
- 10.5
Description
The upgrade
operation is the first operation that must be invoked during an ArcGIS Server upgrade. Once the new software version has been installed and the setup has completed, the upgrade
operation will be available. A successful run of this operation will complete the upgrade of ArcGIS Server. This operation is available only when a server machine is currently being upgraded. It will not be available after a successful upgrade of a server machine.
Request parameters
Parameter | Details |
---|---|
| A flag that indicates whether the operation must be run asynchronously. If submitted synchronously, the response will be returned once the upgrade process completes successfully or if the request fails. If submitted asynchronously, the upgrade operation can be polled by making a request to the root resource. The default value is Values: |
| Introduced at 11.0. This parameter sets the log level for the upgrade process. If Values: |
| The response format. The default response format is Values: |
Example usage
The following is a sample POST request for the upgrade
operation:
POST /webadaptor/admin/upgrade HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
runAsync=false&enableDeubg=false&f=pjson
JSON Response examples
Below are the possible responses that can be returned when performing an upgrade.
Synchronous upgrade JSON response example
The following example demonstrates the response returned when the upgrade completes successfully.
{"status": "success"}
Asynchronous upgrade JSON response examples
While the upgrade is in progress, the root resource can be polled to return the upgrade's current status. The following sample demonstrates the updated response.
{
"status": "In Progress",
"upgradeFromVersion": "11.2.0",
"upgradeToVersion": "11.4.0",
"stages": [
{
"startTime": 1723216666222,
"lastUpdated": 1723216666303,
"name": "Initialize upgrade and check licenses",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216667598,
"name": "Upgrade site configurations",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216667607,
"name": "Upgrade and start System and Utility services",
"state": "In Progress"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216666222,
"name": "Synchronize local machine with site",
"state": "Not Started"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216666222,
"name": "Configure Extensions and data providers",
"state": "Not Started"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216666222,
"name": "Generate SSL Certificate and Enable SSL",
"state": "Not Started"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216666222,
"name": "Final checks and cleanup",
"state": "Not Started"
}
],
"messages": "",
"warnings": []
}
Once the upgrade has successfully completed, the root resource will return the following success response.
{
"status": "Success",
"upgradeFromVersion": "11.2.0",
"upgradeToVersion": "11.4.0",
"stages": [
{
"startTime": 1723216666222,
"lastUpdated": 1723216666303,
"name": "Initialize upgrade and check licenses",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216667598,
"name": "Upgrade site configurations",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216749624,
"name": "Upgrade and start System and Utility services",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216790931,
"name": "Synchronize local machine with site",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216791243,
"name": "Configure Extensions and data providers",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216791268,
"name": "Generate SSL Certificate and Enable SSL",
"state": "Succeeded"
},
{
"startTime": 1723216666222,
"lastUpdated": 1723216794061,
"name": "Final checks and cleanup",
"state": "Succeeded"
}
],
"messages": "",
"warnings": []
}
If the upgrade is complete, but there are action items that must be performed, the root resource will return a success response with a warnings property that will contain information about those action items.
{
"status": "Success with warnings",
"upgradeFromVersion": "10.9.1",
"upgradeToVersion": "11.4.0",
"stages": [
{
"startTime": 1724279351022,
"lastUpdated": 1724279351494,
"name": "Initialize upgrade and check licenses",
"state": "Succeeded"
},
{
"startTime": 1724279351022,
"lastUpdated": 1724279355450,
"name": "Upgrade site configurations",
"state": "Succeeded"
},
{
"startTime": 1724279351022,
"lastUpdated": 1724279646570,
"name": "Upgrade and start System and Utility services",
"state": "Succeeded"
},
{
"startTime": 1724279351022,
"lastUpdated": 1724279694488,
"name": "Synchronize local machine with site",
"state": "Succeeded"
},
{
"startTime": 1724279351022,
"lastUpdated": 1724279695934,
"name": "Configure Extensions and data providers",
"state": "Succeeded"
},
{
"startTime": 1724279351022,
"lastUpdated": 1724279696940,
"name": "Generate SSL Certificate and Enable SSL",
"state": "Succeeded"
},
{
"startTime": 1724279351022,
"lastUpdated": 1724279701608,
"name": "Final checks and cleanup",
"state": "Succeeded with warnings"
}
],
"messages": "",
"warnings": ["Found mismatch in the .NET Extension Support installation on machines in the site. All machines in a site are required to have the same .NET Extension Support configuration. Information on how to resolve this issue is available in the help topic 'About multiple-machine ArcGIS Server sites'."]
}