PrecheckDuckDBDependency - 检查创建DuckDB分析实例前提条件

该接口用于检查RDS PostgreSQL主实例是否满足创建DuckDB分析实例的前提条件。对于不满足的条件将返回失败原因,并提供解决方案或建议的目标值。

接口说明

适用引擎

RDS PostgreSQL

相关功能文档

DuckDB 分析实例

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
DBInstanceIdstring

主实例 ID。

pgm-2zegy5pdkg58****

返回参数

名称类型描述示例值
object

返回参数详情。

FailedCheckItemsarray<object>

不符合创建 DuckDB 分析实例的条目。

failedCheckItemsobject
AllowAutoModifyboolean

是否可以一键修复。

注意 当数据库实例大版本不符合要求时,需要通过手动升级

false
CurrentValuestring

检查项的当前值。

15.0
Namestring

检查项名称。

MajorVersion
RequiredValuestring

检查项的目标值(或目标区间)。

17.0
Typestring

检查项。取值:

  • Parameter:参数。
  • MinorVersion:内核小版本。
  • MajorVersion:数据库大版本。
Parameter
Resultboolean

是否通过创建 DuckDB 分析实例的前置校验。取值:

  • true:是。
  • false:否。
false

示例

正常返回示例

JSON格式

{
  "FailedCheckItems": [
    {
      "AllowAutoModify": true,
      "CurrentValue": 15,
      "Name": "MajorVersion",
      "RequiredValue": 17,
      "Type": "Parameter"
    }
  ],
  "Result": true
}

错误码

HTTP status code错误码错误信息描述
400IdempotentParameterMismatchThe request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.-
400ReadonlyInstanceNotSupportThe operation is not permitted due to type of the instance.指定的只读实例不支持此操作。
400InvalidEngineVersionThe specified EngineVersion is invalid.指定的数据库版本号无效
400MissingParameter.MinorVersionTagYou must specify the parameter MinorVersionTag.小版本号不能为空
400Workbench.InternalFailureECS workbench returns an internal failure. Please check password expiration policy and / or other issues.ECS workbench API 返回了一个内部错误,大概率是账号密码错误。请检查主机账号密码是否过期,和其他可能的情况。
403ReadOnlyInstanceNotSupportRead-only instance does not support this operation.只读实例不支持此操作。
403DBInstanceStatusNotActiveThe status of the current instance is not active.操作失败,请检查实例运行状态。
403IncorrectDBInstanceTypeThe database instance type does not support the operation.操作失败,当前数据库类型不支持该操作。
403GroupReplicationNotSupport.InvalidEngineVersionGroup Replication requires the instance engine version to be 8.0.实例数据库版本不是MySQL 8.0,不支持组复制。
500InternalFailureThe request processing has failed due to some unknown error, exception or failure.由于未知错误、异常或失败,请求处理失败。

访问错误中心查看更多错误码。