该接口用于检查RDS PostgreSQL主实例是否满足创建DuckDB分析实例的前提条件。对于不满足的条件将返回失败原因,并提供解决方案或建议的目标值。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
|---|---|---|---|---|
| rds:PrecheckDuckDBDependency | get | *DBInstance acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId} |
| 无 |
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| DBInstanceId | string | 是 | 主实例 ID。 | pgm-2zegy5pdkg58**** |
返回参数
示例
正常返回示例
JSON格式
{
"FailedCheckItems": [
{
"AllowAutoModify": true,
"CurrentValue": 15,
"Name": "MajorVersion",
"RequiredValue": 17,
"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 返回了一个内部错误,大概率是账号密码错误。请检查主机账号密码是否过期,和其他可能的情况。 |
| 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,不支持组复制。 |
| 500 | InternalFailure | The request processing has failed due to some unknown error, exception or failure. | 由于未知错误、异常或失败,请求处理失败。 |
访问错误中心查看更多错误码。
