该接口用于检查RDS PostgreSQL主实例是否满足创建DuckDB分析实例的前提条件。对于不满足的条件将返回失败原因,并提供解决方案或建议的目标值。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
rds:PrecheckDuckDBDependency |
get |
*DBInstance
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DBInstanceId |
string |
是 |
主实例 ID。 |
pgm-2zegy5pdkg58**** |
| TargetMode |
string |
否 |
readOnly |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数详情。 |
||
| FailedCheckItems |
array<object> |
不符合创建 DuckDB 分析实例的条目。 |
|
|
object |
|||
| AllowAutoModify |
boolean |
是否可以一键修复。
重要 当数据库实例大版本不符合要求时,需要通过手动升级。 枚举值:
|
false |
| CurrentValue |
string |
检查项的当前值。 |
15.0 |
| Name |
string |
检查项名称。 |
MajorVersion |
| RequiredValue |
string |
检查项的目标值(或目标区间)。 |
17.0 |
| Type |
string |
检查项。取值:
枚举值:
|
Parameter |
| Result |
boolean |
是否通过创建 DuckDB 分析实例的前置校验。取值:
枚举值:
|
false |
示例
正常返回示例
JSON格式
{
"FailedCheckItems": [
{
"AllowAutoModify": true,
"CurrentValue": "15.0",
"Name": "MajorVersion",
"RequiredValue": "17.0",
"Type": "Parameter"
}
],
"Result": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The 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. | |
| 400 | ReadonlyInstanceNotSupport | The operation is not permitted due to type of the instance. | 指定的只读实例不支持此操作。 |
| 400 | InvalidEngineVersion | The specified EngineVersion is invalid. | 指定的数据库版本号无效 |
| 400 | MissingParameter.MinorVersionTag | You must specify the parameter MinorVersionTag. | 小版本号不能为空 |
| 400 | Workbench.InternalFailure | ECS workbench returns an internal failure. Please check password expiration policy and / or other issues. | ECS workbench API 返回了一个内部错误,大概率是账号密码错误。请检查主机账号密码是否过期,和其他可能的情况。 |
| 400 | DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance | Current instance is already attached to another duckdb instance, operation is conflict. | 当前实例已经关联了另一个 DUCKDB 实例,这和当前的 DUCKDB 操作冲突了 |
| 500 | InternalFailure | The request processing has failed due to some unknown error, exception or failure. | 由于未知错误、异常或失败,请求处理失败。 |
| 403 | ReadOnlyInstanceNotSupport | Read-only instance does not support this operation. | 只读实例不支持此操作。 |
| 403 | DBInstanceStatusNotActive | The status of the current instance is not active. | 操作失败,请检查实例运行状态。 |
| 403 | IncorrectDBInstanceType | The database instance type does not support the operation. | 操作失败,当前数据库类型不支持该操作。 |
| 403 | GroupReplicationNotSupport.InvalidEngineVersion | Group Replication requires the instance engine version to be 8.0. | 实例数据库版本不是MySQL 8.0,不支持组复制。 |
| 403 | IncorrectDBInstance | The current DB instance does not support this operation. | 操作失败,当前实例不支持此操作。 |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | 当前实例状态不支持此操作。 |
| 404 | IncorrectDBInstanceLockMode | Current DB instance lock mode does not support this operation. | 操作失败,实例处于锁定状态。 |
| 404 | InvalidDBInstance.NotFound | The specified instance does not exist or is not supported. | 没有找到指定的实例,请检查实例的正确性。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。