快速扩缩列。
接口说明
方法
PUT
URI
/openapi/ha3/instances/{instanceId}/index-partition
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
PUT /openapi/ha3/instances/{instanceId}/index-partition
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
instanceId | string | 是 | 实例id | ha-cn-7mz2ttxta01 |
body | object | 否 | 请求体参数 | |
dataSourceName | string | 否 | 数据源名称 | test1 |
generation | long | 否 | generation 主键 | 1633293829 |
domainName | string | 否 | 机房 | pre_domain_1 |
indexInfos | object [] | 否 | 索引分片信息 | |
indexName | string | 否 | 索引名称 | atest2 |
partitionCount | integer | 否 | 索引对应的分片数 | 3 |
parallelNum | integer | 否 | 并发数,默认是 1 | 1 |
示例
PUT /openapi/ha3/instances/{instanceId}/index-partition
{
"dataSourceName":"ha-cn-pl32n3bi904_d",
"domainName":"pre_domain_1",
"generation":"1633293829",
"indexInfos":[
{
"indexName":"atest2",
"partitionCount":2
}
]
}
返回参数
示例
正常返回示例
JSON
格式
{
"requestId": "93A9E542-8CF8-5BA6-99AB-94C0FE520429",
"result": {
"test": "test",
"test2": 1
}
}
错误码
访问错误中心查看更多错误码。