更新时间:2024-05-20 GMT+08:00
分享

查询解决方案模板配置

功能介绍

查询指定实例或者部署形态对应的副本数、分片数、节点数。

接口约束

请求参数solution和instance_id不能都为空。都传时以instance_id为准。

调试

您可以在API Explorer中调试该接口。

URI

GET https://{Endpoint}/v3/{project_id}/deployment-form
表1 参数说明

名称

是否必选

说明

project_id

租户在某一Region下的项目ID。

获取方法请参见获取项目ID

instance_id

实例ID。

solution

解决方案模板名称。

triset:高可用(1主2备)。

请求参数

无。

响应参数

表2 参数说明

名称

参数类型

说明

initial_node_num

Integer

初始节点数。当solution为triset时,返回此参数,其余结果为null。

solution

String

解决方案模板名称。

shard_num

Integer

分片数。

replica_num

Integer

副本数。

请求示例

查询解决方案模板配置。

GET https://gaussdb-opengauss.cn-north-1.myhuaweicloud.com/v3/fff3cb7f644d4fc9a3c58f2bfe239b9e/deployment-form?solution=triset

响应示例

查询解决方案模板配置。

{ 
  "initial_node_num" : 3, 
  "solution" : "triset", 
  "shard_num" : 1, 
  "replica_num" : 3 
}

状态码

错误码

请参见错误码

分享:

    相关文档

    相关产品