You need to enable JavaScript to run this app.
导航
DescribeDBInstanceEngineMinorVersions
最近更新时间:2025.01.22 12:04:51首次发布时间:2025.01.22 12:04:51

调用 DescribeDBInstanceEngineMinorVersions 接口查询实例可升级的内核小版本。

请求类型

同步请求。

调试

请求参数

参数
类型
是否必选
示例值
描述
InstanceIds
String[]
["mysql-19f81673****"]

待查询可升级内核版本的实例 ID。支持传入多个进行批量查询。

说明

  • 不传入实例 ID 时,返回该账号下所有在用实例的内核小版本。
  • 传入单个实例 ID 时,返回该实例可升级的内核小版本。
  • 传入多个实例 ID 时,这些实例的数据库版本应一致。此时,会返回该数据库版本下的最新内核小版本。

返回参数

参数
类型
示例值
描述
KernelVersions
String[]
[ "MySQL 5.7.32_20240315", "MySQL 5.7.32_20240216", "MySQL 5.7.32_20240416", "MySQL 5.7.32_20240415", "MySQL 8.0.32_20241015", "MySQL 5.7.32_20241018", "MySQL 5.7.32_20240618", "MySQL 5.7.32_20240615", "MySQL 8.0.32_20240816", "MySQL 8.0.32_20241021", "MySQL 5.7.32_20241015", "MySQL 5.7.32_20241021", "MySQL 5.7.32_20241020", "MySQL 8.0.26_20240316" ]
实例可升级的内核小版本。

示例

请求示例 1

查询单个实例可升级的内核小版本。

POST /?Action=DescribeDBInstanceEngineMinorVersions&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds.volcengineapi.com
X-Date: 20211202T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****
{
    "InstanceIds": [
        "mysql-19f81673add7"
    ]
}

返回示例 1

{
    "ResponseMetadata": {
        "RequestId": "202412192015432E3286F81118CC551BB1-296bdf",
        "Action": "DescribeDBInstanceEngineMinorVersions",
        "Version": "2022-01-01",
        "Service": "rds_mysql",
        "Region": "cn-beijing"
    },
    "Result": {
        "KernelVersions": [
            "MySQL 8.0.32_20241216",
            "MySQL 8.0.32_20241215",
            "MySQL 8.0.32_20241021",
            "MySQL 8.0.32_20241020",
            "MySQL 8.0.32_20241019",
            "MySQL 8.0.32_20241018",
            "MySQL 8.0.32_20241017",
            "MySQL 8.0.32_20241016"
        ]
    }
}

请求示例 2

查询多个实例可升级的内核小版本。

POST /?Action=DescribeDBInstanceEngineMinorVersions&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds.volcengineapi.com
X-Date: 20211202T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****
{
    "InstanceIds": [
        "mysql-19f81673****",
        "mysql-67bda593****"
    ]
}

返回示例 2

{
    "ResponseMetadata": {
        "RequestId": "202412192013409B15FAFEFF272039AC91-0552e5",
        "Action": "DescribeDBInstanceEngineMinorVersions",
        "Version": "2022-01-01",
        "Service": "rds_mysql",
        "Region": "cn-beijing"
    },
    "Result": {
        "KernelVersions": [
            "MySQL 8.0.32_20241216"
        ]
    }
}

请求示例 3

查询当前账号所有在用实例的可升级的内核小版本。

POST /?Action=DescribeDBInstanceEngineMinorVersions&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds.volcengineapi.com
X-Date: 20211202T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****

返回示例 3

{
    "ResponseMetadata": {
        "RequestId": "202412192016072E3286F81118CC55263E-166a2c",
        "Action": "DescribeDBInstanceEngineMinorVersions",
        "Version": "2022-01-01",
        "Service": "rds_mysql",
        "Region": "cn-beijing"
    },
    "Result": {
        "KernelVersions": [
            "MySQL 5.7.32_20240315",
            "MySQL 5.7.32_20240216",
            "MySQL 5.7.32_20240416",
            "MySQL 5.7.32_20240415",
            "MySQL 8.0.32_20241015",
            "MySQL 5.7.32_20241018",
            "MySQL 5.7.32_20240618",
            "MySQL 5.7.32_20240615",
            "MySQL 8.0.32_20240816",
            "MySQL 8.0.32_20241021",
            "MySQL 5.7.32_20241015",
            "MySQL 5.7.32_20241021",
            "MySQL 5.7.32_20241020",
            "MySQL 8.0.26_20240316",
            "MySQL 5.7.32_20241216",
            "MySQL 8.0.32_20241216"
        ]
    }
}

错误码

更多详情,请参见错误码