Rollback

URL:
https://<root>/system/upgrades/rollback
Methods:
POST
Required Capability:
Access allowed with either "Security and infrastructure" or "Servers" privileges
Version Introduced:
10.9

Description

The rollback operation uninstalls a patch, removing the updates and fixes that had been applied to specific containers, and restoring the deployment to a previous, user-specified version of the software. The rollback operation cannot be performed for release-based updates.

The organization will be placed into read-only mode while a rollback is occurring.

Request parameters

ParameterDetails

versionManifest

(Required)

The version of the deployment the operation will roll back toward. This value can be retrieved from the Check Rollback operation.

Example
Use dark colors for code blocksCopy
1
versionManifest={"id": "pat_345432_505"}

rollbackSettings

(Optional)

A JSON object containing patch settings. At 10.9, the object is empty and doesn't support any values.

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the rollback operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /context/admin/system/upgrades/rollback HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

versionManifest={"id": "pat_345432_505"}&rollbackSettings={}&f=pjson&token=ugW_uEP1WiJV7PkHhb2BU-f1C30eAZclpgOKE599aSIFxwYBNRc8O7h6sjjgzC3l3NxhPjpa-6zgeun7rB6xCizGstMk9ZcTgLeOc67dWbTsrn7A7_VzvfpC2cV2Ig77h6w0_mvhbaMTmpnzOek7tY85PguVExKeM-ODE5L2NTX2z9LM5URYviKA4nJu7Oyg3xBKwZzxXnhPUxpiCxUy5rZ_C9QRS6kNnZjNcvhAp6Dw2FE6hL6wnLIjk3H9IjvY

JSON Response example

The following example demonstrates the immediate JSON response returned by a successful rollback request. Detailed, real-time job information is returned on the upgrades resource while the patch is being uninstalled.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "status": {
    "state": "in_progress",
    "code": 1,
    "messages": [
      {
        "message": "Starting the rollback process from 10.9.0.506 to 10.9.0.505.",
        "when": 1602276011623,
        "code": 2072
      }
    ]
  }
}

Once the rollback process is complete, the JSON view of the upgrades resource will return the full job messages of the job and success status. Abbreviated information is denoted by ...:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
  "status": {
    "code": 3,
    "messages": [
      {
        "code": 2072,
        "message": "Starting the rollback process from 10.9.0.1090 to 10.9.0.1089.",
        "when": 1618599881971
      },
      {
        "code": 2168,
        "message": "Launching upgrader... ",
        "when": 1618599882141
      },
      {
        "code": 2165,
        "message": "System is going into Read-Only mode.",
        "when": 1618599893065
      },
      {
        "code": 2270,
        "message": "Preparing an upgrade plan.",
        "when": 1618599954127
      },
      {
        "code": 2287,
        "message": "Pre-diagnostics started.",
        "when": 1618599954626
      },
      {
        "code": 2288,
        "message": "Pre-diagnostics completed.",
        "when": 1618599954696
      },
      {
        "code": 2271,
        "message": "Executing upgrade plan.",
        "when": 1618599954714
      },
      {
        "code": 2293,
        "message": "Rollback of apps module started.",
        "when": 1618599954726
      },
      {
        "code": 2177,
        "message": "The rolling back of apps has completed in 31520 millis (~ 0 minutes).",
        "when": 1618599986262
      },
      {
        "code": 2293,
        "message": "Rollback of monitoring components module started.",
        "when": 1618599986283
      },
      {
        "code": 2177,
        "message": "The rolling back of monitoring components has completed in 35655 millis (~ 0 minutes).",
        "when": 1618600021938
      },
      {
        "code": 2293,
        "message": "Rollback of main core rest APIs module started.",
        "when": 1618600021963
      },
      {
        "code": 2177,
        "message": "The rolling back of main core rest APIs has completed in 216945 millis (~ 3 minutes).",
        "when": 1618600238908
      },
      {
        "code": 2166,
        "message": "System is coming out of Read-Only mode.",
        "when": 1618600238938
      },
      {
        "code": 2179,
        "message": "Post-upgrade operations started.",
        "when": 1618600298984
      },
      {
        "code": 2183,
        "message": "Post-upgrade operations completed.",
        "when": 1618600299001
      },
      {
        "code": 2263,
        "message": "Persisting rollback state to database.",
        "when": 1618600299001
      },
      {
        "code": 2077,
        "message": "The rollback process from 10.9.0.1090 to 10.9.0.1089 has completed in 00hr:06min:45sec:968millisec.",
        "when": 1618600299019
      },
      {
        "code": 2076,
        "message": "The ArcGIS Enterprise on Kubernetes has been rolled-back from 10.9.0.1090 to 10.9.0.1089 successfully.",
        "when": 1618600299019
      }
    ],
    "state": "success"
  }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.