接口说明
适用引擎
- RDS MySQL
- RDS PostgreSQL
- RDS SQL Server
相关功能文档
注意 使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。
- MySQL升级内核小版本
- PostgreSQL升级内核小版本
- SQL Server升级内核小版本
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI
Explorer可以自动生成SDK代码示例。
调试调试
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
rds:UpgradeDBInstanceKernelVersion | Write |
|
|
无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DBInstanceId | string | 是 |
实例ID。可调用DescribeDBInstances获取。 说明 |
rm-bp**** |
UpgradeTime | string | 否 |
升级时间,取值:
|
Immediate |
SwitchTime | string | 否 |
指定时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。 说明 | 2020-01-15T00:00:00Z |
TargetMinorVersion | string | 否 | 指定需要升级的数据库小版本号。格式:
不传此参数则默认升级到最新的小版本。 说明 | xcluster80_20210305 |
返回参数
名称 | 类型 | 描述 | 示例值 |
---|---|---|---|
object | 返回参数详情。 |
||
DBInstanceName | string |
实例ID。 |
rm-bp**** |
TargetMinorVersion | string |
升级的目标内核小版本。 |
xcluster80_20210305 |
RequestId | string |
请求ID。 |
DA2ECBA0-4745-4491-9166-799FF8984AC9 |
TaskId | string |
任务ID。 |
226917711 |
示例
正常返回示例
JSON
格式
{
"DBInstanceName": "rm-bp****",
"TargetMinorVersion": "xcluster80_20210305",
"RequestId": "DA2ECBA0-4745-4491-9166-799FF8984AC9",
"TaskId": "226917711"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidMinorVerison.NotFound | Specify minor version not founud. | 操作失败,指定的小版本不存在。 |
400 | InstanceMissingMinorVersionAttr | Specify instance has no minor_version attribute. | 操作失败,当前实例缺少minor_version属性,请提交工单咨询。 |
400 | InvalidMinorVersionLowerThanInstance | Specify minor version cannot not be lower than current instance. | 指定版本不低于实例当前版本,请检查指定版本。 |
400 | InvalidMinorVersionAlreadyLatest | Minor version for instance is already the latest version. | 实例当前小版本已经是最新版本。 |
400 | MissingParameter.MinorVersionTag | You must specify the parameter MinorVersionTag. | 小版本号不能为空 |
400 | EngineNotSupported | The engine does not support the operation. | 当前引擎不支持此操作。 |
400 | IncorrectDBInstanceState | The current instance state does not support this operation. | 当前实例状态不支持此操作。 |
400 | TaskExists | Specified task have existed. | 任务已存在。 |
400 | UpgradeSQLServerMinorVersionFail | Upgrade Minor Version for SQLServer failed. | 升级SQLServer的小版本失败。 |
400 | UnsupportExtendDisk.NotSupport | Specified DB instance is unsupport extend disk. | 指定的实例不支持扩展磁盘。 |
400 | InvalidSwitchMode.NotFound | Specified Parameter UpgradeTime is Invalid. | 未知的切换模式 |
400 | InvalidDBInstanceConnType.Classic | Specified DB instance ConnectionAddress include classic net. | 实例使用了经典网络 |
400 | IncorrectDBInstanceTdeStatus | Source DB instance and Target DB instance TDEStatus does not support this operation. | – |
400 | InstanceIsSnapshotBackupNotSupportThisOperation | The instance backup method is snapshot backup, this operation is not supported | 开启快照备份的实例不支持此操作 |
400 | TDEInstanceNotSupportThisOperation | The instance opened TDE, this operation is not supported | 开启TDE功能的实例不支持此操作 |
400 | SSLInstanceNotSupportThisOperation | The instance opened SSL, upgrade is not this operation | 开启SSL功能的实例不支持此操作 |
400 | BYOLInstanceNotSupportThisOperation | The BYOL instance is not supported this operation | BYOL实例不支持此操作 |
400 | BYOKInstanceNotSupportThisOperation | The BYOK instance is not supported this operation | 开启云盘加密功能的实例不支持此操作 |
400 | ADInstanceNotSupportThisOperation | The AD instance is not supported this operation | 加入AD域的实例不支持此操作 |
400 | MinorVersionNotSupport | The current database minor version does not support the operation. | 操作失败,当前小版本不支持该操作。 |
403 | IncorrectMinorVersion | Current engine minor version does not support operations. | 当前引擎小版本不支持此操作。 |
403 | IncorrectDBInstanceLockMode | Current DB instance lock mode does not support this operation. | 操作失败,实例处于锁定状态。 |
403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | 操作失败,该实例状态下不支持此操作。 |
403 | SSLNotSupport | The CharacterType of instance does not support SSL | – |
403 | OperationDenied.PrePayTypeNotSupported | The operation is not permitted due to pay type of instance. | 预付费实例,不允许直接删除 |
403 | CurrentRecoveryModelNotSupportThisAction | Current recovery model not supported this action. | 当前的恢复模式不支持此操作 |
404 | InvalidDBInstanceName.NotFound | The database instance does not exist. | 数据库实例名称不存在。请确认数据名称是否正确。 |
404 | InvalidMaxscaleMinorVersion.Format | Specified Maxscale Minor Version is Invalid. | – |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-11-21 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
||||||||||||
2023-11-07 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
||||||||||||
2023-09-20 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
||||||||||||
2023-06-09 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
||||||||||||
2023-05-16 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
||||||||||||
2023-03-01 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
||||||||||||
2022-06-23 | OpenAPI 描述信息更新,OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
||||||||||||
2022-06-23 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||
|
内容没看懂? 不太想学习?想快速解决? 有偿解决: 联系专家
阿里云企业补贴进行中: 马上申请
腾讯云限时活动1折起,即将结束: 马上收藏
同尘科技为腾讯云授权服务中心。
购买腾讯云产品享受折上折,更有现金返利:同意关联,立享优惠
转转请注明出处:https://www.yunxiaoer.com/154735.html