Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ GaussDB/ API Reference/ Historical APIs/ Version Upgrade/ Querying Upgrade Types and Versions That Instances Can Be Upgraded to in Batches

Querying Upgrade Types and Versions That Instances Can Be Upgraded to in Batches

Updated on 2024-12-27 GMT+08:00

Function

This API is used to query the available upgrade types and versions that instances can be upgraded to in batches. Before calling this API:

URI

POST https://{Endpoint}/v3/{project_id}/instances/db-upgrade/candidate-versions

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Explanation:

Project ID of a tenant in a region.

For details about how to obtain the value, see Obtaining a Project ID.

Restrictions:

None

Value range:

The value can contain 32 characters. Only letters and digits are allowed.

Default value:

None

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

instance_ids

No

Array of strings

Instance IDs for batch upgrade.

Response Parameters

Table 3 Response parameters

Parameter

Type

Description

upgrade_type_list

Array of Table 4 objects

Upgrade types.

Array length: 0 to 1000

target_version

String

Target version. The target version is only returned when the instance is in the rolling upgrade phase, or no information is returned.

Minimum length: 0

Maximum characters: 1000

upgrade_candidate_versions

Array of strings

Versions that can be upgraded, including major and minor versions.

Minimum length: 0

Maximum characters: 1000

Array length: 0 to 1000

hotfix_upgrade_infos

Array of Table 6 objects

Information about hot patch versions that can be installed.

Array length: 0 to 1000

hotfix_rollback_infos

Array of Table 6 objects

Information about hot patch versions that can be rolled back.

Table 4 upgrade_type_list

Parameter

Type

Description

upgrade_type

String

Upgrade type.

Value range:

  • grey: Gray upgrade
  • inplace: In-place upgrade
  • hotfix: Hot patch installation

enable

Boolean

Check if the upgrade type is available.

  • true: yes.
  • false: no.

upgrade_action_list

Array of Table 5 objects

Upgrade actions.

Array length: 0 to 1000

is_parallel_upgrade

Boolean

Whether intra-AZ parallel upgrade is supported.

  • true: The current instance is in the rolling upgrade phase of the gray upgrade. The intra-AZ parallel upgrade is supported. Once this parameter is configured, it cannot be changed later.
  • false: The current instance is being upgraded. The intra-AZ parallel upgrade is not supported. Once this parameter is configured, it cannot be changed later.
  • null: The current instance is not in the upgrade process.
Table 5 upgrade_action_list

Parameter

Type

Description

upgrade_action

String

Upgrade action.

Value range:

  • upgrade: Upgrade
  • upgradeAutoCommit: Auto-commit
  • commit: Commit
  • rollback: Rollback

enable

Boolean

Check if the upgrade type is available.

  • true: yes.
  • false: no.
Table 6 hotfix_upgrade_infos

Parameter

Type

Description

version

String

Hot patch version.

common_patch

String

Patch type.

Value range:

  • common: common patch
  • certain: custom patch

backup_sensitive

Boolean

Whether the patch is related to backups.

Value range:

  • true: The patch is related to backups.
  • false: The patch is not related to backups.

descripition

String

Description of the patch.

Example Request

This API is used to query the available upgrade types and versions that instances can be upgraded to in batches. Before calling this API:

POST https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/db-upgrade/candidate-versions
{ 
  "instance_ids" : [ "cc0ae5c47bf94834bf9e44138f7f995ain14", "aa0ae5c47bf94834bf9e44138f7f995ain14" ] 
}

Example Response

Available upgrade types and versions that instances can be upgraded to in batches queried.

{
    "upgrade_type_list": [
        {
            "upgrade_type": "grey",
            "upgrade_action_list": [
                {
                    "upgrade_action": "commit",
                    "enable": false
                },
                {
                    "upgrade_action": "rollback",
                    "enable": false
                },
                {
                    "upgrade_action": "upgrade",
                    "enable": true
                },
                {
                    "upgrade_action": "upgradeAutoCommit",
                    "enable": true
                }
            ],
            "enable": true,
            "is_parallel_upgrade": null
        },
        {
            "upgrade_type": "inplace",
            "upgrade_action_list": [
                {
                    "upgrade_action": "upgradeAutoCommit",
                    "enable": true
                }
            ],
            "enable": true,
            "is_parallel_upgrade": null
        },
        {
            "upgrade_type": "hotfix",
            "upgrade_action_list": [
                {
                    "upgrade_action": "upgradeAutoCommit",
                    "enable": false
                },
                {
                    "upgrade_action": "rollback",
                    "enable": false
                }
            ],
            "enable": false,
            "is_parallel_upgrade": null
        }
    ],
    "upgrade_candidate_versions": [
        "8.302.90"
    ],
    "target_version": null,
    "hotfix_upgrade_infos": [],
    "hotfix_rollback_infos": []
}

Status Code

Error Code

For details, see Error Codes.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback