All Products
Search
Document Center

Hologres:DiscardUpgrade

Last Updated:May 21, 2026

Cancels an upgrade. You can call this operation only if the upgrade task has not started or is in the pre_check state. You cannot cancel the upgrade after the task enters the backup state or any subsequent state.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /api/v1/instances/{instanceId}/upgrade/discard HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

instanceId

string

No

The instance ID.

hgprecn-cn-1wy47xsoxxxx

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID.

cn-shenzhen

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

A47D57BE-59D1-51A6-9CC3-080C07852C4E

Data

array<object>

The returned data.

object

The result.

Success

boolean

Indicates whether the operation was successful.

true

ReasonKey

string

The reason key.

null

FailReason

string

The reason the upgrade failed.

null

Success

boolean

Indicates whether the API request itself was successful. This does not reflect the outcome of the operation. For the operation's result, see the Success field in the Data array.

true

ErrorCode

string

The error code.

null

ErrorMessage

string

The error message.

null

HttpStatusCode

string

The HTTP status code.

200

Examples

Success response

JSON format

{
  "RequestId": "A47D57BE-59D1-51A6-9CC3-080C07852C4E",
  "Data": [
    {
      "Success": true,
      "ReasonKey": "null",
      "FailReason": "null"
    }
  ],
  "Success": true,
  "ErrorCode": "null",
  "ErrorMessage": "null",
  "HttpStatusCode": "200"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.