summaryrefslogtreecommitdiff
path: root/data/zh_cn/searchengine/2021-10-25/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/searchengine/2021-10-25/api-docs.php')
-rw-r--r--data/zh_cn/searchengine/2021-10-25/api-docs.php27784
1 files changed, 11546 insertions, 16238 deletions
diff --git a/data/zh_cn/searchengine/2021-10-25/api-docs.php b/data/zh_cn/searchengine/2021-10-25/api-docs.php
index 3cdb766..9575fc4 100644
--- a/data/zh_cn/searchengine/2021-10-25/api-docs.php
+++ b/data/zh_cn/searchengine/2021-10-25/api-docs.php
@@ -1,199 +1,88 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'searchengine',
- 'version' => '2021-10-25',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'searchengine', 'version' => '2021-10-25'],
'directories' => [
[
- 'id' => 169788,
- 'title' => '实例',
+ 'children' => ['ChangeResourceGroup', 'TagResources', 'UntagResources', 'ListTagResources', 'CreatePublicUrl', 'DeletePublicUrl', 'ModifyPublicUrlIpList', 'CreateInstance', 'DeleteInstance', 'UpdateInstance', 'ModifyPassword', 'ListInstances', 'GetInstance', 'ListInstanceSpecs'],
'type' => 'directory',
- 'children' => [
- 'ChangeResourceGroup',
- 'TagResources',
- 'UntagResources',
- 'ListTagResources',
- 'CreatePublicUrl',
- 'DeletePublicUrl',
- 'ModifyPublicUrlIpList',
- 'CreateInstance',
- 'DeleteInstance',
- 'UpdateInstance',
- 'ModifyPassword',
- 'ListInstances',
- 'GetInstance',
- 'ListInstanceSpecs',
- ],
+ 'title' => '实例',
+ 'id' => 159559,
],
[
- 'id' => 169802,
- 'title' => '配置中心',
- 'type' => 'directory',
'children' => [
[
- 'id' => 169803,
- 'title' => '在线表配置',
+ 'children' => ['GetIndexOnlineStrategy', 'ModifyIndexOnlineStrategy', 'ModifyOnlineConfig', 'ListOnlineConfigs'],
'type' => 'directory',
- 'children' => [
- 'GetIndexOnlineStrategy',
- 'ModifyIndexOnlineStrategy',
- 'ModifyOnlineConfig',
- 'ListOnlineConfigs',
- ],
+ 'title' => '在线表配置',
+ 'id' => 159592,
],
[
- 'id' => 169783,
+ 'children' => ['ModifyIndex', 'StartIndex', 'StopIndex', 'CreateIndex', 'BuildIndex', 'DeleteIndexVersion', 'DeleteIndex', 'ModifyIndexVersion', 'ModifyFile', 'PublishIndexVersion', 'ModifyIndexPartition', 'GetIndex', 'GetIndexVersion', 'GetFile', 'ListIndexes', 'RecoverIndex'],
+ 'type' => 'directory',
'title' => '索引结构',
+ 'id' => 159575,
+ ],
+ [
+ 'children' => ['CreateConfigDir', 'CreateConfigFile', 'DeleteConfigDir', 'DeleteConfigFile', 'ModifyAdvanceConfig', 'DeleteAdvanceConfig', 'ModifyAdvanceConfigFile', 'PublishAdvanceConfig', 'GetAdvanceConfig', 'GetAdvanceConfigFile', 'ListAdvanceConfigDir', 'ListAdvanceConfigs'],
'type' => 'directory',
- 'children' => [
- 'ModifyIndex',
- 'StartIndex',
- 'StopIndex',
- 'CreateIndex',
- 'BuildIndex',
- 'DeleteIndexVersion',
- 'DeleteIndex',
- 'ModifyIndexVersion',
- 'ModifyFile',
- 'PublishIndexVersion',
- 'ModifyIndexPartition',
- 'GetIndex',
- 'GetIndexVersion',
- 'GetFile',
- 'ListIndexes',
- 'RecoverIndex',
- ],
- ],
- [
- 'id' => 169816,
'title' => '高级配置',
+ 'id' => 159597,
+ ],
+ [
+ 'children' => ['ListSchemas', 'ModifyDataSourceDeploy', 'CreateDataSource', 'DeleteDataSource', 'GetDataSource', 'ListDataSources', 'ListDataSourceSchemas', 'ListDateSourceGenerations', 'GetDataSourceDeploy'],
'type' => 'directory',
- 'children' => [
- 'CreateConfigDir',
- 'CreateConfigFile',
- 'DeleteConfigDir',
- 'DeleteConfigFile',
- 'ModifyAdvanceConfig',
- 'DeleteAdvanceConfig',
- 'ModifyAdvanceConfigFile',
- 'PublishAdvanceConfig',
- 'GetAdvanceConfig',
- 'GetAdvanceConfigFile',
- 'ListAdvanceConfigDir',
- 'ListAdvanceConfigs',
- ],
- ],
- [
- 'id' => 169824,
'title' => '数据源配置',
- 'type' => 'directory',
- 'children' => [
- 'ListSchemas',
- 'ModifyDataSourceDeploy',
- 'CreateDataSource',
- 'DeleteDataSource',
- 'GetDataSource',
- 'ListDataSources',
- 'ListDataSourceSchemas',
- 'ListDateSourceGenerations',
- 'GetDataSourceDeploy',
- ],
+ 'id' => 159610,
],
],
+ 'type' => 'directory',
+ 'title' => '配置中心',
+ 'id' => 159574,
],
[
- 'id' => 194030,
- 'title' => '运维中心',
- 'type' => 'directory',
'children' => [
[
- 'id' => 193382,
+ 'children' => ['CloneSqlInstance', 'CreateFolder', 'CreateSqlInstance', 'DeleteSqlInstance', 'ExecuteSqlInstance', 'GetDatabaseSchema', 'GetSqlInstance', 'ListDatabases', 'UpdateSqlInstanceContent', 'UpdateSqlInstanceName', 'UpdateSqlInstanceParams', 'DeleteFolder', 'RenameFolder'],
+ 'type' => 'directory',
'title' => 'sql开发',
+ 'id' => 159665,
+ ],
+ [
+ 'children' => ['ListTasks', 'ListClusterTasks', 'ListDataSourceTasks', 'StopTask', 'ForceSwitch'],
'type' => 'directory',
- 'children' => [
- 'CloneSqlInstance',
- 'CreateFolder',
- 'CreateSqlInstance',
- 'DeleteSqlInstance',
- 'ExecuteSqlInstance',
- 'GetDatabaseSchema',
- 'GetSqlInstance',
- 'ListDatabases',
- 'UpdateSqlInstanceContent',
- 'UpdateSqlInstanceName',
- 'UpdateSqlInstanceParams',
- 'DeleteFolder',
- 'RenameFolder',
- ],
- ],
- [
- 'id' => 169800,
'title' => '变更历史',
- 'type' => 'directory',
- 'children' => [
- 'ListTasks',
- 'ListClusterTasks',
- 'ListDataSourceTasks',
- 'StopTask',
- 'ForceSwitch',
- ],
+ 'id' => 159659,
],
[
- 'id' => 194031,
- 'title' => '日志管理',
+ 'children' => ['ListLogs'],
'type' => 'directory',
- 'children' => [
- 'ListLogs',
- ],
+ 'title' => '日志管理',
+ 'id' => 159679,
],
[
- 'id' => 169796,
- 'title' => '部署管理',
+ 'children' => ['ModifyNodeConfig', 'GetDeployGraph', 'GetNodeConfig'],
'type' => 'directory',
- 'children' => [
- 'ModifyNodeConfig',
- 'GetDeployGraph',
- 'GetNodeConfig',
- ],
+ 'title' => '部署管理',
+ 'id' => 159655,
],
[
- 'id' => 169794,
- 'title' => '运维管理',
+ 'children' => ['ListIndexRecoverRecords', 'ListPausePolicys', 'ModifyPausePolicy', 'CreateCluster', 'RemoveCluster', 'ModifyClusterDesc', 'ModifyClusterOfflineConfig', 'ModifyClusterOnlineConfig', 'GetCluster', 'GetClusterRunTimeInfo', 'ListClusterNames', 'ListClusters'],
'type' => 'directory',
- 'children' => [
- 'ListIndexRecoverRecords',
- 'ListPausePolicys',
- 'ModifyPausePolicy',
- 'CreateCluster',
- 'RemoveCluster',
- 'ModifyClusterDesc',
- 'ModifyClusterOfflineConfig',
- 'ModifyClusterOnlineConfig',
- 'GetCluster',
- 'GetClusterRunTimeInfo',
- 'ListClusterNames',
- 'ListClusters',
- ],
+ 'title' => '运维管理',
+ 'id' => 159642,
],
],
+ 'type' => 'directory',
+ 'title' => '运维中心',
+ 'id' => 159641,
],
[
- 'id' => 191973,
- 'title' => '表管理',
- 'type' => 'directory',
'children' => [
[
- 'id' => 193711,
- 'title' => '表别名管理',
+ 'children' => ['ModifyAlias', 'ListAliases', 'DeleteAlias', 'CreateAlias'],
'type' => 'directory',
- 'children' => [
- 'ModifyAlias',
- 'ListAliases',
- 'DeleteAlias',
- 'CreateAlias',
- ],
+ 'title' => '表别名管理',
+ 'id' => 159636,
],
'CreateTable',
'ModifyTable',
@@ -204,112 +93,66 @@
'ListTableGenerations',
'GetTableGeneration',
],
+ 'type' => 'directory',
+ 'title' => '表管理',
+ 'id' => 159627,
],
[
- 'id' => 180946,
- 'title' => '其他',
+ 'children' => ['ListPostQueryResult', 'ListRestQueryResult', 'ListVectorQueryResult', 'PushDocuments', 'DescribeRegions', 'ListQueryResult', 'DeleteModel', 'ModifyModel', 'DebugModel', 'GetModel', 'ListModels', 'CreateModel', 'ModifySearcherReplica'],
'type' => 'directory',
- 'children' => [
- 'ListPostQueryResult',
- 'ListRestQueryResult',
- 'ListVectorQueryResult',
- 'PushDocuments',
- 'DescribeRegions',
- 'ListQueryResult',
- 'DeleteModel',
- 'ModifyModel',
- 'DebugModel',
- 'GetModel',
- 'ListModels',
- 'CreateModel',
- 'ModifySearcherReplica',
- ],
+ 'title' => '其他',
+ 'id' => 159620,
],
],
'components' => [
- 'schemas' => [
- 'ErrorResponse' => [
- 'title' => 'A short description of struct',
- 'description' => '错误返回响应体',
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'requestId',
- 'type' => 'string',
- 'example' => '90D6B8F5-FE97-4509-9AAB-367836C51818',
- ],
- 'code' => [
- 'title' => 'code',
- 'type' => 'string',
- 'example' => 'InternalServerError',
- ],
- 'message' => [
- 'title' => 'message',
- 'type' => 'string',
- 'example' => 'internal server error',
- ],
- ],
- ],
- ],
+ 'schemas' => [],
],
'apis' => [
- 'ChangeResourceGroup' => [
- 'summary' => '修改资源组。',
- 'path' => '/openapi/ha3/instances/{instanceId}/actions/change-resource-group',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'BuildIndex' => [
+ 'summary' => '触发索引重建。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/actions/build-index',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [],
- 'produces' => [],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '104671',
+ 'abilityTreeNodes' => ['FEATUREopensearchD5N27K'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求体参数',
+ 'description' => '一个JSON格式的字符串,完整JSON字符串信息,具体内容参见以下详细信息。',
'type' => 'object',
'properties' => [
- 'newResourceGroupId' => [
- 'title' => '新资源组id',
- 'description' => '新资源组id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-acfmxr3gs*****',
- ],
- 'resourceType' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'instance',
- ],
+ 'dataSourceName' => ['title' => '数据源名', 'description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'domain' => ['title' => '数据源部署', 'description' => '数据源机房', 'type' => 'string', 'required' => false, 'example' => 'sz_vpc_domain_1'],
+ 'dataSourceType' => ['title' => '数据源类型 (odps: maxComputer, swift: swift, unKnow)', 'description' => '数据源类型', 'type' => 'string', 'required' => false, 'example' => 'odps'],
+ 'partition' => ['title' => '数据源的可用分区', 'description' => '数据源为odps时必填', 'type' => 'string', 'required' => false, 'example' => 'ds=20201010'],
+ 'dataTimeSec' => ['title' => 'API推送数据源的数据时间', 'description' => 'int类型,秒级时间戳,数据源为API推送时必填', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1640867288'],
+ 'buildMode' => ['title' => '索引重建方式 (API: API方式推送数据源, RECOVER_INDEX: 从索引中恢复数据源)', 'description' => '重建index方式: api、indexRecover', 'type' => 'string', 'required' => false, 'example' => 'api'],
+ 'generation' => ['title' => '从索引中恢复数据源,dump表的generation', 'description' => '历史回流ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '160131146'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'path' => ['description' => '相对路径', 'type' => 'string', 'required' => false, 'example' => '/test/dir'],
],
'required' => false,
+ 'example' => '{}',
],
],
],
@@ -320,59 +163,158 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '407BFD91-DE7D-50BA-8F88-CDE52A3B5E46'],
+ 'result' => ['title' => '集群列表', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
],
],
+ 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\"\\n}","type":"json"}]',
- 'title' => '修改资源组',
- 'description' => '### 方法'."\n"
+ 'title' => '触发索引重建',
+ 'description' => '## 方法'."\n"
."\n"
- .'```java'."\n"
+ .'```'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
- .'### URI'."\n"
+ .'## URI'."\n"
."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/actions/change-resource-group'."\n"
- .'```',
- ],
- 'TagResources' => [
- 'summary' => '批量增加/更新标签。',
- 'path' => '/openapi/ha3/resource-tags',
- 'methods' => [
- 'post',
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/actions/build-index'."\n"
+ .'```'."\n",
+ 'requestParamsDescription' => "\n"
+ ."\n"
+ .'## 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'POST /openapi/ha3/instances/ha3_instance_name/actions/build-index'."\n"
+ .''."\n"
+ .'```'."\n"
+ ."\n"
+ .'​'."\n"
+ .''."\n"
+ .' '."\n"
+ ."\n"
+ .'```'."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "dataSourceName": "my_data_source",'."\n"
+ .''."\n"
+ .' "domain": "test", //数据源部署'."\n"
+ .''."\n"
+ .' "indexes": ['."\n"
+ .''."\n"
+ .' "index1",'."\n"
+ .''."\n"
+ .' "index2"'."\n"
+ .''."\n"
+ .' ],'."\n"
+ .''."\n"
+ .' "dataSourceType": "odps", //odps 或swift,必填'."\n"
+ .''."\n"
+ .' "partition": "20201010", //数据源为odps时必填'."\n"
+ .''."\n"
+ .' "dataTimeSec": 1640867288 //int类型,秒级时间戳,数据源为api推送时必填'."\n"
+ .''."\n"
+ .' }'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ .'​'."\n"
+ .''."\n"
+ .'​'."\n"
+ .''."\n"
+ .' '."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "dataSourceName": "my_data_source",'."\n"
+ .''."\n"
+ .' "domain": "test", //数据源部署'."\n"
+ .''."\n"
+ .' "indexes": ['."\n"
+ .''."\n"
+ .' "index1",'."\n"
+ .''."\n"
+ .' "index2"'."\n"
+ .''."\n"
+ .' ],'."\n"
+ .''."\n"
+ .' "dataSourceType": "swift", //odps 或swift,必填'."\n"
+ .''."\n"
+ .' "partition": "20201010", //数据源为odps时必填'."\n"
+ .''."\n"
+ .' "dataTimeSec": 1640867288 //int类型,秒级时间戳,数据源为api推送时必填'."\n"
+ .''."\n"
+ .' }'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ .'​'."\n"
+ ."\n\n"
+ ."\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .''."\n"
+ .' "result": []'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'详情可参考[响应结构](~~464322~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BuildIndex'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:BuildIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"407BFD91-DE7D-50BA-8F88-CDE52A3B5E46\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ChangeResourceGroup' => [
+ 'summary' => '修改资源组。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/actions/change-resource-group',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => [],
+ 'produces' => [],
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '166280',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchJB31XH',
- ],
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'style' => 'json',
@@ -380,52 +322,8 @@
'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'resourceType' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'instance',
- ],
- 'resourceId' => [
- 'title' => '资源ID,最多 50个子项',
- 'description' => '资源ID,最多 50个子项',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'es-cn-i7m2u6o2*******',
- ],
- 'required' => true,
- ],
- 'tag' => [
- 'title' => '对应新增标签列表,最多包含20个子项',
- 'description' => '对应新增标签列表,最多包含20个子项',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签',
- 'type' => 'object',
- 'properties' => [
- 'key' => [
- 'title' => '标签键',
- 'description' => '标签键',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- 'value' => [
- 'title' => '标签值',
- 'description' => '标签值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
+ 'newResourceGroupId' => ['title' => '新资源组id', 'description' => '新资源组id', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmxr3gs*****'],
+ 'resourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => false, 'example' => 'instance'],
],
'required' => false,
],
@@ -434,20 +332,16 @@
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\"\\n}","type":"json"}]',
- 'title' => '批量增加/更新标签',
+ 'title' => '修改资源组',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -457,327 +351,73 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/resource-tags'."\n"
+ .'/openapi/ha3/instances/{instanceId}/actions/change-resource-group'."\n"
.'```',
- ],
- 'UntagResources' => [
- 'summary' => '批量删除标签。',
- 'path' => '/openapi/ha3/resource-tags',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'],
],
],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '166296',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchJB31XH',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'resourceType',
- 'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'instance',
- ],
- ],
- [
- 'name' => 'resourceId',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '资源ID,最多 50个子项',
- 'description' => '资源ID,最多 50个子项',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'es-cn-i7m2u6o2*******',
- ],
- 'required' => true,
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'tagKey',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '对应标签键列表,最多包含20个子项',
- 'description' => '对应标签键列表,最多包含20个子项',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签键',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'all',
- 'in' => 'query',
- 'schema' => [
- 'title' => '是否全部删除,只针对tags为空时有效。取值范围: true false True False 默认是 false',
- 'description' => '是否全部删除,只针对tags为空时有效。取值范围: true false True False 默认是 false',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'tequestId' => [
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'."\n",
- ],
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"tequestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\\\n\\"\\n}","type":"json"}]',
- 'title' => '批量删除标签',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'DELETE'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/resource-tags'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\"\\n}","type":"json"}]',
],
- 'ListTagResources' => [
- 'summary' => '查询资源标签关系列表。',
- 'path' => '/openapi/ha3/resource-tags',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CloneSqlInstance' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/clone',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '166297',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- 'FEATUREopensearchJB31XH',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '139625',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
- 'name' => 'resourceType',
- 'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'instance',
- ],
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'resourceId',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '资源ID,最多 50个子项',
- 'description' => '资源ID,最多 50个子项',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'es-cn-i7m2u6o2*******'."\n",
- ],
- 'required' => false,
- ],
+ 'name' => 'database',
+ 'in' => 'path',
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
- 'name' => 'tag',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '对应新增标签列表,最多包含20个子项',
- 'description' => '对应新增标签列表,最多包含20个子项',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签',
- 'type' => 'object',
- 'properties' => [
- 'key' => [
- 'title' => '标签键',
- 'description' => '标签键',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- 'value' => [
- 'title' => '标签值',
- 'description' => '标签值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'name' => 'sqlInstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
],
[
- 'name' => 'nextToken',
- 'in' => 'query',
- 'schema' => [
- 'title' => '下一个查询开始Token',
- 'description' => '下一个查询开始Token',
- 'type' => 'string',
- 'required' => false,
- 'example' => '600********33',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
- 'nextToken' => [
- 'title' => '下一个查询开始Token',
- 'description' => '下一个查询开始Token',
- 'type' => 'string',
- 'example' => 'b56*******de4a7eca',
- ],
- 'tagResources' => [
- 'title' => '资源列表',
- 'description' => '资源列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '绑定了标签的资源。',
- 'type' => 'object',
- 'properties' => [
- 'tagKey' => [
- 'title' => '标签键',
- 'description' => '标签键',
- 'type' => 'string',
- 'example' => 'opensearch',
- ],
- 'tagValue' => [
- 'title' => '标签值',
- 'description' => '标签值',
- 'type' => 'string',
- 'example' => 'opensearch',
- ],
- 'resourceId' => [
- 'title' => '资源ID',
- 'description' => '资源ID',
- 'type' => 'string',
- 'example' => 'rmq-cn-jeo3mn55j01',
- ],
- 'resourceType' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'example' => 'instance',
- ],
- ],
- ],
- ],
+ 'targetFolderId' => ['description' => '目标sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
+ 'name' => ['description' => '名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"nextToken\\": \\"b56*******de4a7eca\\",\\n \\"tagResources\\": [\\n {\\n \\"tagKey\\": \\"opensearch\\",\\n \\"tagValue\\": \\"opensearch\\",\\n \\"resourceId\\": \\"rmq-cn-jeo3mn55j01\\",\\n \\"resourceType\\": \\"instance\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '查询资源标签关系列表',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/resource-tags'."\n"
- .'```',
- ],
- 'CreatePublicUrl' => [
- 'summary' => '开通公网域名。',
- 'path' => '/openapi/ha3/instances/{instanceId}/public-url',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '171289',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- 'FEATUREopensearchJB31XH',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'required' => false,
],
],
],
@@ -786,25 +426,31 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
+ 'title' => 'NodeVO',
+ 'description' => '返回结果。',
'type' => 'object',
- 'example' => '{}',
+ 'properties' => [
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '1719221186114'],
+ 'gmtModified' => ['description' => '修改时间。', 'type' => 'string', 'example' => '1719221186114'],
+ 'name' => ['description' => 'sql实例名称', 'type' => 'string', 'example' => 'general'],
+ 'parent' => ['description' => '父任务id。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'True'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'instance'],
+ 'instanceId' => ['description' => '实例id', 'type' => 'integer', 'format' => 'int64', 'example' => '-cn-pl32rf0****'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '开通公网域名',
+ 'title' => '复制SQL实例',
+ 'summary' => '复制SQL实例。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -814,92 +460,33 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/public-url'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/clone'."\n"
.'```',
- ],
- 'DeletePublicUrl' => [
- 'summary' => '删除公网域名。',
- 'path' => '/openapi/ha3/instances/{instanceId}/public-url',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CloneSqlInstance'],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '171290',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- 'FEATUREopensearchJB31XH',
- ],
- ],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CloneSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除公网域名',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'DELETE'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/public-url'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"id\\": 1,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"general\\",\\n \\"parent\\": 1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
],
- 'ModifyPublicUrlIpList' => [
- 'summary' => '修改公网域名白名单。',
- 'path' => '/openapi/ha3/instances/{instanceId}/public-url-ip-list',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateAlias' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/aliases',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -908,37 +495,33 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '171291',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- 'FEATUREopensearchJB31XH',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '223193',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'newMode',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否为新版本控制台页面', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => 'body请求体, key: publicUrlAllow',
+ 'description' => '请求体参数',
'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '47.100.XX.XX,140.205.XX.XX',
- 'description' => 'value: 白名单,逗号分隔',
+ 'properties' => [
+ 'alias' => ['title' => '别名', 'description' => '别名', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'index' => ['title' => '关联索引', 'description' => '关联索引', 'type' => 'string', 'required' => false, 'example' => 'index'],
],
+ 'required' => false,
],
],
],
@@ -947,152 +530,99 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改公网域名白名单',
+ 'title' => '创建别名',
+ 'summary' => '创建别名。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/public-url-ip-list'."\n"
+ .'/openapi/ha3/instances/{instanceId}/aliases'."\n"
.'```',
- ],
- 'CreateInstance' => [
- 'summary' => '创建问天引擎实例。',
- 'path' => '/openapi/ha3/instances',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'CreateCluster' => [
+ 'summary' => '添加集群。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/clusters',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '136888',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchXLGC1X',
- 'FEATUREopensearchCH6TQD',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '104657',
+ 'abilityTreeNodes' => ['FEATUREopensearchA6GC80'],
],
'parameters' => [
[
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求结构。',
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'chargeType' => [
- 'description' => '实例的付费方式。取值范围: PREPAY:预付费,包年包月。选择该类付费方式时,您必须确认自己的账号支持余额支付/信用支付,否则将返回 InvalidPayMethod 的错误提示,并且需要指定paymentInfo参数。POSTPAY:按量付费(当前暂不支持)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PREPAY',
- ],
- 'components' => [
- 'description' => '实例相关的规格信息列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '实例相关的规格信息列表。',
- 'type' => 'object',
- 'properties' => [
- 'code' => [
- 'description' => '规格code,和售卖参数保持一致',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'searcherdocsize',
- ],
- 'value' => [
- 'description' => '控件填写的数据。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '200',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- 'order' => [
- 'description' => '付费信息。',
+ 'name' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'required' => false, 'example' => 'hz_pre_vpc_domain_1'],
+ 'description' => ['title' => '集群描述', 'description' => '集群描述。', 'type' => 'string', 'required' => false, 'example' => 'Custom description'],
+ 'queryNode' => [
+ 'title' => '查询节点配置',
+ 'description' => '查询节点详情信息',
'type' => 'object',
'properties' => [
- 'autoRenew' => [
- 'description' => '是否自动续费,包含:是(true)和否(false)',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'duration' => [
- 'description' => '付费周期,包含1,2,3,4,5,6,7,8,9,10,12',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '29',
- ],
- 'pricingCycle' => [
- 'description' => '周期单位,包含:月(Month),年(Year)等',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Month',
- ],
+ 'number' => ['title' => '节点数量', 'description' => ' 查询节点数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
'required' => false,
],
- 'tags' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'value' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'required' => false,
+ 'dataNode' => [
+ 'title' => '数据节点配置',
+ 'description' => '数据节点详情信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'number' => ['title' => '节点数量', 'description' => '数据节点的数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'partition' => ['description' => '分片数', 'type' => 'string', 'required' => false, 'example' => '2'],
],
'required' => false,
],
- 'resourceGroupId' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'autoLoad' => ['title' => '添加完成后是否自动挂载', 'description' => '是否自动挂载', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
'example' => '{}',
@@ -1102,34 +632,17 @@
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0',
- ],
- 'result' => [
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
- '5XX' => [],
+ 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\"\\n }\\n}","type":"json"}]',
- 'title' => '创建实例',
+ 'title' => '添加集群',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -1139,41 +652,54 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances'."\n"
+ .'/openapi/ha3/instances/{instanceId}/clusters'."\n"
.'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
- .'**正常返回示例**'."\n"
+ 'requestParamsDescription' => '### Sample requests'."\n"
."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818",'."\n"
- .' "result": {'."\n"
- .' "instanceId": "deeprec-cn-xxxxxx1"'."\n"
- .' }'."\n"
- .'}'."\n"
- .'```'."\n"
+ .'`POST/openapi/ha3/instances/ha3_instance_id/clusters`'."\n"
."\n"
- .'**异常返回示例**'."\n"
+ .' {'."\n"
+ .' "name":"cluster1",'."\n"
+ .' "queryNode": {'."\n"
+ .' "number": 1'."\n"
+ .' },'."\n"
+ .' "dataNode": {'."\n"
+ .' "number": 2'."\n"
+ .' },'."\n"
+ .' "description":"The description of the cluster",'."\n"
+ .' "autoLoad":true'."\n"
+ .' }',
+ 'responseParamsDescription' => '### Sample responses'."\n"
."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818",'."\n"
- .' "code": "InternalServerError",'."\n"
- .' "message":"internal server error"'."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'DeleteInstance' => [
- 'summary' => '删除指定实例。',
- 'path' => '/openapi/ha3/instances/{instanceId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ .' {'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": []'."\n"
+ .' }'."\n"
+ ."\n"
+ .'详情请查看<props="china">[响应结构](https://help.aliyun.com/zh/open-search/retrieval-engine-edition/data-structure-1/)</props><props="intl">[响应结构](https://www.alibabacloud.com/help/zh/open-search/response-struct)</props>',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateCluster',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'CreateConfigDir' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir',
+ 'methods' => ['post'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
@@ -1181,109 +707,82 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例 ID。',
- 'description' => '实例 ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例 ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
- ],
- 'responses' => [
- 200 => [
+ [
+ 'name' => 'configName',
+ 'in' => 'path',
+ 'schema' => ['description' => '配置名称。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
- 'result' => [
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'dirName' => ['title' => '目录名称', 'description' => '目录名称', 'type' => 'string', 'required' => false, 'example' => '/clusters'],
+ 'parentFullPath' => ['title' => '上级文件路径', 'description' => '上级文件路径', 'type' => 'string', 'required' => false, 'example' => '/'],
],
+ 'required' => false,
],
],
- 500 => [
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'type' => 'string',
- ],
- 'message' => [
- 'type' => 'string',
- ],
- 'code' => [
- 'type' => 'string',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
+ 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除实例',
+ 'title' => '高级配置创建文件目录',
+ 'summary' => '高级配置创建文件目录。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'DELETE'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .'`DELETE /openapi/ha3/instances/ha3-cn-xxxxxx`',
- 'responseParamsDescription' => '### 返回示例'."\n"
- .'**正常返回示例**'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "result": {},'."\n"
- .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818"'."\n"
- .'}'."\n"
- .'```'."\n"
- ."\n"
- .'**异常返回示例**'."\n"
- ."\n"
- .'```'."\n"
- ."\n"
- .'{'."\n"
- .' "requestId": "BD1EA715-DF6F-06C2-004C-C1FA0D3A9820",'."\n"
- .' "httpCode": 404,'."\n"
- .' "code": "App.NotFound",'."\n"
- .' "message": "App not found"'."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'UpdateInstance' => [
- 'summary' => '修改指定实例配置。',
- 'path' => '/openapi/ha3/instances/{instanceId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateConfigDir',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'CreateConfigFile' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file',
+ 'methods' => ['post'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
@@ -1291,292 +790,150 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'configName',
+ 'in' => 'path',
+ 'schema' => ['description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求结构。',
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'components' => [
- 'title' => '配额信息,与description不能同时更新。',
- 'description' => '实例相关的规格信息列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '实例相关的规格信息',
- 'type' => 'object',
- 'properties' => [
- 'code' => [
- 'description' => '规格code,和售卖参数保持一致',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'searcherdocsizesum',
- ],
- 'value' => [
- 'description' => '值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '200',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- 'orderType' => [
- 'title' => '订单类型,与description不能同时传递。',
- 'description' => 'UPGRAGE: 提升实例规格'."\n"
- .'DOWNGRADE: 降低实例规格',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UPGRAGE',
- ],
- 'description' => [
- 'title' => '更新实例描述信息,与components及orderType字段不能同时更新。',
- 'description' => '实例描述信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '实例描述',
- ],
+ 'fileName' => ['title' => '目录名称', 'description' => '目录名称', 'type' => 'string', 'required' => false, 'example' => '/schemas/device_event_xt_schema.json'],
+ 'parentFullPath' => ['title' => '上级文件路径', 'description' => '上级文件路径', 'type' => 'string', 'required' => false, 'example' => '/'],
+ 'ossPath' => ['title' => 'oss存储地址', 'description' => 'oss存储地址', 'type' => 'string', 'required' => false, 'example' => 'oss://xxx/xxxx/xxx'],
],
'required' => false,
- 'example' => '{}',
],
],
],
'responses' => [
200 => [
- 'headers' => [],
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'result' => [
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'description' => [
- 'title' => '实例描述',
- 'description' => '实例描述',
- 'type' => 'string',
- 'example' => '测试实例',
- ],
- 'resourceGroupId' => [
- 'title' => '资源组ID',
- 'description' => '资源组ID',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'expiredTime' => [
- 'title' => '到期时间',
- 'description' => '到期时间',
- 'type' => 'string',
- 'example' => '2019-01-06T16:00:00.0',
- ],
- 'commodityCode' => [
- 'title' => '商品code',
- 'description' => '商品code',
- 'type' => 'string',
- 'example' => 'opensearch_ha3post_public_cn',
- ],
- 'status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'READY',
- ],
- 'instanceId' => [
- 'title' => '资源一级ID',
- 'description' => '资源一级ID',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'createTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2018-12-06T11:17:49.0',
- ],
- 'lockMode' => [
- 'title' => '锁定状态',
- 'description' => '锁定状态',
- 'type' => 'string',
- 'example' => 'Unlock',
- ],
- 'chargeType' => [
- 'title' => '付费类型',
- 'description' => '付费类型',
- 'type' => 'string',
- 'example' => 'POSTPAY',
- ],
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2018-12-06T11:17:49.0',
- ],
- 'inDebt' => [
- 'title' => '是否欠费',
- 'description' => '是否欠费',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- ],
- ],
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '90D6B8F5-FE97-4509-9AAB-367836C51818',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"description\\": \\"测试实例\\",\\n \\"resourceGroupId\\": \\"ha-cn-pl32rf0****\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.0\\",\\n \\"commodityCode\\": \\"opensearch_ha3post_public_cn\\",\\n \\"status\\": \\"READY\\",\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\",\\n \\"createTime\\": \\"2018-12-06T11:17:49.0\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"updateTime\\": \\"2018-12-06T11:17:49.0\\",\\n \\"inDebt\\": false\\n },\\n \\"requestId\\": \\"90D6B8F5-FE97-4509-9AAB-367836C51818\\"\\n}","type":"json"}]',
- 'title' => '修改指定实例配置',
+ 'title' => '高级配置创建文件',
+ 'summary' => '高级配置创建文件。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
.'```',
- 'extraInfo' => '### 示例'."\n"
- .'**请求示例**'."\n"
- ."\n"
- .'`PUT /openapi/ha3/instances/ha-cn-xxxxxx`'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "description": "the new description"'."\n"
- .'}'."\n"
- .'或'."\n"
- .'{'."\n"
- .' "resourceGroupId": "the new resourceGroupId"'."\n"
- .'}'."\n"
- .'```'."\n"
- .'**返回示例**'."\n"
- ."\n"
- .'正确返回'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "result": {'."\n"
- .' "instanceId": "ha-cn-pl32rf0****",'."\n"
- .' "description": "测试实例",'."\n"
- .' "status": "Running",'."\n"
- .' "chargeType": "POSTPAY",'."\n"
- .' "commodityCode": "opensearch_ha3post_public_cn",'."\n"
- .' "createTime": "2018-12-06T11:17:49.0",'."\n"
- .' "updateTime": "2018-12-06T11:17:49.0",'."\n"
- .' "expiredTime": "2019-01-06T16:00:00.0",'."\n"
- .' "resourceGroupId": "rg-abcdefg",'."\n"
- .' "lockMode": "Unlock",'."\n"
- .' "inDebt": false,'."\n"
- .' "spec": {'."\n"
- .' "password": "passwd",'."\n"
- .' "searchResource": {'."\n"
- .' "disk": 50,'."\n"
- .' "mem": 8,'."\n"
- .' "cpu": 2,'."\n"
- .' "nodeCount": 2'."\n"
- .' },'."\n"
- .' "instanceName": "ha-cn-pl32rf0****",'."\n"
- .' "vSwitchId": "vswitch_id_xxx",'."\n"
- .' "vpcId": "vpc_id_xxx",'."\n"
- .' "qrsResource": {'."\n"
- .' "disk": 50,'."\n"
- .' "mem": 8,'."\n"
- .' "cpu": 2,'."\n"
- .' "nodeCount": 2'."\n"
- .' },'."\n"
- .' "region": "cn-hangzhou",'."\n"
- .' "userName": "user"'."\n"
- .' },'."\n"
- .' "status": {'."\n"
- .' "phase": "PENDING",'."\n"
- .' "instancePhase": "INIT",'."\n"
- .' "createSuccess": false'."\n"
- .' }'."\n"
- .' },'."\n"
- .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818"'."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'ModifyPassword' => [
- 'summary' => '修改实例的密码。',
- 'path' => '/openapi/ha3/instances/{instanceId}/password',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'CreateDataSource' => [
+ 'summary' => '创建数据源。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '104719',
+ 'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'dryRun',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '修改密码请求体。',
+ 'description' => '请求结构。',
'type' => 'object',
'properties' => [
- 'username' => [
- 'description' => '用户名'."\n",
- 'type' => 'string',
+ 'name' => ['title' => '数据源名', 'description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'type' => ['title' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'description' => '数据源类型:odps、oss、swift', 'type' => 'string', 'required' => false, 'example' => 'odps'],
+ 'domain' => ['title' => '离线部署', 'description' => '数据源机房', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_1'],
+ 'config' => [
+ 'title' => 'odps 数据源配置',
+ 'description' => '配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'endpoint' => ['title' => 'odps相关', 'description' => 'odps数据源的endpoint 或者 oss数据源的endpoint', 'type' => 'string', 'required' => false, 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'required' => false, 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源as', 'type' => 'string', 'required' => false, 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'required' => false, 'example' => 'kubenest'],
+ 'partition' => ['description' => 'odps分区', 'type' => 'string', 'required' => false, 'example' => 'ds=20220713'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'odps表名称', 'type' => 'string', 'required' => false, 'example' => 'item'],
+ 'namespace' => ['title' => 'saro相关', 'description' => '命名空间', 'type' => 'string', 'required' => false, 'example' => 'aegis-ops'],
+ 'path' => ['title' => 'hdfs相关', 'description' => 'hdfs文件路径', 'type' => 'string', 'required' => false, 'example' => 'test-hdfs-path'."\n"],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss文件路径', 'type' => 'string', 'required' => false, 'example' => '/opensearch/search'],
+ 'bucket' => ['description' => 'oss bucket', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
+ 'catalog' => ['type' => 'string', 'required' => false, 'description' => ''],
+ 'database' => ['type' => 'string', 'required' => false, 'description' => ''],
+ 'tag' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
'required' => false,
- 'example' => 'testUserName',
],
- 'password' => [
- 'description' => '密码',
- 'type' => 'string',
+ 'saroConfig' => [
+ 'title' => 'saro数据源配置',
+ 'description' => 'saro数据源配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'namespace' => ['description' => 'saro数据源的namespace', 'type' => 'string', 'required' => false, 'example' => 'igraph-cn-x0r3e3abe02'],
+ 'tableName' => ['description' => 'saro数据表名称', 'type' => 'string', 'required' => false, 'example' => 'index_hdfs'],
+ ],
'required' => false,
- 'example' => 'testPassword',
],
+ 'autoBuildIndex' => ['title' => '是否开启自动全量', 'description' => '自动重建索引', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
'example' => '{}',
@@ -1588,1042 +945,309 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '407BFD91-DE7D-50BA-8F88-CDE52A3B5E46',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
- 500 => [],
+ '5XX' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"407BFD91-DE7D-50BA-8F88-CDE52A3B5E46\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改实例的密码',
+ 'title' => '创建数据源',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/password'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- .'`PUT /openapi/ha3/instances/{instanceId}/password`'."\n"
- ."\n"
- .'### 请求体示例'."\n"
- ."\n"
+ 'requestParamsDescription' => '## 请求示例'."\n"
.'```'."\n"
+ .'POST /openapi/ha3/instances/ha3_instances_id/data-sources'."\n"
+ ."\n"
.'{'."\n"
- .' "userName":"my_user_name",'."\n"
- .' "password":"newPassword" '."\n"
+ .' "name": "data_source_name",'."\n"
+ .' "type": "odps",'."\n"
+ .' "config":{'."\n"
+ .' "accessKey": "xxx",'."\n"
+ .' "accessSecret": "xxxs",'."\n"
+ .' "project":"xxxx",'."\n"
+ .' "table":"xxx",'."\n"
+ .' "partition":"xxxx"'."\n"
+ .' },'."\n"
+ .' "autoBuildIndex": true'."\n"
.'}'."\n"
.'```',
- 'responseParamsDescription' => '### 返回参数说明'."\n"
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ .'### 正确返回'."\n"
+ .'```json'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": []'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'### 错误返回'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": {'."\n"
+ .' "success": false,'."\n"
+ .' "data": "some error message"'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
- ],
- 'ListInstances' => [
- 'summary' => '获取实例列表。',
- 'path' => '/openapi/ha3/instances',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDataSource'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateDataSource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'CreateFolder' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '102492',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- 'FEATUREopensearchJB31XH',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '138808',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '指定页码,默认为:1',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'pageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '指定每页展示条数,默认为10,限制:[1-50]',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- ],
- [
'name' => 'instanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'description',
- 'in' => 'query',
- 'schema' => [
- 'description' => '通过实例描述称进行过滤,支持模糊匹配。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'searchengine instance',
- ],
- ],
- [
- 'name' => 'resourceGroupId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '资源组id。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzgpiswzbksdi',
- ],
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'edition',
- 'in' => 'query',
- 'schema' => [
- 'description' => '实例类型,vector(向量索引版),engine(召回引擎版)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vector',
- ],
+ 'name' => 'database',
+ 'in' => 'path',
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
- 'name' => 'tags',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '标签。',
- 'type' => 'array',
- 'items' => [
- 'description' => '实例标签。',
- 'type' => 'object',
- 'properties' => [
- 'key' => [
- 'description' => '标签键',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- 'value' => [
- 'description' => '标签值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- ],
- 'required' => false,
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '目录名', 'type' => 'string', 'required' => true, 'example' => 'gist_qc'],
+ 'parent' => ['description' => '父类目id(必传),为空时则默认为1', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'required' => true, 'example' => 'instance'],
],
'required' => false,
],
],
- [
- 'name' => 'catalog',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'database',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'table',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'dataSourceType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
'result' => [
- 'description' => '返回结果',
- 'type' => 'array',
- 'items' => [
- 'title' => 'InstanceItemType',
- 'description' => 'InstanceItemType',
- 'type' => 'object',
- 'properties' => [
- 'description' => [
- 'title' => '实例描述',
- 'description' => '实例描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'resourceGroupId' => [
- 'title' => '资源组ID',
- 'description' => '资源组ID',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'expiredTime' => [
- 'title' => '到期时间',
- 'description' => '到期时间',
- 'type' => 'string',
- 'example' => '1634885083',
- ],
- 'commodityCode' => [
- 'title' => '商品code',
- 'description' => '商品code',
- 'type' => 'string',
- 'example' => 'opensearch_ha3post_public_cn',
- ],
- 'status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'READY',
- ],
- 'instanceId' => [
- 'title' => '资源一级ID',
- 'description' => '资源一级ID',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'createTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2022-06-04T02:03:21Z',
- ],
- 'lockMode' => [
- 'title' => '锁定状态',
- 'description' => '锁定状态',
- 'type' => 'string',
- 'example' => 'Unlock',
- ],
- 'chargeType' => [
- 'title' => '付费类型',
- 'description' => '付费类型',
- 'type' => 'string',
- 'example' => 'POSTPAY',
- ],
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2018-12-06T11:17:49.0',
- ],
- 'inDebt' => [
- 'title' => '是否欠费',
- 'description' => '是否欠费',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'network' => [
- 'description' => '网络搜索引擎实例信息',
- 'type' => 'object',
- 'properties' => [
- 'vSwitchId' => [
- 'description' => '虚拟交换机id',
- 'type' => 'string',
- 'example' => 'vsw-bp11ldcf59q2n****',
- ],
- 'vpcId' => [
- 'description' => 'vpc网络id',
- 'type' => 'string',
- 'example' => 'vpc-wz9axk41d9vff****',
- ],
- 'endpoint' => [
- 'description' => '网关接入点。',
- 'type' => 'string',
- 'example' => 'ha-cn-35t3r****.ha.aliyuncs.com',
- ],
- 'publicEndpoint' => [
- 'description' => '公网域名',
- 'type' => 'string',
- 'example' => 'ha-cn-35t3ni****.public.ha.aliyuncs.com',
- ],
- 'allow' => [
- 'description' => '公网域名白名单',
- 'type' => 'string',
- 'example' => '127.0.0.1',
- ],
- ],
- ],
- 'tags' => [
- 'description' => '标签。',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签。',
- 'type' => 'object',
- 'properties' => [
- 'key' => [
- 'description' => '标签键',
- 'type' => 'string',
- 'example' => 'opensearch',
- ],
- 'value' => [
- 'description' => '标签值',
- 'type' => 'string',
- 'example' => 'opensearch',
- ],
- ],
- ],
- ],
- 'edition' => [
- 'description' => '实例版本 -vector: 向量检索版 -engine:召回引擎版',
- 'type' => 'string',
- 'example' => 'vector',
- ],
- 'userName' => [
- 'description' => '用户名',
- 'type' => 'string',
- 'example' => 'admin',
- ],
- 'version' => [
- 'description' => '引擎版本号',
- 'type' => 'string',
- 'example' => 'ha3_3.10.0',
- ],
- 'noQrs' => [
- 'description' => '是否是单节点实例',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'spec' => [
- 'description' => '节点规格',
- 'type' => 'object',
- 'properties' => [
- 'qrsResource' => [
- 'description' => '查询节点规格',
- 'type' => 'object',
- 'properties' => [
- 'category' => [
- 'description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型',
- 'type' => 'string',
- 'example' => 'local_ssd',
- ],
- 'cpu' => [
- 'description' => 'CPU核数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'mem' => [
- 'description' => '内存,单位:G。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'disk' => [
- 'description' => '节点存储空间大小,单位:GB。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'nodeCount' => [
- 'description' => '节点数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3',
- ],
- ],
- ],
- 'searchResource' => [
- 'description' => '数据节点规格',
- 'type' => 'object',
- 'properties' => [
- 'category' => [
- 'description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型',
- 'type' => 'string',
- 'example' => 'local_ssd',
- ],
- 'cpu' => [
- 'description' => 'CPU核数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'mem' => [
- 'description' => '内存,单位:G。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'disk' => [
- 'description' => '节点存储空间大小,单位:GB。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'nodeCount' => [
- 'description' => '节点数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3',
- ],
- ],
- ],
- ],
- ],
- 'dataSourceDetails' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'config' => [
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'type' => 'string',
- ],
- 'accessKey' => [
- 'type' => 'string',
- ],
- 'project' => [
- 'type' => 'string',
- ],
- 'partition' => [
- 'type' => 'string',
- ],
- 'table' => [
- 'type' => 'string',
- ],
- 'namespace' => [
- 'type' => 'string',
- ],
- 'path' => [
- 'type' => 'string',
- ],
- 'ossPath' => [
- 'type' => 'string',
- ],
- 'bucket' => [
- 'type' => 'string',
- ],
- 'catalog' => [
- 'type' => 'string',
- ],
- 'database' => [
- 'type' => 'string',
- ],
- 'tag' => [
- 'type' => 'string',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
+ 'title' => 'NodeVO',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['description' => '文件夹id', 'type' => 'integer', 'format' => 'int64', 'example' => '25030'],
+ 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '1719221186114'],
+ 'gmtModified' => ['description' => '更新时间', 'type' => 'string', 'example' => '1719221186114'],
+ 'name' => ['description' => '名称', 'type' => 'string', 'example' => 'test'],
+ 'parent' => ['description' => '父层级id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'True'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'instance'],
+ 'instanceId' => ['description' => '实例id', 'type' => 'integer', 'format' => 'int64', 'example' => 'ha-cn-pl32rf0****'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
- 'totalCount' => [
- 'title' => '总记录数。',
- 'description' => '总记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '5',
- ],
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '89B968E6-1E41-58DF-BB25-5F98ECC759CE',
- ],
- ],
- ],
- ],
- 500 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'type' => 'string',
- ],
- 'message' => [
- 'type' => 'string',
- ],
- 'code' => [
- 'type' => 'string',
- ],
],
+ 'description' => '',
],
],
+ 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"description\\": \\"test\\",\\n \\"resourceGroupId\\": \\"ha-cn-pl32rf0****\\",\\n \\"expiredTime\\": \\"1634885083\\",\\n \\"commodityCode\\": \\"opensearch_ha3post_public_cn\\",\\n \\"status\\": \\"READY\\",\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\",\\n \\"createTime\\": \\"2022-06-04T02:03:21Z\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"updateTime\\": \\"2018-12-06T11:17:49.0\\",\\n \\"inDebt\\": false,\\n \\"network\\": {\\n \\"vSwitchId\\": \\"vsw-bp11ldcf59q2n****\\",\\n \\"vpcId\\": \\"vpc-wz9axk41d9vff****\\",\\n \\"endpoint\\": \\"ha-cn-35t3r****.ha.aliyuncs.com\\",\\n \\"publicEndpoint\\": \\"ha-cn-35t3ni****.public.ha.aliyuncs.com\\",\\n \\"allow\\": \\"127.0.0.1\\"\\n },\\n \\"tags\\": [\\n {\\n \\"key\\": \\"opensearch\\",\\n \\"value\\": \\"opensearch\\"\\n }\\n ],\\n \\"edition\\": \\"vector\\",\\n \\"userName\\": \\"admin\\",\\n \\"version\\": \\"ha3_3.10.0\\",\\n \\"noQrs\\": false,\\n \\"spec\\": {\\n \\"qrsResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 1,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 3\\n },\\n \\"searchResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 1,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 3\\n }\\n },\\n \\"dataSourceDetails\\": [\\n {\\n \\"indexName\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"accessKey\\": \\"\\",\\n \\"project\\": \\"\\",\\n \\"partition\\": \\"\\",\\n \\"table\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"ossPath\\": \\"\\",\\n \\"bucket\\": \\"\\",\\n \\"catalog\\": \\"\\",\\n \\"database\\": \\"\\",\\n \\"tag\\": \\"\\"\\n }\\n }\\n ]\\n }\\n ],\\n \\"totalCount\\": 5,\\n \\"requestId\\": \\"89B968E6-1E41-58DF-BB25-5F98ECC759CE\\"\\n}","type":"json"}]',
- 'title' => '获取实例列表',
+ 'title' => '创建目录',
+ 'summary' => '创建目录。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances'."\n"
- .'```',
- 'requestParamsDescription' => '| 参数 | 类型 | 是否必需 | 描述 |'."\n"
- .'| ----------- | ------ | -------- | ------------------------------------------------------------ |'."\n"
- .'| status | String | 否 | 通过实例状态进行过滤。Running, Ready, Initializing,Starting |'."\n"
- .'| expiredTime | Long | 否 | 秒级时间戳,通过过期时间过滤,大于当前时间会过滤出即将过期的实例(不包含已经过期的实例) |'."\n"
- ."\n"
- .'### 示例'."\n"
- .'**请求示例**'."\n"
- ."\n"
- .'`GET /openapi/ha3/instances?name=test&instanceId=abc&page=1&size=10`',
- 'responseParamsDescription' => '### 返回示例'."\n"
- .'**正常返回示例**'."\n"
- .'```'."\n"
- .'{'."\n"
- .' "result":'."\n"
- .' ['."\n"
- .' {'."\n"
- .' "inDebt": false,'."\n"
- .' "lockMode": "Unlock",'."\n"
- .' "trFreeUrl": "",'."\n"
- .' "chargeType": "POSTPAY",'."\n"
- .' "edition": "engine",'."\n"
- .' "description": "test",'."\n"
- .' "updateTime": "2024-05-06 14:08:24.0",'."\n"
- .' "userName": "admin",'."\n"
- .' "version": "ha3_3.10.0",'."\n"
- .' "spec":'."\n"
- .' {'."\n"
- .' "qrsResource":'."\n"
- .' {'."\n"
- .' "category": "local_ssd",'."\n"
- .' "cpu": 2,'."\n"
- .' "mem": 8,'."\n"
- .' "disk": 100,'."\n"
- .' "nodeCount": 5'."\n"
- .' },'."\n"
- .' "searchResource":'."\n"
- .' {'."\n"
- .' "category": "local_ssd",'."\n"
- .' "cpu": 2,'."\n"
- .' "mem": 16,'."\n"
- .' "disk": 100,'."\n"
- .' "nodeCount": 4'."\n"
- .' }'."\n"
- .' },'."\n"
- .' "network":'."\n"
- .' {'."\n"
- .' "vSwitchId": "vsw-bp179zkffzyva26ua8xil",'."\n"
- .' "vpcId": "vpc-bp1956duqqe2lm2lvqjf1",'."\n"
- .' "endpoint": "ha-cn-35t3ni61z06.ha.aliyuncs.com",'."\n"
- .' "publicEndpoint": "ha-cn-35t3ni61z06.public.ha.aliyuncs.com",'."\n"
- .' "allow": "127.0.0.1"'."\n"
- .' },'."\n"
- .' "tags":'."\n"
- .' ['."\n"
- .' {'."\n"
- .' "value": "rg-acfmv2hk2jpsxia",'."\n"
- .' "key": "acs:rm:rgId"'."\n"
- .' }'."\n"
- .' ],'."\n"
- .' "noQrs": false,'."\n"
- .' "instanceId": "ha-cn-35t3ni61z06",'."\n"
- .' "createTime": "2024-03-14 10:49:32.0",'."\n"
- .' "commodityCode": "opensearch_ha3post_public_cn",'."\n"
- .' "resourceGroupId": "rg-acfmv2hk2jpsxia",'."\n"
- .' "status": "READY"'."\n"
- .' }'."\n"
- .' ],'."\n"
- .' "requestId": "949FDF5E-6FF6-13B9-A196-59B25F143B7F",'."\n"
- .' "totalCount": 1'."\n"
- .'}'."\n"
- .'```'."\n"
- .'**异常返回示例**'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "BD1EA715-DF6F-06C2-004C-C1FA0D3A9820",'."\n"
- .' "httpCode": 404,'."\n"
- .' "code": "App.NotFound",'."\n"
- .' "message": "App not found"'."\n"
- .'}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders'."\n"
.'```',
- ],
- 'GetInstance' => [
- 'summary' => '通过指定的实例ID查看实例详情。',
- 'path' => '/openapi/ha3/instances/{instanceId}',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFolder'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateFolder',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Folder', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"id\\": 25030,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateIndex' => [
+ 'summary' => '创建索引信息。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '102489',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- 'FEATUREopensearchJB31XH',
- ],
+ 'abilityTreeCode' => '104691',
+ 'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例 ID。',
- 'description' => '实例 ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-2r42ppr****'],
],
- ],
- 'responses' => [
- 200 => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => '请求体参数。',
'type' => 'object',
'properties' => [
- 'result' => [
- 'description' => '返回结果',
+ 'name' => ['title' => '名称', 'description' => '索引名称。', 'type' => 'string', 'required' => false, 'example' => 'index_1'],
+ 'dataSource' => ['title' => '数据源', 'description' => '数据源名称。', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-35t3n1y****_index_1'],
+ 'domain' => ['title' => '数据源的部署', 'description' => '数据源机房。', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_1'],
+ 'content' => ['title' => '文件内容', 'description' => '索引结构。', 'type' => 'string', 'required' => false, 'example' => '{\\"summarys\\":{\\"summary_fields\\":[\\"id\\"]},\\"indexs\\":[{\\"index_name\\":\\"index_id\\",\\"index_type\\":\\"PRIMARYKEY64\\",\\"index_fields\\":\\"id\\",\\"has_primary_key_attribute\\":true,\\"is_primary_key_sorted\\":false}],\\"attributes\\":[\\"id\\"],\\"fields\\":[{\\"field_name\\":\\"id\\",\\"field_type\\":\\"UINT16\\"}],\\"table_name\\":\\"index_2\\"}'],
+ 'partition' => ['title' => '数据分片', 'description' => '数据分片数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'dataSourceInfo' => [
+ 'description' => '数据源相关信息 (向量检索版新版本必填)。',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '实例描述',
- 'description' => '实例描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'resourceGroupId' => [
- 'title' => '资源组ID',
- 'description' => '资源组ID',
- 'type' => 'string',
- 'example' => 'rg-aekzjvw24****',
- ],
- 'expiredTime' => [
- 'title' => '到期时间',
- 'description' => '到期时间',
- 'type' => 'string',
- 'example' => '024-05-21 16:49:31.0',
- ],
- 'commodityCode' => [
- 'title' => '商品code',
- 'description' => '商品code',
- 'type' => 'string',
- 'example' => 'opensearch_ha3post_public_cn',
- ],
- 'instanceId' => [
- 'title' => '资源一级ID',
- 'description' => '资源一级ID',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'createTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2022-06-17T02:01:26Z',
- ],
- 'lockMode' => [
- 'title' => '锁定状态',
- 'description' => '锁定状态',
- 'type' => 'string',
- 'example' => 'Unlock',
- ],
- 'chargeType' => [
- 'title' => '付费类型',
- 'description' => '付费类型',
- 'type' => 'string',
- 'example' => 'POSYPAY',
- ],
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '024-05-21 16:49:31.0',
- ],
- 'inDebt' => [
- 'title' => '是否欠费',
- 'description' => '是否欠费',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'status' => [
- 'description' => '实例状态阶段'."\n"
- ."\n"
- .'- INIT:初始化'."\n"
- .'- WAIT_CONFIG:待配置'."\n"
- .'- CONFIG_UPDATING:配置生效中'."\n"
- .'- READY:正常',
- 'type' => 'string',
- 'example' => 'INIT',
- ],
- 'tags' => [
- 'description' => '标签。',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签。',
- 'type' => 'object',
- 'properties' => [
- 'key' => [
- 'description' => '标签键',
- 'type' => 'string',
- 'example' => 'opensearch',
- ],
- 'value' => [
- 'description' => '标签值',
- 'type' => 'string',
- 'example' => 'opensearch',
- ],
- ],
- ],
- ],
- 'edition' => [
- 'description' => '实例版本 -vector: 向量检索版 -engine:召回引擎版',
- 'type' => 'string',
- 'example' => 'vector',
- ],
- 'userName' => [
- 'description' => '用户名',
- 'type' => 'string',
- 'example' => 'admin',
- ],
- 'version' => [
- 'description' => '引擎版本号',
- 'type' => 'string',
- 'example' => 'ha3_3.10.0',
- ],
- 'bsVersion' => [
- 'description' => 'bs版本号',
- 'type' => 'string',
- 'example' => 'bs_3.13.2',
- ],
- 'noQrs' => [
- 'description' => '是否是单节点实例',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'newMode' => [
- 'description' => '是否为新版本控制台页面',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'network' => [
- 'description' => '网络搜索引擎实例信息',
+ 'dataTimeSec' => ['description' => '追增量时间戳。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1709715164'],
+ 'processPartitionCount' => ['description' => '数据更新资源数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
+ 'name' => ['description' => '数据源名称。', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-35t3n1y****_index_1'],
+ 'type' => ['description' => '数据源类型。取值:'."\n"
+ ."\n"
+ .'- odps'."\n"
+ .'- swift'."\n"
+ .'- saro'."\n"
+ .'- oss', 'type' => 'string', 'required' => false, 'example' => 'odps'],
+ 'domain' => ['description' => '离线机房。', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_1'."\n"],
+ 'config' => [
+ 'description' => 'odps相关。',
'type' => 'object',
'properties' => [
- 'vSwitchId' => [
- 'description' => '虚拟交换机id',
- 'type' => 'string',
- 'example' => 'vsw-bp11ldcf59q2n****'."\n",
- ],
- 'vpcId' => [
- 'description' => 'vpc网络id',
- 'type' => 'string',
- 'example' => 'vpc-wz9axk41d9vff****'."\n",
- ],
- 'endpoint' => [
- 'description' => '网关接入点。',
- 'type' => 'string',
- 'example' => 'ha-cn-35t3r****.ha.aliyuncs.com'."\n",
- ],
- 'publicEndpoint' => [
- 'description' => '公网域名',
- 'type' => 'string',
- 'example' => 'ha-cn-35t3ni****.public.ha.aliyuncs.com'."\n",
- ],
- 'allow' => [
- 'description' => '公网域名白名单',
- 'type' => 'string',
- 'example' => '127.0.0.1'."\n",
- ],
+ 'endpoint' => ['description' => 'odps数据源的Endpoint, oss数据源的Endpoint。', 'type' => 'string', 'required' => false, 'example' => 'https://oss-cn-hangzhou.aliyuncs.com'],
+ 'accessKey' => ['description' => 'odps数据源AK。', 'type' => 'string', 'required' => false, 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源AK Secret。', 'type' => 'string', 'required' => false, 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称。', 'type' => 'string', 'required' => false, 'example' => 'bbt_algo_pai'],
+ 'partition' => ['description' => '数据源为odps时必填。', 'type' => 'string', 'required' => false, 'example' => 'ds=20230114'],
+ 'table' => ['description' => '表名称。', 'type' => 'string', 'required' => false, 'example' => 'bbt_rec_swing_u2i2i_score_be_v1'],
+ 'namespace' => ['description' => '命名空间。', 'type' => 'string', 'required' => false, 'example' => 'test-namespace'],
+ 'path' => ['description' => 'hdfs数据源路径。', 'type' => 'string', 'required' => false, 'example' => 'test-hdfs-path'],
+ 'ossPath' => ['description' => 'oss文件路径。', 'type' => 'string', 'required' => false, 'example' => '/opensearch/oss.json'],
+ 'bucket' => ['description' => 'oss bucket。', 'type' => 'string', 'required' => false, 'example' => 'test-bucket'],
+ 'format' => ['description' => 'oss文件格式类型'."\n"
+ .'- ha3'."\n"
+ .'- json', 'type' => 'string', 'required' => false, 'example' => 'ha3'],
+ 'catalog' => ['description' => 'dlf数据源-数据目录ID', 'type' => 'string', 'required' => false, 'example' => 'test-catalog'],
+ 'database' => ['description' => 'dlf数据源-数据库', 'type' => 'string', 'required' => false, 'example' => 'test-database'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'required' => false, 'example' => 'test-tag'],
+ 'tableFormat' => ['description' => 'dlf数据源-表格式', 'type' => 'string', 'required' => false, 'example' => 'paimon'."\n"
+ .'lance'."\n"
+ .'object'],
],
+ 'required' => false,
],
- 'spec' => [
- 'description' => '节点规格',
+ 'saroConfig' => [
+ 'description' => 'saro数据源配置。',
'type' => 'object',
'properties' => [
- 'qrsResource' => [
- 'description' => '查询节点规格',
- 'type' => 'object',
- 'properties' => [
- 'category' => [
- 'description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型',
- 'type' => 'string',
- 'example' => 'local_ssd',
- ],
- 'cpu' => [
- 'description' => 'CPU核数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'mem' => [
- 'description' => '内存,单位:G。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'disk' => [
- 'description' => '节点存储空间大小,单位:GB。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'nodeCount' => [
- 'description' => '节点数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- 'searchResource' => [
- 'description' => '数据节点规格',
- 'type' => 'object',
- 'properties' => [
- 'category' => [
- 'description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型',
- 'type' => 'string',
- 'example' => 'local_ssd',
- ],
- 'cpu' => [
- 'description' => 'CPU核数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'mem' => [
- 'description' => '内存,单位:G。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'disk' => [
- 'description' => '节点存储空间大小,单位:GB。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'nodeCount' => [
- 'description' => '节点数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
+ 'namespace' => ['description' => 'saro数据源的namespace。(目前仅在内网支持)', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'tableName' => ['description' => 'saro数据表名称。(目前仅在内网支持)', 'type' => 'string', 'required' => false, 'example' => 'tableA'],
],
+ 'required' => false,
],
- 'zoneCount' => [
- 'description' => '可用区数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'autoBuildIndex' => ['description' => '是否开启自动全量。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'processParallelNum' => ['description' => '全量process并发数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'scene' => ['title' => '场景模版', 'description' => '模版类型', 'type' => 'string', 'required' => false, 'example' => 'videoSearcher'],
],
+ 'required' => false,
],
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
+ 'extend' => ['description' => '字段配置的扩展内容。'."\n"
+ .'- key: vector(向量字段)、embeding(需embeding字段)、description(备注字段)'."\n"
+ .'- value: ["schema字段名称"]', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
+ .' "vector":'."\n"
+ .' ['."\n"
+ .' "source_image_vector"'."\n"
+ .' ],'."\n"
+ .' "embeding":'."\n"
+ .' ['."\n"
+ .' "source_image"'."\n"
+ .' ],'."\n"
+ .' "description":'."\n"
+ .' []'."\n"
+ .' }'],
+ 'buildParallelNum' => ['description' => '全量build并发数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'mergeParallelNum' => ['description' => '全量merge并发数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
- ],
- ],
- 500 => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"description\\": \\"test\\",\\n \\"resourceGroupId\\": \\"rg-aekzjvw24****\\",\\n \\"expiredTime\\": \\"024-05-21 16:49:31.0\\",\\n \\"commodityCode\\": \\"opensearch_ha3post_public_cn\\",\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\",\\n \\"createTime\\": \\"2022-06-17T02:01:26Z\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"chargeType\\": \\"POSYPAY\\",\\n \\"updateTime\\": \\"024-05-21 16:49:31.0\\",\\n \\"inDebt\\": false,\\n \\"status\\": \\"INIT\\",\\n \\"tags\\": [\\n {\\n \\"key\\": \\"opensearch\\",\\n \\"value\\": \\"opensearch\\"\\n }\\n ],\\n \\"edition\\": \\"vector\\",\\n \\"userName\\": \\"admin\\",\\n \\"version\\": \\"ha3_3.10.0\\",\\n \\"bsVersion\\": \\"bs_3.13.2\\",\\n \\"noQrs\\": false,\\n \\"newMode\\": true,\\n \\"network\\": {\\n \\"vSwitchId\\": \\"vsw-bp11ldcf59q2n****\\\\n\\",\\n \\"vpcId\\": \\"vpc-wz9axk41d9vff****\\\\n\\",\\n \\"endpoint\\": \\"ha-cn-35t3r****.ha.aliyuncs.com\\\\n\\",\\n \\"publicEndpoint\\": \\"ha-cn-35t3ni****.public.ha.aliyuncs.com\\\\n\\",\\n \\"allow\\": \\"127.0.0.1\\\\n\\"\\n },\\n \\"spec\\": {\\n \\"qrsResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 2,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 1\\n },\\n \\"searchResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 2,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 1\\n }\\n },\\n \\"zoneCount\\": 1\\n },\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\"\\n}","type":"json"}]',
- 'title' => '根据实例ID查看实例详情',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}'."\n"
- .'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ha3-cn-xxxxxx`',
- 'responseParamsDescription' => '### 返回示例'."\n"
- .'**正常返回示例**'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "result":'."\n"
- .' {'."\n"
- .' "inDebt": false,'."\n"
- .' "lockMode": "Unlock",'."\n"
- .' "trFreeUrl": "",'."\n"
- .' "chargeType": "POSTPAY",'."\n"
- .' "edition": "vector",'."\n"
- .' "description": "ha-cn-vkl3rgrfc01",'."\n"
- .' "updateTime": "2024-05-30 10:52:00.0",'."\n"
- .' "userName": "admin",'."\n"
- .' "version": "vector_service_1.2.2",'."\n"
- .' "spec":'."\n"
- .' {'."\n"
- .' "qrsResource":'."\n"
- .' {'."\n"
- .' "category": "local_ssd",'."\n"
- .' "cpu": 2,'."\n"
- .' "mem": 8,'."\n"
- .' "disk": 100,'."\n"
- .' "nodeCount": 0'."\n"
- .' },'."\n"
- .' "searchResource":'."\n"
- .' {'."\n"
- .' "category": "local_ssd",'."\n"
- .' "cpu": 2,'."\n"
- .' "mem": 16,'."\n"
- .' "disk": 100,'."\n"
- .' "nodeCount": 1'."\n"
- .' }'."\n"
- .' },'."\n"
- .' "network":'."\n"
- .' {'."\n"
- .' "vSwitchId": "vsw-bp16qw5mbrzx66lv4n0m2",'."\n"
- .' "vpcId": "vpc-bp1956duqqe2lm2lvqjf1",'."\n"
- .' "endpoint": "ha-cn-vkl3rgrfc01.ha.aliyuncs.com"'."\n"
- .' },'."\n"
- .' "tags":'."\n"
- .' ['."\n"
- .' {'."\n"
- .' "value": "rg-acfmv2hk2jpsxia",'."\n"
- .' "key": "acs:rm:rgId"'."\n"
- .' }'."\n"
- .' ],'."\n"
- .' "noQrs": true,'."\n"
- .' "instanceId": "ha-cn-vkl3rgrfc01",'."\n"
- .' "createTime": "2024-05-30 10:50:33.0",'."\n"
- .' "commodityCode": "opensearch_ha3post_public_cn",'."\n"
- .' "resourceGroupId": "rg-acfmv2hk2jpsxia",'."\n"
- .' "newMode": true,'."\n"
- .' "status": "READY"'."\n"
- .' },'."\n"
- .' "requestId": "B916FBC8-DF19-1D12-A72F-61AFFDD871AD"'."\n"
- .'}'."\n"
- .'```'."\n"
- .'**异常返回示例**'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "BD1EA715-DF6F-06C2-004C-C1FA0D3A9820",'."\n"
- .' "httpCode": 404,'."\n"
- .' "code": "App.NotFound",'."\n"
- .' "message": "App not found"'."\n"
- .'}'."\n"
- .'```',
- ],
- 'ListInstanceSpecs' => [
- 'summary' => '获取集群可选择的规格列表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/specs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'required' => false,
+ 'example' => '{}',
],
],
[
- 'name' => 'type',
+ 'name' => 'dryRun',
'in' => 'query',
- 'schema' => [
- 'title' => '节点类型 (qrs: 查询节点, search: 数据节点, index: 索引节点, cluster: 集群)',
- 'description' => '节点类型。取值:'."\n"
- ."\n"
- .'- qrs:查询节点。'."\n"
- .'- search:数据节点。'."\n"
- .'- index:索引节点。'."\n"
- .'- cluster:集群。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'search',
- ],
+ 'schema' => ['description' => '是否dryRun创建(仅校验数据源是否合法)。取值:'."\n"
+ ."\n"
+ .'- true:是。'."\n"
+ .'- false:否。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -2632,208 +1256,111 @@
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '实例规格列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '实例规格列表。',
- 'type' => 'object',
- 'properties' => [
- 'cpu' => [
- 'title' => '单位:核数',
- 'description' => '核数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'mem' => [
- 'title' => '单位G',
- 'description' => '内存,单位:G。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '16',
- ],
- 'minDisk' => [
- 'title' => '单数据节点存储空间最小值',
- 'description' => '单数据节点存储空间最小值,单位:G。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'maxDisk' => [
- 'title' => '单数据节点存储空间最大值',
- 'description' => '单数据节点存储空间最大值,单位:G。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '600',
- ],
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '407BFD91-DE7D-50BA-8F88-CDE52A3B5E46'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": [\\n {\\n \\"cpu\\": 1,\\n \\"mem\\": 16,\\n \\"minDisk\\": 100,\\n \\"maxDisk\\": 600\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取集群可选择的规格列表',
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => '创建索引信息',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/specs'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ha3_instance_name/specs`',
- 'responseParamsDescription' => '### 返回示例'."\n"
."\n"
+ .'```java'."\n"
+ .'POST /openapi/ha3/instances/ose-test1/indexes'."\n"
.'```'."\n"
+ ."\n\n"
+ .'```java'."\n"
.'{'."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": ['."\n"
+ .' "name": "index_1",'."\n"
+ .' "dataSource": "ha-cn-3********0d_index_1",'."\n"
+ .' "content": "",'."\n"
+ .' "extend":'."\n"
.' {'."\n"
- .' "cpu": 1'."\n"
- .' "mem": 2,'."\n"
- .' "disk": 100'."\n"
+ .' "vector":'."\n"
+ .' ['."\n"
+ .' "source_image_vector"'."\n"
+ .' ],'."\n"
+ .' "embeding":'."\n"
+ .' ['."\n"
+ .' "source_image"'."\n"
+ .' ],'."\n"
+ .' "description":'."\n"
+ .' []'."\n"
.' },'."\n"
+ .' "partition": 1,'."\n"
+ .' "dataSourceInfo":'."\n"
.' {'."\n"
- .' "cpu": 2'."\n"
- .' "mem": 4,'."\n"
- .' "disk": 100 '."\n"
- .' } '."\n"
- .' ]'."\n"
+ .' "type": "odps",'."\n"
+ .' "processPartitionCount": 2,'."\n"
+ .' "autoBuildIndex": true,'."\n"
+ .' "config":'."\n"
+ .' {'."\n"
+ .' "endpoint": "http://service.cn-hangzhou.maxcompute.aliyun.com/api",'."\n"
+ .' "project": "odps_project",'."\n"
+ .' "accessKey": "ak",'."\n"
+ .' "accessSecret": "as",'."\n"
+ .' "table": "odps_table",'."\n"
+ .' "partition": "ds=*******"'."\n"
+ .' },'."\n"
+ .' "saroConfig":'."\n"
+ .' {},'."\n"
+ .' "dataTimeSec": 1709715164'."\n"
+ .' }'."\n"
.'}'."\n"
.'```',
- ],
- 'GetIndexOnlineStrategy' => [
- 'summary' => '获取索引在线生效策略。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": {}'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIndex'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'dataSourceName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据源名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_api_test',
- ],
- ],
- [
- 'name' => 'deployName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '机房',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc_hz_domain_1',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'headers' => [],
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
- 'result' => [
- 'title' => 'IndexOnlineStrategy',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'changeRate' => [
- 'title' => '索引变化率',
- 'description' => '索引变化率',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '20',
- ],
- ],
- ],
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {\\n \\"changeRate\\": 20\\n }\\n}","type":"json"}]',
- 'title' => '获取某一索引在线策略',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"407BFD91-DE7D-50BA-8F88-CDE52A3B5E46\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
- 'ModifyIndexOnlineStrategy' => [
- 'summary' => '修改索引在线策略。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
+ 'CreateInstance' => [
+ 'summary' => '创建问天引擎实例。',
+ 'path' => '/openapi/ha3/instances',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2841,454 +1368,171 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '136888',
+ 'abilityTreeNodes' => ['FEATUREopensearchXLGC1X', 'FEATUREopensearchCH6TQD'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
'parameters' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'dataSourceName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据源名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_api_test',
- ],
- ],
- [
- 'name' => 'deployName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '机房',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc_hz_domain_1',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_tusou_v2',
- ],
- ],
- [
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求体参数',
+ 'description' => '请求结构。',
'type' => 'object',
'properties' => [
- 'changeRate' => [
- 'title' => '索引变化率',
- 'description' => '索引变化率',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'chargeType' => ['description' => '实例的付费方式。取值范围: PREPAY:预付费,包年包月。选择该类付费方式时,您必须确认自己的账号支持余额支付/信用支付,否则将返回 InvalidPayMethod 的错误提示,并且需要指定paymentInfo参数。POSTPAY:按量付费(当前暂不支持)。', 'type' => 'string', 'required' => false, 'example' => 'PREPAY'],
+ 'components' => [
+ 'description' => '实例相关的规格信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例相关的规格信息列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['description' => '规格code,和售卖参数保持一致', 'type' => 'string', 'required' => false, 'example' => 'searcherdocsize'],
+ 'value' => ['description' => '控件填写的数据。', 'type' => 'string', 'required' => false, 'example' => '200'],
+ ],
+ 'required' => false,
+ ],
'required' => false,
- 'example' => '20',
],
- ],
- 'required' => false,
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'headers' => [],
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
+ 'order' => [
+ 'description' => '付费信息。',
'type' => 'object',
- 'example' => '{}',
+ 'properties' => [
+ 'autoRenew' => ['description' => '是否自动续费,包含:是(true)和否(false)', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'duration' => ['description' => '付费周期,包含1,2,3,4,5,6,7,8,9,10,12', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '29'],
+ 'pricingCycle' => ['description' => '周期单位,包含:月(Month),年(Year)等', 'type' => 'string', 'required' => false, 'example' => 'Month'],
+ ],
+ 'required' => false,
+ ],
+ 'tags' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => ['type' => 'string', 'required' => false, 'description' => ''],
+ 'value' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ 'required' => false,
+ 'description' => '',
+ ],
+ 'required' => false,
+ 'description' => '',
],
+ 'resourceGroupId' => ['type' => 'string', 'required' => false, 'description' => ''],
],
- ],
- ],
- 500 => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改某一索引在线策略',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'PUT'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy'."\n"
- .'```',
- ],
- 'ModifyOnlineConfig' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs/{indexName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'nodeName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '节点名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体',
- 'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'body参数。',
- 'example' => '{}',
- ],
+ 'example' => '{}',
],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0'],
'result' => [
- 'title' => 'Map',
'description' => '返回结果。',
'type' => 'object',
- 'example' => '{}',
+ 'properties' => [
+ 'instanceId' => ['description' => '实例id', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****'],
+ ],
],
],
],
],
- 500 => [],
+ '5XX' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改在线表配置',
- 'summary' => '修改在线表配置。',
+ 'title' => '创建实例',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs/{indexName}'."\n"
+ .'/openapi/ha3/instances'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .''."\n"
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ .'**正常返回示例**'."\n"
."\n"
- .'```java'."\n"
- .'PUT /openapi/ha3/instances/ha-test1/node/ihome_searcher/online-configs'."\n"
.'```'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
.'{'."\n"
- .''."\n"
- .' "content": "xxxx",'."\n"
- .''."\n"
- .' "suezAdminName": "xxxx"'."\n"
- .''."\n"
+ .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818",'."\n"
+ .' "result": {'."\n"
+ .' "instanceId": "deeprec-cn-xxxxxx1"'."\n"
+ .' }'."\n"
.'}'."\n"
- .'```',
- 'responseParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
- .'PUT /openapi/ha3/instances/ha-test1/node/ihome_searcher/online-configs'."\n"
.'```'."\n"
."\n"
- .''."\n"
+ .'**异常返回示例**'."\n"
."\n"
- .'```java'."\n"
+ .'```'."\n"
.'{'."\n"
- .''."\n"
- .' "content": "xxxx",'."\n"
- .''."\n"
- .' "suezAdminName": "xxxx"'."\n"
- .''."\n"
+ .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818",'."\n"
+ .' "code": "InternalServerError",'."\n"
+ .' "message":"internal server error"'."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
- ],
- 'ListOnlineConfigs' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '3', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstance'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- ],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'nodeName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '节点名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- ],
- [
- 'name' => 'domain',
- 'in' => 'query',
- 'schema' => [
- 'description' => '域名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'sz_vpc_domain_1',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '配置结果列表',
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'example' => 'generation',
- ],
- 'config' => [
- 'description' => '配置信息',
- 'type' => 'string',
- 'example' => '{\\"specItems\\":[{\\"specKey\\":\\"YQ_KEYWORD_NUMBER_PLUS\\",\\"value\\":\\"1\\"}]}',
- ],
- ],
- ],
- ],
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/*'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": [\\n {\\n \\"indexName\\": \\"generation\\",\\n \\"config\\": \\"{\\\\\\\\\\\\\\"specItems\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"specKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"YQ_KEYWORD_NUMBER_PLUS\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\"}]}\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取在线表配置的详情',
- 'summary' => '获取在线表配置的详情。',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs?domain={domain}',
- 'requestParamsDescription' => '###请求示例'."\n"
- .'```java'."\n"
- .'GET /openapi/ha3/instances/ha-test1/node/ihome_searcher/online-configs?domain=pre_ea120'."\n"
- .'```'."\n",
- 'responseParamsDescription' => '### 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
- .'```java'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .''."\n"
- .' "result": ['."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "indexName": "nm_algo_dense_weights",'."\n"
- .''."\n"
- .' "config": "{\\"realtime\\":false,\\"cluster_config\\":{\\"table_name\\":\\"nm_algo_dense_weights\\"},\\"online_index_config\\":{\\"online_keep_version_count\\":3,\\"build_config\\":{\\"build_total_memory\\":1024},\\"max_realtime_memory_use\\":1024,\\"load_config\\":[{\\"file_patterns\\":[\\".*\\"],\\"load_strategy\\":\\"mmap\\",\\"load_strategy_param\\":{\\"slice\\":409600,\\"lock\\":true,\\"interval\\":2}},{\\"file_patterns\\":[\\".*\\"],\\"load_strategy\\":\\"mmap\\",\\"load_strategy_param\\":{\\"slice\\":409600,\\"lock\\":true,\\"interval\\":2}},{\\"file_patterns\\":[\\"/summary/data\\"],\\"load_strategy\\":\\"cache\\",\\"load_strategy_param\\":{\\"direct_io\\":true,\\"cache_size\\":512}},{\\"warmup_strategy\\":\\"none\\",\\"file_patterns\\":[\\".*\\"],\\"load_strategy\\":\\"mmap\\",\\"load_strategy_param\\":{\\"lock\\":false}}]},\\"build_option_config\\":{\\"async_queue_size\\":1000,\\"max_recover_time\\":10,\\"async_build\\":true}}"'."\n"
- .''."\n"
- .' },'."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "indexName": "search4_mj_mos_item_index",'."\n"
- .''."\n"
- .' "config": "{\\"realtime\\":true,\\"cluster_config\\":{\\"table_name\\":\\"search4_mj_mos_item_index\\"},\\"online_index_config\\":{\\"online_keep_version_count\\":3,\\"build_config\\":{\\"build_total_memory\\":4096},\\"max_realtime_memory_use\\":8192,\\"load_config\\":[{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_INDEX_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_INDEX_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"none\\",\\"file_patterns\\":[\\"_SUMMARY_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_SUMMARY_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_ATTRIBUTE_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_ATTRIBUTE_\\",\\"load_strategy_param\\":{\\"lock\\":true}}],\\"speedup_primary_key_reader\\":true},\\"build_option_config\\":{\\"async_queue_size\\":10000,\\"max_recover_time\\":10,\\"async_build\\":true}}"'."\n"
- .''."\n"
- .' },'."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "indexName": "nm_algo_search_retrieval_item_index",'."\n"
- .''."\n"
- .' "config": "{\\"realtime\\":true,\\"cluster_config\\":{\\"table_name\\":\\"nm_algo_search_retrieval_item_index\\"},\\"online_index_config\\":{\\"online_keep_version_count\\":3,\\"build_config\\":{\\"build_total_memory\\":4096},\\"max_realtime_memory_use\\":8192,\\"load_config\\":[{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_INDEX_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_INDEX_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"none\\",\\"file_patterns\\":[\\"_SUMMARY_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_SUMMARY_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_ATTRIBUTE_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_ATTRIBUTE_\\",\\"load_strategy_param\\":{\\"lock\\":true}}],\\"speedup_primary_key_reader\\":true},\\"build_option_config\\":{\\"async_queue_size\\":10000,\\"max_recover_time\\":10,\\"async_build\\":true}}"'."\n"
- .''."\n"
- .' } '."\n"
- .''."\n"
- .' ]'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n",
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\"\\n }\\n}","type":"json"}]',
],
- 'ModifyIndex' => [
- 'summary' => '修改索引。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateModel' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/models',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '186780',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchVHEWK3',
- ],
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'dryRun',
'in' => 'query',
- 'schema' => [
- 'description' => '是否校验入参数据合法性,默认false。'."\n"
- ."\n"
- .'取值:'."\n"
- ."\n"
- .'- **true**:只校验参数合法性。'."\n"
- ."\n"
- .'- **false**:校验参数合法性,创建归因配置。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'false',
- ],
+ 'schema' => ['title' => '是否仅执行校验,默认为False。', 'description' => '是否仅执行校验,默认为False。', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
[
'name' => 'body',
@@ -3298,445 +1542,78 @@
'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'dataSourceInfo' => [
- 'description' => '数据源相关信息 (向量检索版新版本必填)',
+ 'name' => ['description' => '模型名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ 'content' => [
+ 'description' => '模型详情',
'type' => 'object',
'properties' => [
- 'buildMode' => [
- 'title' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)',
- 'description' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'api',
- ],
- 'generation' => [
- 'title' => '从索引中恢复数据源,dump表的generation',
- 'description' => '从索引中恢复数据源,dump表的generation',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1718698593',
- ],
- 'dataTimeSec' => [
- 'title' => '追增量时间戳',
- 'description' => '追增量时间戳',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1709715164',
- ],
- 'processPartitionCount' => [
- 'title' => '数据更新资源数',
- 'description' => '数据更新资源数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '4',
- ],
- 'name' => [
- 'title' => '数据源名',
- 'description' => '数据源名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_index_1',
- ],
- 'type' => [
- 'title' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'odps',
- ],
- 'domain' => [
- 'title' => '离线部署',
- 'description' => '离线部署',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_1'."\n",
- ],
- 'config' => [
- 'title' => 'odps 数据源配置',
- 'description' => 'odps 数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => 'odps相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源ak secret',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'bbt_algo_pai',
- ],
- 'partition' => [
- 'description' => 'ODPS Partition。例如:ds=20180102。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20230114',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'saro、odps相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'item',
- ],
- 'namespace' => [
- 'title' => 'saro相关',
- 'description' => 'saro相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-namespace',
- ],
- 'path' => [
- 'title' => 'hdfs相关',
- 'description' => 'hdfs相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-hdfs-path',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss数据源相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/opensearch/oss.json',
- ],
- 'bucket' => [
- 'description' => 'OSS存储空间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-bucket',
- ],
- 'format' => [
- 'description' => 'oss文件格式类型'."\n"
- .'- ha3'."\n"
- .'- json',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha3',
- ],
- 'catalog' => [
- 'description' => 'dlf数据源-数据目录ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-catalog',
- ],
- 'database' => [
- 'description' => 'dlf数据源-数据库',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-database',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-tag',
- ],
- 'tableFormat' => [
- 'description' => 'dlf数据源-表格式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'paimon'."\n"
- .'lance'."\n"
- .'object',
- ],
- ],
- 'required' => false,
- ],
- 'saroConfig' => [
- 'title' => 'saro数据源配置',
- 'description' => 'saro数据源配置',
+ 'modelType' => ['description' => '模型类别'."\n"
+ .'- a. 文本向量化:text_embedding'."\n"
+ .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
+ .'- c. 图片向量化:image_embedding'."\n"
+ .'- d. 图片内容解析:image_analyze', 'type' => 'string', 'required' => false, 'example' => 'text_embedding'],
+ 'dimension' => ['title' => '模型的维度', 'description' => '模型的维度。类型为text_embedding和image_embedding时需要填写模型的维度。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '128'],
+ 'url' => ['description' => '模型服务的访问地址', 'type' => 'string', 'required' => false, 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001'],
+ 'method' => ['description' => '模型服务访问的http method, 支持PUT和POST', 'type' => 'string', 'required' => false, 'example' => 'POST'],
+ 'request' => [
+ 'description' => '模型请求体',
'type' => 'object',
'properties' => [
- 'namespace' => [
- 'description' => 'saro数据源的namespace',
- 'type' => 'string',
+ 'header' => [
+ 'description' => '访问模型服务的http header',
+ 'type' => 'object',
+ 'properties' => [
+ 'Authorization' => ['description' => '认证信息,格式:Bearer access_token', 'type' => 'string', 'required' => false, 'example' => 'Bearer OS-v0********6vvs'],
+ 'Content-Type' => ['description' => 'HTTP请求内容类型。', 'type' => 'string', 'required' => false, 'example' => 'application/json'],
+ ],
'required' => false,
- 'example' => 'flink-test-fjx-default',
],
- 'tableName' => [
- 'description' => 'saro数据表名称',
- 'type' => 'string',
+ 'urlParams' => [
+ 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'build' => ['description' => '构建索引时传递的参数', 'type' => 'object', 'required' => false, 'example' => 'key: value'],
+ 'search' => ['description' => '查询时传递的参数', 'type' => 'object', 'required' => false, 'example' => 'key: value'],
+ ],
'required' => false,
- 'example' => 'device_event_shy_summary_',
],
- ],
- 'required' => false,
- ],
- 'autoBuildIndex' => [
- 'title' => '是否开启自动全量',
- 'description' => '是否开启自动全量',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'processParallelNum' => [
- 'description' => '全量process并发数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'partition' => [
- 'title' => 'odps数据源进行索引重建选择的数据分区',
- 'description' => 'odps数据源分区-数据源为odps时必填。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20230114',
- ],
- 'ossDataPath' => [
- 'title' => 'oss数据源进行索引重建时选择的文件地址',
- 'description' => 'oss数据源进行索引重建时选择的文件地址',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/opensearch/oss.json',
- ],
- ],
- 'required' => false,
- ],
- 'description' => [
- 'description' => '描述信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '"test"',
- ],
- 'content' => [
- 'title' => '文件内容',
- 'description' => '文件内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"summarys\\":{\\"summary_fields\\":[\\"id\\"]},\\"indexs\\":[{\\"index_name\\":\\"index_id\\",\\"index_type\\":\\"PRIMARYKEY64\\",\\"index_fields\\":\\"id\\",\\"has_primary_key_attribute\\":true,\\"is_primary_key_sorted\\":false}],\\"attributes\\":[\\"id\\"],\\"fields\\":[{\\"field_name\\":\\"id\\",\\"field_type\\":\\"UINT16\\"}],\\"table_name\\":\\"index_2\\"}',
- ],
- 'partition' => [
- 'title' => '数据分片',
- 'description' => '数据分片',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'dataSource' => [
- 'title' => '数据源',
- 'description' => '数据源',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_index_1',
- ],
- 'domain' => [
- 'title' => '数据源部署',
- 'description' => '数据源部署',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_1',
- ],
- 'buildParallelNum' => [
- 'description' => '全量build并发数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'mergeParallelNum' => [
- 'description' => '全量merge并发数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'cluster' => [
- 'description' => '集群信息',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'value' => [
- 'type' => 'string',
- 'description' => '变量',
- 'example' => 'partition',
- ],
- 'description' => [
- 'type' => 'string',
- 'description' => '描述信息',
- 'example' => 'Custom Variable',
- ],
- 'disableModify' => [
- 'type' => 'boolean',
- 'example' => 'true',
- 'description' => '是否可被用户修改',
- ],
- 'isModify' => [
- 'type' => 'boolean',
- 'example' => 'false',
- 'description' => '是否被修改过',
- ],
- 'type' => [
- 'type' => 'string',
- 'example' => 'NORMAL',
- 'description' => '普通变量:NORMAL, function变量:FUNCTION',
- ],
- ],
- 'description' => 'cluster.json更新内容',
- ],
- 'description' => '集群信息',
- ],
- ],
- 'clusterConfigName' => [
- 'description' => 'cluster.json文件名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****@a-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config_v1',
- ],
- 'config' => [
- 'description' => '离线配置信息',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'desc' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- 'description' => '备注',
- ],
- 'files' => [
- 'type' => 'array',
- 'items' => [
+ 'parameters' => [
+ 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
'type' => 'object',
'properties' => [
- 'operateType' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UPDATE',
- 'description' => '操作类型:UPDATE:更新;DELETE:删除;默认UPDATE',
- ],
- 'parentFullPath' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => '/',
- 'description' => '上级目录的路径',
- ],
- 'fileName' => [
- 'type' => 'string',
- 'required' => false,
- 'description' => '文件名称',
- 'example' => '/intervene_dict/analyzer.dict',
- ],
- 'config' => [
+ 'build' => [
+ 'description' => '索引构建阶段的参数',
'type' => 'object',
'properties' => [
- 'content' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => '$dictContent',
- 'description' => '文件内容--词典配置',
- ],
- 'variables' => [
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'description' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- 'description' => '描述',
- ],
- 'disableModify' => [
- 'type' => 'boolean',
- 'required' => false,
- 'description' => '是否可被用户修改',
- 'example' => 'true',
- ],
- 'isModify' => [
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- 'description' => '是否被修改过',
- ],
- 'type' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'NORMAL',
- 'description' => '普通变量:NORMAL, function变量:FUNCTION',
- ],
- 'value' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- 'description' => '变量',
- ],
- ],
- 'description' => '变量信息',
- ],
- 'description' => '变量',
- ],
+ 'input_type' => ['description' => '输入类型', 'type' => 'string', 'required' => false, 'example' => 'query'],
],
'required' => false,
- 'description' => '本次更新的配置',
],
- 'dirName' => [
- 'type' => 'string',
+ 'search' => [
+ 'description' => '查询阶段的参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'input_type' => ['description' => '输入类型', 'type' => 'string', 'required' => false, 'example' => 'document'],
+ ],
'required' => false,
- 'description' => '目录名称',
- 'example' => '/test',
],
],
'required' => false,
],
- 'required' => false,
- 'description' => '修改的文件列表',
+ 'requestBody' => ['description' => '请求Body体的模板字符串', 'type' => 'string', 'required' => false, 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}'],
],
+ 'required' => false,
+ ],
+ 'response' => [
+ 'description' => '如何解析结果信息,使用json path格式描述',
+ 'type' => 'object',
+ 'properties' => [
+ 'embeddings' => ['description' => '如何解析结果信息,使用json path格式描述', 'type' => 'string', 'required' => false, 'example' => '$.result.embeddings[*].embedding'],
+ ],
+ 'required' => false,
],
- 'description' => '离线配置',
],
- ],
- 'pushMode' => [
- 'description' => '推送配置方式: 默认仅推送配置',
- 'type' => 'string',
'required' => false,
- 'example' => 'PUSH_ONLY',
- ],
- 'extend' => [
- 'description' => '字段配置的扩展的内容。'."\n"
- .'key: vector(向量字段)、embeding(需embeding字段)、备注字段(description)'."\n"
- .'value: ["schema字段名称"]',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{'."\n"
- .' "vector":'."\n"
- .' ['."\n"
- .' "source_image_vector"'."\n"
- .' ],'."\n"
- .' "embeding":'."\n"
- .' ['."\n"
- .' "source_image"'."\n"
- .' ],'."\n"
- .' "description":'."\n"
- .' []'."\n"
- .' }',
],
],
'required' => false,
@@ -3746,86 +1623,58 @@
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429',
- ],
- 'result' => [
- 'title' => 'Object',
- 'description' => '返回结果。',
- 'type' => 'any',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
],
],
],
- 500 => [],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建模型',
+ 'summary' => '创建模型信息。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
- 'title' => '修改索引',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'PUT'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\"\\n}","type":"json"}]',
],
- 'StartIndex' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/startIndex',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreatePublicUrl' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/public-url',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '187010',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchJ3PXKB',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '171289',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG', 'FEATUREopensearchJB31XH'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
],
'responses' => [
@@ -3833,26 +1682,16 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '恢复使用索引',
- 'summary' => '恢复使用索引。',
+ 'title' => '开通公网域名',
+ 'summary' => '开通公网域名。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -3862,79 +1701,102 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/startIndex'."\n"
+ .'/openapi/ha3/instances/{instanceId}/public-url'."\n"
.'```',
- ],
- 'StopIndex' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/stopIndex',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePublicUrl'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreatePublicUrl',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'CreateSqlInstance' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '187011',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchJ3PXKB',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '139624',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'indexName',
+ 'name' => 'database',
'in' => 'path',
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => 'sql实例名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ 'parent' => ['description' => '父项工作项唯一标识', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '-1'],
+ ],
+ 'required' => false,
],
],
],
'responses' => [
200 => [
+ 'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'B43CD1BB-ABD7-59C5-B89A-6E5F6FE60A84'],
'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
+ 'title' => 'NodeVO',
+ 'description' => '返回结果。',
'type' => 'object',
- 'example' => '{}',
+ 'properties' => [
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'],
+ 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '1719220182844'],
+ 'gmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => '1719220182844'],
+ 'name' => ['description' => 'sql实例名称', 'type' => 'string', 'example' => 'test'],
+ 'parent' => ['description' => '父任务id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'instance'],
+ 'instanceId' => ['description' => '实例id', 'type' => 'integer', 'format' => 'int64', 'example' => 'ha-cn-pl32rf0****'],
+ 'templateId' => ['description' => '实例所属的模板id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '停止使用索引',
- 'summary' => '停止使用索引。',
+ 'title' => '创建SQL实例',
+ 'summary' => '创建SQL实例。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -3944,355 +1806,210 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/stopIndex'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances'."\n"
.'```',
- ],
- 'CreateIndex' => [
- 'summary' => '创建索引信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSqlInstance'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"B43CD1BB-ABD7-59C5-B89A-6E5F6FE60A84\\",\\n \\"result\\": {\\n \\"id\\": 22,\\n \\"gmtCreate\\": \\"1719220182844\\",\\n \\"gmtModified\\": \\"1719220182844\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateTable' => [
+ 'summary' => '创建索引表。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/tables',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '104691',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchVHEWK3',
- ],
+ 'abilityTreeCode' => '218772',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-2r42ppr****',
- ],
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'dryRun',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求体参数。',
+ 'description' => 'body',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '名称',
- 'description' => '索引名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index_1',
- ],
+ 'name' => ['title' => '索引名', 'description' => '索引名。', 'type' => 'string', 'required' => false, 'example' => 'api_index_1'],
+ 'dataProcessorCount' => ['title' => '数据更新资源数', 'description' => '数据更新资源数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'partitionCount' => ['title' => '数据分片数', 'description' => '数据分片数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'dataSource' => [
- 'title' => '数据源',
- 'description' => '数据源名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-35t3n1y****_index_1',
- ],
- 'domain' => [
- 'title' => '数据源的部署',
- 'description' => '数据源机房。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_1',
- ],
- 'content' => [
- 'title' => '文件内容',
- 'description' => '索引结构。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"summarys\\":{\\"summary_fields\\":[\\"id\\"]},\\"indexs\\":[{\\"index_name\\":\\"index_id\\",\\"index_type\\":\\"PRIMARYKEY64\\",\\"index_fields\\":\\"id\\",\\"has_primary_key_attribute\\":true,\\"is_primary_key_sorted\\":false}],\\"attributes\\":[\\"id\\"],\\"fields\\":[{\\"field_name\\":\\"id\\",\\"field_type\\":\\"UINT16\\"}],\\"table_name\\":\\"index_2\\"}',
- ],
- 'partition' => [
- 'title' => '数据分片',
- 'description' => '数据分片数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'dataSourceInfo' => [
- 'description' => '数据源相关信息 (向量检索版新版本必填)。',
+ 'title' => '数据源配置',
+ 'description' => '数据源配置',
'type' => 'object',
'properties' => [
- 'dataTimeSec' => [
- 'description' => '追增量时间戳。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1709715164',
- ],
- 'processPartitionCount' => [
- 'description' => '数据更新资源数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '4',
- ],
- 'name' => [
- 'description' => '数据源名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-35t3n1y****_index_1',
- ],
- 'type' => [
- 'description' => '数据源类型。取值:'."\n"
- ."\n"
- .'- odps'."\n"
- .'- swift'."\n"
- .'- saro'."\n"
- .'- oss',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'odps',
- ],
- 'domain' => [
- 'description' => '离线机房。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_1'."\n",
- ],
+ 'type' => ['title' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)', 'description' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)', 'type' => 'string', 'required' => false, 'example' => 'odps'],
+ 'dataTimeSec' => ['title' => '追增量时间戳', 'description' => '追增量时间戳', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1715160176'],
+ 'autoBuildIndex' => ['title' => '是否自动索引重建', 'description' => '是否自动索引重建', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'config' => [
- 'description' => 'odps相关。',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'description' => 'odps数据源的Endpoint, oss数据源的Endpoint。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://oss-cn-hangzhou.aliyuncs.com',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源AK。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源AK Secret。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'bbt_algo_pai',
- ],
- 'partition' => [
- 'description' => '数据源为odps时必填。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20230114',
- ],
- 'table' => [
- 'description' => '表名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'bbt_rec_swing_u2i2i_score_be_v1',
- ],
- 'namespace' => [
- 'description' => '命名空间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-namespace',
- ],
- 'path' => [
- 'description' => 'hdfs数据源路径。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-hdfs-path',
- ],
- 'ossPath' => [
- 'description' => 'oss文件路径。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/opensearch/oss.json',
- ],
- 'bucket' => [
- 'description' => 'oss bucket。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-bucket',
- ],
- 'format' => [
- 'description' => 'oss文件格式类型'."\n"
- .'- ha3'."\n"
- .'- json',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha3',
- ],
- 'catalog' => [
- 'description' => 'dlf数据源-数据目录ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-catalog',
- ],
- 'database' => [
- 'description' => 'dlf数据源-数据库',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-database',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-tag',
- ],
- 'tableFormat' => [
- 'description' => 'dlf数据源-表格式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'paimon'."\n"
- .'lance'."\n"
- .'object',
- ],
- ],
- 'required' => false,
- ],
- 'saroConfig' => [
- 'description' => 'saro数据源配置。',
+ 'title' => '数据源配置',
+ 'description' => '数据源配置',
'type' => 'object',
'properties' => [
- 'namespace' => [
- 'description' => 'saro数据源的namespace。(目前仅在内网支持)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'tableName' => [
- 'description' => 'saro数据表名称。(目前仅在内网支持)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'tableA',
- ],
+ 'endpoint' => ['title' => 'odps相关', 'description' => '访问域名', 'type' => 'string', 'required' => false, 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'required' => false, 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源ak secret', 'type' => 'string', 'required' => false, 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'required' => false, 'example' => 'test_project'],
+ 'partition' => ['description' => '数据源为odps时必填', 'type' => 'string', 'required' => false, 'example' => 'ds=20220713'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'odps、dlf数据源表名', 'type' => 'string', 'required' => false, 'example' => 'test56'],
+ 'path' => ['description' => '相对路径', 'type' => 'string', 'required' => false, 'example' => '/test'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss数据源相关', 'type' => 'string', 'required' => false, 'example' => '/opensearch/test.txt'],
+ 'bucket' => ['description' => 'oss bucket', 'type' => 'string', 'required' => false, 'example' => 'test-bucket'],
+ 'catalog' => ['description' => 'dlf数据源-数据目录名称', 'type' => 'string', 'required' => false, 'example' => 'test_catalog'],
+ 'database' => ['description' => 'dlf数据源-数据库', 'type' => 'string', 'required' => false, 'example' => 'opensearch_db'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'tableFormat' => ['description' => 'dlf数据源-表格式', 'type' => 'string', 'required' => false, 'example' => 'paimon'."\n"
+ .'lance'."\n"
+ .'object'],
+ 'format' => ['title' => '文件格式类型(oss和dlf复用这个字段),默认为ha3类型', 'description' => '文件格式类型', 'type' => 'string', 'required' => false, 'example' => 'ha3'."\n"
+ .'json'],
],
'required' => false,
],
- 'autoBuildIndex' => [
- 'description' => '是否开启自动全量。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'processParallelNum' => [
- 'description' => '全量process并发数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'scene' => [
- 'title' => '场景模版',
- 'description' => '模版类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'videoSearcher',
- ],
],
'required' => false,
],
- 'extend' => [
- 'description' => '字段配置的扩展内容。'."\n"
- .'- key: vector(向量字段)、embeding(需embeding字段)、description(备注字段)'."\n"
- .'- value: ["schema字段名称"]',
+ 'rawSchema' => ['title' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装', 'description' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'primaryKey' => ['title' => '主键字段', 'description' => '主键字段', 'type' => 'string', 'required' => false, 'example' => 'id'],
+ 'fieldSchema' => [
+ 'title' => 'key: 字段名',
+ 'description' => 'key: 字段名',
'type' => 'object',
'required' => false,
- 'example' => '{'."\n"
- .' "vector":'."\n"
- .' ['."\n"
- .' "source_image_vector"'."\n"
- .' ],'."\n"
- .' "embeding":'."\n"
- .' ['."\n"
- .' "source_image"'."\n"
- .' ],'."\n"
- .' "description":'."\n"
- .' []'."\n"
- .' }',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n"
+ .' "id": "INT64",'."\n"
+ .' "source_image": "STRING",'."\n"
+ .' "namespace": "INT64",'."\n"
+ .' "source_image_vector": "MULTI_FLOAT"'."\n"
+ .'}', 'description' => 'map结构'],
],
- 'buildParallelNum' => [
- 'description' => '全量build并发数',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'vectorIndex' => [
+ 'title' => '索引结构',
+ 'description' => '索引结构',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'indexName' => ['title' => '索引结构名称', 'description' => '索引结构名称', 'type' => 'string', 'required' => false, 'example' => 'test_index'],
+ 'vectorField' => ['title' => '向量字段', 'description' => '向量字段', 'type' => 'string', 'required' => false, 'example' => 'source_image_vector'],
+ 'sparseIndexField' => ['title' => '稀疏向量下标字段', 'description' => '稀疏向量下标字段', 'type' => 'string', 'required' => false, 'example' => 'sparse_indices'],
+ 'sparseValueField' => ['title' => '稀疏向量值字段', 'description' => '稀疏向量值字段', 'type' => 'string', 'required' => false, 'example' => 'sparse_values'],
+ 'dimension' => ['title' => '向量维度', 'description' => '向量维度', 'type' => 'string', 'required' => false, 'example' => '128'],
+ 'vectorIndexType' => ['title' => '向量索引算法', 'description' => '向量索引算法', 'type' => 'string', 'required' => false, 'example' => 'Qc'],
+ 'distanceType' => ['title' => '距离类型', 'description' => '距离类型', 'type' => 'string', 'required' => false, 'example' => 'SquaredEuclidean'],
+ 'namespace' => ['title' => '命名空间字段', 'description' => '命名空间字段', 'type' => 'string', 'required' => false, 'example' => 'namespace'],
+ 'advanceParams' => [
+ 'title' => '索引结构配置',
+ 'description' => '索引结构配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'buildIndexParams' => ['title' => '索引构建参数', 'description' => '索引构建参数', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'searchIndexParams' => ['title' => '索引检索参数', 'description' => '索引检索参数', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'minScanDocCnt' => ['title' => '召回候选集的个数最小值', 'description' => '召回候选集的个数最小值', 'type' => 'string', 'required' => false, 'example' => '20000'],
+ 'linearBuildThreshold' => ['title' => '线性构建的阈值', 'description' => '线性构建的阈值', 'type' => 'string', 'required' => false, 'example' => '5000'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ 'description' => '',
+ ],
'required' => false,
- 'example' => '2',
],
- 'mergeParallelNum' => [
- 'description' => '全量merge并发数',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'dataProcessConfig' => [
+ 'title' => '字段处理配置',
+ 'description' => '字段处理配置',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '字段处理配置详细信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'operator' => ['title' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)', 'description' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)', 'type' => 'string', 'required' => false, 'example' => 'vectorize'],
+ 'dstField' => ['title' => '目标字段', 'description' => '目标字段', 'type' => 'string', 'required' => false, 'example' => 'source_image_vector'],
+ 'srcField' => ['title' => '源字段', 'description' => '源字段', 'type' => 'string', 'required' => false, 'example' => 'source_image'],
+ 'params' => [
+ 'title' => '配置模型信息',
+ 'description' => '配置模型信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'vectorModel' => ['title' => '向量化模型', 'description' => '向量化模型', 'type' => 'string', 'required' => false, 'example' => 'clip'],
+ 'vectorModal' => ['title' => '数据类型', 'description' => '数据类型', 'type' => 'string', 'required' => false, 'example' => 'image'],
+ 'srcFieldConfig' => [
+ 'title' => '向量化信息来源',
+ 'description' => '向量化信息来源',
+ 'type' => 'object',
+ 'properties' => [
+ 'ossEndpoint' => ['description' => 'OSS区域地址。', 'type' => 'string', 'required' => false, 'example' => 'oss-cn-hangzhou-internal.aliyuncs.com'],
+ 'ossBucket' => ['description' => 'OSSBucket', 'type' => 'string', 'required' => false, 'example' => 'test-bucket'],
+ 'uid' => ['description' => '云账号id', 'type' => 'string', 'required' => false, 'example' => '1062017779051424'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
'required' => false,
- 'example' => '2',
],
+ 'scene' => ['title' => '场景模版', 'description' => '模版类型', 'type' => 'string', 'required' => false, 'example' => 'videoSearcher'],
],
'required' => false,
- 'example' => '{}',
- ],
- ],
- [
- 'name' => 'dryRun',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否dryRun创建(仅校验数据源是否合法)。取值:'."\n"
- ."\n"
- .'- true:是。'."\n"
- .'- false:否。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '407BFD91-DE7D-50BA-8F88-CDE52A3B5E46',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"407BFD91-DE7D-50BA-8F88-CDE52A3B5E46\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '创建索引信息',
+ 'title' => '创建索引表',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -4302,75 +2019,64 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tables'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
."\n"
+ .''."\n"
+ ."\n"
.'```java'."\n"
- .'POST /openapi/ha3/instances/ose-test1/indexes'."\n"
+ .'POST /openapi/ha3/instances/{instanceId}/tables'."\n"
.'```'."\n"
- ."\n\n"
+ .'><notice>示例仅列举最简单的参数, 更多自定义参数请参考请求参数></notice>'."\n"
+ ."\n"
.'```java'."\n"
.'{'."\n"
- .' "name": "index_1",'."\n"
- .' "dataSource": "ha-cn-3********0d_index_1",'."\n"
- .' "content": "",'."\n"
- .' "extend":'."\n"
- .' {'."\n"
- .' "vector":'."\n"
- .' ['."\n"
- .' "source_image_vector"'."\n"
- .' ],'."\n"
- .' "embeding":'."\n"
- .' ['."\n"
- .' "source_image"'."\n"
- .' ],'."\n"
- .' "description":'."\n"
- .' []'."\n"
+ .' "name": "api",'."\n"
+ .' "partitionCount": 1,'."\n"
+ .' "primaryKey": "id",'."\n"
+ .' "fieldSchema": {'."\n"
+ .' "id": "INT64",'."\n"
+ .' "source_image": "STRING",'."\n"
+ .' "namespace": "STRING",'."\n"
+ .' "source_image_vector": "MULTI_FLOAT"'."\n"
.' },'."\n"
- .' "partition": 1,'."\n"
- .' "dataSourceInfo":'."\n"
- .' {'."\n"
- .' "type": "odps",'."\n"
- .' "processPartitionCount": 2,'."\n"
- .' "autoBuildIndex": true,'."\n"
- .' "config":'."\n"
+ .' "vectorIndex": ['."\n"
.' {'."\n"
- .' "endpoint": "http://service.cn-hangzhou.maxcompute.aliyun.com/api",'."\n"
- .' "project": "odps_project",'."\n"
- .' "accessKey": "ak",'."\n"
- .' "accessSecret": "as",'."\n"
- .' "table": "odps_table",'."\n"
- .' "partition": "ds=*******"'."\n"
- .' },'."\n"
- .' "saroConfig":'."\n"
- .' {},'."\n"
- .' "dataTimeSec": 1709715164'."\n"
- .' }'."\n"
- .'}'."\n"
- .'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- ."\n"
- .'```java'."\n"
- .'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": {}'."\n"
+ .' "indexName": "test_index_1",'."\n"
+ .' "vectorField": "source_image_vector",'."\n"
+ .' "vectorIndexType": "HNSW",'."\n"
+ .' "dimension": "512",'."\n"
+ .' "distanceType": "InnerProduct"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
.'}'."\n"
.'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'BuildIndex' => [
- 'summary' => '触发索引重建。',
- 'path' => '/openapi/ha3/instances/{instanceId}/actions/build-index',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ .'详情可参考[响应结构](~~465311~~)<details>',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DebugModel' => [
+ 'summary' => '调试模型。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}/actions/debug',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -4379,100 +2085,38 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '104671',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchD5N27K',
- ],
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'modelName',
+ 'in' => 'path',
+ 'schema' => ['title' => '模型的名称', 'description' => '模型的名称', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ ],
+ [
+ 'name' => 'isOnline',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否在线查询,为true时使用search配置,false时使用build配置', 'description' => '是否在线查询,为true时使用search配置,false时使用build配置', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '一个JSON格式的字符串,完整JSON字符串信息,具体内容参见以下详细信息。',
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'dataSourceName' => [
- 'title' => '数据源名',
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'domain' => [
- 'title' => '数据源部署',
- 'description' => '数据源机房',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sz_vpc_domain_1',
- ],
- 'dataSourceType' => [
- 'title' => '数据源类型 (odps: maxComputer, swift: swift, unKnow)',
- 'description' => '数据源类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'odps',
- ],
- 'partition' => [
- 'title' => '数据源的可用分区',
- 'description' => '数据源为odps时必填',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20201010',
- ],
- 'dataTimeSec' => [
- 'title' => 'API推送数据源的数据时间',
- 'description' => 'int类型,秒级时间戳,数据源为API推送时必填',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1640867288',
- ],
- 'buildMode' => [
- 'title' => '索引重建方式 (API: API方式推送数据源, RECOVER_INDEX: 从索引中恢复数据源)',
- 'description' => '重建index方式: api、indexRecover',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'api',
- ],
- 'generation' => [
- 'title' => '从索引中恢复数据源,dump表的generation',
- 'description' => '历史回流ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '160131146',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'path' => [
- 'description' => '相对路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/test/dir',
- ],
+ 'input' => ['title' => '模型输入', 'description' => '模型输入', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
- 'example' => '{}',
],
],
],
@@ -4483,137 +2127,37 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '407BFD91-DE7D-50BA-8F88-CDE52A3B5E46',
- ],
- 'result' => [
- 'title' => '集群列表',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
],
],
],
- 500 => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"407BFD91-DE7D-50BA-8F88-CDE52A3B5E46\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '触发索引重建',
- 'description' => '## 方法'."\n"
- ."\n"
- .'```'."\n"
- .'POST'."\n"
- .'```'."\n"
- ."\n"
- .'## URI'."\n"
- ."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/actions/build-index'."\n"
- .'```'."\n",
- 'requestParamsDescription' => "\n"
- ."\n"
- .'## 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'POST /openapi/ha3/instances/ha3_instance_name/actions/build-index'."\n"
- .''."\n"
- .'```'."\n"
- ."\n"
- .'​'."\n"
- .''."\n"
- .' '."\n"
- ."\n"
- .'```'."\n"
- .' {'."\n"
- .''."\n"
- .' "dataSourceName": "my_data_source",'."\n"
- .''."\n"
- .' "domain": "test", //数据源部署'."\n"
- .''."\n"
- .' "indexes": ['."\n"
- .''."\n"
- .' "index1",'."\n"
- .''."\n"
- .' "index2"'."\n"
- .''."\n"
- .' ],'."\n"
- .''."\n"
- .' "dataSourceType": "odps", //odps 或swift,必填'."\n"
- .''."\n"
- .' "partition": "20201010", //数据源为odps时必填'."\n"
- .''."\n"
- .' "dataTimeSec": 1640867288 //int类型,秒级时间戳,数据源为api推送时必填'."\n"
- .''."\n"
- .' }'."\n"
- .'```'."\n"
- ."\n"
- .''."\n"
- .'​'."\n"
- .''."\n"
- .'​'."\n"
- .''."\n"
- .' '."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "dataSourceName": "my_data_source",'."\n"
- .''."\n"
- .' "domain": "test", //数据源部署'."\n"
- .''."\n"
- .' "indexes": ['."\n"
- .''."\n"
- .' "index1",'."\n"
- .''."\n"
- .' "index2"'."\n"
- .''."\n"
- .' ],'."\n"
- .''."\n"
- .' "dataSourceType": "swift", //odps 或swift,必填'."\n"
- .''."\n"
- .' "partition": "20201010", //数据源为odps时必填'."\n"
- .''."\n"
- .' "dataTimeSec": 1640867288 //int类型,秒级时间戳,数据源为api推送时必填'."\n"
- .''."\n"
- .' }'."\n"
- .'```'."\n"
- ."\n"
- .''."\n"
- .'​'."\n"
- ."\n\n"
- ."\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .''."\n"
- .' "result": []'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- ."\n"
- .'详情可参考[响应结构](~~464322~~)',
- ],
- 'DeleteIndexVersion' => [
- 'summary' => '删除索引的版本。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}',
- 'methods' => [
- 'delete',
],
- 'schemes' => [
- 'http',
- 'https',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '模型调试',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:DebugModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteAdvanceConfig' => [
+ 'summary' => '删除高级配置的详情。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4626,35 +2170,12 @@
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'title' => '索引名称',
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'versionName',
+ 'name' => 'configName',
'in' => 'path',
- 'schema' => [
- 'title' => '版本名称',
- 'description' => '版本名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_shenzhen_test_01@sz_vpc_domain_1@api_test@index_config_v1',
- ],
+ 'schema' => ['title' => '配置名称', 'description' => '配置名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
],
],
'responses' => [
@@ -4664,25 +2185,14 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
- 'result' => [
- 'title' => '结果',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
+ 'result' => ['title' => '结果', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除索引的版本',
+ 'title' => '删除高级配置的详情',
'description' => '## 方法'."\n"
."\n"
.'```'."\n"
@@ -4692,7 +2202,7 @@
.'## URI'."\n"
."\n"
.'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}'."\n"
.'```'."\n"
."\n\n",
'requestParamsDescription' => '## 请求示例'."\n"
@@ -4700,7 +2210,7 @@
.''."\n"
."\n"
.'```'."\n"
- .'DELETE /openapi/ha3/instances/ose-test1/indexes/my_index/versions/version1'."\n"
+ .'DELETE /openapi/ha3/instances/ose-test1/advanced-configs/my_config_name'."\n"
.'```'."\n",
'responseParamsDescription' => '## 返回示例'."\n"
."\n"
@@ -4710,215 +2220,139 @@
.'```'."\n"
.'{'."\n"
.''."\n"
- .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
.''."\n"
.' "result": []'."\n"
.''."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
- ],
- 'DeleteIndex' => [
- 'summary' => '删除索引。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}',
- 'methods' => [
- 'delete',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAdvanceConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DeleteAlias' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/aliases/{alias}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '223196',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例 ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'indexName',
+ 'name' => 'alias',
'in' => 'path',
- 'schema' => [
- 'title' => '索引名称',
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
- ],
- [
- 'name' => 'dataSource',
- 'in' => 'query',
- 'schema' => [
- 'title' => '数据源',
- 'description' => '数据源',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_ test_api',
- ],
- ],
- [
- 'name' => 'deleteDataSource',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否删除数据源',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '别名', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
- 'result' => [
- 'title' => '索引信息',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除索引',
- 'description' => '## 方法'."\n"
+ 'title' => '删除别名',
+ 'summary' => '删除别名。',
+ 'description' => '### 方法'."\n"
."\n"
- .'```'."\n"
+ .'```java'."\n"
.'DELETE'."\n"
.'```'."\n"
."\n"
- .'## URI'."\n"
+ .'### URI'."\n"
."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}'."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/aliases/{alias}'."\n"
.'```',
- 'requestParamsDescription' => "\n"
- .'## 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'DELETE /openapi/ha3/instances/ose-test1/indexes/my_index?dataSource=xxx'."\n"
- .'```'."\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
- .''."\n"
- .' "result": []'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'ModifyIndexVersion' => [
- 'summary' => '修改集群索引版本(索引回滚)。',
- 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DeleteConfigDir' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir',
+ 'methods' => ['delete'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'clusterName',
+ 'name' => 'configName',
'in' => 'path',
- 'schema' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_2',
- ],
+ 'schema' => ['description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求结构。',
- 'type' => 'array',
- 'items' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'title' => '索引名称',
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'main_index',
- ],
- 'version' => [
- 'title' => '索引版本',
- 'description' => '索引版本',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
- 'buildDeployId' => [
- 'title' => '产出索引的离线部署',
- 'description' => '数据源部署id',
- 'type' => 'string',
- 'required' => false,
- 'example' => '277',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- 'example' => '{}',
- ],
+ 'name' => 'dirName',
+ 'in' => 'query',
+ 'schema' => ['description' => '目录名称。', 'type' => 'string', 'required' => true, 'example' => '/clusters'],
+ ],
+ [
+ 'name' => 'parentFullPath',
+ 'in' => 'query',
+ 'schema' => ['description' => '上级目录的路径', 'type' => 'string', 'required' => true, 'example' => '/'],
],
],
'responses' => [
@@ -4926,179 +2360,78 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改集群索引版本(索引回滚)',
- 'description' => '## 方法'."\n"
+ 'title' => '删除高级配置目录',
+ 'summary' => '删除高级配置目录。',
+ 'description' => '### 方法'."\n"
."\n"
- .'```'."\n"
- .'PUT'."\n"
+ .'```java'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
- .'## URI'."\n"
+ .'### URI'."\n"
."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version'."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir'."\n"
.'```',
- 'requestParamsDescription' => "\n"
- ."\n"
- .'## 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'PUT /openapi/ha3/instances/ha3_instance_nameclusters/test_cluster/index-version'."\n"
- .'```'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'['."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "indexName": "index1",'."\n"
- .''."\n"
- .' "version": "123456",'."\n"
- .''."\n"
- .' "buildDeployId": "20201010"'."\n"
- .''."\n"
- .' },'."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "indexName": "index1",'."\n"
- .''."\n"
- .' "version": "123456",'."\n"
- .''."\n"
- .' "buildDeployId": "20201010"'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
- .']'."\n"
- .''."\n"
- .'​'."\n"
- .'```'."\n"
- ."\n\n"
- ."\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .''."\n"
- .' "result":[]'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'ModifyFile' => [
- 'summary' => '修改文件。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteConfigDir',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DeleteConfigFile' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file',
+ 'methods' => ['delete'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'versionName',
+ 'name' => 'configName',
'in' => 'path',
- 'schema' => [
- 'description' => '版本',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_online_config_v1',
- ],
+ 'schema' => ['description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit'],
],
[
'name' => 'fileName',
'in' => 'query',
- 'schema' => [
- 'description' => '文件全路径名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/schemas/generation_schema.json',
- ],
+ 'schema' => ['description' => '文件名称', 'type' => 'string', 'required' => true, 'example' => '/schemas/automobile_vector_schema.json'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'content' => [
- 'title' => '文件内容',
- 'description' => '内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"partition\\":1}',
- ],
- 'partition' => [
- 'title' => '数据分片',
- 'description' => '分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- 'required' => false,
- 'example' => '{\\"desc\\":\\"new version\\"}',
- ],
+ 'name' => 'parentFullPath',
+ 'in' => 'query',
+ 'schema' => ['description' => '上级目录的路径', 'type' => 'string', 'required' => true, 'example' => '/'],
],
],
'responses' => [
@@ -5106,1020 +2439,160 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '89B968E6-1E41-58DF-BB25-5F98ECC759CE',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"89B968E6-1E41-58DF-BB25-5F98ECC759CE\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改文件',
- 'description' => '## 方法'."\n"
- ."\n"
- .'```'."\n"
- .'PUT'."\n"
- .'```'."\n"
- ."\n"
- .'## URI'."\n"
- ."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file'."\n"
- .'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- ."\n\n"
+ 'title' => '删除高级配置文件',
+ 'summary' => '删除高级配置文件。',
+ 'description' => '### 方法'."\n"
."\n"
+ .'```java'."\n"
+ .'DELETE'."\n"
.'```'."\n"
- .'PUT /openapi/ha3/instances/ose-test1/indexes/index1/versions/version1?fileName=/root/test.txt'."\n"
- .''."\n"
- .'{'."\n"
- .''."\n"
- .' "partition": 1,'."\n"
- .''."\n"
- .' "content": ""'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
."\n"
- .'正确返回'."\n"
- .''."\n"
+ .'### URI'."\n"
."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .''."\n"
- .' "result": {}'."\n"
- .''."\n"
- .'}'."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
.'```',
- ],
- 'PublishIndexVersion' => [
- 'summary' => '发布索引版本。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/publish',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{'."\n"
- .' "dataSource": "ha-cn-pl32rf0****_test_api",'."\n"
- .' "desc": "备注信息"'."\n"
- .'}',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '发布索引版本',
- 'description' => '## 方法'."\n"
- ."\n"
- .'```'."\n"
- .'POST'."\n"
- .'```'."\n"
- ."\n"
- .'## URI'."\n"
- ."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/publish'."\n"
- .'```'."\n"
- ."\n",
- 'requestParamsDescription' => "\n"
- ."\n"
- .'## 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'POST /openapi/ha3/instances/ose-test1/indexes/my_index/actions/publish'."\n"
- .'```'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "desc": "new version",'."\n"
- .''."\n"
- .' "dataSource": "test1",'."\n"
- .''."\n"
- .' "domain": "test_domain"'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- ."\n\n"
- ."\n\n"
- ."\n\n"
- ."\n\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
- .''."\n"
- .' "result": []'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
- 'ModifyIndexPartition' => [
- 'summary' => '快速扩缩列。',
- 'path' => '/openapi/ha3/instances/{instanceId}/index-partition',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
+ 'DeleteDataSource' => [
+ 'summary' => '删除数据源。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'dataSourceName' => [
- 'title' => '数据源名称',
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'generation' => [
- 'title' => 'generation 主键',
- 'description' => 'generation 主键',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1633293829',
- ],
- 'domainName' => [
- 'title' => '机房',
- 'description' => '机房',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sz_vpc_domain_1',
- ],
- 'indexInfos' => [
- 'title' => '索引分片信息',
- 'description' => '索引信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引信息',
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'title' => '索引名称',
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_api',
- ],
- 'partitionCount' => [
- 'title' => '分片数',
- 'description' => '索引对应的分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3',
- ],
- 'parallelNum' => [
- 'title' => '并发数,默认是 1',
- 'description' => '并发数,默认是 1',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'dataSourceName',
+ 'in' => 'path',
+ 'schema' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_test_api'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '[]',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => '索引信息', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": []\\n}","type":"json"}]',
- 'title' => '修改索引分区信息',
+ 'title' => '删除数据源',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/index-partition'."\n"
- .'```',
- 'requestParamsDescription' => '### 示例'."\n"
- .'`PUT /openapi/ha3/instances/{instanceId}/index-partition`'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "dataSourceName":"ha-cn-pl32n3bi904_d",'."\n"
- .' "domainName":"pre_domain_1",'."\n"
- .' "generation":"1633293829",'."\n"
- .' "indexInfos":['."\n"
- .' {'."\n"
- .' "indexName":"atest2",'."\n"
- .' "partitionCount":2'."\n"
- .' }'."\n"
- .' ]'."\n"
- .'}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}'."\n"
.'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
- ."\n"
- .'```'."\n"
+ 'requestParamsDescription' => '## 请求示例'."\n"
+ .'`DELETE /openapi/ha3/instances/ha3_instances_id/data-sources/my_dataSource`'."\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ .'### 正确返回'."\n"
+ .'```json'."\n"
.'{'."\n"
.' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": []'."\n"
+ .' "result": []'."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
- ],
- 'GetIndex' => [
- 'summary' => '查看索引表版本详情。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '104685',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchJB31XH',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDataSource'],
],
],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'indexName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4FB0325E-8C37-5525-96AC-0333523170A3',
- ],
- 'result' => [
- 'title' => 'IndexConfig',
- 'description' => '索引信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '配置名称',
- 'description' => '索引名称',
- 'type' => 'string',
- 'example' => 'test_api',
- ],
- 'versions' => [
- 'title' => '版本列表',
- 'description' => '版本信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据版本信息',
- 'type' => 'object',
- 'properties' => [
- 'desc' => [
- 'title' => '描述',
- 'description' => '描述信息',
- 'type' => 'string',
- 'example' => 'Index Note',
- ],
- 'files' => [
- 'title' => '文件名列表',
- 'description' => '所在位置',
- 'type' => 'array',
- 'items' => [
- 'description' => '版本详情',
- 'type' => 'object',
- 'properties' => [
- 'fullPathName' => [
- 'description' => '完整路径',
- 'type' => 'string',
- 'example' => '/qrs.json'."\n",
- ],
- 'isDir' => [
- 'description' => '是文件夹',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'isTemplate' => [
- 'description' => '是模板',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'name' => [
- 'description' => '文件名称',
- 'type' => 'string',
- 'example' => 'qrs.json',
- ],
- ],
- ],
- ],
- 'name' => [
- 'title' => '版本名',
- 'description' => '版本名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'status' => [
- 'title' => 'drafting、used、unused (drafting: 草稿, used: 线上使用, unused:未使用, trash: 删除中)',
- 'description' => '状态 '."\n"
- ."\n"
- .'- NEW:创建。'."\n"
- .'- PUBLISH:正常。'."\n"
- .'- IN_USE:使用中。'."\n"
- .'- NOT_USE:未使用。'."\n"
- .'- STOP_USE:停止使用中。'."\n"
- .'- RESTORE_USE:恢复使用中。'."\n"
- .'- FAIL:失败。',
- 'type' => 'string',
- 'example' => 'PUBLISH',
- ],
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1718846192',
- ],
- 'versionId' => [
- 'title' => '版本id (edit版本为null)',
- 'description' => '版本ID',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'dataSource' => [
- 'title' => '数据源',
- 'description' => '数据源',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api'."\n",
- ],
- 'domain' => [
- 'title' => '数据源的部署名',
- 'description' => '数据源的部署名',
- 'type' => 'string',
- 'example' => 'sz_vpc_domain_1',
- ],
- 'indexStatus' => [
- 'title' => '表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE,RESTORE_USE)',
- 'description' => '状态 '."\n"
- ."\n"
- .'- NEW:创建。'."\n"
- .'- PUBLISH:正常。'."\n"
- .'- IN_USE:使用中。'."\n"
- .'- NOT_USE:未使用。'."\n"
- .'- STOP_USE:停止使用中。'."\n"
- .'- RESTORE_USE:恢复使用中。'."\n"
- .'- FAIL:失败。',
- 'type' => 'string',
- 'example' => 'IN_USE',
- ],
- 'content' => [
- 'title' => '文件内容',
- 'description' => '文件内容',
- 'type' => 'string',
- 'example' => '{"summarys":{"parameter":{"file_compressor":"zstd"},"summary_fields":["id"]},"file_compress":[{"name":"file_compressor","type":"zstd"},{"name":"no_compressor","type":""}],"indexs":[{"index_fields":"name","index_name":"ids","index_type":"STRING"},{"has_primary_key_attribute":true,"index_fields":"id","is_primary_key_sorted":false,"index_name":"id","index_type":"PRIMARYKEY64"}],"attributes":[{"file_compress":"no_compressor","field_name":"id"}],"fields":[{"user_defined_param":{},"compress_type":"uniq","field_type":"STRING","field_name":"id"},{"compress_type":"uniq","field_type":"STRING","field_name":"name"}],"table_name":"api"}',
- ],
- 'partition' => [
- 'title' => '数据分片',
- 'description' => '数据分片',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'fullVersion' => [
- 'title' => '数据版本',
- 'description' => '数据版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1688523414',
- ],
- 'fullUpdateTime' => [
- 'title' => '全量切换时间',
- 'description' => '全量切换时间',
- 'type' => 'string',
- 'example' => '2024-06-20 08:52:54',
- ],
- 'incUpdateTime' => [
- 'title' => '增量更新时间',
- 'description' => '增量更新时间',
- 'type' => 'string',
- 'example' => '2024-06-20 08:52:54',
- ],
- 'indexSize' => [
- 'title' => '索引大小',
- 'description' => '索引大小',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '4689',
- ],
- 'description' => [
- 'title' => '备注',
- 'description' => '备注',
- 'type' => 'string',
- 'example' => 'note',
- ],
- 'dataSourceInfo' => [
- 'title' => '数据源相关信息',
- 'description' => '数据源相关信息',
- 'type' => 'object',
- 'properties' => [
- 'processPartitionCount' => [
- 'title' => '数据更新资源数',
- 'description' => '数据更新资源数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'name' => [
- 'title' => '数据源名',
- 'description' => '数据源名',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api'."\n",
- ],
- 'type' => [
- 'title' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'type' => 'string',
- 'example' => 'odps',
- ],
- 'domain' => [
- 'title' => '离线部署',
- 'description' => '离线部署',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_1',
- ],
- 'config' => [
- 'title' => 'odps 数据源配置',
- 'description' => 'odps 数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => 'odps相关',
- 'type' => 'string',
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源ak secret',
- 'type' => 'string',
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'example' => 'tisplus_dev',
- ],
- 'partition' => [
- 'description' => 'ODPS Partition。例如:ds=20180102'."\n",
- 'type' => 'string',
- 'example' => 'ds=20220713',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'saro、odps相关',
- 'type' => 'string',
- 'example' => 'dump_odps_demo',
- ],
- 'namespace' => [
- 'title' => 'saro相关',
- 'description' => 'saro相关',
- 'type' => 'string',
- 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo',
- ],
- 'path' => [
- 'title' => 'hdfs相关',
- 'description' => 'hdfs相关',
- 'type' => 'string',
- 'example' => 'http://test_opensearch/sift_oss_test.data',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss数据源相关',
- 'type' => 'string',
- 'example' => '/test_opensearch/sift_oss_test.data',
- ],
- 'bucket' => [
- 'description' => 'Bucket名称。',
- 'type' => 'string',
- 'example' => 'ha3test-oss',
- ],
- 'format' => [
- 'description' => 'oss的文件格式类型'."\n"
- .'- ha3'."\n"
- .'- json',
- 'type' => 'string',
- 'example' => 'ha3',
- ],
- 'catalog' => [
- 'description' => 'dlf数据源-数据目录ID',
- 'type' => 'string',
- 'example' => 'clg-paimon-21cc136237a6457f8618f5f82d116d7e',
- ],
- 'database' => [
- 'description' => 'dlf数据源-数据库',
- 'type' => 'string',
- 'example' => 'dlf_test',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'example' => 'test_tag',
- ],
- ],
- ],
- 'saroConfig' => [
- 'title' => 'saro数据源配置',
- 'description' => 'saro数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'namespace' => [
- 'description' => 'saro数据源的namespace',
- 'type' => 'string',
- 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo',
- ],
- 'tableName' => [
- 'description' => 'saro数据表名称',
- 'type' => 'string',
- 'example' => 'llm',
- ],
- ],
- ],
- 'autoBuildIndex' => [
- 'title' => '是否开启自动全量',
- 'description' => '是否开启自动全量',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'processParallelNum' => [
- 'description' => '全量process并发数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- ],
- ],
- 'createTime' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'updateTime' => [
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'cluster' => [
- 'description' => '集群信息',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'buildParallelNum' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- 'description' => '全量并发数',
- ],
- 'mergeParallelNum' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'description' => '全量merge并发数',
- 'example' => '2',
- ],
- ],
- 'description' => '集群信息',
- ],
- ],
- 'config' => [
- 'description' => '配置信息',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'type' => 'string',
- 'example' => "\n"
- .'ha-cn-pl32rf0****_offline_adv_v1',
- 'description' => '配置名称',
- ],
- 'updateTime' => [
- 'type' => 'string',
- 'description' => '更新时间',
- 'example' => '1716258634000',
- ],
- 'desc' => [
- 'type' => 'string',
- 'description' => '高级配置描述信息',
- 'example' => 'Note Information',
- ],
- ],
- 'description' => '子配置项信息',
- ],
- 'description' => '配置信息',
- ],
- ],
- 'configWhenBuild' => [
- 'description' => '下次生效的配置',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'type' => 'string',
- 'description' => '配置名称',
- 'example' => "\n"
- .'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'updateTime' => [
- 'type' => 'string',
- 'example' => '1716258634000',
- 'description' => '更新时间',
- ],
- 'desc' => [
- 'type' => 'string',
- 'description' => '高级配置描述信息',
- 'example' => 'Note Information',
- ],
- ],
- 'description' => '下次生效的子配置',
- ],
- 'description' => '下次生效的配置',
- ],
- ],
- 'extend' => [
- 'description' => '扩展信息',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'description' => '扩展信息',
- 'example' => 'Extended Information',
- ],
- 'description' => '扩展信息',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- '5xx' => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'type' => 'string',
- ],
- 'message' => [
- 'type' => 'string',
- ],
- 'code' => [
- 'type' => 'string',
- ],
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteDataSource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4FB0325E-8C37-5525-96AC-0333523170A3\\",\\n \\"result\\": {\\n \\"name\\": \\"test_api\\",\\n \\"versions\\": [\\n {\\n \\"desc\\": \\"Index Note\\",\\n \\"files\\": [\\n {\\n \\"fullPathName\\": \\"/qrs.json\\\\n\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true,\\n \\"name\\": \\"qrs.json\\"\\n }\\n ],\\n \\"name\\": \\"test\\",\\n \\"status\\": \\"PUBLISH\\",\\n \\"updateTime\\": 1718846192,\\n \\"versionId\\": 1\\n }\\n ],\\n \\"dataSource\\": \\"ha-cn-pl32rf0****_test_api\\\\n\\",\\n \\"domain\\": \\"sz_vpc_domain_1\\",\\n \\"indexStatus\\": \\"IN_USE\\",\\n \\"content\\": \\"{\\\\\\"summarys\\\\\\":{\\\\\\"parameter\\\\\\":{\\\\\\"file_compressor\\\\\\":\\\\\\"zstd\\\\\\"},\\\\\\"summary_fields\\\\\\":[\\\\\\"id\\\\\\"]},\\\\\\"file_compress\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"file_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"zstd\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"\\\\\\"}],\\\\\\"indexs\\\\\\":[{\\\\\\"index_fields\\\\\\":\\\\\\"name\\\\\\",\\\\\\"index_name\\\\\\":\\\\\\"ids\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"STRING\\\\\\"},{\\\\\\"has_primary_key_attribute\\\\\\":true,\\\\\\"index_fields\\\\\\":\\\\\\"id\\\\\\",\\\\\\"is_primary_key_sorted\\\\\\":false,\\\\\\"index_name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"PRIMARYKEY64\\\\\\"}],\\\\\\"attributes\\\\\\":[{\\\\\\"file_compress\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"}],\\\\\\"fields\\\\\\":[{\\\\\\"user_defined_param\\\\\\":{},\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"},{\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"name\\\\\\"}],\\\\\\"table_name\\\\\\":\\\\\\"api\\\\\\"}\\",\\n \\"partition\\": 2,\\n \\"fullVersion\\": 1688523414,\\n \\"fullUpdateTime\\": \\"2024-06-20 08:52:54\\",\\n \\"incUpdateTime\\": \\"2024-06-20 08:52:54\\",\\n \\"indexSize\\": 4689,\\n \\"description\\": \\"note\\",\\n \\"dataSourceInfo\\": {\\n \\"processPartitionCount\\": 2,\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\\\n\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"L***p\\",\\n \\"accessSecret\\": \\"5**9a6\\",\\n \\"project\\": \\"tisplus_dev\\",\\n \\"partition\\": \\"ds=20220713\\",\\n \\"table\\": \\"dump_odps_demo\\",\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"path\\": \\"http://test_opensearch/sift_oss_test.data\\",\\n \\"ossPath\\": \\"/test_opensearch/sift_oss_test.data\\",\\n \\"bucket\\": \\"ha3test-oss\\",\\n \\"format\\": \\"ha3\\",\\n \\"catalog\\": \\"clg-paimon-21cc136237a6457f8618f5f82d116d7e\\",\\n \\"database\\": \\"dlf_test\\",\\n \\"tag\\": \\"test_tag\\"\\n },\\n \\"saroConfig\\": {\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"tableName\\": \\"llm\\"\\n },\\n \\"autoBuildIndex\\": true,\\n \\"processParallelNum\\": 2\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"cluster\\": {\\n \\"key\\": {\\n \\"buildParallelNum\\": 2,\\n \\"mergeParallelNum\\": 2\\n }\\n },\\n \\"config\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"\\\\nha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"updateTime\\": \\"1716258634000\\",\\n \\"desc\\": \\"Note Information\\"\\n }\\n }\\n },\\n \\"configWhenBuild\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"\\\\nha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"updateTime\\": \\"1716258634000\\",\\n \\"desc\\": \\"Note Information\\"\\n }\\n }\\n },\\n \\"extend\\": {\\n \\"key\\": [\\n \\"Extended Information\\"\\n ]\\n }\\n }\\n}","type":"json"}]',
- 'title' => '查看索引表详情',
- 'description' => '## 方法'."\n"
- ."\n"
- .'```'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'## URI'."\n"
- ."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}'."\n"
- .'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- ."\n"
- .'```'."\n"
- .'GET /openapi/ha3/instances/ose-test1/indexes/index1?dataSource=xxx'."\n"
- .'```',
- 'responseParamsDescription' => '## 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": {'."\n"
- .' "name": "index-name",'."\n"
- .' "dataSource": "ha-cn-xxx-index-name",'."\n"
- .' "domain": "test", // 数据源的部署名称'."\n"
- .' "partition": 2,'."\n"
- .' "indexStatus": "IN_USE",'."\n"
- .' "content": "{\\n\\t\\"summarys\\":{\\n\\t\\t\\"parameter\\":{\\n\\t\\t\\t\\"file_compressor\\":\\"zstd\\"\\n\\t\\t},\\n\\t\\t\\"summary_fields\\":[\\n\\t\\t\\t\\"id\\"\\n\\t\\t]\\n\\t},\\n\\t\\"file_compress\\":[\\n\\t\\t{\\n\\t\\t\\t\\"name\\":\\"file_compressor\\",\\n\\t\\t\\t\\"type\\":\\"zstd\\"\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\t\\"name\\":\\"no_compressor\\",\\n\\t\\t\\t\\"type\\":\\"\\"\\n\\t\\t}\\n\\t],\\n\\t\\"indexs\\":[\\n\\t\\t{\\n\\t\\t\\t\\"index_fields\\":\\"name\\",\\n\\t\\t\\t\\"index_name\\":\\"ids\\",\\n\\t\\t\\t\\"index_type\\":\\"STRING\\"\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\t\\"has_primary_key_attribute\\":true,\\n\\t\\t\\t\\"index_fields\\":\\"id\\",\\n\\t\\t\\t\\"is_primary_key_sorted\\":false,\\n\\t\\t\\t\\"index_name\\":\\"id\\",\\n\\t\\t\\t\\"index_type\\":\\"PRIMARYKEY64\\"\\n\\t\\t}\\n\\t],\\n\\t\\"attributes\\":[\\n\\t\\t{\\n\\t\\t\\t\\"file_compress\\":\\"no_compressor\\",\\n\\t\\t\\t\\"field_name\\":\\"id\\"\\n\\t\\t}\\n\\t],\\n\\t\\"fields\\":[\\n\\t\\t{\\n\\t\\t\\t\\"user_defined_param\\":{},\\n\\t\\t\\t\\"compress_type\\":\\"uniq\\",\\n\\t\\t\\t\\"field_type\\":\\"STRING\\",\\n\\t\\t\\t\\"field_name\\":\\"id\\"\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\t\\"compress_type\\":\\"uniq\\",\\n\\t\\t\\t\\"field_type\\":\\"STRING\\",\\n\\t\\t\\t\\"field_name\\":\\"name\\"\\n\\t\\t}\\n\\t],\\n\\t\\"table_name\\":\\"api\\"\\n}",'."\n"
- .' "extend": {'."\n"
- .' "vector": ['."\n"
- .' "vector"'."\n"
- .' ],'."\n"
- .' "embeding": ['."\n"
- .' "id"'."\n"
- .' ],'."\n"
- .' "description": ['."\n"
- .' "{\\"feild2\\":\\"备注2\\"}",'."\n"
- .' "{\\"feild3\\":\\"备注3\\"}"'."\n"
- .' ]'."\n"
- .' },'."\n"
- .' "cluster": {'."\n"
- .' "build_parallel_num": "2",'."\n"
- .' "merge_parallel_num": "2"'."\n"
- .' },'."\n"
- .' "dataSourceInfo": {'."\n"
- .' "type": "odps",'."\n"
- .' "dataSource": "ha-cn-xxx-index-name",'."\n"
- .' "processPartitionCount": 2,'."\n"
- .' "domain": "test",'."\n"
- .' "autoBuildIndex": true,'."\n"
- .' "config": {'."\n"
- .' "project": "tisplus_dev",'."\n"
- .' "table": "tisplus_one_key_build_station_template_table_test",'."\n"
- .' "partition": "ds=12345",'."\n"
- .' "accesskeyId": "root",'."\n"
- .' "accesskeySecret": "root123",'."\n"
- .' "endpoint": "http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api"'."\n"
- .' },'."\n"
- .' "saroConfig": {'."\n"
- .' "namespace": "TEST_dump_demo_sj_na61hunbu2_share_holo",'."\n"
- .' "tableName": "dump_odps_demo"'."\n"
- .' },'."\n"
- .' "processParallelNum": 2,'."\n"
- .' "swiftConfig":{'."\n"
- .' "topic":"ha-cn-xxx-index-name"'."\n"
- .' }'."\n"
- .' },'."\n"
- .' "config": {'."\n"
- .' "OFFLINE_DICT": {'."\n"
- .' "name": "ha-cn-finxmo71065_offline_dict_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_TABLE": {'."\n"
- .' "name": "ha-cn-finxmo71065_table_ha-cn-finxmo71065_test_saro_v2",'."\n"
- .' "updateTime": 1709261682000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_COMMON": {'."\n"
- .' "name": "ha-cn-finxmo71065_offline_adv_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_PLUGIN": {'."\n"
- .' "name": "ha-cn-finxmo71065_offline_plugin_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_INDEX": {'."\n"
- .' "name": "ha-cn-finxmo71065@ha-cn-finxmo71065_test_saro@test_saro@index_config_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' }'."\n"
- .' },'."\n"
- .' "configWhenBuild": {'."\n"
- .' "OFFLINE_DICT": {'."\n"
- .' "name": "ha-cn-finxmo71065_offline_dict_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_TABLE": {'."\n"
- .' "name": "ha-cn-finxmo71065_table_ha-cn-finxmo71065_test_saro_v2",'."\n"
- .' "updateTime": 1709261682000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_COMMON": {'."\n"
- .' "name": "ha-cn-finxmo71065_offline_adv_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_PLUGIN": {'."\n"
- .' "name": "ha-cn-finxmo71065_offline_plugin_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' },'."\n"
- .' "OFFLINE_INDEX": {'."\n"
- .' "name": "ha-cn-finxmo71065@ha-cn-finxmo71065_test_saro@test_saro@index_config_v2",'."\n"
- .' "updateTime": 1709259817000,'."\n"
- .' "desc": "描述"'."\n"
- .' }'."\n"
- .' }'."\n"
- .' }'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
- 'GetIndexVersion' => [
- 'summary' => '获取集群可回滚的索引信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteFolder' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '138810',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'clusterName',
+ 'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc_hz_domain_1',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
+ ],
+ [
+ 'name' => 'folderId',
+ 'in' => 'path',
+ 'schema' => ['description' => '文件夹id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '-1'],
],
],
'responses' => [
@@ -6127,128 +2600,64 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
'result' => [
- 'title' => 'ClusterIndexVersion',
- 'description' => '集群列表',
+ 'title' => 'Response<Map<String, String>>',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'cluster' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- 'indexVersions' => [
- 'description' => '索引版本列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引版本信息',
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'description' => '索引表名称',
- 'type' => 'string',
- 'example' => 'test_api',
- ],
- 'versions' => [
- 'description' => '索引版本',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1630353700',
- ],
- ],
- 'buildDeployId' => [
- 'description' => '离线部署id',
- 'type' => 'string',
- 'example' => '2648',
- ],
- 'currentVersion' => [
- 'description' => '当前在线版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
+ 'result' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '删除结果'],
],
+ 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"cluster\\": \\"hz_pre_vpc_domain_1\\",\\n \\"indexVersions\\": [\\n {\\n \\"indexName\\": \\"test_api\\",\\n \\"versions\\": [\\n 1630353700\\n ],\\n \\"buildDeployId\\": \\"2648\\",\\n \\"currentVersion\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '获取集群可回滚的索引信息',
- 'description' => '## 方法'."\n"
- ."\n"
- .'```'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'## URI'."\n"
+ 'title' => '删除目录',
+ 'summary' => '删除目录。',
+ 'description' => '### 方法'."\n"
."\n"
+ .'```java'."\n"
+ .'DELETE'."\n"
.'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version'."\n"
- .'```'."\n",
- 'requestParamsDescription' => '## 示例'."\n"
."\n"
- .'请求示例'."\n"
+ .'### URI'."\n"
."\n"
- .'```'."\n"
- .'GET /openapi/ha3/instances/ha3_instance_id_1/clusters/cluster1/index-version'."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}'."\n"
.'```',
- 'responseParamsDescription' => '## 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": {'."\n"
- .' "cluster": "ea119cloud",'."\n"
- .' "indexVersions": ['."\n"
- .' {'."\n"
- .' "versions": ['."\n"
- .' 1630527077,'."\n"
- .' 1630440554'."\n"
- .' ],'."\n"
- .' "currentVersion":1630527077,'."\n"
- .' "indexName": "ihome_lapp_content_filter_param_index",'."\n"
- .' "buildDeployId": "2837"'."\n"
- .' },'."\n"
- .' {'."\n"
- .' "versions": ['."\n"
- .' 1630353700'."\n"
- .' ],'."\n"
- .' "currentVersion":1630353700, '."\n"
- .' "indexName": "ihome_lapp_case_tab_filter",'."\n"
- .' "buildDeployId": "2829"'."\n"
- .' }'."\n"
- .' ]'."\n"
- .' }'."\n"
- .'}'."\n"
- .'```'."\n"
- ."\n",
- ],
- 'GetFile' => [
- 'summary' => '查看索引表版本详情。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFolder'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteFolder',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Folder', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {\\n \\"result\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteIndex' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6256,57 +2665,27 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '104689',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch8WJIRU',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'indexName',
'in' => 'path',
- 'schema' => [
- 'title' => '索引名称',
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
+ 'schema' => ['title' => '索引名称', 'description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
[
- 'name' => 'versionName',
- 'in' => 'path',
- 'schema' => [
- 'title' => '版本名称',
- 'description' => '版本名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@bj_vpc_domain_1@point_cloud_3d@index_config_edit',
- ],
+ 'name' => 'dataSource',
+ 'in' => 'query',
+ 'schema' => ['title' => '数据源', 'description' => '数据源', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_ test_api'],
],
[
- 'name' => 'fileName',
+ 'name' => 'deleteDataSource',
'in' => 'query',
- 'schema' => [
- 'title' => '文件全路径名称',
- 'description' => '文件全路径名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/schemas/automobile_vector_schema.json',
- ],
+ 'schema' => ['description' => '是否删除数据源', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -6316,123 +2695,74 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
- 'result' => [
- 'title' => '索引信息',
- 'description' => '索引信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '文件名称',
- 'description' => '文件名称',
- 'type' => 'string',
- 'example' => 'testFile',
- ],
- 'fullPathName' => [
- 'title' => '全路径名称',
- 'description' => '全路径名称',
- 'type' => 'string',
- 'example' => '/schema.json',
- ],
- 'dataSource' => [
- 'title' => '数据源',
- 'description' => '数据源',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'partition' => [
- 'title' => '分片数',
- 'description' => '分片数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- ],
- 'isDir' => [
- 'title' => '是否为目录',
- 'description' => '是否为目录',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'content' => [
- 'title' => '内容',
- 'description' => '内容',
- 'type' => 'string',
- 'example' => '{"summarys":{"parameter":{"file_compressor":"zstd"},"summary_fields":["id"]},"file_compress":[{"name":"file_compressor","type":"zstd"},{"name":"no_compressor","type":""}],"indexs":[{"index_fields":"name","index_name":"ids","index_type":"STRING"},{"has_primary_key_attribute":true,"index_fields":"id","is_primary_key_sorted":false,"index_name":"id","index_type":"PRIMARYKEY64"}],"attributes":[{"file_compress":"no_compressor","field_name":"id"}],"fields":[{"user_defined_param":{},"compress_type":"uniq","field_type":"STRING","field_name":"id"},{"compress_type":"uniq","field_type":"STRING","field_name":"name"}],"table_name":"api"}',
- ],
- 'extend' => [
- 'description' => '扩展信息',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'description' => '扩展信息',
- ],
- 'description' => '扩展信息',
- ],
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
+ 'result' => ['title' => '索引信息', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"name\\": \\"testFile\\",\\n \\"fullPathName\\": \\"/schema.json\\",\\n \\"dataSource\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"partition\\": 2,\\n \\"isDir\\": true,\\n \\"content\\": \\"{\\\\\\"summarys\\\\\\":{\\\\\\"parameter\\\\\\":{\\\\\\"file_compressor\\\\\\":\\\\\\"zstd\\\\\\"},\\\\\\"summary_fields\\\\\\":[\\\\\\"id\\\\\\"]},\\\\\\"file_compress\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"file_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"zstd\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"\\\\\\"}],\\\\\\"indexs\\\\\\":[{\\\\\\"index_fields\\\\\\":\\\\\\"name\\\\\\",\\\\\\"index_name\\\\\\":\\\\\\"ids\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"STRING\\\\\\"},{\\\\\\"has_primary_key_attribute\\\\\\":true,\\\\\\"index_fields\\\\\\":\\\\\\"id\\\\\\",\\\\\\"is_primary_key_sorted\\\\\\":false,\\\\\\"index_name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"PRIMARYKEY64\\\\\\"}],\\\\\\"attributes\\\\\\":[{\\\\\\"file_compress\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"}],\\\\\\"fields\\\\\\":[{\\\\\\"user_defined_param\\\\\\":{},\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"},{\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"name\\\\\\"}],\\\\\\"table_name\\\\\\":\\\\\\"api\\\\\\"}\\",\\n \\"extend\\": {\\n \\"key\\": [\\n \\"\\"\\n ]\\n }\\n }\\n}","type":"json"}]',
- 'title' => '查看索引表版本详情',
+ 'title' => '删除索引',
+ 'summary' => '删除索引。',
'description' => '## 方法'."\n"
."\n"
.'```'."\n"
- .'GET'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'## URI'."\n"
."\n"
.'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}'."\n"
.'```',
'requestParamsDescription' => "\n"
- ."\n"
.'## 请求示例'."\n"
."\n"
+ .''."\n"
+ ."\n"
.'```'."\n"
- .'GET /openapi/ha3/instances/ose-test1/indexes/index1/versions/version1?fileName=/root/test.txt'."\n"
- .'```'."\n"
- ."\n\n"
- ."\n\n",
+ .'DELETE /openapi/ha3/instances/ose-test1/indexes/my_index?dataSource=xxx'."\n"
+ .'```'."\n",
'responseParamsDescription' => '## 返回示例'."\n"
."\n"
.'正确返回'."\n"
+ .''."\n"
."\n"
.'```'."\n"
.'{'."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": {'."\n"
- .' "name":"version1", // 文件名'."\n"
- .' "fullPathName": "/root/version1", // 全路径名称'."\n"
- .' "dataSource": "odps1", // 数据源'."\n"
- .' "partition": 1, // 分片'."\n"
- .' "isDir": false, // 是否为目录'."\n"
- .' "content": ""'."\n"
- .' }'."\n"
+ .''."\n"
+ .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
+ .''."\n"
+ .' "result": []'."\n"
+ .''."\n"
.'}'."\n"
- .'```'."\n",
- ],
- 'ListIndexes' => [
- 'summary' => '获取索引列表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes',
- 'methods' => [
- 'get',
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndex'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DeleteIndexVersion' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6440,422 +2770,59 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '104683',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchA944AC',
- 'FEATUREopensearchS8X6T8',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-2r42ost****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'newMode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否为新版本控制台页面。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- [
- 'name' => 'catalog',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'dlf数据源-数据目录ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'clg-paimon-765e9e2d43ab4fccbf095853a661eafc',
- ],
- ],
- [
- 'name' => 'database',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'dlf数据源-数据库',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dlf_test',
- ],
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['title' => '索引名称', 'description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
[
- 'name' => 'table',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'dlf数据源数据表',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rag',
- ],
+ 'name' => 'versionName',
+ 'in' => 'path',
+ 'schema' => ['title' => '版本名称', 'description' => '版本名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_shenzhen_test_01@sz_vpc_domain_1@api_test@index_config_v1'],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '返回结果。',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4FB0325E-8C37-5525-96AC-0333523170A3',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '索引详情列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引详情列表。',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '配置名称',
- 'description' => '索引名称。',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'versions' => [
- 'title' => '版本列表',
- 'description' => '版本列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引版本信息。',
- 'type' => 'object',
- 'properties' => [
- 'desc' => [
- 'title' => '描述',
- 'description' => '描述。',
- 'type' => 'string',
- 'example' => 'Index Note',
- ],
- 'files' => [
- 'title' => '文件名列表',
- 'description' => '文件名列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '版本信息。',
- 'type' => 'object',
- 'properties' => [
- 'fullPathName' => [
- 'description' => '全文检索后的目录名。',
- 'type' => 'string',
- 'example' => '/qrs.json'."\n",
- ],
- 'isDir' => [
- 'description' => '是否存在目录。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'isTemplate' => [
- 'description' => '是否是模板。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'name' => [
- 'description' => '文件名称。',
- 'type' => 'string',
- 'example' => 'qrs.json'."\n",
- ],
- ],
- ],
- ],
- 'name' => [
- 'title' => '版本名',
- 'description' => '版本名。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'status' => [
- 'title' => 'drafting、used、unused (drafting: 草稿, used: 线上使用,unused: 未使用, trash: 删除中)',
- 'description' => '状态 '."\n"
- ."\n"
- .'- NEW:创建。'."\n"
- .'- PUBLISH:正常。'."\n"
- .'- IN_USE:使用中。'."\n"
- .'- NOT_USE:未使用。'."\n"
- .'- STOP_USE:停止使用中。'."\n"
- .'- RESTORE_USE:恢复使用中。'."\n"
- .'- FAIL:失败。',
- 'type' => 'string',
- 'example' => 'PUBLISH',
- ],
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-06-20 08:52:54',
- ],
- 'versionId' => [
- 'title' => '版本id (edit版本为null)',
- 'description' => '版本id (edit版本为null)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'dataSource' => [
- 'title' => '数据源',
- 'description' => '数据源',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'domain' => [
- 'title' => '数据源的部署名',
- 'description' => '数据源的部署名',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_1',
- ],
- 'indexStatus' => [
- 'title' => '表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE,RESTORE_USE)',
- 'description' => 'NEW, PUBLISH',
- 'type' => 'string',
- 'example' => 'PUBLISH',
- ],
- 'content' => [
- 'title' => '文件内容',
- 'description' => 'schema JSON',
- 'type' => 'string',
- 'example' => '{"summarys":{"parameter":{"file_compressor":"zstd"},"summary_fields":["id"]},"file_compress":[{"name":"file_compressor","type":"zstd"},{"name":"no_compressor","type":""}],"indexs":[{"index_fields":"name","index_name":"ids","index_type":"STRING"},{"has_primary_key_attribute":true,"index_fields":"id","is_primary_key_sorted":false,"index_name":"id","index_type":"PRIMARYKEY64"}],"attributes":[{"file_compress":"no_compressor","field_name":"id"}],"fields":[{"user_defined_param":{},"compress_type":"uniq","field_type":"STRING","field_name":"id"},{"compress_type":"uniq","field_type":"STRING","field_name":"name"}],"table_name":"api"}',
- ],
- 'partition' => [
- 'title' => '数据分片',
- 'description' => '数据分片',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'fullVersion' => [
- 'title' => '数据版本',
- 'description' => '全量版本 即:索引版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1688523414',
- ],
- 'fullUpdateTime' => [
- 'title' => '全量切换时间',
- 'description' => '全量切换时间',
- 'type' => 'string',
- 'example' => '2023-07-05 10:40:38',
- ],
- 'incUpdateTime' => [
- 'title' => '增量更新时间',
- 'description' => '增量更新时间',
- 'type' => 'string',
- 'example' => '2023-07-05 10:58:33',
- ],
- 'indexSize' => [
- 'title' => '索引大小',
- 'description' => '索引大小',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '4689',
- ],
- 'description' => [
- 'title' => '备注',
- 'description' => '备注',
- 'type' => 'string',
- 'example' => 'note',
- ],
- 'dataSourceInfo' => [
- 'title' => '数据源相关信息',
- 'description' => '数据源相关信息',
- 'type' => 'object',
- 'properties' => [
- 'processPartitionCount' => [
- 'title' => '数据更新资源数',
- 'description' => '数据更新资源数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'name' => [
- 'title' => '数据源名',
- 'description' => '数据源名',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'type' => [
- 'title' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'type' => 'string',
- 'example' => 'odps',
- ],
- 'domain' => [
- 'title' => '离线部署',
- 'description' => '离线部署',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_2',
- ],
- 'config' => [
- 'title' => 'odps 数据源配置',
- 'description' => 'odps 数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => 'odps相关',
- 'type' => 'string',
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源ak secret',
- 'type' => 'string',
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'example' => 'tisplus_dev',
- ],
- 'partition' => [
- 'description' => '数据分片',
- 'type' => 'string',
- 'example' => 'ds=20231220',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'saro、odps相关',
- 'type' => 'string',
- 'example' => 'dump_odps_demo',
- ],
- 'namespace' => [
- 'title' => 'saro相关',
- 'description' => 'saro相关',
- 'type' => 'string',
- 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo',
- ],
- 'path' => [
- 'title' => 'hdfs相关',
- 'description' => 'hdfs相关',
- 'type' => 'string',
- 'example' => 'http://test_opensearch/sift_oss_test.data',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss数据源相关',
- 'type' => 'string',
- 'example' => '/test_opensearch/sift_oss_test.data',
- ],
- 'bucket' => [
- 'description' => 'oss命名空间',
- 'type' => 'string',
- 'example' => 'ha3test-oss',
- ],
- 'format' => [
- 'description' => 'oss文件格式类型'."\n"
- .'- ha3'."\n"
- .'- json',
- 'type' => 'string',
- 'example' => 'ha3',
- ],
- 'catalog' => [
- 'description' => 'dlf数据源-数据目录ID',
- 'type' => 'string',
- 'example' => 'clg-paimon-21cc136237a6457f8618f5f82d116d7e',
- ],
- 'database' => [
- 'description' => 'dlf数据源-数据库名称',
- 'type' => 'string',
- 'example' => 'dlf_test',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'example' => 'test_tag',
- ],
- ],
- ],
- 'saroConfig' => [
- 'title' => 'saro数据源配置',
- 'description' => 'saro数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'namespace' => [
- 'description' => 'saro数据源的namespace',
- 'type' => 'string',
- 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo',
- ],
- 'tableName' => [
- 'description' => 'saro数据表名称',
- 'type' => 'string',
- 'example' => 'dump_odps_demo',
- ],
- ],
- ],
- 'autoBuildIndex' => [
- 'title' => '是否开启自动全量',
- 'description' => '是否开启自动全量',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- ],
- ],
- 'createTime' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'updateTime' => [
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
+ 'result' => ['title' => '结果', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4FB0325E-8C37-5525-96AC-0333523170A3\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"general\\",\\n \\"versions\\": [\\n {\\n \\"desc\\": \\"Index Note\\",\\n \\"files\\": [\\n {\\n \\"fullPathName\\": \\"/qrs.json\\\\n\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true,\\n \\"name\\": \\"qrs.json\\\\n\\"\\n }\\n ],\\n \\"name\\": \\"test\\",\\n \\"status\\": \\"PUBLISH\\",\\n \\"updateTime\\": 0,\\n \\"versionId\\": 1\\n }\\n ],\\n \\"dataSource\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"indexStatus\\": \\"PUBLISH\\",\\n \\"content\\": \\"{\\\\\\"summarys\\\\\\":{\\\\\\"parameter\\\\\\":{\\\\\\"file_compressor\\\\\\":\\\\\\"zstd\\\\\\"},\\\\\\"summary_fields\\\\\\":[\\\\\\"id\\\\\\"]},\\\\\\"file_compress\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"file_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"zstd\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"\\\\\\"}],\\\\\\"indexs\\\\\\":[{\\\\\\"index_fields\\\\\\":\\\\\\"name\\\\\\",\\\\\\"index_name\\\\\\":\\\\\\"ids\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"STRING\\\\\\"},{\\\\\\"has_primary_key_attribute\\\\\\":true,\\\\\\"index_fields\\\\\\":\\\\\\"id\\\\\\",\\\\\\"is_primary_key_sorted\\\\\\":false,\\\\\\"index_name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"PRIMARYKEY64\\\\\\"}],\\\\\\"attributes\\\\\\":[{\\\\\\"file_compress\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"}],\\\\\\"fields\\\\\\":[{\\\\\\"user_defined_param\\\\\\":{},\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"},{\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"name\\\\\\"}],\\\\\\"table_name\\\\\\":\\\\\\"api\\\\\\"}\\",\\n \\"partition\\": 2,\\n \\"fullVersion\\": 1688523414,\\n \\"fullUpdateTime\\": \\"2023-07-05 10:40:38\\",\\n \\"incUpdateTime\\": \\"2023-07-05 10:58:33\\",\\n \\"indexSize\\": 4689,\\n \\"description\\": \\"note\\",\\n \\"dataSourceInfo\\": {\\n \\"processPartitionCount\\": 2,\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_2\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"L***p\\",\\n \\"accessSecret\\": \\"5**9a6\\",\\n \\"project\\": \\"tisplus_dev\\",\\n \\"partition\\": \\"ds=20231220\\",\\n \\"table\\": \\"dump_odps_demo\\",\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"path\\": \\"http://test_opensearch/sift_oss_test.data\\",\\n \\"ossPath\\": \\"/test_opensearch/sift_oss_test.data\\",\\n \\"bucket\\": \\"ha3test-oss\\",\\n \\"format\\": \\"ha3\\",\\n \\"catalog\\": \\"clg-paimon-21cc136237a6457f8618f5f82d116d7e\\",\\n \\"database\\": \\"dlf_test\\",\\n \\"tag\\": \\"test_tag\\"\\n },\\n \\"saroConfig\\": {\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"tableName\\": \\"dump_odps_demo\\"\\n },\\n \\"autoBuildIndex\\": true\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取索引列表',
+ 'title' => '删除索引的版本',
+ 'summary' => '删除索引的版本。',
'description' => '## 方法'."\n"
."\n"
.'```'."\n"
- .'GET'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'## URI'."\n"
."\n"
.'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes'."\n"
- .'```',
- 'requestParamsDescription' => "\n"
- ."\n"
- .'## 请求示例'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}'."\n"
+ .'```'."\n"
+ ."\n\n",
+ 'requestParamsDescription' => '## 请求示例'."\n"
."\n"
.''."\n"
."\n"
.'```'."\n"
- .'GET /openapi/ha3/instances/ose-test1/indexes'."\n"
- .'```'."\n"
- ."\n\n"
- ."\n",
+ .'DELETE /openapi/ha3/instances/ose-test1/indexes/my_index/versions/version1'."\n"
+ .'```'."\n",
'responseParamsDescription' => '## 返回示例'."\n"
."\n"
.'正确返回'."\n"
@@ -6864,41 +2831,39 @@
.'```'."\n"
.'{'."\n"
.''."\n"
- .' "requestId": "38b079f1-7846-4226-8c90-3e2644b5c52b",'."\n"
- .''."\n"
- .' "result": ['."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "name": "index1",'."\n"
- .''."\n"
- .' "dataSource": "test_yyds_data1",'."\n"
- .''."\n"
- .' },'."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "name": "index1",'."\n"
- .''."\n"
- .' "dataSource": "test_yyds_data1",'."\n"
- .''."\n"
- .' }'."\n"
+ .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
.''."\n"
- .' ]'."\n"
+ .' "result": []'."\n"
.''."\n"
.'}'."\n"
- .'```',
- ],
- 'RecoverIndex' => [
- 'summary' => '从索引中恢复数据。',
- 'path' => '/openapi/ha3/instances/{instanceId}/recover-index',
- 'methods' => [
- 'post',
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndexVersion'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DeleteInstance' => [
+ 'summary' => '删除指定实例。',
+ 'path' => '/openapi/ha3/instances/{instanceId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6906,131 +2871,101 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '144320',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchVHEWK3',
- ],
- ],
+ 'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例 ID。', 'description' => '实例 ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'body参数。',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'dataSourceName' => [
- 'title' => '数据源名称',
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'indexName' => [
- 'title' => '索引名称',
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_api',
- ],
- 'generation' => [
- 'title' => 'generation',
- 'description' => '索引全量版本',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1653018575',
- ],
- 'buildDeployId' => [
- 'title' => 'buildDeployId',
- 'description' => '数据源离线部署id',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '277',
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
+ 'result' => ['description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
- 'required' => false,
],
],
- ],
- 'responses' => [
- 200 => [
+ 500 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['type' => 'string', 'description' => ''],
+ 'message' => ['type' => 'string', 'description' => ''],
+ 'code' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '从索引中恢复数据',
+ 'title' => '删除实例',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/recover-index'."\n"
+ .'/openapi/ha3/instances/{instanceId}'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
- .'`POST /openapi/ha3/instances/ha3_instances_id/recover-index`'."\n"
+ ."\n"
+ .'`DELETE /openapi/ha3/instances/ha3-cn-xxxxxx`',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ .'**正常返回示例**'."\n"
."\n"
.'```'."\n"
.'{'."\n"
- .' "generation": "1653018575",'."\n"
- .' "dataSourceName":"test_yyds_data1",'."\n"
- .' "buildDeployId":277,'."\n"
- .' "indexName":"index_1"'."\n"
+ .' "result": {},'."\n"
+ .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818"'."\n"
.'}'."\n"
- .'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
+ .'```'."\n"
+ ."\n"
+ .'**异常返回示例**'."\n"
."\n"
.'```'."\n"
+ ."\n"
.'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": []'."\n"
+ .' "requestId": "BD1EA715-DF6F-06C2-004C-C1FA0D3A9820",'."\n"
+ .' "httpCode": 404,'."\n"
+ .' "code": "App.NotFound",'."\n"
+ .' "message": "App not found"'."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
- ],
- 'CreateConfigDir' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteInstance'],
+ ],
],
- 'schemes' => [
- 'https',
- 'http',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DeleteModel' => [
+ 'summary' => '删除模型。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -7038,101 +2973,131 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例 ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'configName',
+ 'name' => 'modelName',
'in' => 'path',
- 'schema' => [
- 'description' => '配置名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit',
- ],
+ 'schema' => ['title' => '模型的名称', 'description' => '模型的名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '请求体参数',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'dirName' => [
- 'title' => '目录名称',
- 'description' => '目录名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/clusters',
- ],
- 'parentFullPath' => [
- 'title' => '上级文件路径',
- 'description' => '上级文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/',
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
],
- 'required' => false,
],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除模型',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\"\\n}","type":"json"}]',
+ ],
+ 'DeletePublicUrl' => [
+ 'summary' => '删除公网域名。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/public-url',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '171290',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG', 'FEATUREopensearchJB31XH'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '高级配置创建文件目录',
- 'summary' => '高级配置创建文件目录。',
+ 'title' => '删除公网域名',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir'."\n"
+ .'/openapi/ha3/instances/{instanceId}/public-url'."\n"
.'```',
- ],
- 'CreateConfigFile' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePublicUrl'],
+ ],
],
- 'schemes' => [
- 'https',
- 'http',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeletePublicUrl',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DeleteSqlInstance' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7140,60 +3105,26 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '139626',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
+ ],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'configName',
+ 'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'fileName' => [
- 'title' => '目录名称',
- 'description' => '目录名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/schemas/device_event_xt_schema.json',
- ],
- 'parentFullPath' => [
- 'title' => '上级文件路径',
- 'description' => '上级文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/',
- ],
- 'ossPath' => [
- 'title' => 'oss存储地址',
- 'description' => 'oss存储地址',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss://xxx/xxxx/xxx',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'sqlInstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
],
],
'responses' => [
@@ -7201,47 +3132,65 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
+ 'title' => 'Response<Map<String, String>>',
+ 'description' => '返回结果。',
'type' => 'object',
- 'example' => '{}',
+ 'properties' => [
+ 'result' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '返回结果。'],
+ ],
+ 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ ],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '高级配置创建文件',
- 'summary' => '高级配置创建文件。',
+ 'title' => '删除SQL实例',
+ 'summary' => '删除SQL实例。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}'."\n"
.'```',
- ],
- 'DeleteConfigDir' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir',
- 'methods' => [
- 'delete',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSqlInstance'],
+ ],
],
- 'schemes' => [
- 'https',
- 'http',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'SqlInstance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"result\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteTable' => [
+ 'summary' => '删除索引表。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7249,47 +3198,21 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '218775',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'configName',
+ 'name' => 'tableName',
'in' => 'path',
- 'schema' => [
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit',
- ],
- ],
- [
- 'name' => 'dirName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '目录名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/clusters',
- ],
- ],
- [
- 'name' => 'parentFullPath',
- 'in' => 'query',
- 'schema' => [
- 'description' => '上级目录的路径',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/',
- ],
+ 'schema' => ['description' => '索引表名称。', 'type' => 'string', 'required' => true, 'example' => 'test_summary'],
],
],
'responses' => [
@@ -7297,26 +3220,15 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除高级配置目录',
- 'summary' => '删除高级配置目录。',
+ 'title' => '删除索引表',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -7326,66 +3238,56 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
.'```',
- ],
- 'DeleteConfigFile' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
- 'http',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'DELETE /openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'DescribeRegions' => [
+ 'path' => '/openapi/ha3/regions',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '180430',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG', 'FEATUREopensearchJB31XH'],
+ ],
'parameters' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'configName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@test_api@index_config_edit',
- ],
- ],
- [
- 'name' => 'fileName',
+ 'name' => 'acceptLanguage',
'in' => 'query',
- 'schema' => [
- 'description' => '文件名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/schemas/automobile_vector_schema.json',
- ],
- ],
- [
- 'name' => 'parentFullPath',
- 'in' => 'query',
- 'schema' => [
- 'description' => '上级目录的路径',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/',
- ],
+ 'schema' => ['description' => '指定返回的语言,默认值为zh-cn。', 'type' => 'string', 'required' => false, 'example' => 'zh-cn'],
],
],
'responses' => [
@@ -7393,47 +3295,62 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
+ 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回详情结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'localName' => ['description' => '区域名称', 'type' => 'string', 'example' => 'China (Hangzhou)'],
+ 'endpoint' => ['description' => '接入点地址', 'type' => 'string', 'example' => 'endpoint'],
+ 'regionId' => ['description' => '区域ID'."\n"
+ .'cn-hangzhou 华东1(杭州)'."\n"
+ .'cn-shanghai 华东2(上海)'."\n"
+ .'cn-qingdao 华北1(青岛)'."\n"
+ .'cn-beijing 华北2(北京)'."\n"
+ .'cn-zhangjiakou 华北3(张家口)'."\n"
+ .'cn-shenzhen 华南1(深圳)'."\n"
+ .'ap-southeast-1 新加坡'."\n"
+ .'cn-internal 内网中心'."\n"
+ .'cn-zhangbei-in 内网张北'."\n"
+ .'us-west-1-in 内网美国'."\n"
+ .'cn-daily 日常'."\n"
+ .'cn-test 联调'."\n"
+ .'pre-hangzhou 预发杭州', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ ],
+ ],
],
],
+ 'description' => '',
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除高级配置文件',
- 'summary' => '删除高级配置文件。',
+ 'title' => '获取云产品区域列表',
+ 'summary' => '获取云产品区域列表。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'DELETE'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
+ .'/openapi/ha3/regions'."\n"
.'```',
- ],
- 'ModifyAdvanceConfig' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": [\\n {\\n \\"localName\\": \\"China (Hangzhou)\\",\\n \\"endpoint\\": \\"endpoint\\",\\n \\"regionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ExecuteSqlInstance' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/execution',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -7442,32 +3359,25 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '173716',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch8WJIRU',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '139115',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'configName',
+ 'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_offline_adv_edit',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
+ ],
+ [
+ 'name' => 'sqlInstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
],
[
'name' => 'body',
@@ -7477,89 +3387,77 @@
'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '配置名称',
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_offline_adv_edit'."\n",
- ],
- 'status' => [
- 'title' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)',
- 'description' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'used',
- ],
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
+ 'content' => ['description' => 'sql内容', 'type' => 'string', 'required' => true, 'example' => 'select * from test'],
+ 'kvpair' => [
+ 'description' => 'kv结构体',
+ 'type' => 'object',
'required' => false,
- 'example' => '2024-02-27T07:50:55Z',
+ 'additionalProperties' => ['type' => 'any', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}', 'description' => 'kv结构体'],
],
- 'desc' => [
- 'title' => '高级配置描述信息',
- 'description' => '高级配置描述信息',
- 'type' => 'string',
+ 'dynamicParam' => [
+ 'description' => '动态参数',
+ 'type' => 'object',
'required' => false,
- 'example' => 'Custom Configuration',
+ 'additionalProperties' => ['type' => 'any', 'description' => '动态扩展参数', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}'],
],
- 'files' => [
- 'title' => '文件名列表',
- 'description' => '文件名列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '文件信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'general',
- ],
- 'fullPathName' => [
- 'title' => '全路径名称',
- 'description' => '全路径名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/cluster.json',
- ],
- 'isDir' => [
- 'title' => '是否是目录',
- 'description' => '是否是目录',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'isTemplate' => [
- 'title' => '是否是模板',
- 'description' => '是否是模板',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- 'required' => false,
- ],
+ 'staticParam' => [
+ 'description' => '静态参数',
+ 'type' => 'object',
'required' => false,
- ],
- 'content' => [
- 'title' => '配置内容 http,git 请求时不为空',
- 'description' => '配置内容 http,git 请求时不为空',
- 'type' => 'string',
+ 'additionalProperties' => ['type' => 'any', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}', 'description' => '静态参数'],
+ ],
+ 'domain' => ['description' => '数据源机房', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_1'],
+ 'params' => [
+ 'description' => 'sql执行参数',
+ 'type' => 'object',
'required' => false,
- 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}',
+ 'additionalProperties' => ['type' => 'any', 'description' => 'sql执行参数', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}'],
],
- 'contentType' => [
- 'title' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)',
- 'description' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)',
- 'type' => 'string',
+ 'combineParam' => [
+ 'description' => '组合参数',
+ 'type' => 'object',
'required' => false,
- 'example' => 'FILE',
+ 'additionalProperties' => ['type' => 'any', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}', 'description' => '组合参数'],
],
],
'required' => false,
@@ -7571,594 +3469,159 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
'result' => [
- 'title' => 'Map',
+ 'title' => 'NodeVO',
'description' => '返回结果。',
'type' => 'object',
- 'example' => '{}',
+ 'properties' => [
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'],
+ 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '1719221186114'],
+ 'gmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => '1719220182844'],
+ 'name' => ['description' => '名称', 'type' => 'string', 'example' => 'test'],
+ 'parent' => ['description' => '父任务id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'instance'],
+ 'instanceId' => ['description' => '实例id。', 'type' => 'integer', 'format' => 'int64', 'example' => 'ha-cn-pl32rf0****'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改http、git类型的文件内容',
- 'summary' => '修改http、git类型的文件内容。',
+ 'title' => '执行SQL实例',
+ 'summary' => '执行SQL实例。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/execution'."\n"
.'```',
- ],
- 'DeleteAdvanceConfig' => [
- 'summary' => '删除高级配置的详情。',
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExecuteSqlInstance'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'configName',
- 'in' => 'path',
- 'schema' => [
- 'title' => '配置名称',
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
- 'result' => [
- 'title' => '结果',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:ExecuteSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除高级配置的详情',
- 'description' => '## 方法'."\n"
- ."\n"
- .'```'."\n"
- .'DELETE'."\n"
- .'```'."\n"
- ."\n"
- .'## URI'."\n"
- ."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}'."\n"
- .'```'."\n"
- ."\n\n",
- 'requestParamsDescription' => '## 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'DELETE /openapi/ha3/instances/ose-test1/advanced-configs/my_config_name'."\n"
- .'```'."\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .''."\n"
- .' "result": []'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {\\n \\"id\\": 22,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719220182844\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
],
- 'ModifyAdvanceConfigFile' => [
- 'summary' => '修改词典。',
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ForceSwitch' => [
+ 'summary' => '强制切换。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/force-switch/{fsmId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'configName',
+ 'name' => 'fsmId',
'in' => 'path',
- 'schema' => [
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_online_config_edit',
- ],
- ],
- [
- 'name' => 'fileName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '文件名',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/qrs.json',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'content' => [
- 'title' => '文件内容--词典配置',
- 'description' => '文件内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}',
- ],
- 'variables' => [
- 'title' => '变量值--在线配置',
- 'description' => '变量列表',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'disableModify' => [
- 'type' => 'boolean',
- 'required' => false,
- 'description' => '是否不允许修改',
- 'example' => 'false',
- ],
- 'isModify' => [
- 'type' => 'boolean',
- 'required' => false,
- 'description' => '是否被修改过',
- 'example' => 'false',
- ],
- 'value' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'qrs_connection_timeout',
- 'description' => '变量值',
- ],
- 'description' => [
- 'type' => 'string',
- 'required' => false,
- 'description' => '描述',
- 'example' => '超时时间',
- ],
- 'templateValue' => [
- 'type' => 'string',
- 'required' => false,
- 'description' => '模板值',
- 'example' => '800',
- ],
- 'type' => [
- 'title' => 'NORMAL, FUNCTION',
- 'description' => '类型:'."\n"
- .'- NORMAL: 普通变量'."\n"
- .'- FUNCTION:function变量',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'NORMAL',
- ],
- 'funcValue' => [
- 'type' => 'object',
- 'properties' => [
- 'funcClassName' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ModifyFile',
- 'description' => '方法类名',
- ],
- 'template' => [
- 'type' => 'string',
- 'required' => false,
- 'description' => '模板',
- 'example' => 'test-template',
- ],
- ],
- 'required' => false,
- 'description' => '函数变量',
- ],
- ],
- 'description' => '子变量信息',
- ],
- ],
- ],
- 'required' => false,
- 'example' => '{}',
- ],
+ 'schema' => ['description' => '任务ID。', 'type' => 'string', 'required' => true, 'example' => 'tisplus_opensearch@datasource_flow_fsm@186541059855****-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@164972986****@028315'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '0B1FF998-BB8D-5182-BFC0-E471AA77095A'],
+ 'result' => ['title' => '索引信息', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改词典',
- 'description' => '## 方法'."\n"
+ 'title' => '强制切换',
+ 'description' => '### 方法'."\n"
."\n"
- .'```'."\n"
+ .'```java'."\n"
.'PUT'."\n"
.'```'."\n"
."\n"
- .'## URI'."\n"
+ .'### URI'."\n"
."\n"
- .'```'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/force-switch/{fsmId}'."\n"
.'```',
- 'requestParamsDescription' => "\n"
- ."\n"
- .'## 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```'."\n"
- .'PUT /openapi/ha3/instances/{instanceId}/advancedConfigs/{configName}/file?fileName=/root/test.txt'."\n"
- .'```'."\n"
- ."\n"
- .''."\n"
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n\n"
."\n"
- .'```'."\n"
- .'{'."\n"
- .''."\n"
- .' "content": "",'."\n"
- .''."\n"
- .' "variables": {'."\n"
- .''."\n"
- .' "qrs_connection_timeout": {'."\n"
- .''."\n"
- .' "description": "",'."\n"
- .''."\n"
- .' "disableModify": false,'."\n"
- .''."\n"
- .' "isModify": true,'."\n"
- .''."\n"
- .' "type": "NORMAL",'."\n"
- .''."\n"
- .' "value": "800"'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- ."\n\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
+ .'```java'."\n"
+ .'PUT /openapi/ha3/instances/{instanceId}/force-switch/tisplus_opensearch@add_index_config@106201777905****-ha-cn-0ju2i0e****_mx1228@null@index_11@null@164128272****@607017'."\n"
+ .'```',
+ 'responseParamsDescription' => '### 返回示例'."\n"
."\n"
.'正确返回'."\n"
.''."\n"
."\n"
- .'```'."\n"
+ .'```java'."\n"
.'{'."\n"
.''."\n"
- .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
.''."\n"
.' "result": []'."\n"
.''."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
- ],
- 'PublishAdvanceConfig' => [
- 'summary' => '发布高级版本。',
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/actions/publish',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ForceSwitch'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '104708',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchA6GC80',
- ],
- ],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'configName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_online_config_v3',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求结构。',
- 'type' => 'object',
- 'properties' => [
- 'desc' => [
- 'description' => '高级配置描述信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => '自定义配置',
- ],
- 'files' => [
- 'description' => '文件信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '文件信息',
- 'type' => 'object',
- 'properties' => [
- 'ossPath' => [
- 'description' => 'oss文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss://opensearch/test.json',
- ],
- 'operateType' => [
- 'description' => '操作类型:UPDATE:更新;DELETE:删除;默认UPDATE',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UPDATE',
- ],
- 'parentFullPath' => [
- 'description' => '上级文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/',
- ],
- 'fileName' => [
- 'description' => '文件名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vector_question_schema.json',
- ],
- 'dirName' => [
- 'description' => '目录名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/clusters',
- ],
- 'config' => [
- 'description' => '高级配置信息',
- 'type' => 'object',
- 'properties' => [
- 'content' => [
- 'description' => '文件内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => "\n"
- .'{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}',
- ],
- 'variables' => [
- 'description' => '变量列表',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'description' => [
- 'type' => 'string',
- 'required' => false,
- 'description' => '变量描述',
- 'example' => '自定义变量',
- ],
- 'disableModify' => [
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'description' => '是否可被用户修改',
- ],
- 'isModify' => [
- 'type' => 'boolean',
- 'required' => false,
- 'description' => '变量是否被修改过',
- 'example' => 'true',
- ],
- 'type' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'NORMAL',
- 'description' => '类型:普通变量-NORMAL; function变量-FUNCTION',
- ],
- 'value' => [
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- 'description' => '变量值',
- ],
- ],
- 'description' => '变量',
- ],
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- 'example' => '{\\"desc\\":\\"new version\\"}',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ForceSwitch',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '发布高级版本',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'POST'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/actions/publish'."\n"
- .'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- .'```'."\n"
- .'POST /openapi/ha3/instances/ose-test1/advanced-configs/test/actions/publish'."\n"
- ."\n"
- .'{'."\n"
- .' "desc": "new version"'."\n"
- .'}'."\n"
- .'```',
- 'responseParamsDescription' => '## 返回示例'."\n"
- .'### 正确返回'."\n"
- .'```json'."\n"
- .'{'."\n"
- .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
- .' "result": {}'."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B1FF998-BB8D-5182-BFC0-E471AA77095A\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
'GetAdvanceConfig' => [
'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
@@ -8166,50 +3629,31 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'type',
'in' => 'query',
- 'schema' => [
- 'title' => 'ONLINE: 在线配置, ONLINE_CAVA, ONLINE_PLUGIN, ONLINE_QUERY, OFFLINE_DICT: 离线配置, OFFLINE_TABLE, OFFLINE_COMMON, OFFLINE_PLUGIN, OFFLINE_INDEX',
- 'description' => '- -ONLINE: 在线配置, '."\n"
- .'- -ONLINE_CAVA: 在线cava配置, '."\n"
- .'- -ONLINE_PLUGIN: 在线插件, '."\n"
- .'- -ONLINE_QUERY: 查询配置, '."\n"
- .'- -OFFLINE_DICT: 离线配置, '."\n"
- .'- -OFFLINE_TABLE: 离线表, '."\n"
- .'- -OFFLINE_COMMON: 离线配置, '."\n"
- .'- -OFFLINE_PLUGIN: 离线插件, '."\n"
- .'- -OFFLINE_INDEX: 索引配置',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ONLINE',
- 'default' => 'OFFLINE_DICT',
- ],
+ 'schema' => ['title' => 'ONLINE: 在线配置, ONLINE_CAVA, ONLINE_PLUGIN, ONLINE_QUERY, OFFLINE_DICT: 离线配置, OFFLINE_TABLE, OFFLINE_COMMON, OFFLINE_PLUGIN, OFFLINE_INDEX', 'description' => '- -ONLINE: 在线配置, '."\n"
+ .'- -ONLINE_CAVA: 在线cava配置, '."\n"
+ .'- -ONLINE_PLUGIN: 在线插件, '."\n"
+ .'- -ONLINE_QUERY: 查询配置, '."\n"
+ .'- -OFFLINE_DICT: 离线配置, '."\n"
+ .'- -OFFLINE_TABLE: 离线表, '."\n"
+ .'- -OFFLINE_COMMON: 离线配置, '."\n"
+ .'- -OFFLINE_PLUGIN: 离线插件, '."\n"
+ .'- -OFFLINE_INDEX: 索引配置', 'type' => 'string', 'required' => false, 'example' => 'ONLINE', 'default' => 'OFFLINE_DICT'],
],
[
'name' => 'configName',
'in' => 'path',
- 'schema' => [
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => "\n"
- .'ha-cn-pl32rf0****_offline_adv_edit',
- ],
+ 'schema' => ['description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => "\n"
+ .'ha-cn-pl32rf0****_offline_adv_edit'],
],
],
'responses' => [
@@ -8217,30 +3661,14 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
'result' => [
'title' => 'AdvanceConfig',
'description' => '结果',
'type' => 'object',
'properties' => [
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'desc' => [
- 'title' => '高级配置描述信息',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => '自定义备注信息',
- ],
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-05-21 16:05:26'],
+ 'desc' => ['title' => '高级配置描述信息', 'description' => '描述', 'type' => 'string', 'example' => 'Custom remarks'],
'files' => [
'title' => '文件名列表',
'description' => '文件列表。',
@@ -8249,61 +3677,25 @@
'description' => '文件信息。',
'type' => 'object',
'properties' => [
- 'name' => [
- 'description' => '名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- 'fullPathName' => [
- 'description' => '文件路径',
- 'type' => 'string',
- 'example' => '/cluster',
- ],
- 'isDir' => [
- 'description' => '是目录',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'isTemplate' => [
- 'description' => '是容器',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'name' => ['description' => '名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ 'fullPathName' => ['description' => '文件路径', 'type' => 'string', 'example' => '/cluster'],
+ 'isDir' => ['description' => '是目录', 'type' => 'boolean', 'example' => 'true'],
+ 'isTemplate' => ['description' => '是容器', 'type' => 'boolean', 'example' => 'true'],
],
],
],
- 'content' => [
- 'title' => '配置内容 http,git 请求时不为空',
- 'description' => '配置内容 http,git 请求时不为空',
- 'type' => 'string',
- 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}',
- ],
- 'contentType' => [
- 'title' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)',
- 'description' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)',
- 'type' => 'string',
- 'example' => 'FILE',
- ],
- 'name' => [
- 'title' => '配置名称',
- 'description' => '配置名称',
- 'type' => 'string',
- 'example' => 'my_index',
- ],
- 'status' => [
- 'title' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)',
- 'description' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)',
- 'type' => 'string',
- 'example' => 'used',
- ],
+ 'content' => ['title' => '配置内容 http,git 请求时不为空', 'description' => '配置内容 http,git 请求时不为空', 'type' => 'string', 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}'],
+ 'contentType' => ['title' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)', 'description' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)', 'type' => 'string', 'example' => 'FILE'],
+ 'name' => ['title' => '配置名称', 'description' => '配置名称', 'type' => 'string', 'example' => 'my_index'],
+ 'status' => ['title' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)', 'description' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)', 'type' => 'string', 'example' => 'used'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {\\n \\"updateTime\\": 0,\\n \\"desc\\": \\"自定义备注信息\\",\\n \\"files\\": [\\n {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"fullPathName\\": \\"/cluster\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true\\n }\\n ],\\n \\"content\\": \\"{\\\\\\\\\\\\\\"url\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\\\\\\\\\\\\"}\\",\\n \\"contentType\\": \\"FILE\\",\\n \\"name\\": \\"my_index\\",\\n \\"status\\": \\"used\\"\\n }\\n}","type":"json"}]',
'title' => '获取词典信息',
'summary' => '获取词典信息。',
'description' => '## 方法'."\n"
@@ -8355,17 +3747,32 @@
.'}'."\n"
.'```'."\n"
."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAdvanceConfig'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {\\n \\"updateTime\\": 0,\\n \\"desc\\": \\"Custom remarks\\",\\n \\"files\\": [\\n {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"fullPathName\\": \\"/cluster\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true\\n }\\n ],\\n \\"content\\": \\"{\\\\\\\\\\\\\\"url\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\\\\\\\\\\\\"}\\",\\n \\"contentType\\": \\"FILE\\",\\n \\"name\\": \\"my_index\\",\\n \\"status\\": \\"used\\"\\n }\\n}","type":"json"}]',
],
'GetAdvanceConfigFile' => [
'summary' => '获取词典信息。',
'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8373,42 +3780,22 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'configName',
'in' => 'path',
- 'schema' => [
- 'title' => '配置名称',
- 'description' => '配置名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_online_config_v5',
- ],
+ 'schema' => ['title' => '配置名称', 'description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_online_config_v5'],
],
[
'name' => 'fileName',
'in' => 'query',
- 'schema' => [
- 'title' => '文件名称',
- 'description' => '文件名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/intervene_dict/chn_ecommerce_general.dict',
- ],
+ 'schema' => ['title' => '文件名称', 'description' => '文件名称', 'type' => 'string', 'required' => true, 'example' => '/intervene_dict/chn_ecommerce_general.dict'],
],
],
'responses' => [
@@ -8418,23 +3805,13 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => [
'title' => '结果',
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'content' => [
- 'title' => '文件内容',
- 'description' => '文件内容',
- 'type' => 'string',
- 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}',
- ],
+ 'content' => ['title' => '文件内容', 'description' => '文件内容', 'type' => 'string', 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}'],
],
],
],
@@ -8442,7 +3819,6 @@
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"content\\": \\"{\\\\\\\\\\\\\\"url\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\\\\\\\\\\\\"}\\"\\n }\\n}","type":"json"}]',
'title' => '获取词典信息',
'description' => '## 方法'."\n"
."\n"
@@ -8559,16 +3935,32 @@
.''."\n"
.'}'."\n"
.'```'."\n",
- ],
- 'ListAdvanceConfigDir' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAdvanceConfigFile'],
+ ],
],
- 'schemes' => [
- 'https',
- 'http',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetAdvanceConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"content\\": \\"{\\\\\\\\\\\\\\"url\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\\\\\\\\\\\\"}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetCluster' => [
+ 'summary' => '获取某一集群的详细信息。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8577,78 +3969,77 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '104163',
+ 'abilityTreeNodes' => ['FEATUREopensearch5EAGY5'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'configName',
+ 'name' => 'clusterName',
'in' => 'path',
- 'schema' => [
- 'description' => '配置名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_online_config_v3',
- ],
- ],
- [
- 'name' => 'dirName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '目录名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/zones/general',
- ],
+ 'schema' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'required' => false, 'example' => 'bj_vpc_domain_2'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
'result' => [
- 'title' => 'List',
- 'description' => '返回结果',
- 'type' => 'array',
- 'items' => [
- 'description' => '高级配文件列表',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- 'fullPathName' => [
- 'description' => '绝对路径',
- 'type' => 'string',
- 'example' => '/path/wpd/nae',
+ 'title' => '集群列表',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'example' => 'bj_vpc_domain_2'],
+ 'description' => ['title' => '集群描述', 'description' => '集群描述', 'type' => 'string', 'example' => 'Custom description'],
+ 'currentAdvanceConfigVersion' => ['title' => '高级配置生效版本', 'description' => '高级配置生效版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'latestAdvanceConfigVersion' => ['title' => '高级配置最新版本', 'description' => '高级配置最新版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'currentOnlineConfigVersion' => ['title' => '在线配置生效版本', 'description' => '在线配置生效版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_online_adv_v1'],
+ 'latestOnlineConfigVersion' => ['title' => '在线配置最新版本', 'description' => '在线配置最新版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_online_adv_v1'],
+ 'configUpdateTime' => ['title' => '集群更新时间', 'description' => '集群更新时间', 'type' => 'string', 'example' => '2021-08-09 00:01:02'],
+ 'status' => ['description' => '集群的创建状态,有两个取值 NEW(创建中) or PUBLISH(创建完成)', 'type' => 'string', 'example' => 'NEW'],
+ 'queryNode' => [
+ 'description' => '查询节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ 'number' => ['description' => '节点数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'partition' => ['title' => '副本数量', 'description' => '副本数量', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'boolean',
- 'example' => 'true',
+ ],
+ 'dataNode' => [
+ 'description' => '数据节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'general'],
+ 'number' => ['description' => '副本数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'partition' => ['description' => '分片数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
],
- 'isTemplate' => [
- 'description' => '是否是模板。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'true',
+ ],
+ 'createTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'config' => [
+ 'description' => '配置信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'."\n", 'description' => '配置名称'],
+ 'updateTime' => ['type' => 'string', 'description' => '更新时间', 'example' => '2024-05-21 16:05:26'],
+ 'desc' => ['type' => 'string', 'description' => '描述', 'example' => '自定义描述'],
+ ],
+ 'description' => '子配置项信息',
+ ],
+ 'description' => '子配置项信息',
],
],
],
@@ -8658,9 +4049,7 @@
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"hz_pre_vpc_domain_1\\",\\n \\"fullPathName\\": \\"/path/wpd/nae\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取高级配置目录下文件列表',
- 'summary' => '获取高级配置目录下文件列表。',
+ 'title' => '获取某一集群的详细信息',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -8670,35 +4059,60 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir?dirName={dirName}'."\n"
+ .'/openapi/ha3/instance/{instanceId}/clusters/{clusterName}'."\n"
.'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ose-test1/advanced-configs`',
- 'responseParamsDescription' => '## 返回示例'."\n"
- .'### 正确返回'."\n"
- .'```json'."\n"
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ .'`GET /openapi/ha3/instance/ha_name_example/clusters/my_cluster`',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'```'."\n"
.'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": ['."\n"
- .' {'."\n"
- .' "name": "file_name_1",'."\n"
- .' "fullPathName": "/path/wpd/nae",'."\n"
- .' "isDir": true,'."\n"
- .' "isTemplate": true'."\n"
- .' }'."\n"
- .' ]'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": {'."\n"
+ .' "name": "cluster1",'."\n"
+ .' "configUpdateTime": "2021-08-09 00:01:02",'."\n"
+ .' "CurrentAdvanceConfigVersion": "test_yyds_data1",'."\n"
+ .' "lastestAdvanceConfigVersion": "test_yyds_data1",'."\n"
+ .' "currentOnlineConfigVersion": "test_yyds_data1",'."\n"
+ .' "lastestOnlineConfigVersion": "test_yyds_data1", '."\n"
+ .' "description": "airecpre",'."\n"
+ .' "queryNode": {'."\n"
+ .' "name":"ha-cn-0ju2iimcu07_qrs",'."\n"
+ .' "number": 1'."\n"
+ .' },'."\n"
+ .' "dataNode": {'."\n"
+ .' "name":"general",'."\n"
+ .' "number": 2,'."\n"
+ .' "partition": 1'."\n"
+ .' } '."\n"
+ .' }'."\n"
.'}'."\n"
.'```',
- ],
- 'ListAdvanceConfigs' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCluster'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetCluster',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"name\\": \\"bj_vpc_domain_2\\",\\n \\"description\\": \\"Custom description\\",\\n \\"currentAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_online_adv_v1\\",\\n \\"latestOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_online_adv_v1\\",\\n \\"configUpdateTime\\": \\"2021-08-09 00:01:02\\",\\n \\"status\\": \\"NEW\\",\\n \\"queryNode\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"number\\": 1,\\n \\"partition\\": 2\\n },\\n \\"dataNode\\": {\\n \\"name\\": \\"general\\",\\n \\"number\\": 1,\\n \\"partition\\": 2\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"config\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\\\n\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"desc\\": \\"自定义描述\\"\\n }\\n }\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetClusterRunTimeInfo' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/cluster-run-time-info',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8706,198 +4120,152 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '104702',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchA6GC80',
- ],
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'type',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'ONLINE: 在线配置, ONLINE_CAVA, ONLINE_PLUGIN, ONLINE_QUERY, OFFLINE_DICT: 离线配置, OFFLINE_TABLE, OFFLINE_COMMON, OFFLINE_PLUGIN, OFFLINE_INDEX',
- 'description' => '高级配置类型:'."\n"
- .' - online'."\n"
- .' - offline(默认)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'online',
- 'default' => 'OFFLINE_DICT',
- ],
- ],
- [
- 'name' => 'dataSourceName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '数据源名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api'."\n",
- ],
- ],
- [
- 'name' => 'indexName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_api',
- ],
- ],
- [
- 'name' => 'newMode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否为新版本控制台页面',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- [
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '指定页码,默认为:1',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'pageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '指定每页展示条数,默认为10。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '实例 ID', 'description' => '实例 ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'."\n"],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4FB0325E-8C37-5525-96AC-0333523170A3',
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
'result' => [
- 'title' => 'List',
+ 'title' => '结果集',
'description' => '返回结果。',
'type' => 'array',
'items' => [
- 'description' => '高级配置列表',
+ 'description' => '集群运行时长信息。',
'type' => 'object',
'properties' => [
- 'updateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1631070464000',
- ],
- 'desc' => [
- 'title' => '高级配置描述信息',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => 'Custom Description',
+ 'clusterName' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'example' => 'vpc_hz_domain_1'],
+ 'queryNode' => [
+ 'title' => '查询结点信息',
+ 'description' => '查询结点信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'serviceStatus' => [
+ 'title' => '服务状态',
+ 'description' => '服务状态',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '集群名称', 'type' => 'string', 'example' => 'vpc_hz_domain_1'."\n"],
+ 'totalSize' => ['title' => '总大小', 'description' => '总大小', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'doneSize' => ['title' => '完成大小', 'description' => '完成大小', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'donePercent' => ['title' => '进度', 'description' => '进度', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ ],
+ ],
+ 'configStatusList' => [
+ 'description' => '配置状态列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置状态列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'configUpdateTime' => ['description' => '集群更新时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'name' => ['description' => '集群名称', 'type' => 'string', 'example' => 'vpc_hz_domain_1'."\n"],
+ 'totalSize' => ['description' => '总大小', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
+ 'doneSize' => ['description' => '完成大小', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'donePercent' => ['description' => '进度', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ ],
+ ],
+ ],
+ ],
],
- 'files' => [
- 'title' => '文件名列表',
- 'description' => '文件名列表',
+ 'dataNodes' => [
+ 'title' => '数据结点信息',
+ 'description' => '数据结点信息',
'type' => 'array',
'items' => [
- 'description' => '文件信息。',
+ 'description' => '集群节点信息。',
'type' => 'object',
'properties' => [
- 'name' => [
- 'description' => '文件名称',
- 'type' => 'string',
- 'example' => 'file_name_1',
- ],
- 'fullPathName' => [
- 'description' => '绝对路径',
- 'type' => 'string',
- 'example' => '/path/wpd/nae',
+ 'dataStatusList' => [
+ 'description' => '节点数据列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '节点数据列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'docSize' => ['description' => '存储容量 (单位:GB)', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'fullVersion' => ['description' => '全量版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1718846192'],
+ 'incVersion' => ['description' => '增量版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1718846192'],
+ 'incUpdateTime' => ['description' => '增量更新时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'fullUpdateTime' => ['description' => '全量更新时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'indexConfigInfo' => [
+ 'description' => '索引配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'configMetaName' => ['description' => '索引配置名称', 'type' => 'string', 'example' => 'index_meta_name'],
+ 'version' => ['description' => '索引模板的版本。', 'type' => 'integer', 'format' => 'int64', 'example' => '1.0.0'],
+ ],
+ ],
+ 'advanceConfigInfo' => [
+ 'description' => '高级配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'configMetaName' => ['description' => '索引配置名称', 'type' => 'string', 'example' => 'index_meta_name'],
+ 'version' => ['description' => '版本号。', 'type' => 'integer', 'format' => 'int64', 'example' => '1.0'],
+ ],
+ ],
+ 'lackMemWorker' => [
+ 'description' => '因缺少内存而失败的worker的name',
+ 'type' => 'array',
+ 'items' => ['description' => '失败的worker的name', 'type' => 'string', 'example' => 'test-fail-worker'."\n"],
+ ],
+ 'deployFailedWorker' => [
+ 'description' => '因部署失败而失败的worker的name',
+ 'type' => 'array',
+ 'items' => ['description' => '失败的worker的name', 'type' => 'string', 'example' => 'test-fail-worker'."\n"],
+ ],
+ 'lackDiskWorker' => [
+ 'description' => '因缺少磁盘而失败的worker的name',
+ 'type' => 'array',
+ 'items' => ['description' => '失败的worker的name', 'type' => 'string', 'example' => 'test-fail-worker'],
+ ],
+ 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => '0A3B1C48006A6C0905F6375F4821EB50'],
+ 'indexSize' => ['description' => '索引长度', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'name' => ['description' => '节点名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ 'totalSize' => ['description' => '总大小', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'doneSize' => ['description' => '完成大小', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'donePercent' => ['description' => '总共完成的进度', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ ],
+ ],
],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'boolean',
- 'example' => 'true',
+ 'serviceStatus' => [
+ 'description' => '服务状态。',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ 'totalSize' => ['description' => '集群总节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'doneSize' => ['description' => '集群处理中的节点数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'donePercent' => ['description' => '总共完成进度', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ ],
],
- 'isTemplate' => [
- 'description' => '是否是模板。取值:-true:是-false:否',
- 'type' => 'boolean',
- 'example' => 'true',
+ 'configStatusList' => [
+ 'description' => '配置状态列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '响应体',
+ 'type' => 'object',
+ 'properties' => [
+ 'configUpdateTime' => ['description' => '集群更新时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'name' => ['description' => '集群名称', 'type' => 'string', 'example' => 'test_0704'],
+ 'totalSize' => ['description' => '总大小', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'doneSize' => ['description' => '完成大小', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'donePercent' => ['description' => '总共完成的进度', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ ],
+ ],
],
],
],
],
- 'content' => [
- 'title' => '配置内容 http,git 请求时不为空',
- 'description' => '配置内容 http,git 请求时不为空',
- 'type' => 'string',
- 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}',
- ],
- 'contentType' => [
- 'title' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)',
- 'description' => '配置内容的类型(FILE, GIT, HTTP, ODPS)',
- 'type' => 'string',
- 'example' => 'FILE',
- ],
- 'name' => [
- 'title' => '配置名称',
- 'description' => '高级配置名称',
- 'type' => 'string',
- 'example' => 'my_index',
- ],
- 'status' => [
- 'title' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)',
- 'description' => '高级配置状态'."\n"
- .'drafting: 草稿'."\n"
- .'used: 使用中'."\n"
- .'unused: 未使用'."\n"
- .'trash: 删除中',
- 'type' => 'string',
- 'example' => 'drafting',
- ],
- 'creator' => [
- 'description' => '创建者userid。',
- 'type' => 'string',
- 'example' => '123456',
- ],
- 'advanceConfigType' => [
- 'description' => '- -ONLINE: 在线配置, '."\n"
- .'- -ONLINE_CAVA: 在线cava配置, '."\n"
- .'- -ONLINE_PLUGIN: 在线插件, '."\n"
- .'- -ONLINE_QUERY: 查询配置, '."\n"
- .'- -OFFLINE_DICT: 离线配置, '."\n"
- .'- -OFFLINE_TABLE: 离线表, '."\n"
- .'- -OFFLINE_COMMON: 离线配置, '."\n"
- .'- -OFFLINE_PLUGIN: 离线插件, '."\n"
- .'- -OFFLINE_INDEX: 索引配置',
- 'type' => 'string',
- 'example' => 'ONLINE',
- ],
],
],
],
@@ -8906,9 +4274,8 @@
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4FB0325E-8C37-5525-96AC-0333523170A3\\",\\n \\"result\\": [\\n {\\n \\"updateTime\\": 1631070464000,\\n \\"desc\\": \\"Custom Description\\",\\n \\"files\\": [\\n {\\n \\"name\\": \\"file_name_1\\",\\n \\"fullPathName\\": \\"/path/wpd/nae\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true\\n }\\n ],\\n \\"content\\": \\"{\\\\\\\\\\\\\\"url\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\\\\\\\\\\\\"}\\",\\n \\"contentType\\": \\"FILE\\",\\n \\"name\\": \\"my_index\\",\\n \\"status\\": \\"drafting\\",\\n \\"creator\\": \\"123456\\",\\n \\"advanceConfigType\\": \\"ONLINE\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取高级配置列表',
- 'summary' => '获取高级配置列表。',
+ 'title' => '获取集群信息',
+ 'summary' => '获取集群信息。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -8918,58 +4285,153 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/advanced-configs?type=online'."\n"
+ .'/openapi/ha3/instances/{instanceId}/cluster-run-time-info'."\n"
.'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ose-test1/advanced-configs`'."\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
- .'### 正确返回'."\n"
- .'```json'."\n"
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ose-test1/cluster-run-time-info`',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ .'正确返回'."\n"
+ ."\n"
+ .'```java'."\n"
.'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "requestId": "38b079f1-7846-4226-8c90-3e2644b5c52b",'."\n"
.' "result": ['."\n"
.' {'."\n"
- .' "name": "my_index",'."\n"
- .' "status": "drafting",'."\n"
- .' "updateTime": 1631070464000,'."\n"
- .' "desc":"test",'."\n"
- .' "files":['."\n"
- .' {'."\n"
- .' "name": "file_name_1",'."\n"
- .' "fullPathName": "/path/wpd/nae",'."\n"
- .' "isDir": true,'."\n"
- .' "isTemplate": true'."\n"
- .' }'."\n"
- .' ]'."\n"
- .' },'."\n"
- .' {'."\n"
- .' "name": "my_index2",'."\n"
- .' "status": "drafting",'."\n"
- .' "updateTime": 1631070464000,'."\n"
- .' "desc":"test",'."\n"
- .' "files":['."\n"
+ .' "clusterName": "",'."\n"
+ .' "queryNode": {'."\n"
+ .' "serviceStatus": {'."\n"
+ .' "name": "service_name",'."\n"
+ .' "totalSize": 1,'."\n"
+ .' "doneSize": 1,'."\n"
+ .' "donePercent": 100'."\n"
+ .' },'."\n"
+ .' "configStatusList": ['."\n"
+ .' {'."\n"
+ .' "name": "default",'."\n"
+ .' "totalSize": 1,'."\n"
+ .' "doneSize": 1,'."\n"
+ .' "donePercent": 100,'."\n"
+ .' "configUpdateTime": ""'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .' },'."\n"
+ .' "dataNodes": ['."\n"
.' {'."\n"
- .' "name": "file_name_1",'."\n"
- .' "fullPathName": "/path/wpd/nae",'."\n"
- .' "isDir": true,'."\n"
- .' "isTemplate": true'."\n"
+ .' "serviceStatus": {'."\n"
+ .' "name": "service_name",'."\n"
+ .' "totalSize": 1,'."\n"
+ .' "doneSize": 1,'."\n"
+ .' "donePercent": 100'."\n"
+ .' },'."\n"
+ .' "configStatusList": ['."\n"
+ .' {'."\n"
+ .' "name": "default",'."\n"
+ .' "totalSize": 1,'."\n"
+ .' "doneSize": 1,'."\n"
+ .' "donePercent": 100,'."\n"
+ .' "configUpdateTime": ""'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "dataStatusList": ['."\n"
+ .' {'."\n"
+ .' "name": "index1",'."\n"
+ .' "totalSize": 1,'."\n"
+ .' "doneSize": 1,'."\n"
+ .' "donePercent": 100,'."\n"
+ .' "docSize": 123423,'."\n"
+ .' "fullVersion": 123423,'."\n"
+ .' "incVersion": 123423,'."\n"
+ .' "incUpdateTime": "",'."\n"
+ .' "fullUpdateTime": "",'."\n"
+ .' "indexConfigInfo": {'."\n"
+ .' "configMetaName": "index_meta_name",'."\n"
+ .' "version": 13241234'."\n"
+ .' },'."\n"
+ .' "advanceConfigInfo": {'."\n"
+ .' "configMetaName": "advance_meta_name",'."\n"
+ .' "version": 13241234'."\n"
+ .' },'."\n"
+ .' "lackMemWorker": ['."\n"
+ .' "worker1",'."\n"
+ .' "worker2"'."\n"
+ .' ],'."\n"
+ .' "deployFailedWorker": ['."\n"
+ .' "worker3",'."\n"
+ .' "worker4"'."\n"
+ .' ],'."\n"
+ .' "lackDiskWorker": ['."\n"
+ .' "worker5",'."\n"
+ .' "worker6"'."\n"
+ .' ],'."\n"
+ .' "errorMsg": "lackMemWorker/deployFailedWorker/lackDiskWorker"'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "name": "index1",'."\n"
+ .' "totalSize": 1,'."\n"
+ .' "doneSize": 1,'."\n"
+ .' "donePercent": 100,'."\n"
+ .' "docSize": 123423,'."\n"
+ .' "fullVersion": 123423,'."\n"
+ .' "incVersion": 123423,'."\n"
+ .' "incUpdateTime": "",'."\n"
+ .' "fullUpdateTime": "",'."\n"
+ .' "indexConfigInfo": {'."\n"
+ .' "configMetaName": "index_meta_name",'."\n"
+ .' "version": 13241234'."\n"
+ .' },'."\n"
+ .' "advanceConfigInfo": {'."\n"
+ .' "configMetaName": "advance_meta_name",'."\n"
+ .' "version": 13241234'."\n"
+ .' },'."\n"
+ .' "lackMemWorker": ['."\n"
+ .' "worker1",'."\n"
+ .' "worker2"'."\n"
+ .' ],'."\n"
+ .' "deployFailedWorker": ['."\n"
+ .' "worker3",'."\n"
+ .' "worker4"'."\n"
+ .' ],'."\n"
+ .' "lackDiskWorker": ['."\n"
+ .' "worker5",'."\n"
+ .' "worker6"'."\n"
+ .' ],'."\n"
+ .' "errorMsg": "lackMemWorker/deployFailedWorker/lackDiskWorker"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
- .'```',
- ],
- 'ListSchemas' => [
- 'summary' => '根据数据同步配置获取schema信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/schemas',
- 'methods' => [
- 'get',
+ .'```'."\n",
+ 'extraInfo' => "\n"
+ ."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetClusterRunTimeInfo'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetClusterRunTimeInfo',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": [\\n {\\n \\"clusterName\\": \\"vpc_hz_domain_1\\",\\n \\"queryNode\\": {\\n \\"serviceStatus\\": {\\n \\"name\\": \\"vpc_hz_domain_1\\\\n\\",\\n \\"totalSize\\": 100,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n },\\n \\"configStatusList\\": [\\n {\\n \\"configUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"name\\": \\"vpc_hz_domain_1\\\\n\\",\\n \\"totalSize\\": 6,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n }\\n ]\\n },\\n \\"dataNodes\\": [\\n {\\n \\"dataStatusList\\": [\\n {\\n \\"docSize\\": 2,\\n \\"fullVersion\\": 1718846192,\\n \\"incVersion\\": 1718846192,\\n \\"incUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"fullUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"indexConfigInfo\\": {\\n \\"configMetaName\\": \\"index_meta_name\\",\\n \\"version\\": 0\\n },\\n \\"advanceConfigInfo\\": {\\n \\"configMetaName\\": \\"index_meta_name\\",\\n \\"version\\": 1\\n },\\n \\"lackMemWorker\\": [\\n \\"test-fail-worker\\\\n\\"\\n ],\\n \\"deployFailedWorker\\": [\\n \\"test-fail-worker\\\\n\\"\\n ],\\n \\"lackDiskWorker\\": [\\n \\"test-fail-worker\\"\\n ],\\n \\"errorMsg\\": \\"0A3B1C48006A6C0905F6375F4821EB50\\",\\n \\"indexSize\\": 100,\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"totalSize\\": 1,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n }\\n ],\\n \\"serviceStatus\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"totalSize\\": 100,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n },\\n \\"configStatusList\\": [\\n {\\n \\"configUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"name\\": \\"test_0704\\",\\n \\"totalSize\\": 0,\\n \\"doneSize\\": 1,\\n \\"donePercent\\": 100\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'GetDataSource' => [
+ 'summary' => '获取某一数据源。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8977,104 +4439,17 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '186763',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchVHEWK3',
- ],
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
- 'name' => 'type',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'odps, swift, saro, oss, unKnow',
- 'description' => 'odps, swift, saro, oss, unKnow',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'odps',
- ],
- ],
- [
- 'name' => 'endpoint',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'odps endpoint',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- ],
- [
- 'name' => 'accessKey',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'L***p',
- ],
- ],
- [
- 'name' => 'accessSecret',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'odps数据源as',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5**9a6',
- ],
- ],
- [
- 'name' => 'project',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sec_odps',
- ],
- ],
- [
- 'name' => 'partition',
- 'in' => 'query',
- 'schema' => [
- 'description' => '数据分片',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dt=20230520',
- ],
- ],
- [
- 'name' => 'table',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'saro、odps数据源表名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'item',
- ],
- ],
- [
- 'name' => 'namespace',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'saro数据源的namespace',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'imm',
- ],
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'instanceId',
+ 'name' => 'dataSourceName',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '数据源的名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'],
],
],
'responses' => [
@@ -9082,25 +4457,32 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
'result' => [
- 'title' => 'Object',
- 'description' => '返回结果。',
- 'type' => 'any',
- 'example' => '{}',
+ 'title' => 'DataSource',
+ 'description' => '数据源信息列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '数据源名', 'description' => '数据源名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'type' => ['title' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'description' => '数据源类型', 'type' => 'string', 'example' => 'odps'],
+ 'domain' => ['title' => '离线部署', 'description' => '离线部署', 'type' => 'string', 'example' => 'vpc_hz_domain_1'],
+ 'indexes' => [
+ 'title' => '数据源产出的index',
+ 'description' => '索引列表',
+ 'type' => 'array',
+ 'items' => ['description' => '索引表', 'type' => 'string', 'example' => 'index1'],
+ ],
+ 'lastFulTime' => ['title' => '上一次全量时间', 'description' => '上一次全量时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1718787219'],
+ 'status' => ['title' => '表状态 (NEW, PUBLISH, TRASH)', 'description' => '数据源状态:new: 创建中; publish: 正常; trash: 删除中', 'type' => 'string', 'example' => 'new'],
+ ],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
- 'title' => '根据数据同步配置获取schema信息',
+ 'title' => '获取某一数据源',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -9110,378 +4492,232 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/schemas'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}'."\n"
.'```',
- ],
- 'ModifyDataSourceDeploy' => [
- 'summary' => '修改数据源部署信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}',
- 'methods' => [
- 'put',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source`',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": {'."\n"
+ .' "name": "data_source_name",'."\n"
+ .' "type": "odps",'."\n"
+ .' "domain": "test", // 离线部署 '."\n"
+ .' "indexes": ['."\n"
+ .' "index1",'."\n"
+ .' "index2"'."\n"
+ .' ],'."\n"
+ .' "partitions": ['."\n"
+ .' "ds=2020",'."\n"
+ .' "ds=2021"'."\n"
+ .' ],'."\n"
+ .' "lastFulTime": 1628502036000,'."\n"
+ .' "config":{'."\n"
+ .' "accessKey": "xxx",'."\n"
+ .' "accessSecret": "xxxs",'."\n"
+ .' "project":"xxxx",'."\n"
+ .' "table":"xxx",'."\n"
+ .' "partition":"xxxx"'."\n"
+ .' },'."\n"
+ .' "autoBuildIndex": true,'."\n"
+ .' "status": "new" // new: 创建中; publish: 正常; trash: 删除中'."\n"
+ .' '."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDataSource'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDataSource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"indexes\\": [\\n \\"index1\\"\\n ],\\n \\"lastFulTime\\": 1718787219,\\n \\"status\\": \\"new\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetDataSourceDeploy' => [
+ 'summary' => '获取数据源部署信息。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '159954',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchVHEWK3',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '159951',
+ 'abilityTreeNodes' => ['FEATUREopensearchA944AC', 'FEATUREopensearchS8X6T8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'deployName',
'in' => 'path',
- 'schema' => [
- 'description' => '机房',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc_hz_domain_1',
- ],
+ 'schema' => ['description' => '机房', 'type' => 'string', 'required' => true, 'example' => 'vpc_hz_domain_1'],
],
[
'name' => 'dataSourceName',
'in' => 'path',
- 'schema' => [
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- ],
- [
- 'name' => 'generationId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '索引全量版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1708674867',
- ],
+ 'schema' => ['description' => '数据源的名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_test_api'],
],
- [
- 'name' => 'dryRun',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'false',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'storage' => [
- 'description' => '数据源信息',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => 'odps endpoint',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源ak secret',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'kubenest',
- ],
- 'partition' => [
- 'description' => '分区信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20220713',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'saro、odps相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'item',
- ],
- 'namespace' => [
- 'title' => 'saro相关',
- 'description' => 'saro相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dp-dev',
- ],
- 'path' => [
- 'title' => 'hdfs相关',
- 'description' => 'hdfs相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/ude_jobs/iflow_offline_data_access',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss数据源相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/opensearch',
- ],
- 'bucket' => [
- 'description' => 'Bucket名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-bucket',
- ],
- 'catalog' => [
- 'description' => 'dlf数据源-数据目录名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-catalog',
- ],
- 'database' => [
- 'description' => 'dlf数据源-数据库',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-database',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'tableFormat' => [
- 'description' => 'dlf数据源-表格式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'paimon'."\n"
- .'lance'."\n"
- .'object',
- ],
- ],
- 'required' => false,
- ],
- 'autoBuildIndex' => [
- 'title' => '是否开启自动全量',
- 'description' => '是否开启自动全量',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'processor' => [
- 'description' => '进程参数',
- 'type' => 'object',
- 'properties' => [
- 'args' => [
- 'title' => '进程启动参数',
- 'description' => '进程启动参数',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "processInfos": [],'."\n"
- .' "groupId": "opensearch",'."\n"
- .' "containerConfigs": [],'."\n"
- .' "priority": {'."\n"
- .' "minor_priority": 0,'."\n"
- .' "major_priority": 64'."\n"
- .' }'."\n"
- .'}',
- ],
- 'resource' => [
- 'title' => '资源信息',
- 'description' => '资源信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[{'."\n"
- .' "_bs_role": "processor.*.inc",'."\n"
- .' "priority": {'."\n"
- .' "major_priority": 32,'."\n"
- .' "minor_priority": 0'."\n"
- .' },'."\n"
- .' "slotResources": [{'."\n"
- .' "slotResources": [{'."\n"
- .' "amount": 200,'."\n"
- .' "name": "cpu"'."\n"
- .' }, {'."\n"
- .' "amount": 8192,'."\n"
- .' "name": "mem"'."\n"
- .' }, {'."\n"
- .' "amount": 0,'."\n"
- .' "name": "T4"'."\n"
- .' }, {'."\n"
- .' "amount": 10,'."\n"
- .' "type": "SCALAR",'."\n"
- .' "name": "disk_ratio_9999"'."\n"
- .' }, {'."\n"
- .' "amount": 20480,'."\n"
- .' "type": "SCALAR",'."\n"
- .' "name": "disk_size_9999"'."\n"
- .' }]'."\n"
- .' }]'."\n"
- .'}]',
- ],
- ],
- 'required' => false,
- ],
- 'extend' => [
- 'description' => '扩展信息。',
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ 'result' => [
+ 'title' => 'Deploy',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'saro' => [
- 'description' => 'saro数据源信息',
+ 'storage' => [
+ 'description' => '数据源信息',
'type' => 'object',
'properties' => [
- 'path' => [
- 'description' => '路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/',
- ],
- 'version' => [
- 'description' => '版本号',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'endpoint' => ['title' => 'odps相关', 'description' => 'odps数据源的endpoint', 'type' => 'string', 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源ak secret', 'type' => 'string', 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'example' => 'wireless_1688_personal_rec'],
+ 'partition' => ['description' => 'odps数据源分区。例如:ds=20180102', 'type' => 'string', 'example' => 'ds=20220926'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'saro、odps数据源表名', 'type' => 'string', 'example' => 'behavior'],
+ 'namespace' => ['title' => 'saro相关', 'description' => 'saro相关', 'type' => 'string', 'example' => 'lazada-campaign-flink'],
+ 'path' => ['title' => 'hdfs相关', 'description' => 'hdfs相关', 'type' => 'string', 'example' => '/beiming_xobject/dwd_xobjectsandbox__list_create_action_by_new/'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss数据源相关', 'type' => 'string', 'example' => '/opensearch/test.json'],
+ 'bucket' => ['description' => 'oss bucket', 'type' => 'string', 'example' => 'test-oss-bucket'],
+ 'catalog' => ['type' => 'string', 'description' => ''],
+ 'database' => ['type' => 'string', 'description' => ''],
+ 'tag' => ['type' => 'string', 'description' => ''],
],
- 'required' => false,
],
- 'hdfs' => [
- 'description' => 'hdfs信息',
+ 'autoBuildIndex' => ['title' => '是否开启自动全量', 'description' => '是否开启自动全量', 'type' => 'boolean', 'example' => 'true'],
+ 'processor' => [
+ 'description' => '进程参数',
'type' => 'object',
'properties' => [
- 'path' => [
- 'description' => 'hdfs数据源路径。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ymsh-service/src/main/java/cn/ymsh/util/jd',
- ],
+ 'args' => ['title' => '进程启动参数', 'description' => '进程启动参数', 'type' => 'string', 'example' => '{'."\n"
+ .' "processInfos": [],'."\n"
+ .' "groupId": "opensearch",'."\n"
+ .' "containerConfigs": [],'."\n"
+ .' "priority": {'."\n"
+ .' "minor_priority": 0,'."\n"
+ .' "major_priority": 64'."\n"
+ .' }'."\n"
+ .'}'],
+ 'resource' => ['title' => '资源信息', 'description' => '资源信息', 'type' => 'string', 'example' => '[{'."\n"
+ .' "_bs_role": "processor.*.inc",'."\n"
+ .' "priority": {'."\n"
+ .' "major_priority": 32,'."\n"
+ .' "minor_priority": 0'."\n"
+ .' },'."\n"
+ .' "slotResources": [{'."\n"
+ .' "slotResources": [{'."\n"
+ .' "amount": 200,'."\n"
+ .' "name": "cpu"'."\n"
+ .' }, {'."\n"
+ .' "amount": 8192,'."\n"
+ .' "name": "mem"'."\n"
+ .' }, {'."\n"
+ .' "amount": 0,'."\n"
+ .' "name": "T4"'."\n"
+ .' }, {'."\n"
+ .' "amount": 10,'."\n"
+ .' "type": "SCALAR",'."\n"
+ .' "name": "disk_ratio_9999"'."\n"
+ .' }, {'."\n"
+ .' "amount": 20480,'."\n"
+ .' "type": "SCALAR",'."\n"
+ .' "name": "disk_size_9999"'."\n"
+ .' }]'."\n"
+ .' }]'."\n"
+ .'}]'],
],
- 'required' => false,
],
- 'odps' => [
- 'description' => 'odps数据源信息',
+ 'extend' => [
+ 'description' => '字段配置的扩展的内容'."\n"
+ .'key: 向量字段(vector)、'."\n"
+ .'需embeding字段(embeding)',
'type' => 'object',
'properties' => [
- 'partitions' => [
- 'description' => '数据源的分区信息',
+ 'saro' => [
+ 'description' => 'saro数据源信息',
'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '数据源的分区信息',
- 'example' => 'ds=20230824',
+ 'properties' => [
+ 'path' => ['description' => 'hdfs数据源路径', 'type' => 'string', 'example' => 'dist-dmj-job/src/main/java'],
+ 'version' => ['description' => '版本号', 'type' => 'string', 'example' => '0.6.0'],
+ ],
+ ],
+ 'hdfs' => [
+ 'description' => 'hdfs信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'path' => ['description' => 'hdfs数据源路径', 'type' => 'string', 'example' => 'dist-dmj-job/src/main/java'],
+ ],
+ ],
+ 'odps' => [
+ 'description' => 'odps数据源信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'partitions' => [
+ 'description' => '数据源的分区信息',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => 'ds=20220926', 'description' => '数据源的分区信息'],
+ ],
+ ],
+ ],
+ 'oss' => [
+ 'description' => 'oss信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'path' => ['description' => 'oss数据源路径', 'type' => 'string', 'example' => 'oss://opensearch'],
],
],
],
- 'required' => false,
],
- 'oss' => [
- 'description' => 'oss信息',
+ 'swift' => [
+ 'title' => '增量swift信息',
+ 'description' => '增量swift信息',
'type' => 'object',
'properties' => [
- 'path' => [
- 'description' => 'oss数据源路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss://test',
- ],
+ 'zk' => ['description' => 'zk', 'type' => 'string', 'example' => 'test-zk'],
+ 'topic' => ['description' => 'topic', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
],
- 'required' => false,
],
],
- 'required' => false,
- ],
- 'swift' => [
- 'title' => '增量swift信息',
- 'description' => '增量swift信息',
- 'type' => 'object',
- 'properties' => [
- 'zk' => [
- 'description' => 'zk',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zk',
- ],
- 'topic' => [
- 'description' => 'topic',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改数据源部署信息',
+ 'title' => '获取数据源部署信息',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
@@ -9489,281 +4725,31 @@
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}'."\n"
.'```',
- ],
- 'CreateDataSource' => [
- 'summary' => '创建数据源。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDataSourceDeploy'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '104719',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchVHEWK3',
- ],
- ],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'dryRun',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求结构。',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '数据源名',
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'type' => [
- 'title' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '数据源类型:odps、oss、swift',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'odps',
- ],
- 'domain' => [
- 'title' => '离线部署',
- 'description' => '数据源机房',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_1',
- ],
- 'config' => [
- 'title' => 'odps 数据源配置',
- 'description' => '配置信息',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => 'odps数据源的endpoint 或者 oss数据源的endpoint',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源as',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'kubenest',
- ],
- 'partition' => [
- 'description' => 'odps分区',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20220713',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'odps表名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'item',
- ],
- 'namespace' => [
- 'title' => 'saro相关',
- 'description' => '命名空间',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aegis-ops',
- ],
- 'path' => [
- 'title' => 'hdfs相关',
- 'description' => 'hdfs文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-hdfs-path'."\n",
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/opensearch/search',
- ],
- 'bucket' => [
- 'description' => 'oss bucket',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch',
- ],
- 'catalog' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'database' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'tag' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'saroConfig' => [
- 'title' => 'saro数据源配置',
- 'description' => 'saro数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'namespace' => [
- 'description' => 'saro数据源的namespace',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'igraph-cn-x0r3e3abe02',
- ],
- 'tableName' => [
- 'description' => 'saro数据表名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index_hdfs',
- ],
- ],
- 'required' => false,
- ],
- 'autoBuildIndex' => [
- 'title' => '是否开启自动全量',
- 'description' => '自动重建索引',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- 'required' => false,
- 'example' => '{}',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDataSourceDeploy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
],
- '5XX' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '创建数据源',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'POST'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources'."\n"
- .'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- .'```'."\n"
- .'POST /openapi/ha3/instances/ha3_instances_id/data-sources'."\n"
- ."\n"
- .'{'."\n"
- .' "name": "data_source_name",'."\n"
- .' "type": "odps",'."\n"
- .' "config":{'."\n"
- .' "accessKey": "xxx",'."\n"
- .' "accessSecret": "xxxs",'."\n"
- .' "project":"xxxx",'."\n"
- .' "table":"xxx",'."\n"
- .' "partition":"xxxx"'."\n"
- .' },'."\n"
- .' "autoBuildIndex": true'."\n"
- .'}'."\n"
- .'```',
- 'responseParamsDescription' => '## 返回示例'."\n"
- .'### 正确返回'."\n"
- .'```json'."\n"
- .'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": []'."\n"
- .'}'."\n"
- .'```'."\n"
- .'### 错误返回'."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": {'."\n"
- .' "success": false,'."\n"
- .' "data": "some error message"'."\n"
- .' }'."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"storage\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"L***p\\",\\n \\"accessSecret\\": \\"5**9a6\\",\\n \\"project\\": \\"wireless_1688_personal_rec\\",\\n \\"partition\\": \\"ds=20220926\\",\\n \\"table\\": \\"behavior\\",\\n \\"namespace\\": \\"lazada-campaign-flink\\",\\n \\"path\\": \\"/beiming_xobject/dwd_xobjectsandbox__list_create_action_by_new/\\",\\n \\"ossPath\\": \\"/opensearch/test.json\\",\\n \\"bucket\\": \\"test-oss-bucket\\",\\n \\"catalog\\": \\"\\",\\n \\"database\\": \\"\\",\\n \\"tag\\": \\"\\"\\n },\\n \\"autoBuildIndex\\": true,\\n \\"processor\\": {\\n \\"args\\": \\"{\\\\n\\\\t\\\\\\"processInfos\\\\\\": [],\\\\n\\\\t\\\\\\"groupId\\\\\\": \\\\\\"opensearch\\\\\\",\\\\n\\\\t\\\\\\"containerConfigs\\\\\\": [],\\\\n\\\\t\\\\\\"priority\\\\\\": {\\\\n\\\\t\\\\t\\\\\\"minor_priority\\\\\\": 0,\\\\n\\\\t\\\\t\\\\\\"major_priority\\\\\\": 64\\\\n\\\\t}\\\\n}\\",\\n \\"resource\\": \\"[{\\\\n\\\\t\\\\\\"_bs_role\\\\\\": \\\\\\"processor.*.inc\\\\\\",\\\\n\\\\t\\\\\\"priority\\\\\\": {\\\\n\\\\t\\\\t\\\\\\"major_priority\\\\\\": 32,\\\\n\\\\t\\\\t\\\\\\"minor_priority\\\\\\": 0\\\\n\\\\t},\\\\n\\\\t\\\\\\"slotResources\\\\\\": [{\\\\n\\\\t\\\\t\\\\\\"slotResources\\\\\\": [{\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 200,\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"cpu\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 8192,\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"mem\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 0,\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"T4\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 10,\\\\n\\\\t\\\\t\\\\t\\\\\\"type\\\\\\": \\\\\\"SCALAR\\\\\\",\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"disk_ratio_9999\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 20480,\\\\n\\\\t\\\\t\\\\t\\\\\\"type\\\\\\": \\\\\\"SCALAR\\\\\\",\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"disk_size_9999\\\\\\"\\\\n\\\\t\\\\t}]\\\\n\\\\t}]\\\\n}]\\"\\n },\\n \\"extend\\": {\\n \\"saro\\": {\\n \\"path\\": \\"dist-dmj-job/src/main/java\\",\\n \\"version\\": \\"0.6.0\\"\\n },\\n \\"hdfs\\": {\\n \\"path\\": \\"dist-dmj-job/src/main/java\\"\\n },\\n \\"odps\\": {\\n \\"partitions\\": {\\n \\"key\\": \\"ds=20220926\\"\\n }\\n },\\n \\"oss\\": {\\n \\"path\\": \\"oss://opensearch\\"\\n }\\n },\\n \\"swift\\": {\\n \\"zk\\": \\"test-zk\\",\\n \\"topic\\": \\"ha-cn-pl32rf0****_test_api\\"\\n }\\n }\\n}","type":"json"}]',
],
- 'DeleteDataSource' => [
- 'summary' => '删除数据源。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetDatabaseSchema' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/tables/{tableName}/schema',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
@@ -9771,120 +4757,22 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'dataSourceName',
- 'in' => 'path',
- 'schema' => [
- 'title' => '数据源名称',
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => '索引信息',
- 'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
- ],
- ],
- ],
- ],
- 500 => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除数据源',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'DELETE'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}'."\n"
- .'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- .'`DELETE /openapi/ha3/instances/ha3_instances_id/data-sources/my_dataSource`'."\n",
- 'responseParamsDescription' => '## 返回示例'."\n"
- .'### 正确返回'."\n"
- .'```json'."\n"
- .'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": []'."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'GetDataSource' => [
- 'summary' => '获取某一数据源。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
- 'parameters' => [
- [
- 'name' => 'instanceId',
+ 'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
- 'name' => 'dataSourceName',
+ 'name' => 'tableName',
'in' => 'path',
- 'schema' => [
- 'description' => '数据源的名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
+ 'schema' => ['description' => '表名', 'type' => 'string', 'required' => true, 'example' => 'graph_index_summary_'],
],
],
'responses' => [
@@ -9892,67 +4780,31 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
'result' => [
- 'title' => 'DataSource',
- 'description' => '数据源信息列表',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '数据源名',
- 'description' => '数据源名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'type' => [
- 'title' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '数据源类型',
- 'type' => 'string',
- 'example' => 'odps',
- ],
- 'domain' => [
- 'title' => '离线部署',
- 'description' => '离线部署',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_1',
- ],
- 'indexes' => [
- 'title' => '数据源产出的index',
- 'description' => '索引列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引表',
- 'type' => 'string',
- 'example' => 'index1',
- ],
- ],
- 'lastFulTime' => [
- 'title' => '上一次全量时间',
- 'description' => '上一次全量时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1718787219',
- ],
- 'status' => [
- 'title' => '表状态 (NEW, PUBLISH, TRASH)',
- 'description' => '数据源状态:new: 创建中; publish: 正常; trash: 删除中',
- 'type' => 'string',
- 'example' => 'new',
+ 'title' => 'List',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'fieldName' => ['description' => '字段名称。', 'type' => 'string', 'example' => 'id'],
+ 'fieldType' => ['description' => '字段类型。', 'type' => 'string', 'example' => 'STRING'],
+ 'indexName' => ['description' => '索引名称', 'type' => 'string', 'example' => 'test_tusou_v2'],
+ 'indexType' => ['description' => '索引类型。', 'type' => 'string', 'example' => 'NUMBER'],
+ 'fieldTypeDetail' => ['description' => '字段类型详情', 'type' => 'object', 'example' => 'FT_UINT64'],
],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"indexes\\": [\\n \\"index1\\"\\n ],\\n \\"lastFulTime\\": 1718787219,\\n \\"status\\": \\"new\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取某一数据源',
+ 'title' => '获取数据库schema',
+ 'summary' => '获取数据库schema。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -9962,223 +4814,34 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}'."\n"
- .'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source`',
- 'responseParamsDescription' => '### 返回示例'."\n"
- ."\n"
- .'```'."\n"
- .'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": {'."\n"
- .' "name": "data_source_name",'."\n"
- .' "type": "odps",'."\n"
- .' "domain": "test", // 离线部署 '."\n"
- .' "indexes": ['."\n"
- .' "index1",'."\n"
- .' "index2"'."\n"
- .' ],'."\n"
- .' "partitions": ['."\n"
- .' "ds=2020",'."\n"
- .' "ds=2021"'."\n"
- .' ],'."\n"
- .' "lastFulTime": 1628502036000,'."\n"
- .' "config":{'."\n"
- .' "accessKey": "xxx",'."\n"
- .' "accessSecret": "xxxs",'."\n"
- .' "project":"xxxx",'."\n"
- .' "table":"xxx",'."\n"
- .' "partition":"xxxx"'."\n"
- .' },'."\n"
- .' "autoBuildIndex": true,'."\n"
- .' "status": "new" // new: 创建中; publish: 正常; trash: 删除中'."\n"
- .' '."\n"
- .' }'."\n"
- .'}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/tables/{tableName}/schema'."\n"
.'```',
- ],
- 'ListDataSources' => [
- 'summary' => '获取数据源列表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDatabaseSchema'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- ],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '返回参数',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据源信息列表',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '数据源名',
- 'description' => '数据源名称。',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'type' => [
- 'title' => '数据源类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '类型',
- 'type' => 'string',
- 'example' => 'odps',
- ],
- 'domain' => [
- 'title' => '离线部署',
- 'description' => '离线部署',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_1',
- ],
- 'indexes' => [
- 'title' => '数据源产出的index',
- 'description' => '索引列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据源索引。',
- 'type' => 'string',
- 'example' => 'index1',
- ],
- ],
- 'lastFulTime' => [
- 'title' => '上一次全量时间',
- 'description' => '上一次全量时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1718787785',
- ],
- 'status' => [
- 'title' => '表状态 (NEW, PUBLISH, TRASH)',
- 'description' => '数据源状态:new: 创建中; publish: 正常; trash: 删除中',
- 'type' => 'string',
- 'example' => 'new',
- ],
- ],
- ],
- ],
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDatabaseSchema',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"indexes\\": [\\n \\"index1\\"\\n ],\\n \\"lastFulTime\\": 1718787785,\\n \\"status\\": \\"new\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取数据源列表',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources'."\n"
- .'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources`',
- 'responseParamsDescription' => '## 返回示例'."\n"
- .'### 正确返回'."\n"
- .'```json'."\n"
- .'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": ['."\n"
- .' {'."\n"
- .' "name": "data_source_name",'."\n"
- .' "type": "odps",'."\n"
- .' "domain": "test", // 离线部署'."\n"
- .' "indexes": ['."\n"
- .' "index1",'."\n"
- .' "index2"'."\n"
- .' ],'."\n"
- .' "partitions": ['."\n"
- .' "ds=2020"'."\n"
- .' "ds=2021"'."\n"
- .' ],'."\n"
- .' "lastFullTime": 1628502036000,'."\n"
- .' "config":{'."\n"
- .' "accessKey": "xxx",'."\n"
- .' "accessSecret": "xxxs",'."\n"
- .' "project":"xxxx",'."\n"
- .' "table":"xxx",'."\n"
- .' "partition":"xxxx"'."\n"
- .' },'."\n"
- .' "autoBuildIndex": true,'."\n"
- .' "status": "new" // new: 创建中; publish: 正常; trash: 删除中'."\n"
- .' },'."\n"
- .' {'."\n"
- .' "name": "data_source_name",'."\n"
- .' "type": "odps",'."\n"
- .' "domain": "test", // 离线部署 '."\n"
- .' "indexes": ['."\n"
- .' "index1",'."\n"
- .' "index2"'."\n"
- .' ],'."\n"
- .' "partitions": ['."\n"
- .' "ds=2020"'."\n"
- .' "ds=2021"'."\n"
- .' ],'."\n"
- .' "lastFullTime": 1628502036000,'."\n"
- .' "config":{'."\n"
- .' "accessKey": "xxx",'."\n"
- .' "accessSecret": "xxxs",'."\n"
- .' "project":"xxxx",'."\n"
- .' "table":"xxx",'."\n"
- .' "partition":"xxxx"'."\n"
- .' },'."\n"
- .' "autoBuildIndex": true,'."\n"
- .' "status": "new" // new: 创建中; publish: 正常; trash: 删除中'."\n"
- .' }'."\n"
- .' ]'."\n"
- .'}'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": [\\n {\\n \\"fieldName\\": \\"id\\",\\n \\"fieldType\\": \\"STRING\\",\\n \\"indexName\\": \\"test_tusou_v2\\",\\n \\"indexType\\": \\"NUMBER\\",\\n \\"fieldTypeDetail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n}","type":"json"}]',
],
- 'ListDataSourceSchemas' => [
- 'summary' => '获取某一数据源的schema信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/schemas',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
+ 'GetDeployGraph' => [
+ 'summary' => '展示部署全局概览。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/deploy-graph',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -10186,118 +4849,129 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'dataSourceName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****'],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '返回参数',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
'result' => [
- 'title' => 'List',
+ 'title' => 'DeployGraph',
'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => 'schema信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '字段名称',
- 'description' => '字段名称',
- 'type' => 'string',
- 'example' => 'id',
- ],
- 'custom' => [
- 'title' => '是否自定义字段',
- 'description' => '是否自定义字段。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'type' => [
- 'title' => '字段类型',
- 'description' => '字段类型',
- 'type' => 'string',
- 'example' => 'STRING',
- ],
- 'attribute' => [
- 'description' => '是否为属性字段。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'summary' => [
- 'title' => '可展示',
- 'description' => '是否可展示。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'primaryKey' => [
- 'title' => '主键',
- 'description' => '主键',
- 'type' => 'object',
- 'properties' => [
- 'isPrimaryKey' => [
- 'description' => '是否为主键。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'false',
+ 'type' => 'object',
+ 'properties' => [
+ 'graph' => [
+ 'description' => '部署信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'onlineMaster' => [
+ 'title' => '在线集群元信息',
+ 'description' => '在线集群元信息',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['description' => '机房id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'name' => ['description' => '在线集群名称', 'type' => 'string', 'example' => ' '."\n"
+ .'ha-cn-pl32rf0****_hz_pre_vpc_domain_1'],
+ 'domainName' => ['description' => '机房', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ 'hippoId' => ['description' => '资源id', 'type' => 'string', 'example' => '5377'],
+ ],
+ 'description' => '',
],
- 'hasPrimaryKeyAttribute' => [
- 'description' => '是否有主键属性。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'false',
+ ],
+ 'zoneMetas' => [
+ 'title' => 'zone元信息',
+ 'description' => 'zone元信息列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'zone元信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '节点名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ 'tag' => ['description' => '标签', 'type' => 'string', 'example' => ' '."\n"
+ .'ha-cn-pl32rf0****_qrs_hz_pre_vpc_domain_1'],
+ 'suezAdminName' => ['description' => 'suez admin名称', 'type' => 'string', 'example' => ' '."\n"
+ .'ha-cn-pl32rf0****_hz_pre_vpc_domain_1'],
+ 'type' => ['description' => '类型', 'type' => 'string', 'example' => 'qrs'],
+ 'domainInfo' => ['description' => '机房', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ ],
],
- 'isPrimaryKeySorted' => [
- 'description' => '是否可排序。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'false',
+ ],
+ 'tableMetas' => [
+ 'title' => '数据源元信息',
+ 'description' => '数据源元信息',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'tableDeployId' => ['description' => '表部署id', 'type' => 'integer', 'format' => 'int64', 'example' => '2177'],
+ 'name' => ['description' => '数据源名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'tag' => ['description' => '标签', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api_hz_pre_vpc_domain_1'],
+ 'domainName' => ['description' => '机房', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ 'buildDeployId' => ['description' => '离线部署id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'type' => ['description' => '数据源类型', 'type' => 'string', 'example' => 'odps'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'indexMetas' => [
+ 'title' => '索引元信息',
+ 'description' => '索引元信息列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '索引元信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '索引名称', 'type' => 'string', 'example' => 'test_api'],
+ 'tag' => ['description' => '标签', 'type' => 'string', 'example' => 'test_api_hz_pre_vpc_domain_1'],
+ 'domainName' => ['description' => '机房', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ 'tableDeployId' => ['description' => '表部署id', 'type' => 'integer', 'format' => 'int64', 'example' => '2409'],
+ 'tableName' => ['description' => '数据源名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'zoneName' => ['description' => '节点名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ ],
+ ],
+ ],
+ 'zoneIndexRelation' => [
+ 'title' => 'zone和索引关联关系',
+ 'description' => 'zone和索引关联关系列表',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'example' => 'general_hz_pre_vpc_domain_1', 'description' => '索引关联集群'],
+ 'description' => 'zone和索引关联关系',
+ ],
+ ],
+ 'tableIndexRelation' => [
+ 'title' => '数据源和索引关联关系',
+ 'description' => '数据源和索引关联关系列表',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'example' => 'test_api_hz_pre_vpc_domain_1', 'description' => '索引关联表'],
+ 'description' => '数据源和索引关联关系',
],
],
- ],
- 'addIndex' => [
- 'title' => '是否添加了index属性',
- 'description' => '是否添加了index属性。取值:-**true**:是-**false**:否',
- 'type' => 'boolean',
- 'example' => 'false',
],
],
],
+ 'example' => '{}',
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"id\\",\\n \\"custom\\": false,\\n \\"type\\": \\"STRING\\",\\n \\"attribute\\": false,\\n \\"summary\\": false,\\n \\"primaryKey\\": {\\n \\"isPrimaryKey\\": false,\\n \\"hasPrimaryKeyAttribute\\": false,\\n \\"isPrimaryKeySorted\\": false\\n },\\n \\"addIndex\\": false\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取某一数据源的schema信息',
+ 'title' => '展示部署全局概览',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -10307,55 +4981,292 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/schemas'."\n"
+ .'/openapi/ha3/instances/{instanceId}/deploy-graph'."\n"
.'```',
- 'requestParamsDescription' => '## 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source/schemas`',
- 'responseParamsDescription' => '## 返回示例'."\n"
- .'### 正确返回'."\n"
- .'```json'."\n"
+ 'requestParamsDescription' => "\n"
+ .'### 请求示例'."\n"
+ ."\n"
+ .'```java'."\n"
+ .''."\n"
+ .'GET /openapi/ha3/instances/{instanceId}/deploy-graph'."\n"
+ .'```',
+ 'responseParamsDescription' => "\n"
+ ."\n"
+ .'### 返回示例'."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
.'{'."\n"
+ .''."\n"
.' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result":['."\n"
- .' {'."\n"
- .' "summary": false,'."\n"
- .' "custom": false,'."\n"
- .' "addIndex": false,'."\n"
- .' "type": "INT64",'."\n"
- .' "name": "id",'."\n"
- .' "attribute": false,'."\n"
- .' "primaryKey": {'."\n"
- .' "hasPrimaryKeyAttribute": false,'."\n"
- .' "primaryKeySorted": false,'."\n"
- .' "primaryKey": false'."\n"
- .' }'."\n"
+ .''."\n"
+ .' "result": {'."\n"
+ .''."\n"
+ .' "app": {'."\n"
+ .''."\n"
+ .' "creator": "74087",'."\n"
+ .''."\n"
+ .' "gmtModified": 1628151698000,'."\n"
+ .''."\n"
+ .' "groupId": 596,'."\n"
+ .''."\n"
+ .' "platformType": "tisplus",'."\n"
+ .''."\n"
+ .' "description": "qrs改写插件测试集群,测试同学不要使用",'."\n"
+ .''."\n"
+ .' "gmtCreate": 1628151698000,'."\n"
+ .''."\n"
+ .' "isActive": 0,'."\n"
+ .''."\n"
+ .' "type": "online_group",'."\n"
+ .''."\n"
+ .' "appStatus": 0,'."\n"
+ .''."\n"
+ .' "procStatus": 0,'."\n"
+ .''."\n"
+ .' "isDeleted": 0,'."\n"
+ .''."\n"
+ .' "name": "search4TestPlugin",'."\n"
+ .''."\n"
+ .' "id": 5171'."\n"
+ .''."\n"
.' },'."\n"
- .' {'."\n"
- .' "summary": false,'."\n"
- .' "custom": false,'."\n"
- .' "addIndex": false,'."\n"
- .' "type": "STRING",'."\n"
- .' "name": "fb_boolean",'."\n"
- .' "attribute": false,'."\n"
- .' "primaryKey": {'."\n"
- .' "hasPrimaryKeyAttribute": false,'."\n"
- .' "primaryKeySorted": false,'."\n"
- .' "primaryKey": false'."\n"
+ .''."\n"
+ .' "hippos": [],'."\n"
+ .''."\n"
+ .' "appGroupName": "多biz测试业务线",'."\n"
+ .''."\n"
+ .' "name": "search4TestPlugin",'."\n"
+ .''."\n"
+ .' "availableDeploys": ['."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "gmtModified": 1594193012000,'."\n"
+ .''."\n"
+ .' "virtualDomainList": "6,7,8",'."\n"
+ .''."\n"
+ .' "platformType": "[\\"tisplus\\",\\"tisplus_khronos\\",\\"tisplus_dingtalk\\"]",'."\n"
+ .''."\n"
+ .' "description": "pre_et2机房",'."\n"
+ .''."\n"
+ .' "groups": "",'."\n"
+ .''."\n"
+ .' "gmtCreate": 1565752477000,'."\n"
+ .''."\n"
+ .' "type": "INNET",'."\n"
+ .''."\n"
+ .' "modules": "[\\"online\\"]",'."\n"
+ .''."\n"
+ .' "foundationDetailList": "15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,94",'."\n"
+ .''."\n"
+ .' "name": "pre_et2",'."\n"
+ .''."\n"
+ .' "hippoId": "hippo_et2_7u",'."\n"
+ .''."\n"
+ .' "id": 5'."\n"
+ .''."\n"
+ .' },'."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "gmtModified": 1571642223000,'."\n"
+ .''."\n"
+ .' "platformType": "[\\"tisplus\\"]",'."\n"
+ .''."\n"
+ .' "description": "预发oc27机房",'."\n"
+ .''."\n"
+ .' "groups": "",'."\n"
+ .''."\n"
+ .' "gmtCreate": 1571642223000,'."\n"
+ .''."\n"
+ .' "type": "INNET",'."\n"
+ .''."\n"
+ .' "modules": "[\\"online\\"]",'."\n"
+ .''."\n"
+ .' "foundationDetailList": "67,68,69,70,71,72,73,74,75,76,77,78,79",'."\n"
+ .''."\n"
+ .' "name": "oc27_pre",'."\n"
+ .''."\n"
+ .' "hippoId": "hippo_7u_oc27",'."\n"
+ .''."\n"
+ .' "id": 15'."\n"
+ .''."\n"
.' }'."\n"
- .' }'."\n"
- .' ]'."\n"
- .'}'."\n"
- .'```',
- ],
- 'ListDateSourceGenerations' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/generations',
- 'methods' => [
- 'get',
+ .''."\n"
+ .' ],'."\n"
+ .''."\n"
+ .' "graph": {'."\n"
+ .''."\n"
+ .' "zoneMetas": ['."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "suezAdminName": "search4TestPlugin_pre",'."\n"
+ .''."\n"
+ .' "zoneMetaId": 8509,'."\n"
+ .''."\n"
+ .' "domainInfo": "pre",'."\n"
+ .''."\n"
+ .' "mainZone": true,'."\n"
+ .''."\n"
+ .' "name": "search4TestPlugin_qrs",'."\n"
+ .''."\n"
+ .' "zoneId": 11379,'."\n"
+ .''."\n"
+ .' "tag": "search4TestPlugin_qrs_pre",'."\n"
+ .''."\n"
+ .' "clusterId": 5265,'."\n"
+ .''."\n"
+ .' "type": "qrs"'."\n"
+ .''."\n"
+ .' },'."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "suezAdminName": "search4TestPlugin_pre",'."\n"
+ .''."\n"
+ .' "zoneMetaId": 8510,'."\n"
+ .''."\n"
+ .' "domainInfo": "pre",'."\n"
+ .''."\n"
+ .' "mainZone": true,'."\n"
+ .''."\n"
+ .' "name": "test_searcher",'."\n"
+ .''."\n"
+ .' "zoneId": 11380,'."\n"
+ .''."\n"
+ .' "tag": "test_searcher_pre",'."\n"
+ .''."\n"
+ .' "clusterId": 5265,'."\n"
+ .''."\n"
+ .' "type": "searcher"'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .' ],'."\n"
+ .''."\n"
+ .' "tableIndexRelation": {'."\n"
+ .''."\n"
+ .' "product_sku_pre_ea120": ['."\n"
+ .''."\n"
+ .' "product_sku_pre_ea120"'."\n"
+ .''."\n"
+ .' ]'."\n"
+ .''."\n"
+ .' },'."\n"
+ .''."\n"
+ .' "onlineMaster": ['."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "appId": 5171,'."\n"
+ .''."\n"
+ .' "domainId": 1,'."\n"
+ .''."\n"
+ .' "domainName": "pre",'."\n"
+ .''."\n"
+ .' "gmtCreate": 1628561292000,'."\n"
+ .''."\n"
+ .' "gmtModified": 1628562498000,'."\n"
+ .''."\n"
+ .' "hippoGroupId": "20",'."\n"
+ .''."\n"
+ .' "id": 5265,'."\n"
+ .''."\n"
+ .' "monitorStatus": 1,'."\n"
+ .''."\n"
+ .' "name": "search4TestPlugin_pre",'."\n"
+ .''."\n"
+ .' "processorInfoId": 27789,'."\n"
+ .''."\n"
+ .' "zkAddr": ""'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .' ],'."\n"
+ .''."\n"
+ .' "indexMetas": ['."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "tableDeployId": 7366,'."\n"
+ .''."\n"
+ .' "zoneMetaId": 8510,'."\n"
+ .''."\n"
+ .' "domainName": "pre_ea120",'."\n"
+ .''."\n"
+ .' "name": "product_sku",'."\n"
+ .''."\n"
+ .' "tableId": 6866,'."\n"
+ .''."\n"
+ .' "tag": "product_sku_pre_ea120",'."\n"
+ .''."\n"
+ .' "zoneName": "test_searcher",'."\n"
+ .''."\n"
+ .' "tableName": "product_sku"'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .' ],'."\n"
+ .''."\n"
+ .' "offlineMaster": ['."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "appId": 5214,'."\n"
+ .''."\n"
+ .' "domainId": 18,'."\n"
+ .''."\n"
+ .' "domainName": "pre_ea120",'."\n"
+ .''."\n"
+ .' "gmtCreate": 1628501863000,'."\n"
+ .''."\n"
+ .' "gmtModified": 1628501863000,'."\n"
+ .''."\n"
+ .' "id": 3751,'."\n"
+ .''."\n"
+ .' "isPublic": 2,'."\n"
+ .''."\n"
+ .' "monitorStatus": 1,'."\n"
+ .''."\n"
+ .' "name": "search4_multi_biz_bs",'."\n"
+ .''."\n"
+ .' "platformType": "tisplus",'."\n"
+ .''."\n"
+ .' "processorInfoId": 27755,'."\n"
+ .''."\n"
+ .' "zkAddr": ""'."\n"
+ .''."\n"
+ .' }'."\n"
+ .'```'."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeployGraph'],
+ ],
],
- 'schemes' => [
- 'https',
- 'http',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDeployGraph',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"graph\\": {\\n \\"onlineMaster\\": [\\n {\\n \\"id\\": 1,\\n \\"name\\": \\"\\\\t\\\\nha-cn-pl32rf0****_hz_pre_vpc_domain_1\\",\\n \\"domainName\\": \\"hz_pre_vpc_domain_1\\",\\n \\"hippoId\\": \\"5377\\"\\n }\\n ],\\n \\"zoneMetas\\": [\\n {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"tag\\": \\"\\\\t\\\\nha-cn-pl32rf0****_qrs_hz_pre_vpc_domain_1\\",\\n \\"suezAdminName\\": \\"\\\\t\\\\nha-cn-pl32rf0****_hz_pre_vpc_domain_1\\",\\n \\"type\\": \\"qrs\\",\\n \\"domainInfo\\": \\"hz_pre_vpc_domain_1\\"\\n }\\n ],\\n \\"tableMetas\\": [\\n {\\n \\"tableDeployId\\": 2177,\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"tag\\": \\"ha-cn-pl32rf0****_test_api_hz_pre_vpc_domain_1\\",\\n \\"domainName\\": \\"hz_pre_vpc_domain_1\\",\\n \\"buildDeployId\\": 1,\\n \\"type\\": \\"odps\\"\\n }\\n ],\\n \\"indexMetas\\": [\\n {\\n \\"name\\": \\"test_api\\",\\n \\"tag\\": \\"test_api_hz_pre_vpc_domain_1\\",\\n \\"domainName\\": \\"hz_pre_vpc_domain_1\\",\\n \\"tableDeployId\\": 2409,\\n \\"tableName\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"zoneName\\": \\"ha-cn-pl32rf0****_qrs\\"\\n }\\n ],\\n \\"zoneIndexRelation\\": {\\n \\"key\\": [\\n \\"general_hz_pre_vpc_domain_1\\"\\n ]\\n },\\n \\"tableIndexRelation\\": {\\n \\"key\\": [\\n \\"test_api_hz_pre_vpc_domain_1\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetFile' => [
+ 'summary' => '查看索引表版本详情。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -10364,124 +5275,58 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '104689',
+ 'abilityTreeNodes' => ['FEATUREopensearch8WJIRU'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'dataSourceName',
+ 'name' => 'indexName',
'in' => 'path',
- 'schema' => [
- 'description' => '数据源名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
+ 'schema' => ['title' => '索引名称', 'description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
[
- 'name' => 'validStatus',
- 'in' => 'query',
- 'schema' => [
- 'description' => '有效状态(默认为true)'."\n"
- ."\n"
- .'1. true 返回Task执行完成且未过期的generation'."\n"
- .'2. false 返回所有generation',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'true',
- ],
+ 'name' => 'versionName',
+ 'in' => 'path',
+ 'schema' => ['title' => '版本名称', 'description' => '版本名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@bj_vpc_domain_1@point_cloud_3d@index_config_edit'],
],
[
- 'name' => 'domainName',
+ 'name' => 'fileName',
'in' => 'query',
- 'schema' => [
- 'description' => '数据源部署机房',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'bj_vpc_domain_1',
- ],
+ 'schema' => ['title' => '文件全路径名称', 'description' => '文件全路径名称', 'type' => 'string', 'required' => true, 'example' => '/schemas/automobile_vector_schema.json'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
'result' => [
- 'title' => 'List',
- 'description' => '返回结果',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'generation' => [
- 'title' => 'generation 主键',
- 'description' => '索引全量版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1626143930',
- ],
- 'createTime' => [
- 'title' => '全量时间',
- 'description' => 'build index 开始时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1626143673',
- ],
- 'status' => [
- 'title' => '数据状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'STOPPED',
- ],
- 'buildDeployId' => [
- 'title' => 'buildDeployId',
- 'description' => '离线部署id',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '122',
- ],
- 'partition' => [
- 'title' => '数据描述',
- 'description' => 'Key 索引名称'."\n"
- .'value 分片数量',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'description' => '分片数',
- 'example' => '1',
- ],
- ],
- 'timestamp' => [
- 'title' => '时间戳',
- 'description' => '增量时间戳',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1626143673',
- ],
- 'dataDumpRoot' => [
- 'title' => 'dump表索引文件存储地址',
- 'description' => 'dump表索引文件存储地址',
- 'type' => 'string',
- 'example' => 'hdfs://opensearch/dump.json',
+ 'title' => '索引信息',
+ 'description' => '索引信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '文件名称', 'description' => '文件名称', 'type' => 'string', 'example' => 'testFile'],
+ 'fullPathName' => ['title' => '全路径名称', 'description' => '全路径名称', 'type' => 'string', 'example' => '/schema.json'],
+ 'dataSource' => ['title' => '数据源', 'description' => '数据源', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'partition' => ['title' => '分片数', 'description' => '分片数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'isDir' => ['title' => '是否为目录', 'description' => '是否为目录', 'type' => 'boolean', 'example' => 'true'],
+ 'content' => ['title' => '内容', 'description' => '内容', 'type' => 'string', 'example' => '{"summarys":{"parameter":{"file_compressor":"zstd"},"summary_fields":["id"]},"file_compress":[{"name":"file_compressor","type":"zstd"},{"name":"no_compressor","type":""}],"indexs":[{"index_fields":"name","index_name":"ids","index_type":"STRING"},{"has_primary_key_attribute":true,"index_fields":"id","is_primary_key_sorted":false,"index_name":"id","index_type":"PRIMARYKEY64"}],"attributes":[{"file_compress":"no_compressor","field_name":"id"}],"fields":[{"user_defined_param":{},"compress_type":"uniq","field_type":"STRING","field_name":"id"},{"compress_type":"uniq","field_type":"STRING","field_name":"name"}],"table_name":"api"}'],
+ 'extend' => [
+ 'description' => '扩展信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '扩展信息'],
+ 'description' => '扩展信息',
],
],
],
@@ -10491,61 +5336,70 @@
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": [\\n {\\n \\"generation\\": 1626143930,\\n \\"createTime\\": 1626143673,\\n \\"status\\": \\"STOPPED\\",\\n \\"buildDeployId\\": 122,\\n \\"partition\\": {\\n \\"key\\": 1\\n },\\n \\"timestamp\\": 1626143673,\\n \\"dataDumpRoot\\": \\"hdfs://opensearch/dump.json\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取数据源的历史回流信息',
- 'summary' => '获取数据源的历史回流信息。',
- 'description' => '### 方法'."\n"
+ 'title' => '查看索引表版本详情',
+ 'description' => '## 方法'."\n"
."\n"
- .'```java'."\n"
+ .'```'."\n"
.'GET'."\n"
.'```'."\n"
."\n"
- .'### URI'."\n"
+ .'## URI'."\n"
."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/generations?domainName={domainName}'."\n"
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source/generations??domainName=pre_domain_1`'."\n",
- 'responseParamsDescription' => '### 返回示例'."\n"
+ 'requestParamsDescription' => "\n"
+ ."\n"
+ .'## 请求示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'GET /openapi/ha3/instances/ose-test1/indexes/index1/versions/version1?fileName=/root/test.txt'."\n"
+ .'```'."\n"
+ ."\n\n"
+ ."\n\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
."\n"
.'```'."\n"
.'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": ['."\n"
- .' {'."\n"
- .' "generationId":1626143930,'."\n"
- .' "timestamp":16261436737,'."\n"
- .' "createTime":1626143673,'."\n"
- .' "status":"STOPPED",'."\n"
- .' "partition":{'."\n"
- .' "index1":1'."\n"
- .' },'."\n"
- .' "buildDeployId":122'."\n"
- .' },{'."\n"
- .' "generationId":1626143930,'."\n"
- .' "timestamp":16261435453,'."\n"
- .' "createTime":1626143673,'."\n"
- .' "status":"STOPPED",'."\n"
- .' "partition":{'."\n"
- .' "index1":1'."\n"
- .' },'."\n"
- .' "buildDeployId":122'."\n"
- .' }'."\n"
- .' ]'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": {'."\n"
+ .' "name":"version1", // 文件名'."\n"
+ .' "fullPathName": "/root/version1", // 全路径名称'."\n"
+ .' "dataSource": "odps1", // 数据源'."\n"
+ .' "partition": 1, // 分片'."\n"
+ .' "isDir": false, // 是否为目录'."\n"
+ .' "content": ""'."\n"
+ .' }'."\n"
.'}'."\n"
- .'```',
- ],
- 'GetDataSourceDeploy' => [
- 'summary' => '获取数据源部署信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}',
- 'methods' => [
- 'get',
+ .'```'."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFile'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"name\\": \\"testFile\\",\\n \\"fullPathName\\": \\"/schema.json\\",\\n \\"dataSource\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"partition\\": 2,\\n \\"isDir\\": true,\\n \\"content\\": \\"{\\\\\\"summarys\\\\\\":{\\\\\\"parameter\\\\\\":{\\\\\\"file_compressor\\\\\\":\\\\\\"zstd\\\\\\"},\\\\\\"summary_fields\\\\\\":[\\\\\\"id\\\\\\"]},\\\\\\"file_compress\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"file_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"zstd\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"\\\\\\"}],\\\\\\"indexs\\\\\\":[{\\\\\\"index_fields\\\\\\":\\\\\\"name\\\\\\",\\\\\\"index_name\\\\\\":\\\\\\"ids\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"STRING\\\\\\"},{\\\\\\"has_primary_key_attribute\\\\\\":true,\\\\\\"index_fields\\\\\\":\\\\\\"id\\\\\\",\\\\\\"is_primary_key_sorted\\\\\\":false,\\\\\\"index_name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"PRIMARYKEY64\\\\\\"}],\\\\\\"attributes\\\\\\":[{\\\\\\"file_compress\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"}],\\\\\\"fields\\\\\\":[{\\\\\\"user_defined_param\\\\\\":{},\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"},{\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"name\\\\\\"}],\\\\\\"table_name\\\\\\":\\\\\\"api\\\\\\"}\\",\\n \\"extend\\": {\\n \\"key\\": [\\n \\"\\"\\n ]\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetIndex' => [
+ 'summary' => '查看索引表版本详情。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -10555,42 +5409,19 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'abilityTreeCode' => '159951',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchA944AC',
- 'FEATUREopensearchS8X6T8',
- ],
+ 'abilityTreeCode' => '104685',
+ 'abilityTreeNodes' => ['FEATUREopensearchJB31XH'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'deployName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '机房',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc_hz_domain_1',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'dataSourceName',
+ 'name' => 'indexName',
'in' => 'path',
- 'schema' => [
- 'description' => '数据源的名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
],
'responses' => [
@@ -10598,1116 +5429,987 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4FB0325E-8C37-5525-96AC-0333523170A3'],
'result' => [
- 'title' => 'Deploy',
- 'description' => '返回结果。',
+ 'title' => 'IndexConfig',
+ 'description' => '索引信息',
'type' => 'object',
'properties' => [
- 'storage' => [
- 'description' => '数据源信息',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => 'odps数据源的endpoint',
- 'type' => 'string',
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源ak secret',
- 'type' => 'string',
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'example' => 'wireless_1688_personal_rec',
- ],
- 'partition' => [
- 'description' => 'odps数据源分区。例如:ds=20180102',
- 'type' => 'string',
- 'example' => 'ds=20220926',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'saro、odps数据源表名',
- 'type' => 'string',
- 'example' => 'behavior',
- ],
- 'namespace' => [
- 'title' => 'saro相关',
- 'description' => 'saro相关',
- 'type' => 'string',
- 'example' => 'lazada-campaign-flink',
- ],
- 'path' => [
- 'title' => 'hdfs相关',
- 'description' => 'hdfs相关',
- 'type' => 'string',
- 'example' => '/beiming_xobject/dwd_xobjectsandbox__list_create_action_by_new/',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss数据源相关',
- 'type' => 'string',
- 'example' => '/opensearch/test.json',
- ],
- 'bucket' => [
- 'description' => 'oss bucket',
- 'type' => 'string',
- 'example' => 'test-oss-bucket',
- ],
- 'catalog' => [
- 'type' => 'string',
- ],
- 'database' => [
- 'type' => 'string',
- ],
- 'tag' => [
- 'type' => 'string',
- ],
- ],
- ],
- 'autoBuildIndex' => [
- 'title' => '是否开启自动全量',
- 'description' => '是否开启自动全量',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'processor' => [
- 'description' => '进程参数',
- 'type' => 'object',
- 'properties' => [
- 'args' => [
- 'title' => '进程启动参数',
- 'description' => '进程启动参数',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "processInfos": [],'."\n"
- .' "groupId": "opensearch",'."\n"
- .' "containerConfigs": [],'."\n"
- .' "priority": {'."\n"
- .' "minor_priority": 0,'."\n"
- .' "major_priority": 64'."\n"
- .' }'."\n"
- .'}',
- ],
- 'resource' => [
- 'title' => '资源信息',
- 'description' => '资源信息',
- 'type' => 'string',
- 'example' => '[{'."\n"
- .' "_bs_role": "processor.*.inc",'."\n"
- .' "priority": {'."\n"
- .' "major_priority": 32,'."\n"
- .' "minor_priority": 0'."\n"
- .' },'."\n"
- .' "slotResources": [{'."\n"
- .' "slotResources": [{'."\n"
- .' "amount": 200,'."\n"
- .' "name": "cpu"'."\n"
- .' }, {'."\n"
- .' "amount": 8192,'."\n"
- .' "name": "mem"'."\n"
- .' }, {'."\n"
- .' "amount": 0,'."\n"
- .' "name": "T4"'."\n"
- .' }, {'."\n"
- .' "amount": 10,'."\n"
- .' "type": "SCALAR",'."\n"
- .' "name": "disk_ratio_9999"'."\n"
- .' }, {'."\n"
- .' "amount": 20480,'."\n"
- .' "type": "SCALAR",'."\n"
- .' "name": "disk_size_9999"'."\n"
- .' }]'."\n"
- .' }]'."\n"
- .'}]',
+ 'name' => ['title' => '配置名称', 'description' => '索引名称', 'type' => 'string', 'example' => 'test_api'],
+ 'versions' => [
+ 'title' => '版本列表',
+ 'description' => '版本信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据版本信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'desc' => ['title' => '描述', 'description' => '描述信息', 'type' => 'string', 'example' => 'Index Note'],
+ 'files' => [
+ 'title' => '文件名列表',
+ 'description' => '所在位置',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '版本详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'fullPathName' => ['description' => '完整路径', 'type' => 'string', 'example' => '/qrs.json'."\n"],
+ 'isDir' => ['description' => '是文件夹', 'type' => 'boolean', 'example' => 'true'],
+ 'isTemplate' => ['description' => '是模板', 'type' => 'boolean', 'example' => 'true'],
+ 'name' => ['description' => '文件名称', 'type' => 'string', 'example' => 'qrs.json'],
+ ],
+ ],
+ ],
+ 'name' => ['title' => '版本名', 'description' => '版本名称', 'type' => 'string', 'example' => 'test'],
+ 'status' => ['title' => 'drafting、used、unused (drafting: 草稿, used: 线上使用, unused:未使用, trash: 删除中)', 'description' => '状态 '."\n"
+ ."\n"
+ .'- NEW:创建。'."\n"
+ .'- PUBLISH:正常。'."\n"
+ .'- IN_USE:使用中。'."\n"
+ .'- NOT_USE:未使用。'."\n"
+ .'- STOP_USE:停止使用中。'."\n"
+ .'- RESTORE_USE:恢复使用中。'."\n"
+ .'- FAIL:失败。', 'type' => 'string', 'example' => 'PUBLISH'],
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1718846192'],
+ 'versionId' => ['title' => '版本id (edit版本为null)', 'description' => '版本ID', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
- 'extend' => [
- 'description' => '字段配置的扩展的内容'."\n"
- .'key: 向量字段(vector)、'."\n"
- .'需embeding字段(embeding)',
+ 'dataSource' => ['title' => '数据源', 'description' => '数据源', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'."\n"],
+ 'domain' => ['title' => '数据源的部署名', 'description' => '数据源的部署名', 'type' => 'string', 'example' => 'sz_vpc_domain_1'],
+ 'indexStatus' => ['title' => '表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE,RESTORE_USE)', 'description' => '状态 '."\n"
+ ."\n"
+ .'- NEW:创建。'."\n"
+ .'- PUBLISH:正常。'."\n"
+ .'- IN_USE:使用中。'."\n"
+ .'- NOT_USE:未使用。'."\n"
+ .'- STOP_USE:停止使用中。'."\n"
+ .'- RESTORE_USE:恢复使用中。'."\n"
+ .'- FAIL:失败。', 'type' => 'string', 'example' => 'IN_USE'],
+ 'content' => ['title' => '文件内容', 'description' => '文件内容', 'type' => 'string', 'example' => '{"summarys":{"parameter":{"file_compressor":"zstd"},"summary_fields":["id"]},"file_compress":[{"name":"file_compressor","type":"zstd"},{"name":"no_compressor","type":""}],"indexs":[{"index_fields":"name","index_name":"ids","index_type":"STRING"},{"has_primary_key_attribute":true,"index_fields":"id","is_primary_key_sorted":false,"index_name":"id","index_type":"PRIMARYKEY64"}],"attributes":[{"file_compress":"no_compressor","field_name":"id"}],"fields":[{"user_defined_param":{},"compress_type":"uniq","field_type":"STRING","field_name":"id"},{"compress_type":"uniq","field_type":"STRING","field_name":"name"}],"table_name":"api"}'],
+ 'partition' => ['title' => '数据分片', 'description' => '数据分片', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'fullVersion' => ['title' => '数据版本', 'description' => '数据版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1688523414'],
+ 'fullUpdateTime' => ['title' => '全量切换时间', 'description' => '全量切换时间', 'type' => 'string', 'example' => '2024-06-20 08:52:54'],
+ 'incUpdateTime' => ['title' => '增量更新时间', 'description' => '增量更新时间', 'type' => 'string', 'example' => '2024-06-20 08:52:54'],
+ 'indexSize' => ['title' => '索引大小', 'description' => '索引大小', 'type' => 'integer', 'format' => 'int64', 'example' => '4689'],
+ 'description' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'note'],
+ 'dataSourceInfo' => [
+ 'title' => '数据源相关信息',
+ 'description' => '数据源相关信息',
'type' => 'object',
'properties' => [
- 'saro' => [
- 'description' => 'saro数据源信息',
+ 'processPartitionCount' => ['title' => '数据更新资源数', 'description' => '数据更新资源数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'name' => ['title' => '数据源名', 'description' => '数据源名', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'."\n"],
+ 'type' => ['title' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'description' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'type' => 'string', 'example' => 'odps'],
+ 'domain' => ['title' => '离线部署', 'description' => '离线部署', 'type' => 'string', 'example' => 'vpc_hz_domain_1'],
+ 'config' => [
+ 'title' => 'odps 数据源配置',
+ 'description' => 'odps 数据源配置',
'type' => 'object',
'properties' => [
- 'path' => [
- 'description' => 'hdfs数据源路径',
- 'type' => 'string',
- 'example' => 'dist-dmj-job/src/main/java',
- ],
- 'version' => [
- 'description' => '版本号',
- 'type' => 'string',
- 'example' => '0.6.0',
- ],
+ 'endpoint' => ['title' => 'odps相关', 'description' => 'odps相关', 'type' => 'string', 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源ak secret', 'type' => 'string', 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'example' => 'tisplus_dev'],
+ 'partition' => ['description' => 'ODPS Partition。例如:ds=20180102'."\n", 'type' => 'string', 'example' => 'ds=20220713'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'saro、odps相关', 'type' => 'string', 'example' => 'dump_odps_demo'],
+ 'namespace' => ['title' => 'saro相关', 'description' => 'saro相关', 'type' => 'string', 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo'],
+ 'path' => ['title' => 'hdfs相关', 'description' => 'hdfs相关', 'type' => 'string', 'example' => 'http://test_opensearch/sift_oss_test.data'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss数据源相关', 'type' => 'string', 'example' => '/test_opensearch/sift_oss_test.data'],
+ 'bucket' => ['description' => 'Bucket名称。', 'type' => 'string', 'example' => 'ha3test-oss'],
+ 'format' => ['description' => 'oss的文件格式类型'."\n"
+ .'- ha3'."\n"
+ .'- json', 'type' => 'string', 'example' => 'ha3'],
+ 'catalog' => ['description' => 'dlf数据源-数据目录ID', 'type' => 'string', 'example' => 'clg-paimon-21cc136237a6457f8618f5f82d116d7e'],
+ 'database' => ['description' => 'dlf数据源-数据库', 'type' => 'string', 'example' => 'dlf_test'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'example' => 'test_tag'],
],
],
- 'hdfs' => [
- 'description' => 'hdfs信息',
+ 'saroConfig' => [
+ 'title' => 'saro数据源配置',
+ 'description' => 'saro数据源配置',
'type' => 'object',
'properties' => [
- 'path' => [
- 'description' => 'hdfs数据源路径',
- 'type' => 'string',
- 'example' => 'dist-dmj-job/src/main/java',
- ],
+ 'namespace' => ['description' => 'saro数据源的namespace', 'type' => 'string', 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo'],
+ 'tableName' => ['description' => 'saro数据表名称', 'type' => 'string', 'example' => 'llm'],
],
],
- 'odps' => [
- 'description' => 'odps数据源信息',
+ 'autoBuildIndex' => ['title' => '是否开启自动全量', 'description' => '是否开启自动全量', 'type' => 'boolean', 'example' => 'true'],
+ 'processParallelNum' => ['description' => '全量process并发数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ ],
+ ],
+ 'createTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'updateTime' => ['description' => '更新时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'cluster' => [
+ 'description' => '集群信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'buildParallelNum' => ['type' => 'integer', 'format' => 'int32', 'example' => '2', 'description' => '全量并发数'],
+ 'mergeParallelNum' => ['type' => 'integer', 'format' => 'int32', 'description' => '全量merge并发数', 'example' => '2'],
+ ],
+ 'description' => '集群信息',
+ ],
+ ],
+ 'config' => [
+ 'description' => '配置信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'additionalProperties' => [
'type' => 'object',
'properties' => [
- 'partitions' => [
- 'description' => '数据源的分区信息',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => 'ds=20220926',
- 'description' => '数据源的分区信息',
- ],
- ],
+ 'name' => ['type' => 'string', 'example' => "\n"
+ .'ha-cn-pl32rf0****_offline_adv_v1', 'description' => '配置名称'],
+ 'updateTime' => ['type' => 'string', 'description' => '更新时间', 'example' => '1716258634000'],
+ 'desc' => ['type' => 'string', 'description' => '高级配置描述信息', 'example' => 'Note Information'],
],
+ 'description' => '子配置项信息',
],
- 'oss' => [
- 'description' => 'oss信息',
+ 'description' => '配置信息',
+ ],
+ ],
+ 'configWhenBuild' => [
+ 'description' => '下次生效的配置',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'additionalProperties' => [
'type' => 'object',
'properties' => [
- 'path' => [
- 'description' => 'oss数据源路径',
- 'type' => 'string',
- 'example' => 'oss://opensearch',
- ],
+ 'name' => ['type' => 'string', 'description' => '配置名称', 'example' => "\n"
+ .'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'updateTime' => ['type' => 'string', 'example' => '1716258634000', 'description' => '更新时间'],
+ 'desc' => ['type' => 'string', 'description' => '高级配置描述信息', 'example' => 'Note Information'],
],
+ 'description' => '下次生效的子配置',
],
+ 'description' => '下次生效的配置',
],
],
- 'swift' => [
- 'title' => '增量swift信息',
- 'description' => '增量swift信息',
+ 'extend' => [
+ 'description' => '扩展信息',
'type' => 'object',
- 'properties' => [
- 'zk' => [
- 'description' => 'zk',
- 'type' => 'string',
- 'example' => 'test-zk',
- ],
- 'topic' => [
- 'description' => 'topic',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
+ 'additionalProperties' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '扩展信息', 'example' => 'Extended Information'],
+ 'description' => '扩展信息',
],
],
],
],
],
+ 'description' => '',
+ ],
+ ],
+ '5xx' => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['type' => 'string', 'description' => ''],
+ 'message' => ['type' => 'string', 'description' => ''],
+ 'code' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"storage\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"L***p\\",\\n \\"accessSecret\\": \\"5**9a6\\",\\n \\"project\\": \\"wireless_1688_personal_rec\\",\\n \\"partition\\": \\"ds=20220926\\",\\n \\"table\\": \\"behavior\\",\\n \\"namespace\\": \\"lazada-campaign-flink\\",\\n \\"path\\": \\"/beiming_xobject/dwd_xobjectsandbox__list_create_action_by_new/\\",\\n \\"ossPath\\": \\"/opensearch/test.json\\",\\n \\"bucket\\": \\"test-oss-bucket\\",\\n \\"catalog\\": \\"\\",\\n \\"database\\": \\"\\",\\n \\"tag\\": \\"\\"\\n },\\n \\"autoBuildIndex\\": true,\\n \\"processor\\": {\\n \\"args\\": \\"{\\\\n\\\\t\\\\\\"processInfos\\\\\\": [],\\\\n\\\\t\\\\\\"groupId\\\\\\": \\\\\\"opensearch\\\\\\",\\\\n\\\\t\\\\\\"containerConfigs\\\\\\": [],\\\\n\\\\t\\\\\\"priority\\\\\\": {\\\\n\\\\t\\\\t\\\\\\"minor_priority\\\\\\": 0,\\\\n\\\\t\\\\t\\\\\\"major_priority\\\\\\": 64\\\\n\\\\t}\\\\n}\\",\\n \\"resource\\": \\"[{\\\\n\\\\t\\\\\\"_bs_role\\\\\\": \\\\\\"processor.*.inc\\\\\\",\\\\n\\\\t\\\\\\"priority\\\\\\": {\\\\n\\\\t\\\\t\\\\\\"major_priority\\\\\\": 32,\\\\n\\\\t\\\\t\\\\\\"minor_priority\\\\\\": 0\\\\n\\\\t},\\\\n\\\\t\\\\\\"slotResources\\\\\\": [{\\\\n\\\\t\\\\t\\\\\\"slotResources\\\\\\": [{\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 200,\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"cpu\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 8192,\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"mem\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 0,\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"T4\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 10,\\\\n\\\\t\\\\t\\\\t\\\\\\"type\\\\\\": \\\\\\"SCALAR\\\\\\",\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"disk_ratio_9999\\\\\\"\\\\n\\\\t\\\\t}, {\\\\n\\\\t\\\\t\\\\t\\\\\\"amount\\\\\\": 20480,\\\\n\\\\t\\\\t\\\\t\\\\\\"type\\\\\\": \\\\\\"SCALAR\\\\\\",\\\\n\\\\t\\\\t\\\\t\\\\\\"name\\\\\\": \\\\\\"disk_size_9999\\\\\\"\\\\n\\\\t\\\\t}]\\\\n\\\\t}]\\\\n}]\\"\\n },\\n \\"extend\\": {\\n \\"saro\\": {\\n \\"path\\": \\"dist-dmj-job/src/main/java\\",\\n \\"version\\": \\"0.6.0\\"\\n },\\n \\"hdfs\\": {\\n \\"path\\": \\"dist-dmj-job/src/main/java\\"\\n },\\n \\"odps\\": {\\n \\"partitions\\": {\\n \\"key\\": \\"ds=20220926\\"\\n }\\n },\\n \\"oss\\": {\\n \\"path\\": \\"oss://opensearch\\"\\n }\\n },\\n \\"swift\\": {\\n \\"zk\\": \\"test-zk\\",\\n \\"topic\\": \\"ha-cn-pl32rf0****_test_api\\"\\n }\\n }\\n}","type":"json"}]',
- 'title' => '获取数据源部署信息',
- 'description' => '### 方法'."\n"
+ 'title' => '查看索引表详情',
+ 'description' => '## 方法'."\n"
."\n"
- .'```java'."\n"
+ .'```'."\n"
.'GET'."\n"
.'```'."\n"
."\n"
- .'### URI'."\n"
+ .'## URI'."\n"
."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}'."\n"
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}'."\n"
.'```',
- ],
- 'CloneSqlInstance' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/clone',
- 'methods' => [
- 'post',
+ 'requestParamsDescription' => '## 请求示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'GET /openapi/ha3/instances/ose-test1/indexes/index1?dataSource=xxx'."\n"
+ .'```',
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": {'."\n"
+ .' "name": "index-name",'."\n"
+ .' "dataSource": "ha-cn-xxx-index-name",'."\n"
+ .' "domain": "test", // 数据源的部署名称'."\n"
+ .' "partition": 2,'."\n"
+ .' "indexStatus": "IN_USE",'."\n"
+ .' "content": "{\\n\\t\\"summarys\\":{\\n\\t\\t\\"parameter\\":{\\n\\t\\t\\t\\"file_compressor\\":\\"zstd\\"\\n\\t\\t},\\n\\t\\t\\"summary_fields\\":[\\n\\t\\t\\t\\"id\\"\\n\\t\\t]\\n\\t},\\n\\t\\"file_compress\\":[\\n\\t\\t{\\n\\t\\t\\t\\"name\\":\\"file_compressor\\",\\n\\t\\t\\t\\"type\\":\\"zstd\\"\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\t\\"name\\":\\"no_compressor\\",\\n\\t\\t\\t\\"type\\":\\"\\"\\n\\t\\t}\\n\\t],\\n\\t\\"indexs\\":[\\n\\t\\t{\\n\\t\\t\\t\\"index_fields\\":\\"name\\",\\n\\t\\t\\t\\"index_name\\":\\"ids\\",\\n\\t\\t\\t\\"index_type\\":\\"STRING\\"\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\t\\"has_primary_key_attribute\\":true,\\n\\t\\t\\t\\"index_fields\\":\\"id\\",\\n\\t\\t\\t\\"is_primary_key_sorted\\":false,\\n\\t\\t\\t\\"index_name\\":\\"id\\",\\n\\t\\t\\t\\"index_type\\":\\"PRIMARYKEY64\\"\\n\\t\\t}\\n\\t],\\n\\t\\"attributes\\":[\\n\\t\\t{\\n\\t\\t\\t\\"file_compress\\":\\"no_compressor\\",\\n\\t\\t\\t\\"field_name\\":\\"id\\"\\n\\t\\t}\\n\\t],\\n\\t\\"fields\\":[\\n\\t\\t{\\n\\t\\t\\t\\"user_defined_param\\":{},\\n\\t\\t\\t\\"compress_type\\":\\"uniq\\",\\n\\t\\t\\t\\"field_type\\":\\"STRING\\",\\n\\t\\t\\t\\"field_name\\":\\"id\\"\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\t\\"compress_type\\":\\"uniq\\",\\n\\t\\t\\t\\"field_type\\":\\"STRING\\",\\n\\t\\t\\t\\"field_name\\":\\"name\\"\\n\\t\\t}\\n\\t],\\n\\t\\"table_name\\":\\"api\\"\\n}",'."\n"
+ .' "extend": {'."\n"
+ .' "vector": ['."\n"
+ .' "vector"'."\n"
+ .' ],'."\n"
+ .' "embeding": ['."\n"
+ .' "id"'."\n"
+ .' ],'."\n"
+ .' "description": ['."\n"
+ .' "{\\"feild2\\":\\"备注2\\"}",'."\n"
+ .' "{\\"feild3\\":\\"备注3\\"}"'."\n"
+ .' ]'."\n"
+ .' },'."\n"
+ .' "cluster": {'."\n"
+ .' "build_parallel_num": "2",'."\n"
+ .' "merge_parallel_num": "2"'."\n"
+ .' },'."\n"
+ .' "dataSourceInfo": {'."\n"
+ .' "type": "odps",'."\n"
+ .' "dataSource": "ha-cn-xxx-index-name",'."\n"
+ .' "processPartitionCount": 2,'."\n"
+ .' "domain": "test",'."\n"
+ .' "autoBuildIndex": true,'."\n"
+ .' "config": {'."\n"
+ .' "project": "tisplus_dev",'."\n"
+ .' "table": "tisplus_one_key_build_station_template_table_test",'."\n"
+ .' "partition": "ds=12345",'."\n"
+ .' "accesskeyId": "root",'."\n"
+ .' "accesskeySecret": "root123",'."\n"
+ .' "endpoint": "http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api"'."\n"
+ .' },'."\n"
+ .' "saroConfig": {'."\n"
+ .' "namespace": "TEST_dump_demo_sj_na61hunbu2_share_holo",'."\n"
+ .' "tableName": "dump_odps_demo"'."\n"
+ .' },'."\n"
+ .' "processParallelNum": 2,'."\n"
+ .' "swiftConfig":{'."\n"
+ .' "topic":"ha-cn-xxx-index-name"'."\n"
+ .' }'."\n"
+ .' },'."\n"
+ .' "config": {'."\n"
+ .' "OFFLINE_DICT": {'."\n"
+ .' "name": "ha-cn-finxmo71065_offline_dict_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_TABLE": {'."\n"
+ .' "name": "ha-cn-finxmo71065_table_ha-cn-finxmo71065_test_saro_v2",'."\n"
+ .' "updateTime": 1709261682000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_COMMON": {'."\n"
+ .' "name": "ha-cn-finxmo71065_offline_adv_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_PLUGIN": {'."\n"
+ .' "name": "ha-cn-finxmo71065_offline_plugin_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_INDEX": {'."\n"
+ .' "name": "ha-cn-finxmo71065@ha-cn-finxmo71065_test_saro@test_saro@index_config_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' }'."\n"
+ .' },'."\n"
+ .' "configWhenBuild": {'."\n"
+ .' "OFFLINE_DICT": {'."\n"
+ .' "name": "ha-cn-finxmo71065_offline_dict_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_TABLE": {'."\n"
+ .' "name": "ha-cn-finxmo71065_table_ha-cn-finxmo71065_test_saro_v2",'."\n"
+ .' "updateTime": 1709261682000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_COMMON": {'."\n"
+ .' "name": "ha-cn-finxmo71065_offline_adv_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_PLUGIN": {'."\n"
+ .' "name": "ha-cn-finxmo71065_offline_plugin_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' },'."\n"
+ .' "OFFLINE_INDEX": {'."\n"
+ .' "name": "ha-cn-finxmo71065@ha-cn-finxmo71065_test_saro@test_saro@index_config_v2",'."\n"
+ .' "updateTime": 1709259817000,'."\n"
+ .' "desc": "描述"'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndex'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4FB0325E-8C37-5525-96AC-0333523170A3\\",\\n \\"result\\": {\\n \\"name\\": \\"test_api\\",\\n \\"versions\\": [\\n {\\n \\"desc\\": \\"Index Note\\",\\n \\"files\\": [\\n {\\n \\"fullPathName\\": \\"/qrs.json\\\\n\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true,\\n \\"name\\": \\"qrs.json\\"\\n }\\n ],\\n \\"name\\": \\"test\\",\\n \\"status\\": \\"PUBLISH\\",\\n \\"updateTime\\": 1718846192,\\n \\"versionId\\": 1\\n }\\n ],\\n \\"dataSource\\": \\"ha-cn-pl32rf0****_test_api\\\\n\\",\\n \\"domain\\": \\"sz_vpc_domain_1\\",\\n \\"indexStatus\\": \\"IN_USE\\",\\n \\"content\\": \\"{\\\\\\"summarys\\\\\\":{\\\\\\"parameter\\\\\\":{\\\\\\"file_compressor\\\\\\":\\\\\\"zstd\\\\\\"},\\\\\\"summary_fields\\\\\\":[\\\\\\"id\\\\\\"]},\\\\\\"file_compress\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"file_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"zstd\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"\\\\\\"}],\\\\\\"indexs\\\\\\":[{\\\\\\"index_fields\\\\\\":\\\\\\"name\\\\\\",\\\\\\"index_name\\\\\\":\\\\\\"ids\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"STRING\\\\\\"},{\\\\\\"has_primary_key_attribute\\\\\\":true,\\\\\\"index_fields\\\\\\":\\\\\\"id\\\\\\",\\\\\\"is_primary_key_sorted\\\\\\":false,\\\\\\"index_name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"PRIMARYKEY64\\\\\\"}],\\\\\\"attributes\\\\\\":[{\\\\\\"file_compress\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"}],\\\\\\"fields\\\\\\":[{\\\\\\"user_defined_param\\\\\\":{},\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"},{\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"name\\\\\\"}],\\\\\\"table_name\\\\\\":\\\\\\"api\\\\\\"}\\",\\n \\"partition\\": 2,\\n \\"fullVersion\\": 1688523414,\\n \\"fullUpdateTime\\": \\"2024-06-20 08:52:54\\",\\n \\"incUpdateTime\\": \\"2024-06-20 08:52:54\\",\\n \\"indexSize\\": 4689,\\n \\"description\\": \\"note\\",\\n \\"dataSourceInfo\\": {\\n \\"processPartitionCount\\": 2,\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\\\n\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"L***p\\",\\n \\"accessSecret\\": \\"5**9a6\\",\\n \\"project\\": \\"tisplus_dev\\",\\n \\"partition\\": \\"ds=20220713\\",\\n \\"table\\": \\"dump_odps_demo\\",\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"path\\": \\"http://test_opensearch/sift_oss_test.data\\",\\n \\"ossPath\\": \\"/test_opensearch/sift_oss_test.data\\",\\n \\"bucket\\": \\"ha3test-oss\\",\\n \\"format\\": \\"ha3\\",\\n \\"catalog\\": \\"clg-paimon-21cc136237a6457f8618f5f82d116d7e\\",\\n \\"database\\": \\"dlf_test\\",\\n \\"tag\\": \\"test_tag\\"\\n },\\n \\"saroConfig\\": {\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"tableName\\": \\"llm\\"\\n },\\n \\"autoBuildIndex\\": true,\\n \\"processParallelNum\\": 2\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"cluster\\": {\\n \\"key\\": {\\n \\"buildParallelNum\\": 2,\\n \\"mergeParallelNum\\": 2\\n }\\n },\\n \\"config\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"\\\\nha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"updateTime\\": \\"1716258634000\\",\\n \\"desc\\": \\"Note Information\\"\\n }\\n }\\n },\\n \\"configWhenBuild\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"\\\\nha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"updateTime\\": \\"1716258634000\\",\\n \\"desc\\": \\"Note Information\\"\\n }\\n }\\n },\\n \\"extend\\": {\\n \\"key\\": [\\n \\"Extended Information\\"\\n ]\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetIndexOnlineStrategy' => [
+ 'summary' => '获取索引在线生效策略。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '139625',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'database',
+ 'name' => 'dataSourceName',
'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
+ 'schema' => ['description' => '数据源名称。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_api_test'],
],
[
- 'name' => 'sqlInstanceId',
+ 'name' => 'deployName',
'in' => 'path',
- 'schema' => [
- 'description' => 'sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '机房', 'type' => 'string', 'required' => true, 'example' => 'vpc_hz_domain_1'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'targetFolderId' => [
- 'description' => '目标sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
- 'name' => [
- 'description' => '名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
],
'responses' => [
200 => [
+ 'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
'result' => [
- 'title' => 'NodeVO',
+ 'title' => 'IndexOnlineStrategy',
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'gmtCreate' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'gmtModified' => [
- 'description' => '修改时间。',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'name' => [
- 'description' => 'sql实例名称',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'parent' => [
- 'description' => '父任务id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'True',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'instance',
- ],
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-cn-pl32rf0****',
- ],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'changeRate' => ['title' => '索引变化率', 'description' => '索引变化率', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"id\\": 1,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"general\\",\\n \\"parent\\": 1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '复制SQL实例',
- 'summary' => '复制SQL实例。',
+ 'title' => '获取某一索引在线策略',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/clone'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy'."\n"
.'```',
- ],
- 'CreateFolder' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndexOnlineStrategy'],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '138808',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => '目录名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'gist_qc',
- ],
- 'parent' => [
- 'description' => '父类目id(必传),为空时则默认为1',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'instance',
- ],
- ],
- 'required' => false,
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
- 'result' => [
- 'title' => 'NodeVO',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'id' => [
- 'description' => '文件夹id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '25030',
- ],
- 'gmtCreate' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'gmtModified' => [
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'name' => [
- 'description' => '名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'parent' => [
- 'description' => '父层级id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'True',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'instance',
- ],
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetIndexOnlineStrategy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"id\\": 25030,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '创建目录',
- 'summary' => '创建目录。',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'POST'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {\\n \\"changeRate\\": 20\\n }\\n}","type":"json"}]',
],
- 'CreateSqlInstance' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetIndexVersion' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '139624',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'database',
+ 'name' => 'clusterName',
'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => 'sql实例名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- 'parent' => [
- 'description' => '父项工作项唯一标识',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '-1',
- ],
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '集群名称', 'type' => 'string', 'required' => true, 'example' => 'vpc_hz_domain_1'],
],
],
'responses' => [
200 => [
- 'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'B43CD1BB-ABD7-59C5-B89A-6E5F6FE60A84',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
'result' => [
- 'title' => 'NodeVO',
- 'description' => '返回结果。',
+ 'title' => 'ClusterIndexVersion',
+ 'description' => '集群列表',
'type' => 'object',
'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '22',
- ],
- 'gmtCreate' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '1719220182844',
- ],
- 'gmtModified' => [
- 'description' => '修改时间',
- 'type' => 'string',
- 'example' => '1719220182844',
- ],
- 'name' => [
- 'description' => 'sql实例名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'parent' => [
- 'description' => '父任务id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'true',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'instance',
- ],
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'templateId' => [
- 'description' => '实例所属的模板id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ 'cluster' => ['description' => '集群名称', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ 'indexVersions' => [
+ 'description' => '索引版本列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '索引版本信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'indexName' => ['description' => '索引表名称', 'type' => 'string', 'example' => 'test_api'],
+ 'versions' => [
+ 'description' => '索引版本',
+ 'type' => 'array',
+ 'items' => ['description' => '索引版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1630353700'],
+ ],
+ 'buildDeployId' => ['description' => '离线部署id', 'type' => 'string', 'example' => '2648'],
+ 'currentVersion' => ['description' => '当前在线版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
+ ],
],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"B43CD1BB-ABD7-59C5-B89A-6E5F6FE60A84\\",\\n \\"result\\": {\\n \\"id\\": 22,\\n \\"gmtCreate\\": \\"1719220182844\\",\\n \\"gmtModified\\": \\"1719220182844\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '创建SQL实例',
- 'summary' => '创建SQL实例。',
- 'description' => '### 方法'."\n"
+ 'title' => '获取集群可回滚的索引信息',
+ 'summary' => '获取集群可回滚的索引信息。',
+ 'description' => '## 方法'."\n"
."\n"
- .'```java'."\n"
- .'POST'."\n"
+ .'```'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
- .'### URI'."\n"
+ .'## URI'."\n"
."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances'."\n"
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version'."\n"
+ .'```'."\n",
+ 'requestParamsDescription' => '## 示例'."\n"
+ ."\n"
+ .'请求示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'GET /openapi/ha3/instances/ha3_instance_id_1/clusters/cluster1/index-version'."\n"
.'```',
- ],
- 'DeleteSqlInstance' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}',
- 'methods' => [
- 'delete',
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": {'."\n"
+ .' "cluster": "ea119cloud",'."\n"
+ .' "indexVersions": ['."\n"
+ .' {'."\n"
+ .' "versions": ['."\n"
+ .' 1630527077,'."\n"
+ .' 1630440554'."\n"
+ .' ],'."\n"
+ .' "currentVersion":1630527077,'."\n"
+ .' "indexName": "ihome_lapp_content_filter_param_index",'."\n"
+ .' "buildDeployId": "2837"'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "versions": ['."\n"
+ .' 1630353700'."\n"
+ .' ],'."\n"
+ .' "currentVersion":1630353700, '."\n"
+ .' "indexName": "ihome_lapp_case_tab_filter",'."\n"
+ .' "buildDeployId": "2829"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndexVersion'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"cluster\\": \\"hz_pre_vpc_domain_1\\",\\n \\"indexVersions\\": [\\n {\\n \\"indexName\\": \\"test_api\\",\\n \\"versions\\": [\\n 1630353700\\n ],\\n \\"buildDeployId\\": \\"2648\\",\\n \\"currentVersion\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'GetInstance' => [
+ 'summary' => '通过指定的实例ID查看实例详情。',
+ 'path' => '/openapi/ha3/instances/{instanceId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '139626',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '102489',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG', 'FEATUREopensearchJB31XH'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
- ],
- [
- 'name' => 'sqlInstanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => 'sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['title' => '实例 ID。', 'description' => '实例 ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
'result' => [
- 'title' => 'Response<Map<String, String>>',
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'result' => [
- 'description' => '返回结果。',
+ 'description' => ['title' => '实例描述', 'description' => '实例描述', 'type' => 'string', 'example' => 'test'],
+ 'resourceGroupId' => ['title' => '资源组ID', 'description' => '资源组ID', 'type' => 'string', 'example' => 'rg-aekzjvw24****'],
+ 'expiredTime' => ['title' => '到期时间', 'description' => '到期时间', 'type' => 'string', 'example' => '024-05-21 16:49:31.0'],
+ 'commodityCode' => ['title' => '商品code', 'description' => '商品code', 'type' => 'string', 'example' => 'opensearch_ha3post_public_cn'],
+ 'instanceId' => ['title' => '资源一级ID', 'description' => '资源一级ID', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****'],
+ 'createTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2022-06-17T02:01:26Z'],
+ 'lockMode' => ['title' => '锁定状态', 'description' => '锁定状态', 'type' => 'string', 'example' => 'Unlock'],
+ 'chargeType' => ['title' => '付费类型', 'description' => '付费类型', 'type' => 'string', 'example' => 'POSYPAY'],
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '024-05-21 16:49:31.0'],
+ 'inDebt' => ['title' => '是否欠费', 'description' => '是否欠费', 'type' => 'boolean', 'example' => 'false'],
+ 'status' => ['description' => '实例状态阶段'."\n"
+ ."\n"
+ .'- INIT:初始化'."\n"
+ .'- WAIT_CONFIG:待配置'."\n"
+ .'- CONFIG_UPDATING:配置生效中'."\n"
+ .'- READY:正常', 'type' => 'string', 'example' => 'INIT'],
+ 'tags' => [
+ 'description' => '标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => ['description' => '标签键', 'type' => 'string', 'example' => 'opensearch'],
+ 'value' => ['description' => '标签值', 'type' => 'string', 'example' => 'opensearch'],
+ ],
+ ],
+ ],
+ 'edition' => ['description' => '实例版本 -vector: 向量检索版 -engine:召回引擎版', 'type' => 'string', 'example' => 'vector'],
+ 'userName' => ['description' => '用户名', 'type' => 'string', 'example' => 'admin'],
+ 'version' => ['description' => '引擎版本号', 'type' => 'string', 'example' => 'ha3_3.10.0'],
+ 'bsVersion' => ['description' => 'bs版本号', 'type' => 'string', 'example' => 'bs_3.13.2'],
+ 'noQrs' => ['description' => '是否是单节点实例', 'type' => 'boolean', 'example' => 'false'],
+ 'newMode' => ['description' => '是否为新版本控制台页面', 'type' => 'boolean', 'example' => 'true'],
+ 'network' => [
+ 'description' => '网络搜索引擎实例信息',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '返回结果。',
+ 'properties' => [
+ 'vSwitchId' => ['description' => '虚拟交换机id', 'type' => 'string', 'example' => 'vsw-bp11ldcf59q2n****'."\n"],
+ 'vpcId' => ['description' => 'vpc网络id', 'type' => 'string', 'example' => 'vpc-wz9axk41d9vff****'."\n"],
+ 'endpoint' => ['description' => '网关接入点。', 'type' => 'string', 'example' => 'ha-cn-35t3r****.ha.aliyuncs.com'."\n"],
+ 'publicEndpoint' => ['description' => '公网域名', 'type' => 'string', 'example' => 'ha-cn-35t3ni****.public.ha.aliyuncs.com'."\n"],
+ 'allow' => ['description' => '公网域名白名单', 'type' => 'string', 'example' => '127.0.0.1'."\n"],
],
],
- 'requestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
+ 'spec' => [
+ 'description' => '节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'qrsResource' => [
+ 'description' => '查询节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'category' => ['description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型', 'type' => 'string', 'example' => 'local_ssd'],
+ 'cpu' => ['description' => 'CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'mem' => ['description' => '内存,单位:G。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'disk' => ['description' => '节点存储空间大小,单位:GB。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'nodeCount' => ['description' => '节点数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ ],
+ 'searchResource' => [
+ 'description' => '数据节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'category' => ['description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型', 'type' => 'string', 'example' => 'local_ssd'],
+ 'cpu' => ['description' => 'CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'mem' => ['description' => '内存,单位:G。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'disk' => ['description' => '节点存储空间大小,单位:GB。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'nodeCount' => ['description' => '节点数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ ],
+ ],
],
+ 'zoneCount' => ['description' => '可用区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"result\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\"\\n }\\n}","type":"json"}]',
- 'title' => '删除SQL实例',
- 'summary' => '删除SQL实例。',
+ 'title' => '根据实例ID查看实例详情',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'DELETE'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}'."\n"
+ .'/openapi/ha3/instances/{instanceId}'."\n"
.'```',
- ],
- 'ExecuteSqlInstance' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/execution',
- 'methods' => [
- 'post',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ha3-cn-xxxxxx`',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ .'**正常返回示例**'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "result":'."\n"
+ .' {'."\n"
+ .' "inDebt": false,'."\n"
+ .' "lockMode": "Unlock",'."\n"
+ .' "trFreeUrl": "",'."\n"
+ .' "chargeType": "POSTPAY",'."\n"
+ .' "edition": "vector",'."\n"
+ .' "description": "ha-cn-vkl3rgrfc01",'."\n"
+ .' "updateTime": "2024-05-30 10:52:00.0",'."\n"
+ .' "userName": "admin",'."\n"
+ .' "version": "vector_service_1.2.2",'."\n"
+ .' "spec":'."\n"
+ .' {'."\n"
+ .' "qrsResource":'."\n"
+ .' {'."\n"
+ .' "category": "local_ssd",'."\n"
+ .' "cpu": 2,'."\n"
+ .' "mem": 8,'."\n"
+ .' "disk": 100,'."\n"
+ .' "nodeCount": 0'."\n"
+ .' },'."\n"
+ .' "searchResource":'."\n"
+ .' {'."\n"
+ .' "category": "local_ssd",'."\n"
+ .' "cpu": 2,'."\n"
+ .' "mem": 16,'."\n"
+ .' "disk": 100,'."\n"
+ .' "nodeCount": 1'."\n"
+ .' }'."\n"
+ .' },'."\n"
+ .' "network":'."\n"
+ .' {'."\n"
+ .' "vSwitchId": "vsw-bp16qw5mbrzx66lv4n0m2",'."\n"
+ .' "vpcId": "vpc-bp1956duqqe2lm2lvqjf1",'."\n"
+ .' "endpoint": "ha-cn-vkl3rgrfc01.ha.aliyuncs.com"'."\n"
+ .' },'."\n"
+ .' "tags":'."\n"
+ .' ['."\n"
+ .' {'."\n"
+ .' "value": "rg-acfmv2hk2jpsxia",'."\n"
+ .' "key": "acs:rm:rgId"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "noQrs": true,'."\n"
+ .' "instanceId": "ha-cn-vkl3rgrfc01",'."\n"
+ .' "createTime": "2024-05-30 10:50:33.0",'."\n"
+ .' "commodityCode": "opensearch_ha3post_public_cn",'."\n"
+ .' "resourceGroupId": "rg-acfmv2hk2jpsxia",'."\n"
+ .' "newMode": true,'."\n"
+ .' "status": "READY"'."\n"
+ .' },'."\n"
+ .' "requestId": "B916FBC8-DF19-1D12-A72F-61AFFDD871AD"'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'**异常返回示例**'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "requestId": "BD1EA715-DF6F-06C2-004C-C1FA0D3A9820",'."\n"
+ .' "httpCode": 404,'."\n"
+ .' "code": "App.NotFound",'."\n"
+ .' "message": "App not found"'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetInstance'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"description\\": \\"test\\",\\n \\"resourceGroupId\\": \\"rg-aekzjvw24****\\",\\n \\"expiredTime\\": \\"024-05-21 16:49:31.0\\",\\n \\"commodityCode\\": \\"opensearch_ha3post_public_cn\\",\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\",\\n \\"createTime\\": \\"2022-06-17T02:01:26Z\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"chargeType\\": \\"POSYPAY\\",\\n \\"updateTime\\": \\"024-05-21 16:49:31.0\\",\\n \\"inDebt\\": false,\\n \\"status\\": \\"INIT\\",\\n \\"tags\\": [\\n {\\n \\"key\\": \\"opensearch\\",\\n \\"value\\": \\"opensearch\\"\\n }\\n ],\\n \\"edition\\": \\"vector\\",\\n \\"userName\\": \\"admin\\",\\n \\"version\\": \\"ha3_3.10.0\\",\\n \\"bsVersion\\": \\"bs_3.13.2\\",\\n \\"noQrs\\": false,\\n \\"newMode\\": true,\\n \\"network\\": {\\n \\"vSwitchId\\": \\"vsw-bp11ldcf59q2n****\\\\n\\",\\n \\"vpcId\\": \\"vpc-wz9axk41d9vff****\\\\n\\",\\n \\"endpoint\\": \\"ha-cn-35t3r****.ha.aliyuncs.com\\\\n\\",\\n \\"publicEndpoint\\": \\"ha-cn-35t3ni****.public.ha.aliyuncs.com\\\\n\\",\\n \\"allow\\": \\"127.0.0.1\\\\n\\"\\n },\\n \\"spec\\": {\\n \\"qrsResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 2,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 1\\n },\\n \\"searchResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 2,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 1\\n }\\n },\\n \\"zoneCount\\": 1\\n },\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\"\\n}","type":"json"}]',
+ ],
+ 'GetModel' => [
+ 'summary' => '通过实例ID和模型名称查询特定模型的详细配置信息。',
+ 'description' => '## 请求说明'."\n"
+ .'- 该API用于获取指定实例下的特定模型的详细信息,包括模型类型、URL、状态等。'."\n"
+ .'- 确保提供的`instanceId`和`modelName`是有效的,否则可能返回错误或找不到资源。'."\n"
+ .'- 返回的数据结构中包含了模型的内容(如请求头、参数等)以及创建和更新时间,有助于了解模型的具体配置及其最新状态。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '139115',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
- ],
- [
- 'name' => 'sqlInstanceId',
+ 'name' => 'modelName',
'in' => 'path',
- 'schema' => [
- 'description' => 'sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'content' => [
- 'description' => 'sql内容',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'select * from test',
- ],
- 'kvpair' => [
- 'description' => 'kv结构体',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- 'description' => 'kv结构体',
- ],
- ],
- 'dynamicParam' => [
- 'description' => '动态参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'description' => '动态扩展参数',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- ],
- ],
- 'staticParam' => [
- 'description' => '静态参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- 'description' => '静态参数',
- ],
- ],
- 'domain' => [
- 'description' => '数据源机房',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_1',
- ],
- 'params' => [
- 'description' => 'sql执行参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'description' => 'sql执行参数',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- ],
- ],
- 'combineParam' => [
- 'description' => '组合参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- 'description' => '组合参数',
- ],
- ],
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '模型名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
],
'responses' => [
200 => [
+ 'description' => '查询成功',
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
+ 'requestId' => ['title' => '请求ID'."\n", 'description' => '请求ID'."\n", 'type' => 'string', 'example' => '38b079f1-7846-4226-8c90-3e2644b5c52b'],
'result' => [
- 'title' => 'NodeVO',
- 'description' => '返回结果。',
+ 'title' => '模型配置信息',
+ 'description' => '模型配置信息',
'type' => 'object',
'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '22',
- ],
- 'gmtCreate' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'gmtModified' => [
- 'description' => '修改时间',
- 'type' => 'string',
- 'example' => '1719220182844',
- ],
- 'name' => [
- 'description' => '名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'parent' => [
- 'description' => '父任务id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'true',
- ],
+ 'name' => ['title' => '模型名称', 'description' => '模型名称', 'type' => 'string', 'example' => 'test'],
'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
+ 'title' => '模型类型。'."\n"
+ .' * text_embedding: 文本嵌入模型',
+ 'description' => '模型类别'."\n"
+ .'- a. 文本向量化:text_embedding'."\n"
+ .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
+ .'- c. 图片向量化:image_embedding'."\n"
+ .'- d. 图片内容解析:image_analyze',
'type' => 'string',
- 'example' => 'instance',
+ 'enumValueTitles' => ['text_embedding' => '文本向量化', 'image_embedding' => '图片向量化', 'image_analyze' => '图片内容解析', 'text_sparse_embedding' => '文本稀疏向量化'],
+ 'example' => 'text_embedding',
+ 'enum' => ['text_embedding'],
],
- 'instanceId' => [
- 'description' => '实例id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => 'ha-cn-pl32rf0****',
+ 'url' => ['title' => '模型访问URL', 'description' => '模型访问URL', 'type' => 'string', 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001'],
+ 'status' => [
+ 'title' => '模型状态。'."\n"
+ .' * ok: 模型正常'."\n"
+ .' * error: 模型异常',
+ 'description' => '模型状态。'."\n"
+ .' * ok: 模型正常'."\n"
+ .' * error: 模型异常',
+ 'type' => 'string',
+ 'example' => 'ok',
+ 'enum' => ['ok', 'error'],
],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ 'dimension' => ['title' => '模型的维度', 'description' => '模型的维度', 'type' => 'integer', 'format' => 'int32', 'example' => '128'],
+ 'content' => [
+ 'title' => '模型配置信息',
+ 'description' => '模型配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'modelName' => ['title' => '模型名称', 'description' => '模型名称', 'type' => 'string', 'example' => 'test'],
+ 'modelType' => [
+ 'title' => '模型类型。'."\n"
+ .' * text_embedding: 文本嵌入模型',
+ 'description' => '模型类别'."\n"
+ .'- a. 文本向量化:text_embedding'."\n"
+ .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
+ .'- c. 图片向量化:image_embedding'."\n"
+ .'- d. 图片内容解析:image_analyze',
+ 'type' => 'string',
+ 'enumValueTitles' => [],
+ 'example' => 'text_embedding',
+ 'enum' => ['text_embedding'],
+ ],
+ 'url' => ['title' => '模型访问URL', 'description' => '模型服务的访问地址', 'type' => 'string', 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001'],
+ 'method' => ['title' => '请求方法', 'description' => '模型服务访问的http method, 支持PUT和POST', 'type' => 'string', 'example' => 'POST'],
+ 'request' => [
+ 'title' => '请求配置信息',
+ 'description' => '请求配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'header' => [
+ 'title' => 'HTTP请求头',
+ 'description' => 'HTTP请求头',
+ 'type' => 'object',
+ 'properties' => [
+ 'Authorization' => ['title' => '授权令牌', 'description' => '认证信息,格式:Bearer access_token', 'type' => 'string', 'example' => 'Bearer OS-v0********6vvs'."\n"],
+ 'Content-Type' => ['title' => '内容类型', 'description' => 'HTTP请求内容类型。', 'type' => 'string', 'example' => 'application/json'."\n"],
+ ],
+ ],
+ 'urlParams' => [
+ 'title' => 'URL参数',
+ 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'build' => ['description' => '构建索引时传递的参数', 'type' => 'object', 'example' => 'key: value'."\n"],
+ 'search' => ['description' => '查询时传递的参数', 'type' => 'object', 'example' => 'key: value'],
+ ],
+ ],
+ 'requestBody' => ['title' => '请求体模板', 'description' => '请求Body体的模板字符串', 'type' => 'string', 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}'."\n"],
+ 'parameters' => [
+ 'title' => '请求参数',
+ 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
+ 'type' => 'object',
+ 'properties' => [
+ 'build' => [
+ 'title' => '构建时的请求参数',
+ 'description' => '索引构建阶段的参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'input_type' => [
+ 'title' => '输入类型。'."\n"
+ .' * document: 文档',
+ 'description' => '输入类型',
+ 'type' => 'string',
+ 'example' => 'query'."\n",
+ 'enum' => ['document'],
+ ],
+ ],
+ ],
+ 'search' => [
+ 'title' => '搜索时的请求参数',
+ 'description' => '查询阶段的参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'input_type' => [
+ 'title' => '输入类型。'."\n"
+ .' * query: 查询',
+ 'description' => '输入类型',
+ 'type' => 'string',
+ 'example' => 'document'."\n",
+ 'enum' => ['query'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'response' => [
+ 'description' => '如何解析结果信息,使用json path格式描述',
+ 'type' => 'object',
+ 'properties' => [
+ 'embeddings' => ['description' => '如何解析结果信息,使用json path格式描述', 'type' => 'string', 'example' => '$.result.embeddings[*].embedding'."\n"],
+ ],
+ ],
+ ],
],
+ 'createTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'updateTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
],
],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {\\n \\"id\\": 22,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719220182844\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 0,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '执行SQL实例',
- 'summary' => '执行SQL实例。',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'POST'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/execution'."\n"
- .'```',
- ],
- 'GetDatabaseSchema' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/tables/{tableName}/schema',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- 'http',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取模型详细信息',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"38b079f1-7846-4226-8c90-3e2644b5c52b\\",\\n \\"result\\": {\\n \\"name\\": \\"test\\",\\n \\"type\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"status\\": \\"ok\\",\\n \\"dimension\\": 128,\\n \\"content\\": {\\n \\"modelName\\": \\"test\\",\\n \\"modelType\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"method\\": \\"POST\\",\\n \\"request\\": {\\n \\"header\\": {\\n \\"Authorization\\": \\"Bearer OS-v0********6vvs\\\\n\\",\\n \\"Content-Type\\": \\"application/json\\\\n\\"\\n },\\n \\"urlParams\\": {\\n \\"build\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"search\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"requestBody\\": \\"{\\\\\\\\\\\\\\"input\\\\\\\\\\\\\\": [\\\\\\\\\\\\\\"%{input}\\\\\\\\\\\\\\"], \\\\\\\\\\\\\\"input_type\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"%{input_type}\\\\\\\\\\\\\\"}\\\\n\\",\\n \\"parameters\\": {\\n \\"build\\": {\\n \\"input_type\\": \\"query\\\\n\\"\\n },\\n \\"search\\": {\\n \\"input_type\\": \\"document\\\\n\\"\\n }\\n }\\n },\\n \\"response\\": {\\n \\"embeddings\\": \\"$.result.embeddings[*].embedding\\\\n\\"\\n }\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetNodeConfig' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/node-config',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -11717,37 +6419,34 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
+ 'abilityTreeCode' => '104681',
+ 'abilityTreeNodes' => ['FEATUREopensearchIQC42D'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例 ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => ['title' => 'qrs: 查询节点, search: 数据节点, index: 索引节点, cluster: 集群', 'description' => '节点类型'."\n"
+ ."\n"
+ .'- qrs:查询节点'."\n"
+ .'- search:数据节点'."\n"
+ .'- index:索引节点'."\n"
+ .'- cluster:集群', 'type' => 'string', 'required' => false, 'example' => 'index'],
],
[
- 'name' => 'tableName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '表名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'graph_index_summary_',
- ],
+ 'name' => 'name',
+ 'in' => 'query',
+ 'schema' => ['description' => '节点名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-30174dhoz53_qrs'],
+ ],
+ [
+ 'name' => 'clusterName',
+ 'in' => 'query',
+ 'schema' => ['description' => '集群名称', 'type' => 'string', 'required' => false, 'example' => 'vpc_sh_domain_2'],
],
],
'responses' => [
@@ -11755,56 +6454,28 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
'result' => [
- 'title' => 'List',
- 'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'fieldName' => [
- 'description' => '字段名称。',
- 'type' => 'string',
- 'example' => 'id',
- ],
- 'fieldType' => [
- 'description' => '字段类型。',
- 'type' => 'string',
- 'example' => 'STRING',
- ],
- 'indexName' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'example' => 'test_tusou_v2',
- ],
- 'indexType' => [
- 'description' => '索引类型。',
- 'type' => 'string',
- 'example' => 'NUMBER',
- ],
- 'fieldTypeDetail' => [
- 'description' => '字段类型详情',
- 'type' => 'object',
- 'example' => 'FT_UINT64',
- ],
- ],
+ 'title' => 'NodeConfig',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'dataFragmentNumber' => ['title' => '数据分片数', 'description' => '数据分片数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'dataDuplicateNumber' => ['title' => '数据副本数', 'description' => '数据副本数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'minServicePercent' => ['title' => '最小服务比例', 'description' => '最小服务比例', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
+ 'published' => ['title' => '集群是否挂载', 'description' => '集群是否挂载', 'type' => 'boolean', 'example' => 'true'],
+ 'active' => ['title' => '在线生效(索引是否从在线下掉)', 'description' => '在线生效(索引是否从在线下掉)', 'type' => 'boolean', 'example' => 'true'],
+ 'flowRatio' => ['description' => '流量比例', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": [\\n {\\n \\"fieldName\\": \\"id\\",\\n \\"fieldType\\": \\"STRING\\",\\n \\"indexName\\": \\"test_tusou_v2\\",\\n \\"indexType\\": \\"NUMBER\\",\\n \\"fieldTypeDetail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取数据库schema',
- 'summary' => '获取数据库schema。',
+ 'title' => '获取节点配置信息',
+ 'summary' => '获取节点配置信息。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -11814,18 +6485,64 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/tables/{tableName}/schema'."\n"
+ .'/openapi/ha3/instances/{instanceId}/node-config'."\n"
+ .'```'."\n",
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test&'."\n"
.'```',
+ 'responseParamsDescription' => "\n"
+ ."\n\n"
+ .'### 返回示例'."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .''."\n"
+ .' "result": {'."\n"
+ .''."\n"
+ .' "dataFragmentNumber":1,'."\n"
+ .''."\n"
+ .' "dataDuplicateNumber":1,'."\n"
+ .''."\n"
+ .' "minServicePercent":20,'."\n"
+ .''."\n"
+ .' "published":true,'."\n"
+ .''."\n"
+ .' "active": true // 在线是否生效'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetNodeConfig'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetNodeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"dataFragmentNumber\\": 1,\\n \\"dataDuplicateNumber\\": 1,\\n \\"minServicePercent\\": 50,\\n \\"published\\": true,\\n \\"active\\": true,\\n \\"flowRatio\\": 100\\n }\\n}","type":"json"}]',
],
'GetSqlInstance' => [
'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
@@ -11833,52 +6550,27 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
'name' => 'sqlInstanceId',
'in' => 'path',
- 'schema' => [
- 'description' => 'sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '5978',
- ],
+ 'schema' => ['description' => 'sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '5978'],
],
[
'name' => 'version',
'in' => 'query',
- 'schema' => [
- 'description' => '实例版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- 'default' => '0',
- ],
+ 'schema' => ['description' => '实例版本', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'default' => '0'],
],
],
'responses' => [
@@ -11886,88 +6578,32 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => [
'title' => 'InstanceVersionVO',
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'gmtCreate' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '1719220182844',
- ],
- 'gmtModified' => [
- 'description' => '修改时间。',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => 'ha-cn-pl32rf0****',
- ],
- 'version' => [
- 'description' => '版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'comment' => [
- 'description' => '备注',
- 'type' => 'string',
- 'example' => 'init version',
- ],
- 'relatedTemplateId' => [
- 'description' => '模版id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'content' => [
- 'description' => 'sql内容。',
- 'type' => 'string',
- 'example' => 'select * from test',
- ],
- 'kvpairs' => [
- 'description' => 'kv包解析结果',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'dynamicParams' => [
- 'description' => '动态扩展参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'templateParams' => [
- 'description' => '模版参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'staticParams' => [
- 'description' => '静态参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'combineParams' => [
- 'description' => '组合参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
+ 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '1719220182844'],
+ 'gmtModified' => ['description' => '修改时间。', 'type' => 'string', 'example' => '1719221186114'],
+ 'instanceId' => ['description' => '实例id', 'type' => 'integer', 'format' => 'int64', 'example' => 'ha-cn-pl32rf0****'],
+ 'version' => ['description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'comment' => ['description' => '备注', 'type' => 'string', 'example' => 'init version'],
+ 'relatedTemplateId' => ['description' => '模版id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'content' => ['description' => 'sql内容。', 'type' => 'string', 'example' => 'select * from test'],
+ 'kvpairs' => ['description' => 'kv包解析结果', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'dynamicParams' => ['description' => '动态扩展参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'templateParams' => ['description' => '模版参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'staticParams' => ['description' => '静态参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'combineParams' => ['description' => '组合参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"1719220182844\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"instanceId\\": 0,\\n \\"version\\": 1,\\n \\"comment\\": \\"init version\\",\\n \\"relatedTemplateId\\": 1,\\n \\"content\\": \\"select * from test\\",\\n \\"kvpairs\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"dynamicParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"templateParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"staticParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"combineParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\"\\n }\\n}","type":"json"}]',
'title' => '获取SQL实例信息',
'summary' => '获取SQL实例信息。',
'description' => '### 方法'."\n"
@@ -11981,16 +6617,31 @@
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}'."\n"
.'```',
- ],
- 'ListDatabases' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSqlInstance'],
+ ],
],
- 'schemes' => [
- 'https',
- 'http',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"1719220182844\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"instanceId\\": 0,\\n \\"version\\": 1,\\n \\"comment\\": \\"init version\\",\\n \\"relatedTemplateId\\": 1,\\n \\"content\\": \\"select * from test\\",\\n \\"kvpairs\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"dynamicParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"templateParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"staticParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"combineParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetTable' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -11999,18 +6650,20 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '218774',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'tableName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引表名称', 'type' => 'string', 'required' => true, 'example' => 'test_summary'],
],
],
'responses' => [
@@ -12018,229 +6671,118 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
'result' => [
- 'title' => 'NodeTreeVO',
- 'description' => '返回结果。',
+ 'title' => 'IndexConfigV2',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'databases' => [
- 'description' => '数据库信息列表',
+ 'name' => ['title' => '索引名', 'description' => '索引名', 'type' => 'string', 'example' => 'test_oss'],
+ 'status' => ['title' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)', 'description' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)', 'type' => 'string', 'example' => 'IN_USE'],
+ 'dataProcessorCount' => ['title' => '数据更新资源数', 'description' => '数据更新资源数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'partitionCount' => ['title' => '数据分片数', 'description' => '数据分片数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'dataSource' => [
+ 'title' => '数据源配置',
+ 'description' => '数据源配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => ['title' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)', 'description' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)', 'type' => 'string', 'example' => 'odps'],
+ 'dataTimeSec' => ['title' => '追增量时间戳', 'description' => '追增量时间戳', 'type' => 'integer', 'format' => 'int32', 'example' => '1715160176'],
+ 'autoBuildIndex' => ['title' => '是否自动索引重建', 'description' => '是否自动索引重建', 'type' => 'boolean', 'example' => 'true'],
+ 'config' => [
+ 'title' => '数据源配置',
+ 'description' => '数据源配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'endpoint' => ['title' => 'odps相关', 'description' => 'odps相关', 'type' => 'string', 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'AK', 'type' => 'string', 'example' => 'ak'],
+ 'accessSecret' => ['description' => 'AS', 'type' => 'string', 'example' => 'as'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'example' => 'dp_pdm_marketing_prod'],
+ 'partition' => ['description' => '分区信息', 'type' => 'string', 'example' => 'ds=20220808'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'saro、odps数据源表名', 'type' => 'string', 'example' => 'test_add'],
+ 'namespace' => ['title' => 'saro相关', 'description' => 'saro相关', 'type' => 'string', 'example' => 'namespace'],
+ 'path' => ['title' => 'hdfs相关', 'description' => 'hdfs相关', 'type' => 'string', 'example' => 'vendor/sebastian/comparator/src/exceptions'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss文件路径', 'type' => 'string', 'example' => '/opensearch_index_data/sift_oss_test.data'],
+ 'bucket' => ['description' => 'oss命名空间', 'type' => 'string', 'example' => 'heytea-ops-oss'],
+ ],
+ ],
+ ],
+ ],
+ 'rawSchema' => ['title' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装', 'description' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装', 'type' => 'string', 'example' => '{}'],
+ 'primaryKey' => ['title' => '主键字段', 'description' => '主键字段', 'type' => 'string', 'example' => 'id'],
+ 'fieldSchema' => [
+ 'title' => 'key: 字段名',
+ 'description' => '字段map集合, key: 字段名 value: 字段类型',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'id', 'example' => 'INT64'],
+ ],
+ 'vectorIndex' => [
+ 'title' => '索引结构',
+ 'description' => '索引结构',
'type' => 'array',
'items' => [
- 'description' => '数据库信息列表',
'type' => 'object',
'properties' => [
- 'database' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'sqlInstances' => [
- 'description' => 'sql实例信息',
- 'type' => 'array',
- 'items' => [
- 'description' => 'sql实例信息',
- 'type' => 'object',
- 'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '12190',
- ],
- 'name' => [
- 'description' => 'sql实例名称',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'instance',
- ],
- 'parent' => [
- 'description' => '父任务id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'children' => [
- 'description' => '子目录信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '子目录信息',
- 'type' => 'any',
- 'example' => '1',
- ],
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'true',
- ],
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'templates' => [
- 'description' => '模板信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '模版信息',
- 'type' => 'object',
- 'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'name' => [
- 'description' => '模版名称',
- 'type' => 'string',
- 'example' => 'c26_schema',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'template',
- ],
- 'parent' => [
- 'description' => '父节点id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'children' => [
- 'description' => '子目录信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '子目录信息',
- 'type' => 'any',
- 'example' => '1',
- ],
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'true',
- ],
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
+ 'indexName' => ['title' => '索引结构名称', 'description' => '索引结构名称', 'type' => 'string', 'example' => 'test_odps'],
+ 'vectorField' => ['title' => '向量字段', 'description' => '向量字段', 'type' => 'string', 'example' => 'source_image_vector'],
+ 'sparseIndexField' => ['title' => '稀疏向量下标字段', 'description' => '稀疏向量下标字段', 'type' => 'string', 'example' => 'sparse_indices'],
+ 'sparseValueField' => ['title' => '稀疏向量值字段', 'description' => '稀疏向量值字段', 'type' => 'string', 'example' => 'sparse_values'],
+ 'dimension' => ['title' => '向量维度', 'description' => '向量维度', 'type' => 'string', 'example' => '128'],
+ 'vectorIndexType' => ['title' => '向量索引算法', 'description' => '向量索引算法', 'type' => 'string', 'example' => 'Qc'],
+ 'distanceType' => ['title' => '距离类型', 'description' => '距离类型', 'type' => 'string', 'example' => 'SquaredEuclidean'],
+ 'namespace' => ['title' => '命名空间字段', 'description' => '命名空间字段', 'type' => 'string', 'example' => 'namespace'],
+ 'advanceParams' => [
+ 'title' => '索引结构配置',
+ 'description' => '索引结构配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'buildIndexParams' => ['title' => '索引构建参数', 'description' => '索引构建参数', 'type' => 'string', 'example' => '{'."\n"
+ .' "proxima.qc.builder.quantizer_class": "Int8QuantizerConverter",'."\n"
+ .' "proxima.qc.builder.quantize_by_centroid": true,'."\n"
+ .' "proxima.qc.builder.optimizer_class": "BruteForceBuilder",'."\n"
+ .' "proxima.qc.builder.thread_count": 10,'."\n"
+ .' "proxima.qc.builder.optimizer_params": {'."\n"
+ .' "proxima.linear.builder.column_major_order": true'."\n"
+ .' },'."\n"
+ .' "proxima.qc.builder.store_original_features": false,'."\n"
+ .' "proxima.qc.builder.train_sample_count": 3000000,'."\n"
+ .' "proxima.qc.builder.train_sample_ratio": 0.5'."\n"
+ .'}'],
+ 'searchIndexParams' => ['title' => '索引检索参数', 'description' => '索引检索参数', 'type' => 'string', 'example' => '{"proxima.qc.searcher.scan_ratio":0.01}'],
+ 'minScanDocCnt' => ['title' => '召回候选集的个数最小值', 'description' => '召回候选集的个数最小值', 'type' => 'string', 'example' => '20000'],
+ 'linearBuildThreshold' => ['title' => '线性构建的阈值', 'description' => '线性构建的阈值', 'type' => 'string', 'example' => '5000'],
],
],
- 'functions' => [
- 'description' => '函数信息。',
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'dataProcessConfig' => [
+ 'title' => '字段处理配置',
+ 'description' => '字段处理配置',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '字段处理配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'operator' => ['title' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)', 'description' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)', 'type' => 'string', 'example' => 'vectorize'],
+ 'dstField' => ['title' => '目标字段', 'description' => '目标字段', 'type' => 'string', 'example' => 'source_image_vector'],
+ 'srcField' => ['title' => '源字段', 'description' => '源字段', 'type' => 'string', 'example' => 'source_image'],
+ 'params' => [
+ 'title' => '配置模型信息',
+ 'description' => '配置模型信息',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'array',
- 'items' => [
+ 'properties' => [
+ 'vectorModel' => ['title' => '向量化模型', 'description' => '向量化模型', 'type' => 'string', 'example' => 'clip'],
+ 'vectorModal' => ['title' => '数据类型', 'description' => '数据类型', 'type' => 'string', 'example' => 'image'],
+ 'srcFieldConfig' => [
+ 'title' => '向量化信息来源',
+ 'description' => '向量化信息来源',
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- 'example' => 'test',
- 'description' => '函数名称',
- ],
- 'signatures' => [
- 'type' => 'string',
- 'description' => '签名',
- 'example' => 'gfasdds2****2wfrkv',
- ],
- ],
- 'description' => '函数信息。',
- ],
- 'description' => '函数信息。',
- ],
- ],
- 'tables' => [
- 'description' => '表信息。',
- 'type' => 'array',
- 'items' => [
- 'description' => '表信息。',
- 'type' => 'object',
- 'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '56',
- ],
- 'name' => [
- 'description' => '表名',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'table',
- ],
- 'parent' => [
- 'description' => '父节点id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'children' => [
- 'description' => '子目录信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '子目录信息',
- 'type' => 'any',
- 'example' => '1',
- ],
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'true',
- ],
- 'instanceId' => [
- 'description' => '实例ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ 'ossEndpoint' => ['description' => 'OSS区域地址。', 'type' => 'string', 'example' => 'oss-cn-hangzhou-internal.aliyuncs.com'."\n"],
+ 'ossBucket' => ['description' => 'OSS Bucket', 'type' => 'string', 'example' => 'test'],
+ 'uid' => ['description' => '云账号id', 'type' => 'string', 'example' => 'uid'],
],
],
],
@@ -12251,13 +6793,13 @@
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {\\n \\"databases\\": [\\n {\\n \\"database\\": \\"general\\",\\n \\"sqlInstances\\": [\\n {\\n \\"id\\": 12190,\\n \\"name\\": \\"general\\",\\n \\"type\\": \\"instance\\",\\n \\"parent\\": -1,\\n \\"children\\": [\\n \\"1\\"\\n ],\\n \\"isDir\\": 0,\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n ],\\n \\"templates\\": [\\n {\\n \\"id\\": 1,\\n \\"name\\": \\"c26_schema\\",\\n \\"type\\": \\"template\\",\\n \\"parent\\": -1,\\n \\"children\\": [\\n \\"1\\"\\n ],\\n \\"isDir\\": 0,\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n ],\\n \\"functions\\": {\\n \\"key\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"signatures\\": \\"gfasdds2****2wfrkv\\"\\n }\\n ]\\n },\\n \\"tables\\": [\\n {\\n \\"id\\": 56,\\n \\"name\\": \\"general\\",\\n \\"type\\": \\"table\\",\\n \\"parent\\": -1,\\n \\"children\\": [\\n \\"1\\"\\n ],\\n \\"isDir\\": 0,\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '展示已有数据库',
- 'summary' => '展示已有的数据库。',
+ 'title' => '获取索引表信息',
+ 'summary' => '获取索引表信息。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -12267,81 +6809,66 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
.'```',
- ],
- 'UpdateSqlInstanceContent' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/content',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"name\\": \\"test_oss\\",\\n \\"status\\": \\"IN_USE\\",\\n \\"dataProcessorCount\\": 1,\\n \\"partitionCount\\": 1,\\n \\"dataSource\\": {\\n \\"type\\": \\"odps\\",\\n \\"dataTimeSec\\": 1715160176,\\n \\"autoBuildIndex\\": true,\\n \\"config\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"ak\\",\\n \\"accessSecret\\": \\"as\\",\\n \\"project\\": \\"dp_pdm_marketing_prod\\",\\n \\"partition\\": \\"ds=20220808\\",\\n \\"table\\": \\"test_add\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"path\\": \\"vendor/sebastian/comparator/src/exceptions\\",\\n \\"ossPath\\": \\"/opensearch_index_data/sift_oss_test.data\\",\\n \\"bucket\\": \\"heytea-ops-oss\\"\\n }\\n },\\n \\"rawSchema\\": \\"{}\\",\\n \\"primaryKey\\": \\"id\\",\\n \\"fieldSchema\\": {\\n \\"key\\": \\"INT64\\"\\n },\\n \\"vectorIndex\\": [\\n {\\n \\"indexName\\": \\"test_odps\\",\\n \\"vectorField\\": \\"source_image_vector\\",\\n \\"sparseIndexField\\": \\"sparse_indices\\",\\n \\"sparseValueField\\": \\"sparse_values\\",\\n \\"dimension\\": \\"128\\",\\n \\"vectorIndexType\\": \\"Qc\\",\\n \\"distanceType\\": \\"SquaredEuclidean\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"advanceParams\\": {\\n \\"buildIndexParams\\": \\"{\\\\n \\\\\\"proxima.qc.builder.quantizer_class\\\\\\": \\\\\\"Int8QuantizerConverter\\\\\\",\\\\n \\\\\\"proxima.qc.builder.quantize_by_centroid\\\\\\": true,\\\\n \\\\\\"proxima.qc.builder.optimizer_class\\\\\\": \\\\\\"BruteForceBuilder\\\\\\",\\\\n \\\\\\"proxima.qc.builder.thread_count\\\\\\": 10,\\\\n \\\\\\"proxima.qc.builder.optimizer_params\\\\\\": {\\\\n \\\\\\"proxima.linear.builder.column_major_order\\\\\\": true\\\\n },\\\\n \\\\\\"proxima.qc.builder.store_original_features\\\\\\": false,\\\\n \\\\\\"proxima.qc.builder.train_sample_count\\\\\\": 3000000,\\\\n \\\\\\"proxima.qc.builder.train_sample_ratio\\\\\\": 0.5\\\\n}\\",\\n \\"searchIndexParams\\": \\"{\\\\\\"proxima.qc.searcher.scan_ratio\\\\\\":0.01}\\",\\n \\"minScanDocCnt\\": \\"20000\\",\\n \\"linearBuildThreshold\\": \\"5000\\"\\n }\\n }\\n ],\\n \\"dataProcessConfig\\": [\\n {\\n \\"operator\\": \\"vectorize\\",\\n \\"dstField\\": \\"source_image_vector\\",\\n \\"srcField\\": \\"source_image\\",\\n \\"params\\": {\\n \\"vectorModel\\": \\"clip\\",\\n \\"vectorModal\\": \\"image\\",\\n \\"srcFieldConfig\\": {\\n \\"ossEndpoint\\": \\"oss-cn-hangzhou-internal.aliyuncs.com\\\\n\\",\\n \\"ossBucket\\": \\"test\\",\\n \\"uid\\": \\"uid\\"\\n }\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'GetTableGeneration' => [
+ 'summary' => '根据generationId获取某个索引版本状态。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions/{generationId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '139112',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '218780',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'database',
+ 'name' => 'tableName',
'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
+ 'schema' => ['description' => '索引表名称', 'type' => 'string', 'required' => true, 'example' => 'test_summary'],
],
[
- 'name' => 'sqlInstanceId',
+ 'name' => 'generationId',
'in' => 'path',
- 'schema' => [
- 'description' => 'sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '5975',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'content' => [
- 'description' => '内容',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'select * from test',
- ],
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '索引全量版本', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1708674867'],
],
],
'responses' => [
@@ -12349,174 +6876,87 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
'result' => [
- 'title' => 'InstanceVersionVO',
- 'description' => '返回结果。',
+ 'title' => 'IndexGeneration',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'gmtCreate' => [
- 'description' => '创建时间。',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'gmtModified' => [
- 'description' => '修改时间。',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'instanceId' => [
- 'description' => '实例id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'version' => [
- 'description' => '版本号。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'comment' => [
- 'description' => '备注',
- 'type' => 'string',
- 'example' => 'Confirm and Execute',
- ],
- 'relatedTemplateId' => [
- 'description' => '模版id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'content' => [
- 'description' => 'sql内容。',
- 'type' => 'string',
- 'example' => 'select * from test',
- ],
- 'kvpairs' => [
- 'description' => 'kv包含的参数。',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'dynamicParams' => [
- 'description' => '动态参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'templateParams' => [
- 'description' => '模版参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'staticParams' => [
- 'description' => '静态参数。',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'combineParams' => [
- 'description' => '组合参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
+ 'generationId' => ['description' => '历史回流generationId', 'type' => 'integer', 'format' => 'int64', 'example' => '1708674867'],
+ 'status' => ['title' => 'starting, building, ready, stopped, failed', 'description' => '索引状态starting, building, ready, stopped, failed', 'type' => 'string', 'example' => 'ready'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"instanceId\\": 1,\\n \\"version\\": 1,\\n \\"comment\\": \\"Confirm and Execute\\",\\n \\"relatedTemplateId\\": 1,\\n \\"content\\": \\"select * from test\\",\\n \\"kvpairs\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"dynamicParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"templateParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"staticParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"combineParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\"\\n }\\n}","type":"json"}]',
- 'title' => '更新SQL实例内容',
- 'summary' => '更新SQL实例内容。',
+ 'title' => '根据generationId获取某个索引版本状态'."\0\0",
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/content'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions/{generationId}'."\n"
.'```',
- ],
- 'UpdateSqlInstanceName' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/name',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions/{generationId}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetTableGeneration',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"generationId\\": 1708674867,\\n \\"status\\": \\"ready\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'ListAdvanceConfigDir' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '139114',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
- ],
+ 'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'sqlInstanceId',
+ 'name' => 'configName',
'in' => 'path',
- 'schema' => [
- 'description' => 'sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '配置名称。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_online_config_v3'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => 'sql实例名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'dirName',
+ 'in' => 'query',
+ 'schema' => ['description' => '目录名称。', 'type' => 'string', 'required' => true, 'example' => '/zones/general'],
],
],
'responses' => [
@@ -12524,246 +6964,132 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
'result' => [
- 'title' => 'NodeVO',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '22',
- ],
- 'gmtCreate' => [
- 'description' => '创建时间。',
- 'type' => 'string',
- 'example' => '1719220182844',
- ],
- 'gmtModified' => [
- 'description' => '修改时间',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'name' => [
- 'description' => 'sql实例名称',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'parent' => [
- 'description' => '父任务id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'true',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'instance',
- ],
- 'instanceId' => [
- 'description' => '实例id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ 'title' => 'List',
+ 'description' => '返回结果',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '高级配文件列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '集群名称', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ 'fullPathName' => ['description' => '绝对路径', 'type' => 'string', 'example' => '/path/wpd/nae'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'boolean', 'example' => 'true'],
+ 'isTemplate' => ['description' => '是否是模板。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"id\\": 22,\\n \\"gmtCreate\\": \\"1719220182844\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"general\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '更新SQL实例名称',
- 'summary' => '更新SQL实例名称。',
+ 'title' => '获取高级配置目录下文件列表',
+ 'summary' => '获取高级配置目录下文件列表。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/name'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir?dirName={dirName}'."\n"
.'```',
- ],
- 'UpdateSqlInstanceParams' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/params',
- 'methods' => [
- 'put',
+ 'requestParamsDescription' => '## 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ose-test1/advanced-configs`',
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ .'### 正确返回'."\n"
+ .'```json'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "name": "file_name_1",'."\n"
+ .' "fullPathName": "/path/wpd/nae",'."\n"
+ .' "isDir": true,'."\n"
+ .' "isTemplate": true'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAdvanceConfigDir'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListAdvanceConfigDir',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"hz_pre_vpc_domain_1\\",\\n \\"fullPathName\\": \\"/path/wpd/nae\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListAdvanceConfigs' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '139113',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '104702',
+ 'abilityTreeNodes' => ['FEATUREopensearchA6GC80'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => ['title' => 'ONLINE: 在线配置, ONLINE_CAVA, ONLINE_PLUGIN, ONLINE_QUERY, OFFLINE_DICT: 离线配置, OFFLINE_TABLE, OFFLINE_COMMON, OFFLINE_PLUGIN, OFFLINE_INDEX', 'description' => '高级配置类型:'."\n"
+ .' - online'."\n"
+ .' - offline(默认)', 'type' => 'string', 'required' => false, 'example' => 'online', 'default' => 'OFFLINE_DICT'],
],
[
- 'name' => 'sqlInstanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => 'sql实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
+ 'name' => 'dataSourceName',
+ 'in' => 'query',
+ 'schema' => ['description' => '数据源名称。', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'."\n"],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'kvpair' => [
- 'description' => '实例kv配置',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- 'description' => '实例kv配置',
- ],
- ],
- 'dynamicParam' => [
- 'description' => '动态参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'description' => '动态参数',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- ],
- ],
- 'staticParam' => [
- 'description' => '静态参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- 'description' => '静态参数',
- ],
- ],
- 'params' => [
- 'description' => '修改参数。',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'description' => '修改参数。',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- ],
- ],
- 'combineParam' => [
- 'description' => '组合参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- 'example' => '{'."\n"
- .' "trace": "INFO",'."\n"
- .' "databaseName": "general",'."\n"
- .' "iquan.plan.cache.enable": true,'."\n"
- .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
- .' "urlencode_data": false,'."\n"
- .' "formatType": "string",'."\n"
- .' "timeout": 1000'."\n"
- .'}',
- 'description' => '组合参数',
- ],
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'indexName',
+ 'in' => 'query',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => false, 'example' => 'test_api'],
+ ],
+ [
+ 'name' => 'newMode',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否为新版本控制台页面', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '指定页码,默认为:1', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '指定每页展示条数,默认为10。', 'type' => 'string', 'required' => false, 'example' => '10'],
],
],
'responses' => [
@@ -12771,156 +7097,153 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4FB0325E-8C37-5525-96AC-0333523170A3'],
'result' => [
- 'title' => 'InstanceVersionVO',
+ 'title' => 'List',
'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'gmtCreate' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'gmtModified' => [
- 'description' => '修改时间',
- 'type' => 'string',
- 'example' => '1719220182844',
- ],
- 'instanceId' => [
- 'description' => '实例id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'version' => [
- 'description' => '版本号。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'comment' => [
- 'description' => '备注。',
- 'type' => 'string',
- 'example' => 'Confirm and Execute',
- ],
- 'relatedTemplateId' => [
- 'description' => '模版id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'content' => [
- 'description' => '内容',
- 'type' => 'string',
- 'example' => 'select * from test',
- ],
- 'kvpairs' => [
- 'description' => 'kv参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'dynamicParams' => [
- 'description' => '动态参数。',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'templateParams' => [
- 'description' => '模版参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'staticParams' => [
- 'description' => '静态参数。',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
- ],
- 'combineParams' => [
- 'description' => '组合参数',
- 'type' => 'string',
- 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '高级配置列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1631070464000'],
+ 'desc' => ['title' => '高级配置描述信息', 'description' => '描述', 'type' => 'string', 'example' => 'Custom Description'],
+ 'files' => [
+ 'title' => '文件名列表',
+ 'description' => '文件名列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '文件信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '文件名称', 'type' => 'string', 'example' => 'file_name_1'],
+ 'fullPathName' => ['description' => '绝对路径', 'type' => 'string', 'example' => '/path/wpd/nae'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'boolean', 'example' => 'true'],
+ 'isTemplate' => ['description' => '是否是模板。取值:-true:是-false:否', 'type' => 'boolean', 'example' => 'true'],
+ ],
+ ],
+ ],
+ 'content' => ['title' => '配置内容 http,git 请求时不为空', 'description' => '配置内容 http,git 请求时不为空', 'type' => 'string', 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}'],
+ 'contentType' => ['title' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)', 'description' => '配置内容的类型(FILE, GIT, HTTP, ODPS)', 'type' => 'string', 'example' => 'FILE'],
+ 'name' => ['title' => '配置名称', 'description' => '高级配置名称', 'type' => 'string', 'example' => 'my_index'],
+ 'status' => ['title' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)', 'description' => '高级配置状态'."\n"
+ .'drafting: 草稿'."\n"
+ .'used: 使用中'."\n"
+ .'unused: 未使用'."\n"
+ .'trash: 删除中', 'type' => 'string', 'example' => 'drafting'],
+ 'creator' => ['description' => '创建者userid。', 'type' => 'string', 'example' => '123456'],
+ 'advanceConfigType' => ['description' => '- -ONLINE: 在线配置, '."\n"
+ .'- -ONLINE_CAVA: 在线cava配置, '."\n"
+ .'- -ONLINE_PLUGIN: 在线插件, '."\n"
+ .'- -ONLINE_QUERY: 查询配置, '."\n"
+ .'- -OFFLINE_DICT: 离线配置, '."\n"
+ .'- -OFFLINE_TABLE: 离线表, '."\n"
+ .'- -OFFLINE_COMMON: 离线配置, '."\n"
+ .'- -OFFLINE_PLUGIN: 离线插件, '."\n"
+ .'- -OFFLINE_INDEX: 索引配置', 'type' => 'string', 'example' => 'ONLINE'],
],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719220182844\\",\\n \\"instanceId\\": 1,\\n \\"version\\": 1,\\n \\"comment\\": \\"Confirm and Execute\\",\\n \\"relatedTemplateId\\": 1,\\n \\"content\\": \\"select * from test\\",\\n \\"kvpairs\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"dynamicParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"templateParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"staticParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"combineParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\"\\n }\\n}","type":"json"}]',
- 'title' => '更新SQL实例参数',
- 'summary' => '更新SQL实例参数。',
+ 'title' => '获取高级配置列表',
+ 'summary' => '获取高级配置列表。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/params'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs?type=online'."\n"
.'```',
- ],
- 'DeleteFolder' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}',
- 'methods' => [
- 'delete',
+ 'requestParamsDescription' => '## 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ose-test1/advanced-configs`'."\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ .'### 正确返回'."\n"
+ .'```json'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "name": "my_index",'."\n"
+ .' "status": "drafting",'."\n"
+ .' "updateTime": 1631070464000,'."\n"
+ .' "desc":"test",'."\n"
+ .' "files":['."\n"
+ .' {'."\n"
+ .' "name": "file_name_1",'."\n"
+ .' "fullPathName": "/path/wpd/nae",'."\n"
+ .' "isDir": true,'."\n"
+ .' "isTemplate": true'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "name": "my_index2",'."\n"
+ .' "status": "drafting",'."\n"
+ .' "updateTime": 1631070464000,'."\n"
+ .' "desc":"test",'."\n"
+ .' "files":['."\n"
+ .' {'."\n"
+ .' "name": "file_name_1",'."\n"
+ .' "fullPathName": "/path/wpd/nae",'."\n"
+ .' "isDir": true,'."\n"
+ .' "isTemplate": true'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAdvanceConfigs'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListAdvanceConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4FB0325E-8C37-5525-96AC-0333523170A3\\",\\n \\"result\\": [\\n {\\n \\"updateTime\\": 1631070464000,\\n \\"desc\\": \\"Custom Description\\",\\n \\"files\\": [\\n {\\n \\"name\\": \\"file_name_1\\",\\n \\"fullPathName\\": \\"/path/wpd/nae\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true\\n }\\n ],\\n \\"content\\": \\"{\\\\\\\\\\\\\\"url\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\\\\\\\\\\\\"}\\",\\n \\"contentType\\": \\"FILE\\",\\n \\"name\\": \\"my_index\\",\\n \\"status\\": \\"drafting\\",\\n \\"creator\\": \\"123456\\",\\n \\"advanceConfigType\\": \\"ONLINE\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListAliases' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/aliases',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '138810',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '223195',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
- ],
- [
- 'name' => 'folderId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '文件夹id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '-1',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
],
'responses' => [
@@ -12928,328 +7251,174 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => [
- 'title' => 'Response<Map<String, String>>',
+ 'title' => 'List',
'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'result' => [
- 'description' => '返回结果',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '删除结果',
- ],
- ],
- 'requestId' => [
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'alias' => ['title' => '别名', 'description' => '别名', 'type' => 'string', 'example' => 'test'],
+ 'index' => ['title' => '关联索引', 'description' => '关联索引', 'type' => 'string', 'example' => 'index'],
],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {\\n \\"result\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\"\\n }\\n}","type":"json"}]',
- 'title' => '删除目录',
- 'summary' => '删除目录。',
+ 'title' => '查询表别名列表',
+ 'summary' => '查询表别名列表。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'DELETE'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/aliases'."\n"
.'```',
- ],
- 'RenameFolder' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}/name',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListAliases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": [\\n {\\n \\"alias\\": \\"test\\",\\n \\"index\\": \\"index\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListClusterNames' => [
+ 'summary' => '获取集群可选择的名称。',
+ 'path' => '/openapi/ha3/cluster-names',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '138809',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch95VJR4',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'database',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据库名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'general',
- ],
- ],
- [
- 'name' => 'folderId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '文件夹id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '-1',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => '文件夹名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- ],
- 'required' => false,
- ],
- ],
- ],
+ 'systemTags' => ['operationType' => 'list'],
+ 'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F6E3D968-529C-5C40-AFDD-133A8B8FD930'],
'result' => [
- 'title' => 'NodeVO',
+ 'title' => 'ClusterNameInfo',
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'id' => [
- 'description' => '主键id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'gmtCreate' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'gmtModified' => [
- 'description' => '修改时间。',
- 'type' => 'string',
- 'example' => '1719221186114',
- ],
- 'name' => [
- 'description' => '文件名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'parent' => [
- 'description' => '父层级id。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '-1',
- ],
- 'isDir' => [
- 'description' => '是否为目录。取值:-true:是-false:否',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => 'True',
- ],
- 'type' => [
- 'title' => 'table, instance, template, function',
- 'description' => 'table, instance, template, function',
- 'type' => 'string',
- 'example' => 'template',
- ],
- 'instanceId' => [
- 'description' => '实例id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'templateId' => [
- 'description' => '模板ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'name' => ['title' => '集群名称', 'description' => '集群名称。', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ 'description' => ['title' => '集群描述', 'description' => '集群描述。', 'type' => 'string', 'example' => 'Custom description'],
+ 'id' => ['description' => '集群ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '25030'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"id\\": 1,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"template\\",\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '修改目录名称',
- 'summary' => '修改目录名称。',
+ 'title' => '获取集群可选择的名称',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}/name'."\n"
+ .'/openapi/ha3/instances/{instanceId}/cluster-names'."\n"
.'```',
- ],
- 'ListTasks' => [
- 'summary' => '获取实例的变更历史。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tasks',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '211712',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchW54CZ4',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /openapi/ha3/instances/ha3_instance_name/cluster-names'."\n"
+ .'```',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ .'正确返回'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "name":"pre",'."\n"
+ .' "description":"pre机房",'."\n"
+ .' "id": 1,'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'extraInfo' => '## 示例'."\n"
+ ."\n"
+ .'### 请求示例'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /openapi/ha3/instances/ha3_instance_name/cluster-names'."\n"
+ .'```'."\n"
+ .'###返回示例'."\n"
+ .'正确返回'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "name":"pre",'."\n"
+ .' "description":"pre机房",'."\n"
+ .' "id": 1,'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListClusterNames'],
],
],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'start',
- 'in' => 'query',
- 'schema' => [
- 'description' => '日程开始时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1718846192',
- ],
- ],
- [
- 'name' => 'end',
- 'in' => 'query',
- 'schema' => [
- 'description' => '日程结束时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1718846192',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0',
- ],
- 'result' => [
- 'title' => 'Object',
- 'description' => '返回结果',
- 'type' => 'any',
- 'example' => '{}',
- ],
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListClusterNames',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
- 'title' => '获取实例的变更历史',
- 'description' => '### 方法'."\n"
- ."\n"
- .'```java'."\n"
- .'GET'."\n"
- .'```'."\n"
- ."\n"
- .'### URI'."\n"
- ."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tasks'."\n"
- .'```',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F6E3D968-529C-5C40-AFDD-133A8B8FD930\\",\\n \\"result\\": {\\n \\"name\\": \\"hz_pre_vpc_domain_1\\",\\n \\"description\\": \\"Custom description\\",\\n \\"id\\": 25030\\n }\\n}","type":"json"}]',
],
'ListClusterTasks' => [
'summary' => '展示集群任务。',
'path' => '/openapi/ha3/instances/{instanceId}/cluster-tasks',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -13257,20 +7426,12 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- ],
+ 'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
],
'responses' => [
@@ -13280,12 +7441,7 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511'],
'result' => [
'title' => '索引信息',
'description' => '返回结果。',
@@ -13294,70 +7450,25 @@
'description' => '集群列表信息。',
'type' => 'object',
'properties' => [
- 'groupType' => [
- 'title' => '变更分组类型',
- 'description' => '变更分组类型',
- 'type' => 'string',
- 'example' => 'Table_Update',
- ],
- 'fsmId' => [
- 'title' => 'fsmId',
- 'description' => 'fsmId',
- 'type' => 'string',
- 'example' => 'tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315',
- ],
- 'name' => [
- 'title' => '卡片的名字',
- 'description' => '卡片的名字',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- 'time' => [
- 'title' => '卡片的时间戳',
- 'description' => '卡片的时间戳',
- 'type' => 'string',
- 'example' => '1657610520',
- ],
- 'type' => [
- 'title' => '卡片的类型',
- 'description' => '卡片的类型',
- 'type' => 'string',
- 'example' => 'mra_table_config_trace_fsm',
- ],
- 'user' => [
- 'title' => '触发生成fsm流程的用户',
- 'description' => '触发生成fsm流程的用户',
- 'type' => 'string',
- 'example' => 'admin',
- ],
- 'status' => [
- 'title' => 'FSM整体状态',
- 'description' => 'FSM整体状态',
- 'type' => 'string',
- 'example' => 'onlyPublished',
- ],
- 'extraAttribute' => [
- 'title' => '卡片的额外属性',
- 'description' => '卡片的额外属性',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "consoleVersion": "",'."\n"
- .' "domain": "hz_pre_vpc_domain_1",'."\n"
- .' "configType": "offline"'."\n"
- .'}',
- ],
- 'field3' => [
- 'title' => '创建状态机时透传的field3字段',
- 'description' => '创建状态机时透传的field3字段',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "ha-cn-pl32rf0****_offline_adv": 1,'."\n"
- .' "ha-cn-pl32rf0****_offline_plugin": 1,'."\n"
- .' "ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api": 1,'."\n"
- .' "ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config": 1,'."\n"
- .' "ha-cn-pl32rf0****_offline_dict": 1'."\n"
- .'}',
- ],
+ 'groupType' => ['title' => '变更分组类型', 'description' => '变更分组类型', 'type' => 'string', 'example' => 'Table_Update'],
+ 'fsmId' => ['title' => 'fsmId', 'description' => 'fsmId', 'type' => 'string', 'example' => 'tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315'],
+ 'name' => ['title' => '卡片的名字', 'description' => '卡片的名字', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ 'time' => ['title' => '卡片的时间戳', 'description' => '卡片的时间戳', 'type' => 'string', 'example' => '1657610520'],
+ 'type' => ['title' => '卡片的类型', 'description' => '卡片的类型', 'type' => 'string', 'example' => 'mra_table_config_trace_fsm'],
+ 'user' => ['title' => '触发生成fsm流程的用户', 'description' => '触发生成fsm流程的用户', 'type' => 'string', 'example' => 'admin'],
+ 'status' => ['title' => 'FSM整体状态', 'description' => 'FSM整体状态', 'type' => 'string', 'example' => 'onlyPublished'],
+ 'extraAttribute' => ['title' => '卡片的额外属性', 'description' => '卡片的额外属性', 'type' => 'string', 'example' => '{'."\n"
+ .' "consoleVersion": "",'."\n"
+ .' "domain": "hz_pre_vpc_domain_1",'."\n"
+ .' "configType": "offline"'."\n"
+ .'}'],
+ 'field3' => ['title' => '创建状态机时透传的field3字段', 'description' => '创建状态机时透传的field3字段', 'type' => 'string', 'example' => '{'."\n"
+ .' "ha-cn-pl32rf0****_offline_adv": 1,'."\n"
+ .' "ha-cn-pl32rf0****_offline_plugin": 1,'."\n"
+ .' "ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api": 1,'."\n"
+ .' "ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config": 1,'."\n"
+ .' "ha-cn-pl32rf0****_offline_dict": 1'."\n"
+ .'}'],
'tags' => [
'title' => '进度条的状态标签',
'description' => '进度条的状态标签',
@@ -13366,18 +7477,8 @@
'description' => '标签。',
'type' => 'object',
'properties' => [
- 'tagLevel' => [
- 'title' => '展示tag的等级',
- 'description' => '展示tag的等级',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'msg' => [
- 'title' => '展示tag内容',
- 'description' => '展示tag内容',
- 'type' => 'string',
- 'example' => 'test-tag',
- ],
+ 'tagLevel' => ['title' => '展示tag的等级', 'description' => '展示tag的等级', 'type' => 'string', 'example' => '1'],
+ 'msg' => ['title' => '展示tag内容', 'description' => '展示tag内容', 'type' => 'string', 'example' => 'test-tag'],
],
],
],
@@ -13389,31 +7490,10 @@
'description' => '任务节点信息',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '任务名称',
- 'description' => '任务名称',
- 'type' => 'string',
- 'example' => 'publish config version',
- ],
- 'index' => [
- 'title' => '此任务的序号',
- 'description' => '此任务的序号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '4',
- ],
- 'finishDate' => [
- 'title' => '完成日期',
- 'description' => '完成日期',
- 'type' => 'string',
- 'example' => '2024-06-17 18:40:48',
- ],
- 'status' => [
- 'title' => '任务状态',
- 'description' => '任务状态',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
+ 'name' => ['title' => '任务名称', 'description' => '任务名称', 'type' => 'string', 'example' => 'publish config version'],
+ 'index' => ['title' => '此任务的序号', 'description' => '此任务的序号', 'type' => 'integer', 'format' => 'int64', 'example' => '4'],
+ 'finishDate' => ['title' => '完成日期', 'description' => '完成日期', 'type' => 'string', 'example' => '2024-06-17 18:40:48'],
+ 'status' => ['title' => '任务状态', 'description' => '任务状态', 'type' => 'string', 'example' => 'SUCCESS'],
],
],
],
@@ -13425,7 +7505,6 @@
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511\\",\\n \\"result\\": [\\n {\\n \\"groupType\\": \\"Table_Update\\",\\n \\"fsmId\\": \\"tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315\\",\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"time\\": \\"1657610520\\",\\n \\"type\\": \\"mra_table_config_trace_fsm\\",\\n \\"user\\": \\"admin\\",\\n \\"status\\": \\"onlyPublished\\",\\n \\"extraAttribute\\": \\"{\\\\n\\\\t\\\\\\"consoleVersion\\\\\\": \\\\\\"\\\\\\",\\\\n\\\\t\\\\\\"domain\\\\\\": \\\\\\"hz_pre_vpc_domain_1\\\\\\",\\\\n\\\\t\\\\\\"configType\\\\\\": \\\\\\"offline\\\\\\"\\\\n}\\",\\n \\"field3\\": \\"{\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_adv\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_plugin\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_dict\\\\\\": 1\\\\n}\\",\\n \\"tags\\": [\\n {\\n \\"tagLevel\\": \\"1\\",\\n \\"msg\\": \\"test-tag\\"\\n }\\n ],\\n \\"taskNodes\\": [\\n {\\n \\"name\\": \\"publish config version\\",\\n \\"index\\": 4,\\n \\"finishDate\\": \\"2024-06-17 18:40:48\\",\\n \\"status\\": \\"SUCCESS\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
'title' => '展示集群任务',
'description' => '### 方法'."\n"
."\n"
@@ -13586,17 +7665,31 @@
.' }'."\n"
.' ]'."\n"
.'```'."\n",
- ],
- 'ListDataSourceTasks' => [
- 'summary' => '展示数据源任务。',
- 'path' => '/openapi/ha3/instances/{instanceId}/data-source-tasks',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListClusterTasks'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListClusterTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511\\",\\n \\"result\\": [\\n {\\n \\"groupType\\": \\"Table_Update\\",\\n \\"fsmId\\": \\"tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315\\",\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"time\\": \\"1657610520\\",\\n \\"type\\": \\"mra_table_config_trace_fsm\\",\\n \\"user\\": \\"admin\\",\\n \\"status\\": \\"onlyPublished\\",\\n \\"extraAttribute\\": \\"{\\\\n\\\\t\\\\\\"consoleVersion\\\\\\": \\\\\\"\\\\\\",\\\\n\\\\t\\\\\\"domain\\\\\\": \\\\\\"hz_pre_vpc_domain_1\\\\\\",\\\\n\\\\t\\\\\\"configType\\\\\\": \\\\\\"offline\\\\\\"\\\\n}\\",\\n \\"field3\\": \\"{\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_adv\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_plugin\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_dict\\\\\\": 1\\\\n}\\",\\n \\"tags\\": [\\n {\\n \\"tagLevel\\": \\"1\\",\\n \\"msg\\": \\"test-tag\\"\\n }\\n ],\\n \\"taskNodes\\": [\\n {\\n \\"name\\": \\"publish config version\\",\\n \\"index\\": 4,\\n \\"finishDate\\": \\"2024-06-17 18:40:48\\",\\n \\"status\\": \\"SUCCESS\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListClusters' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/clusters',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -13606,19 +7699,327 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
+ 'abilityTreeCode' => '103715',
+ 'abilityTreeNodes' => ['FEATUREopensearch5EAGY5'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C'],
+ 'result' => [
+ 'title' => 'List',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '集群列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '集群名称(对应后端domainName)', 'description' => '集群名称', 'type' => 'string', 'example' => 'hz_pre_vpc_domain_1'],
+ 'description' => ['title' => '集群描述', 'description' => '集群描述', 'type' => 'string', 'example' => 'Custom description'],
+ 'currentAdvanceConfigVersion' => ['title' => '高级配置生效版本', 'description' => '高级配置生效版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'latestAdvanceConfigVersion' => ['title' => '高级配置最新版本', 'description' => '高级配置最新版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'currentOnlineConfigVersion' => ['title' => '在线配置生效版本', 'description' => '在线配置生效版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'latestOnlineConfigVersion' => ['title' => '在线配置最新版本', 'description' => '在线配置最新版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'currentOnlineQueryConfigVersion' => ['title' => '查询配置生效版本', 'description' => '查询配置生效版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'latestOnlineQueryConfigVersion' => ['title' => '查询配置最新版本', 'description' => '查询配置最新版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'currentOfflineDictConfigVersion' => ['title' => '词典配置生效版本', 'description' => '词典配置生效版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'latestOfflineDictConfigVersion' => ['title' => '词典配置最新版本', 'description' => '词典配置最新版本', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'],
+ 'configUpdateTime' => ['title' => '配置更新时间', 'description' => '配置更新时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'status' => ['description' => '集群状态。取值:-running:运行中-starting:启动中-stopping:停止中-stopped:已停止', 'type' => 'string', 'example' => 'running'],
+ 'queryNode' => [
+ 'title' => '查询节点',
+ 'description' => '集群搜索节点。',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'],
+ 'number' => ['title' => '节点数量', 'description' => '节点数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'partition' => ['title' => '副本数量', 'description' => '副本数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ ],
+ 'dataNode' => [
+ 'title' => '数据节点',
+ 'description' => '集群中的节点信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'general'],
+ 'number' => ['title' => '节点数量', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'partition' => ['title' => '副本数量', 'description' => '节点分区id。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ ],
+ 'createTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'config' => [
+ 'description' => '配置信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['type' => 'string', 'example' => 'ha-cn-pl32rf0****_offline_adv_v1', 'description' => '配置名称'],
+ 'updateTime' => ['type' => 'string', 'description' => '更新时间', 'example' => '2024-05-21 16:05:26'],
+ 'desc' => ['type' => 'string', 'description' => '描述', 'example' => '自定义描述'],
+ ],
+ 'description' => '子配置项信息',
+ ],
+ 'description' => '配置信息',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
],
],
+ 500 => [],
+ ],
+ 'title' => '获取集群列表',
+ 'summary' => '获取集群列表。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/clusters'."\n"
+ .'```'."\n",
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /openapi/ha3/instances/ha3_instance_name/clusters'."\n"
+ .'```',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "name": "cluster1",'."\n"
+ .' "configUpdateTime": "2021-08-09 00:01:02",'."\n"
+ .' "currentAdvanceConfigVersion": "test_yyds_data1",'."\n"
+ .' "lastestAdvanceConfigVersion": "test_yyds_data1",'."\n"
+ .' "currentOnlineConfigVersion": "test_yyds_data1",'."\n"
+ .' "lastestOnlineConfigVersion": "test_yyds_data1", '."\n"
+ .' "description": "airecpre",'."\n"
+ .' "queryNode": {'."\n"
+ .' "number": 1'."\n"
+ .' },'."\n"
+ .' "dataNode": {'."\n"
+ .' "number": 2,'."\n"
+ .' "partition": 1'."\n"
+ .' }, '."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "name": "cluster2",'."\n"
+ .' "configUpdateTime": "2021-08-09 00:01:02",'."\n"
+ .' "currentAdvanceConfigVersion": "test_yyds_data2",'."\n"
+ .' "lastestAdvanceConfigVersion": "test_yyds_data2",'."\n"
+ .' "currentOnlineConfigVersion": "test_yyds_data1",'."\n"
+ .' "lastestOnlineConfigVersion": "test_yyds_data1", '."\n"
+ .' "description": "this is descrition",'."\n"
+ .' "queryNode": {'."\n"
+ .' "number": 1'."\n"
+ .' },'."\n"
+ .' "dataNode": {'."\n"
+ .' "number": 2,'."\n"
+ .' "partition": 1'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'extraInfo' => "\n"
+ ."\n\n"
+ ."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListClusters'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListClusters',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"hz_pre_vpc_domain_1\\",\\n \\"description\\": \\"Custom description\\",\\n \\"currentAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOnlineQueryConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestOnlineQueryConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOfflineDictConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestOfflineDictConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"configUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"status\\": \\"running\\",\\n \\"queryNode\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"number\\": 1,\\n \\"partition\\": 1\\n },\\n \\"dataNode\\": {\\n \\"name\\": \\"general\\",\\n \\"number\\": 1,\\n \\"partition\\": 1\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"config\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"desc\\": \\"自定义描述\\"\\n }\\n }\\n }\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListDataSourceSchemas' => [
+ 'summary' => '获取某一数据源的schema信息。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/schemas',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list'],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'dataSourceName',
+ 'in' => 'path',
+ 'schema' => ['description' => '数据源名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '返回参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
+ 'result' => [
+ 'title' => 'List',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'schema信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '字段名称', 'description' => '字段名称', 'type' => 'string', 'example' => 'id'],
+ 'custom' => ['title' => '是否自定义字段', 'description' => '是否自定义字段。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'false'],
+ 'type' => ['title' => '字段类型', 'description' => '字段类型', 'type' => 'string', 'example' => 'STRING'],
+ 'attribute' => ['description' => '是否为属性字段。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'false'],
+ 'summary' => ['title' => '可展示', 'description' => '是否可展示。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'false'],
+ 'primaryKey' => [
+ 'title' => '主键',
+ 'description' => '主键',
+ 'type' => 'object',
+ 'properties' => [
+ 'isPrimaryKey' => ['description' => '是否为主键。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'false'],
+ 'hasPrimaryKeyAttribute' => ['description' => '是否有主键属性。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'false'],
+ 'isPrimaryKeySorted' => ['description' => '是否可排序。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'false'],
+ ],
+ ],
+ 'addIndex' => ['title' => '是否添加了index属性', 'description' => '是否添加了index属性。取值:-**true**:是-**false**:否', 'type' => 'boolean', 'example' => 'false'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '获取某一数据源的schema信息',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/schemas'."\n"
+ .'```',
+ 'requestParamsDescription' => '## 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source/schemas`',
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ .'### 正确返回'."\n"
+ .'```json'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result":['."\n"
+ .' {'."\n"
+ .' "summary": false,'."\n"
+ .' "custom": false,'."\n"
+ .' "addIndex": false,'."\n"
+ .' "type": "INT64",'."\n"
+ .' "name": "id",'."\n"
+ .' "attribute": false,'."\n"
+ .' "primaryKey": {'."\n"
+ .' "hasPrimaryKeyAttribute": false,'."\n"
+ .' "primaryKeySorted": false,'."\n"
+ .' "primaryKey": false'."\n"
+ .' }'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "summary": false,'."\n"
+ .' "custom": false,'."\n"
+ .' "addIndex": false,'."\n"
+ .' "type": "STRING",'."\n"
+ .' "name": "fb_boolean",'."\n"
+ .' "attribute": false,'."\n"
+ .' "primaryKey": {'."\n"
+ .' "hasPrimaryKeyAttribute": false,'."\n"
+ .' "primaryKeySorted": false,'."\n"
+ .' "primaryKey": false'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataSourceSchemas'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDataSourceSchemas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"id\\",\\n \\"custom\\": false,\\n \\"type\\": \\"STRING\\",\\n \\"attribute\\": false,\\n \\"summary\\": false,\\n \\"primaryKey\\": {\\n \\"isPrimaryKey\\": false,\\n \\"hasPrimaryKeyAttribute\\": false,\\n \\"isPrimaryKeySorted\\": false\\n },\\n \\"addIndex\\": false\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListDataSourceTasks' => [
+ 'summary' => '展示数据源任务。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-source-tasks',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list'],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
],
'responses' => [
200 => [
@@ -13627,12 +8028,7 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求 ID。',
- 'type' => 'string',
- 'example' => 'CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求 ID。', 'type' => 'string', 'example' => 'CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511'],
'result' => [
'title' => '索引信息',
'description' => '返回结果',
@@ -13641,70 +8037,25 @@
'description' => '数据搜索返回的结果。',
'type' => 'object',
'properties' => [
- 'groupType' => [
- 'title' => '变更分组类型',
- 'description' => '变更分组类型',
- 'type' => 'string',
- 'example' => 'Table_Update',
- ],
- 'fsmId' => [
- 'title' => 'fsmId',
- 'description' => 'fsmId',
- 'type' => 'string',
- 'example' => 'tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315',
- ],
- 'name' => [
- 'title' => '卡片的名字',
- 'description' => '卡片的名字',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs'."\n",
- ],
- 'time' => [
- 'title' => '卡片的时间戳',
- 'description' => '卡片的时间戳',
- 'type' => 'string',
- 'example' => '1646279473',
- ],
- 'type' => [
- 'title' => '卡片的类型',
- 'description' => '卡片的类型',
- 'type' => 'string',
- 'example' => 'mra_table_config_trace_fsm'."\n",
- ],
- 'user' => [
- 'title' => '触发生成fsm流程的用户',
- 'description' => '触发生成fsm流程的用户',
- 'type' => 'string',
- 'example' => 'admin',
- ],
- 'status' => [
- 'title' => 'FSM整体状态',
- 'description' => 'FSM整体状态',
- 'type' => 'string',
- 'example' => 'onlyPublished',
- ],
- 'extraAttribute' => [
- 'title' => '卡片的额外属性',
- 'description' => '卡片的额外属性',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "consoleVersion": "",'."\n"
- .' "domain": "hz_pre_vpc_domain_1",'."\n"
- .' "configType": "offline"'."\n"
- .'}',
- ],
- 'field3' => [
- 'title' => '创建状态机时透传的field3字段',
- 'description' => '创建状态机时透传的field3字段',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "ha-cn-pl32rf0****_offline_adv": 1,'."\n"
- .' "ha-cn-pl32rf0****_offline_plugin": 1,'."\n"
- .' "ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api": 1,'."\n"
- .' "ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config": 1,'."\n"
- .' "ha-cn-pl32rf0****_offline_dict": 1'."\n"
- .'}'."\n",
- ],
+ 'groupType' => ['title' => '变更分组类型', 'description' => '变更分组类型', 'type' => 'string', 'example' => 'Table_Update'],
+ 'fsmId' => ['title' => 'fsmId', 'description' => 'fsmId', 'type' => 'string', 'example' => 'tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315'],
+ 'name' => ['title' => '卡片的名字', 'description' => '卡片的名字', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_qrs'."\n"],
+ 'time' => ['title' => '卡片的时间戳', 'description' => '卡片的时间戳', 'type' => 'string', 'example' => '1646279473'],
+ 'type' => ['title' => '卡片的类型', 'description' => '卡片的类型', 'type' => 'string', 'example' => 'mra_table_config_trace_fsm'."\n"],
+ 'user' => ['title' => '触发生成fsm流程的用户', 'description' => '触发生成fsm流程的用户', 'type' => 'string', 'example' => 'admin'],
+ 'status' => ['title' => 'FSM整体状态', 'description' => 'FSM整体状态', 'type' => 'string', 'example' => 'onlyPublished'],
+ 'extraAttribute' => ['title' => '卡片的额外属性', 'description' => '卡片的额外属性', 'type' => 'string', 'example' => '{'."\n"
+ .' "consoleVersion": "",'."\n"
+ .' "domain": "hz_pre_vpc_domain_1",'."\n"
+ .' "configType": "offline"'."\n"
+ .'}'],
+ 'field3' => ['title' => '创建状态机时透传的field3字段', 'description' => '创建状态机时透传的field3字段', 'type' => 'string', 'example' => '{'."\n"
+ .' "ha-cn-pl32rf0****_offline_adv": 1,'."\n"
+ .' "ha-cn-pl32rf0****_offline_plugin": 1,'."\n"
+ .' "ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api": 1,'."\n"
+ .' "ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config": 1,'."\n"
+ .' "ha-cn-pl32rf0****_offline_dict": 1'."\n"
+ .'}'."\n"],
'tags' => [
'title' => '进度条的状态标签',
'description' => '进度条的状态标签',
@@ -13713,18 +8064,8 @@
'description' => '数据源标签。',
'type' => 'object',
'properties' => [
- 'tagLevel' => [
- 'title' => '展示tag的等级',
- 'description' => '展示tag的等级',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'msg' => [
- 'title' => '展示tag内容',
- 'description' => '展示tag内容',
- 'type' => 'string',
- 'example' => 'test-tag',
- ],
+ 'tagLevel' => ['title' => '展示tag的等级', 'description' => '展示tag的等级', 'type' => 'string', 'example' => '1'],
+ 'msg' => ['title' => '展示tag内容', 'description' => '展示tag内容', 'type' => 'string', 'example' => 'test-tag'],
],
],
],
@@ -13736,31 +8077,10 @@
'description' => '任务节点信息',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '任务名称',
- 'description' => '任务名称',
- 'type' => 'string',
- 'example' => 'publish config version'."\n",
- ],
- 'index' => [
- 'title' => '此任务的序号',
- 'description' => '此任务的序号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '4',
- ],
- 'finishDate' => [
- 'title' => '完成日期',
- 'description' => '完成日期',
- 'type' => 'string',
- 'example' => '2024-06-17 18:40:48'."\n",
- ],
- 'status' => [
- 'title' => '任务状态',
- 'description' => '任务状态',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
+ 'name' => ['title' => '任务名称', 'description' => '任务名称', 'type' => 'string', 'example' => 'publish config version'."\n"],
+ 'index' => ['title' => '此任务的序号', 'description' => '此任务的序号', 'type' => 'integer', 'format' => 'int64', 'example' => '4'],
+ 'finishDate' => ['title' => '完成日期', 'description' => '完成日期', 'type' => 'string', 'example' => '2024-06-17 18:40:48'."\n"],
+ 'status' => ['title' => '任务状态', 'description' => '任务状态', 'type' => 'string', 'example' => 'SUCCESS'],
],
],
],
@@ -13772,7 +8092,6 @@
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511\\",\\n \\"result\\": [\\n {\\n \\"groupType\\": \\"Table_Update\\",\\n \\"fsmId\\": \\"tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315\\",\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\\\n\\",\\n \\"time\\": \\"1646279473\\",\\n \\"type\\": \\"mra_table_config_trace_fsm\\\\n\\",\\n \\"user\\": \\"admin\\",\\n \\"status\\": \\"onlyPublished\\",\\n \\"extraAttribute\\": \\"{\\\\n\\\\t\\\\\\"consoleVersion\\\\\\": \\\\\\"\\\\\\",\\\\n\\\\t\\\\\\"domain\\\\\\": \\\\\\"hz_pre_vpc_domain_1\\\\\\",\\\\n\\\\t\\\\\\"configType\\\\\\": \\\\\\"offline\\\\\\"\\\\n}\\",\\n \\"field3\\": \\"{\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_adv\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_plugin\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_dict\\\\\\": 1\\\\n}\\\\n\\",\\n \\"tags\\": [\\n {\\n \\"tagLevel\\": \\"1\\",\\n \\"msg\\": \\"test-tag\\"\\n }\\n ],\\n \\"taskNodes\\": [\\n {\\n \\"name\\": \\"publish config version\\\\n\\",\\n \\"index\\": 4,\\n \\"finishDate\\": \\"2024-06-17 18:40:48\\\\n\\",\\n \\"status\\": \\"SUCCESS\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
'title' => '展示数据源任务',
'description' => '### 方法'."\n"
."\n"
@@ -13933,210 +8252,475 @@
.' }'."\n"
.' ]'."\n"
.'```'."\n",
- ],
- 'StopTask' => [
- 'summary' => '停止fsm任务。',
- 'path' => '/openapi/ha3/instances/{instanceId}/stop-task/{fsmId}',
- 'methods' => [
- 'put',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataSourceTasks'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDataSourceTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511\\",\\n \\"result\\": [\\n {\\n \\"groupType\\": \\"Table_Update\\",\\n \\"fsmId\\": \\"tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315\\",\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\\\n\\",\\n \\"time\\": \\"1646279473\\",\\n \\"type\\": \\"mra_table_config_trace_fsm\\\\n\\",\\n \\"user\\": \\"admin\\",\\n \\"status\\": \\"onlyPublished\\",\\n \\"extraAttribute\\": \\"{\\\\n\\\\t\\\\\\"consoleVersion\\\\\\": \\\\\\"\\\\\\",\\\\n\\\\t\\\\\\"domain\\\\\\": \\\\\\"hz_pre_vpc_domain_1\\\\\\",\\\\n\\\\t\\\\\\"configType\\\\\\": \\\\\\"offline\\\\\\"\\\\n}\\",\\n \\"field3\\": \\"{\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_adv\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_plugin\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_table_ha-cn-35t3r02iq03_test_api\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config\\\\\\": 1,\\\\n\\\\t\\\\\\"ha-cn-pl32rf0****_offline_dict\\\\\\": 1\\\\n}\\\\n\\",\\n \\"tags\\": [\\n {\\n \\"tagLevel\\": \\"1\\",\\n \\"msg\\": \\"test-tag\\"\\n }\\n ],\\n \\"taskNodes\\": [\\n {\\n \\"name\\": \\"publish config version\\\\n\\",\\n \\"index\\": 4,\\n \\"finishDate\\": \\"2024-06-17 18:40:48\\\\n\\",\\n \\"status\\": \\"SUCCESS\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListDataSources' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429'],
+ 'result' => [
+ 'title' => 'List',
+ 'description' => '返回参数',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据源信息列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '数据源名', 'description' => '数据源名称。', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'type' => ['title' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'description' => '类型', 'type' => 'string', 'example' => 'odps'],
+ 'domain' => ['title' => '离线部署', 'description' => '离线部署', 'type' => 'string', 'example' => 'vpc_hz_domain_1'],
+ 'indexes' => [
+ 'title' => '数据源产出的index',
+ 'description' => '索引列表',
+ 'type' => 'array',
+ 'items' => ['description' => '数据源索引。', 'type' => 'string', 'example' => 'index1'],
+ ],
+ 'lastFulTime' => ['title' => '上一次全量时间', 'description' => '上一次全量时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1718787785'],
+ 'status' => ['title' => '表状态 (NEW, PUBLISH, TRASH)', 'description' => '数据源状态:new: 创建中; publish: 正常; trash: 删除中', 'type' => 'string', 'example' => 'new'],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
],
],
+ 500 => [],
+ ],
+ 'title' => '获取数据源列表',
+ 'summary' => '获取数据源列表。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources'."\n"
+ .'```',
+ 'requestParamsDescription' => '## 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources`',
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ .'### 正确返回'."\n"
+ .'```json'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "name": "data_source_name",'."\n"
+ .' "type": "odps",'."\n"
+ .' "domain": "test", // 离线部署'."\n"
+ .' "indexes": ['."\n"
+ .' "index1",'."\n"
+ .' "index2"'."\n"
+ .' ],'."\n"
+ .' "partitions": ['."\n"
+ .' "ds=2020"'."\n"
+ .' "ds=2021"'."\n"
+ .' ],'."\n"
+ .' "lastFullTime": 1628502036000,'."\n"
+ .' "config":{'."\n"
+ .' "accessKey": "xxx",'."\n"
+ .' "accessSecret": "xxxs",'."\n"
+ .' "project":"xxxx",'."\n"
+ .' "table":"xxx",'."\n"
+ .' "partition":"xxxx"'."\n"
+ .' },'."\n"
+ .' "autoBuildIndex": true,'."\n"
+ .' "status": "new" // new: 创建中; publish: 正常; trash: 删除中'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "name": "data_source_name",'."\n"
+ .' "type": "odps",'."\n"
+ .' "domain": "test", // 离线部署 '."\n"
+ .' "indexes": ['."\n"
+ .' "index1",'."\n"
+ .' "index2"'."\n"
+ .' ],'."\n"
+ .' "partitions": ['."\n"
+ .' "ds=2020"'."\n"
+ .' "ds=2021"'."\n"
+ .' ],'."\n"
+ .' "lastFullTime": 1628502036000,'."\n"
+ .' "config":{'."\n"
+ .' "accessKey": "xxx",'."\n"
+ .' "accessSecret": "xxxs",'."\n"
+ .' "project":"xxxx",'."\n"
+ .' "table":"xxx",'."\n"
+ .' "partition":"xxxx"'."\n"
+ .' },'."\n"
+ .' "autoBuildIndex": true,'."\n"
+ .' "status": "new" // new: 创建中; publish: 正常; trash: 删除中'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDataSources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"indexes\\": [\\n \\"index1\\"\\n ],\\n \\"lastFulTime\\": 1718787785,\\n \\"status\\": \\"new\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListDatabases' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
+ 'security' => [
[
- 'name' => 'fsmId',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list'],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '已停止的设备id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
'result' => [
- 'title' => '索引信息',
+ 'title' => 'NodeTreeVO',
'description' => '返回结果。',
'type' => 'object',
- 'example' => '{}',
+ 'properties' => [
+ 'databases' => [
+ 'description' => '数据库信息列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据库信息列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'database' => ['description' => '数据库名称', 'type' => 'string', 'example' => 'general'],
+ 'sqlInstances' => [
+ 'description' => 'sql实例信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'sql实例信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '12190'],
+ 'name' => ['description' => 'sql实例名称', 'type' => 'string', 'example' => 'general'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'instance'],
+ 'parent' => ['description' => '父任务id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'children' => [
+ 'description' => '子目录信息',
+ 'type' => 'array',
+ 'items' => ['description' => '子目录信息', 'type' => 'any', 'example' => '1'],
+ ],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
+ 'instanceId' => ['description' => '实例id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
+ ],
+ ],
+ 'templates' => [
+ 'description' => '模板信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模版信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'name' => ['description' => '模版名称', 'type' => 'string', 'example' => 'c26_schema'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'template'],
+ 'parent' => ['description' => '父节点id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'children' => [
+ 'description' => '子目录信息',
+ 'type' => 'array',
+ 'items' => ['description' => '子目录信息', 'type' => 'any', 'example' => '1'],
+ ],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
+ 'instanceId' => ['description' => '实例id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
+ ],
+ ],
+ 'functions' => [
+ 'description' => '函数信息。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['type' => 'string', 'example' => 'test', 'description' => '函数名称'],
+ 'signatures' => ['type' => 'string', 'description' => '签名', 'example' => 'gfasdds2****2wfrkv'],
+ ],
+ 'description' => '函数信息。',
+ ],
+ 'description' => '函数信息。',
+ ],
+ ],
+ 'tables' => [
+ 'description' => '表信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '表信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '56'],
+ 'name' => ['description' => '表名', 'type' => 'string', 'example' => 'general'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'table'],
+ 'parent' => ['description' => '父节点id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'children' => [
+ 'description' => '子目录信息',
+ 'type' => 'array',
+ 'items' => ['description' => '子目录信息', 'type' => 'any', 'example' => '1'],
+ ],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
+ 'instanceId' => ['description' => '实例ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '停止fsm任务',
+ 'title' => '展示已有数据库',
+ 'summary' => '展示已有的数据库。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
+ ."\n"
.'### URI'."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/stop-task/{fsmId}'."\n"
- .'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
."\n"
.'```java'."\n"
- .'PUT /openapi/ha3/instances/{instanceId}/stop-task/tisplus_opensearch@add_index_config@1062017779051424-ha-cn-0ju2i0e5z01_mx1228@null@index_11@null@1641282725526@607017'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases'."\n"
.'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
- .'{'."\n"
- .''."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .''."\n"
- .' "result": []'."\n"
- .''."\n"
- .'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'ForceSwitch' => [
- 'summary' => '强制切换。',
- 'path' => '/openapi/ha3/instances/{instanceId}/force-switch/{fsmId}',
- 'methods' => [
- 'put',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDatabases'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDatabases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {\\n \\"databases\\": [\\n {\\n \\"database\\": \\"general\\",\\n \\"sqlInstances\\": [\\n {\\n \\"id\\": 12190,\\n \\"name\\": \\"general\\",\\n \\"type\\": \\"instance\\",\\n \\"parent\\": -1,\\n \\"children\\": [\\n \\"1\\"\\n ],\\n \\"isDir\\": 0,\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n ],\\n \\"templates\\": [\\n {\\n \\"id\\": 1,\\n \\"name\\": \\"c26_schema\\",\\n \\"type\\": \\"template\\",\\n \\"parent\\": -1,\\n \\"children\\": [\\n \\"1\\"\\n ],\\n \\"isDir\\": 0,\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n ],\\n \\"functions\\": {\\n \\"key\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"signatures\\": \\"gfasdds2****2wfrkv\\"\\n }\\n ]\\n },\\n \\"tables\\": [\\n {\\n \\"id\\": 56,\\n \\"name\\": \\"general\\",\\n \\"type\\": \\"table\\",\\n \\"parent\\": -1,\\n \\"children\\": [\\n \\"1\\"\\n ],\\n \\"isDir\\": 0,\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListDateSourceGenerations' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/generations',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'fsmId',
+ 'name' => 'dataSourceName',
'in' => 'path',
- 'schema' => [
- 'description' => '任务ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'tisplus_opensearch@datasource_flow_fsm@186541059855****-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@164972986****@028315',
- ],
+ 'schema' => ['description' => '数据源名称。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ ],
+ [
+ 'name' => 'validStatus',
+ 'in' => 'query',
+ 'schema' => ['description' => '有效状态(默认为true)'."\n"
+ ."\n"
+ .'1. true 返回Task执行完成且未过期的generation'."\n"
+ .'2. false 返回所有generation', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'],
+ ],
+ [
+ 'name' => 'domainName',
+ 'in' => 'query',
+ 'schema' => ['description' => '数据源部署机房', 'type' => 'string', 'required' => true, 'example' => 'bj_vpc_domain_1'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '0B1FF998-BB8D-5182-BFC0-E471AA77095A',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
'result' => [
- 'title' => '索引信息',
+ 'title' => 'List',
'description' => '返回结果',
- 'type' => 'object',
- 'example' => '{}',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'generation' => ['title' => 'generation 主键', 'description' => '索引全量版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1626143930'],
+ 'createTime' => ['title' => '全量时间', 'description' => 'build index 开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1626143673'],
+ 'status' => ['title' => '数据状态', 'description' => '状态', 'type' => 'string', 'example' => 'STOPPED'],
+ 'buildDeployId' => ['title' => 'buildDeployId', 'description' => '离线部署id', 'type' => 'integer', 'format' => 'int32', 'example' => '122'],
+ 'partition' => [
+ 'title' => '数据描述',
+ 'description' => 'Key 索引名称'."\n"
+ .'value 分片数量',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'integer', 'format' => 'int32', 'description' => '分片数', 'example' => '1'],
+ ],
+ 'timestamp' => ['title' => '时间戳', 'description' => '增量时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1626143673'],
+ 'dataDumpRoot' => ['title' => 'dump表索引文件存储地址', 'description' => 'dump表索引文件存储地址', 'type' => 'string', 'example' => 'hdfs://opensearch/dump.json'],
+ ],
+ ],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B1FF998-BB8D-5182-BFC0-E471AA77095A\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '强制切换',
+ 'title' => '获取数据源的历史回流信息',
+ 'summary' => '获取数据源的历史回流信息。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/force-switch/{fsmId}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/generations?domainName={domainName}'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
- ."\n\n"
- ."\n"
- .'```java'."\n"
- .'PUT /openapi/ha3/instances/{instanceId}/force-switch/tisplus_opensearch@add_index_config@106201777905****-ha-cn-0ju2i0e****_mx1228@null@index_11@null@164128272****@607017'."\n"
- .'```',
+ .'`GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source/generations??domainName=pre_domain_1`'."\n",
'responseParamsDescription' => '### 返回示例'."\n"
."\n"
- .'正确返回'."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
+ .'```'."\n"
.'{'."\n"
- .''."\n"
.' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .''."\n"
- .' "result": []'."\n"
- .''."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "generationId":1626143930,'."\n"
+ .' "timestamp":16261436737,'."\n"
+ .' "createTime":1626143673,'."\n"
+ .' "status":"STOPPED",'."\n"
+ .' "partition":{'."\n"
+ .' "index1":1'."\n"
+ .' },'."\n"
+ .' "buildDeployId":122'."\n"
+ .' },{'."\n"
+ .' "generationId":1626143930,'."\n"
+ .' "timestamp":16261435453,'."\n"
+ .' "createTime":1626143673,'."\n"
+ .' "status":"STOPPED",'."\n"
+ .' "partition":{'."\n"
+ .' "index1":1'."\n"
+ .' },'."\n"
+ .' "buildDeployId":122'."\n"
+ .' }'."\n"
+ .' ]'."\n"
.'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](~~465311~~)',
- ],
- 'ListLogs' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/logs',
- 'methods' => [
- 'get',
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDateSourceGenerations'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDateSourceGenerations',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": [\\n {\\n \\"generation\\": 1626143930,\\n \\"createTime\\": 1626143673,\\n \\"status\\": \\"STOPPED\\",\\n \\"buildDeployId\\": 122,\\n \\"partition\\": {\\n \\"key\\": 1\\n },\\n \\"timestamp\\": 1626143673,\\n \\"dataDumpRoot\\": \\"hdfs://opensearch/dump.json\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListIndexRecoverRecords' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/list-recover-records',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -14146,115 +8730,359 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
- 'abilityTreeCode' => '223197',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- ],
+ 'abilityTreeCode' => '218752',
+ 'abilityTreeNodes' => ['FEATUREopensearchSLLBIN'],
],
'parameters' => [
[
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
+ ],
+ [
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-i7m2roiy504',
+ 'type' => 'object',
+ 'properties' => [
+ 'generationId' => ['description' => '索引全量版本', 'type' => 'string', 'example' => '1708674867'],
+ 'desc' => ['description' => '备注', 'type' => 'string', 'example' => 'Custom Configuration'],
+ 'finishedTime' => ['description' => '本次发布的完成时间', 'type' => 'string', 'example' => '2024-06-07 16:43:00'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '获取恢复数据记录',
+ 'summary' => '获取恢复数据记录。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/list-recover-records'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListIndexRecoverRecords',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"generationId\\": \\"1708674867\\",\\n \\"desc\\": \\"Custom Configuration\\",\\n \\"finishedTime\\": \\"2024-06-07 16:43:00\\"\\n}","type":"json"}]',
+ ],
+ 'ListIndexes' => [
+ 'summary' => '获取索引列表。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'type',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '104683',
+ 'abilityTreeNodes' => ['FEATUREopensearchA944AC', 'FEATUREopensearchS8X6T8'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-2r42ost****'],
+ ],
+ [
+ 'name' => 'newMode',
'in' => 'query',
- 'schema' => [
- 'title' => 'select: 查询日志, push: 写入日志',
- 'description' => 'select: 查询日志, push: 写入日志',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'push',
- 'default' => 'select',
- ],
+ 'schema' => ['description' => '是否为新版本控制台页面。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
- 'name' => 'pageNum',
+ 'name' => 'catalog',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,默认值 1。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'dlf数据源-数据目录ID', 'type' => 'string', 'required' => false, 'example' => 'clg-paimon-765e9e2d43ab4fccbf095853a661eafc'],
],
[
- 'name' => 'pageSize',
+ 'name' => 'database',
'in' => 'query',
- 'schema' => [
- 'description' => '指定每页展示条数,默认为10。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'dlf数据源-数据库', 'type' => 'string', 'required' => false, 'example' => 'dlf_test'],
],
[
- 'name' => 'startTime',
+ 'name' => 'table',
'in' => 'query',
+ 'schema' => ['description' => 'dlf数据源数据表', 'type' => 'string', 'required' => false, 'example' => 'rag'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '查询开始时间戳。单位:秒。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1706340600',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4FB0325E-8C37-5525-96AC-0333523170A3'],
+ 'result' => [
+ 'title' => 'List',
+ 'description' => '索引详情列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '索引详情列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '配置名称', 'description' => '索引名称。', 'type' => 'string', 'example' => 'general'],
+ 'versions' => [
+ 'title' => '版本列表',
+ 'description' => '版本列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '索引版本信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'desc' => ['title' => '描述', 'description' => '描述。', 'type' => 'string', 'example' => 'Index Note'],
+ 'files' => [
+ 'title' => '文件名列表',
+ 'description' => '文件名列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '版本信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'fullPathName' => ['description' => '全文检索后的目录名。', 'type' => 'string', 'example' => '/qrs.json'."\n"],
+ 'isDir' => ['description' => '是否存在目录。', 'type' => 'boolean', 'example' => 'true'],
+ 'isTemplate' => ['description' => '是否是模板。', 'type' => 'boolean', 'example' => 'true'],
+ 'name' => ['description' => '文件名称。', 'type' => 'string', 'example' => 'qrs.json'."\n"],
+ ],
+ ],
+ ],
+ 'name' => ['title' => '版本名', 'description' => '版本名。', 'type' => 'string', 'example' => 'test'],
+ 'status' => ['title' => 'drafting、used、unused (drafting: 草稿, used: 线上使用,unused: 未使用, trash: 删除中)', 'description' => '状态 '."\n"
+ ."\n"
+ .'- NEW:创建。'."\n"
+ .'- PUBLISH:正常。'."\n"
+ .'- IN_USE:使用中。'."\n"
+ .'- NOT_USE:未使用。'."\n"
+ .'- STOP_USE:停止使用中。'."\n"
+ .'- RESTORE_USE:恢复使用中。'."\n"
+ .'- FAIL:失败。', 'type' => 'string', 'example' => 'PUBLISH'],
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-06-20 08:52:54'],
+ 'versionId' => ['title' => '版本id (edit版本为null)', 'description' => '版本id (edit版本为null)', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ ],
+ ],
+ 'dataSource' => ['title' => '数据源', 'description' => '数据源', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'domain' => ['title' => '数据源的部署名', 'description' => '数据源的部署名', 'type' => 'string', 'example' => 'vpc_hz_domain_1'],
+ 'indexStatus' => ['title' => '表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE,RESTORE_USE)', 'description' => 'NEW, PUBLISH', 'type' => 'string', 'example' => 'PUBLISH'],
+ 'content' => ['title' => '文件内容', 'description' => 'schema JSON', 'type' => 'string', 'example' => '{"summarys":{"parameter":{"file_compressor":"zstd"},"summary_fields":["id"]},"file_compress":[{"name":"file_compressor","type":"zstd"},{"name":"no_compressor","type":""}],"indexs":[{"index_fields":"name","index_name":"ids","index_type":"STRING"},{"has_primary_key_attribute":true,"index_fields":"id","is_primary_key_sorted":false,"index_name":"id","index_type":"PRIMARYKEY64"}],"attributes":[{"file_compress":"no_compressor","field_name":"id"}],"fields":[{"user_defined_param":{},"compress_type":"uniq","field_type":"STRING","field_name":"id"},{"compress_type":"uniq","field_type":"STRING","field_name":"name"}],"table_name":"api"}'],
+ 'partition' => ['title' => '数据分片', 'description' => '数据分片', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'fullVersion' => ['title' => '数据版本', 'description' => '全量版本 即:索引版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1688523414'],
+ 'fullUpdateTime' => ['title' => '全量切换时间', 'description' => '全量切换时间', 'type' => 'string', 'example' => '2023-07-05 10:40:38'],
+ 'incUpdateTime' => ['title' => '增量更新时间', 'description' => '增量更新时间', 'type' => 'string', 'example' => '2023-07-05 10:58:33'],
+ 'indexSize' => ['title' => '索引大小', 'description' => '索引大小', 'type' => 'integer', 'format' => 'int64', 'example' => '4689'],
+ 'description' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'note'],
+ 'dataSourceInfo' => [
+ 'title' => '数据源相关信息',
+ 'description' => '数据源相关信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'processPartitionCount' => ['title' => '数据更新资源数', 'description' => '数据更新资源数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'name' => ['title' => '数据源名', 'description' => '数据源名', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'type' => ['title' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'description' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'type' => 'string', 'example' => 'odps'],
+ 'domain' => ['title' => '离线部署', 'description' => '离线部署', 'type' => 'string', 'example' => 'vpc_hz_domain_2'],
+ 'config' => [
+ 'title' => 'odps 数据源配置',
+ 'description' => 'odps 数据源配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'endpoint' => ['title' => 'odps相关', 'description' => 'odps相关', 'type' => 'string', 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源ak secret', 'type' => 'string', 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'example' => 'tisplus_dev'],
+ 'partition' => ['description' => '数据分片', 'type' => 'string', 'example' => 'ds=20231220'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'saro、odps相关', 'type' => 'string', 'example' => 'dump_odps_demo'],
+ 'namespace' => ['title' => 'saro相关', 'description' => 'saro相关', 'type' => 'string', 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo'],
+ 'path' => ['title' => 'hdfs相关', 'description' => 'hdfs相关', 'type' => 'string', 'example' => 'http://test_opensearch/sift_oss_test.data'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss数据源相关', 'type' => 'string', 'example' => '/test_opensearch/sift_oss_test.data'],
+ 'bucket' => ['description' => 'oss命名空间', 'type' => 'string', 'example' => 'ha3test-oss'],
+ 'format' => ['description' => 'oss文件格式类型'."\n"
+ .'- ha3'."\n"
+ .'- json', 'type' => 'string', 'example' => 'ha3'],
+ 'catalog' => ['description' => 'dlf数据源-数据目录ID', 'type' => 'string', 'example' => 'clg-paimon-21cc136237a6457f8618f5f82d116d7e'],
+ 'database' => ['description' => 'dlf数据源-数据库名称', 'type' => 'string', 'example' => 'dlf_test'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'example' => 'test_tag'],
+ ],
+ ],
+ 'saroConfig' => [
+ 'title' => 'saro数据源配置',
+ 'description' => 'saro数据源配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'namespace' => ['description' => 'saro数据源的namespace', 'type' => 'string', 'example' => 'TEST_dump_demo_sj_na61hunbu2_share_holo'],
+ 'tableName' => ['description' => 'saro数据表名称', 'type' => 'string', 'example' => 'dump_odps_demo'],
+ ],
+ ],
+ 'autoBuildIndex' => ['title' => '是否开启自动全量', 'description' => '是否开启自动全量', 'type' => 'boolean', 'example' => 'true'],
+ ],
+ ],
+ 'createTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'updateTime' => ['description' => '更新时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ ],
+ ],
+ ],
+ ],
],
],
+ 500 => [],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => '获取索引列表',
+ 'description' => '## 方法'."\n"
+ ."\n"
+ .'```'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'## URI'."\n"
+ ."\n"
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes'."\n"
+ .'```',
+ 'requestParamsDescription' => "\n"
+ ."\n"
+ .'## 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'GET /openapi/ha3/instances/ose-test1/indexes'."\n"
+ .'```'."\n"
+ ."\n\n"
+ ."\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "requestId": "38b079f1-7846-4226-8c90-3e2644b5c52b",'."\n"
+ .''."\n"
+ .' "result": ['."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "name": "index1",'."\n"
+ .''."\n"
+ .' "dataSource": "test_yyds_data1",'."\n"
+ .''."\n"
+ .' },'."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "name": "index1",'."\n"
+ .''."\n"
+ .' "dataSource": "test_yyds_data1",'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .' ]'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIndexes'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'endTime',
- 'in' => 'query',
- 'schema' => [
- 'description' => '查询结束时间戳。单位:秒。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1710432000',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListIndexes',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4FB0325E-8C37-5525-96AC-0333523170A3\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"general\\",\\n \\"versions\\": [\\n {\\n \\"desc\\": \\"Index Note\\",\\n \\"files\\": [\\n {\\n \\"fullPathName\\": \\"/qrs.json\\\\n\\",\\n \\"isDir\\": true,\\n \\"isTemplate\\": true,\\n \\"name\\": \\"qrs.json\\\\n\\"\\n }\\n ],\\n \\"name\\": \\"test\\",\\n \\"status\\": \\"PUBLISH\\",\\n \\"updateTime\\": 0,\\n \\"versionId\\": 1\\n }\\n ],\\n \\"dataSource\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"domain\\": \\"vpc_hz_domain_1\\",\\n \\"indexStatus\\": \\"PUBLISH\\",\\n \\"content\\": \\"{\\\\\\"summarys\\\\\\":{\\\\\\"parameter\\\\\\":{\\\\\\"file_compressor\\\\\\":\\\\\\"zstd\\\\\\"},\\\\\\"summary_fields\\\\\\":[\\\\\\"id\\\\\\"]},\\\\\\"file_compress\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"file_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"zstd\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"type\\\\\\":\\\\\\"\\\\\\"}],\\\\\\"indexs\\\\\\":[{\\\\\\"index_fields\\\\\\":\\\\\\"name\\\\\\",\\\\\\"index_name\\\\\\":\\\\\\"ids\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"STRING\\\\\\"},{\\\\\\"has_primary_key_attribute\\\\\\":true,\\\\\\"index_fields\\\\\\":\\\\\\"id\\\\\\",\\\\\\"is_primary_key_sorted\\\\\\":false,\\\\\\"index_name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"index_type\\\\\\":\\\\\\"PRIMARYKEY64\\\\\\"}],\\\\\\"attributes\\\\\\":[{\\\\\\"file_compress\\\\\\":\\\\\\"no_compressor\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"}],\\\\\\"fields\\\\\\":[{\\\\\\"user_defined_param\\\\\\":{},\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"id\\\\\\"},{\\\\\\"compress_type\\\\\\":\\\\\\"uniq\\\\\\",\\\\\\"field_type\\\\\\":\\\\\\"STRING\\\\\\",\\\\\\"field_name\\\\\\":\\\\\\"name\\\\\\"}],\\\\\\"table_name\\\\\\":\\\\\\"api\\\\\\"}\\",\\n \\"partition\\": 2,\\n \\"fullVersion\\": 1688523414,\\n \\"fullUpdateTime\\": \\"2023-07-05 10:40:38\\",\\n \\"incUpdateTime\\": \\"2023-07-05 10:58:33\\",\\n \\"indexSize\\": 4689,\\n \\"description\\": \\"note\\",\\n \\"dataSourceInfo\\": {\\n \\"processPartitionCount\\": 2,\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"type\\": \\"odps\\",\\n \\"domain\\": \\"vpc_hz_domain_2\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"L***p\\",\\n \\"accessSecret\\": \\"5**9a6\\",\\n \\"project\\": \\"tisplus_dev\\",\\n \\"partition\\": \\"ds=20231220\\",\\n \\"table\\": \\"dump_odps_demo\\",\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"path\\": \\"http://test_opensearch/sift_oss_test.data\\",\\n \\"ossPath\\": \\"/test_opensearch/sift_oss_test.data\\",\\n \\"bucket\\": \\"ha3test-oss\\",\\n \\"format\\": \\"ha3\\",\\n \\"catalog\\": \\"clg-paimon-21cc136237a6457f8618f5f82d116d7e\\",\\n \\"database\\": \\"dlf_test\\",\\n \\"tag\\": \\"test_tag\\"\\n },\\n \\"saroConfig\\": {\\n \\"namespace\\": \\"TEST_dump_demo_sj_na61hunbu2_share_holo\\",\\n \\"tableName\\": \\"dump_odps_demo\\"\\n },\\n \\"autoBuildIndex\\": true\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListInstanceSpecs' => [
+ 'summary' => '获取集群可选择的规格列表。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/specs',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get'],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
[
- 'name' => 'query',
+ 'name' => 'type',
'in' => 'query',
- 'schema' => [
- 'description' => '查询语句。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'status: 200 AND totalTime > 0.01',
- ],
+ 'schema' => ['title' => '节点类型 (qrs: 查询节点, search: 数据节点, index: 索引节点, cluster: 集群)', 'description' => '节点类型。取值:'."\n"
+ ."\n"
+ .'- qrs:查询节点。'."\n"
+ .'- search:数据节点。'."\n"
+ .'- index:索引节点。'."\n"
+ .'- cluster:集群。', 'type' => 'string', 'required' => true, 'example' => 'search'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => [
- 'title' => 'ListResult',
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'result' => [
- 'description' => '结果集',
- 'type' => 'array',
- 'items' => [
- 'description' => '日志信息',
- 'type' => 'any',
- 'example' => '[{"requestTime":"2024-07-02T16:06:57+08:00","totalTime":"0.003","requestId":"6d63e7a9b58a04827cfxxxxx","host":"ha-cn-xxx.ha.aliyuncs.com","requestUri":"/vector-service/fetch","status":"200"}]',
- ],
- ],
- 'totalCount' => [
- 'description' => '总记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '5',
+ 'title' => 'List',
+ 'description' => '实例规格列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例规格列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'cpu' => ['title' => '单位:核数', 'description' => '核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'mem' => ['title' => '单位G', 'description' => '内存,单位:G。', 'type' => 'integer', 'format' => 'int32', 'example' => '16'],
+ 'minDisk' => ['title' => '单数据节点存储空间最小值', 'description' => '单数据节点存储空间最小值,单位:G。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'maxDisk' => ['title' => '单数据节点存储空间最大值', 'description' => '单数据节点存储空间最大值,单位:G。', 'type' => 'integer', 'format' => 'int32', 'example' => '600'],
],
],
],
@@ -14263,9 +9091,7 @@
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {\\n \\"result\\": [\\n \\"[{\\\\\\"requestTime\\\\\\":\\\\\\"2024-07-02T16:06:57+08:00\\\\\\",\\\\\\"totalTime\\\\\\":\\\\\\"0.003\\\\\\",\\\\\\"requestId\\\\\\":\\\\\\"6d63e7a9b58a04827cfxxxxx\\\\\\",\\\\\\"host\\\\\\":\\\\\\"ha-cn-xxx.ha.aliyuncs.com\\\\\\",\\\\\\"requestUri\\\\\\":\\\\\\"/vector-service/fetch\\\\\\",\\\\\\"status\\\\\\":\\\\\\"200\\\\\\"}]\\"\\n ],\\n \\"totalCount\\": 5\\n }\\n}","type":"json"}]',
- 'title' => '查询实例日志',
- 'summary' => '查询实例日志。',
+ 'title' => '获取集群可选择的规格列表',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -14275,19 +9101,54 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/logs'."\n"
+ .'/openapi/ha3/instances/{instanceId}/specs'."\n"
.'```',
- ],
- 'ModifyNodeConfig' => [
- 'summary' => '修改节点配置。',
- 'path' => '/openapi/ha3/instances/{instanceId}/node-config',
- 'methods' => [
- 'put',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ .'`GET /openapi/ha3/instances/ha3_instance_name/specs`',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
+ .' "result": ['."\n"
+ .' {'."\n"
+ .' "cpu": 1'."\n"
+ .' "mem": 2,'."\n"
+ .' "disk": 100'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "cpu": 2'."\n"
+ .' "mem": 4,'."\n"
+ .' "disk": 100 '."\n"
+ .' } '."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInstanceSpecs'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListInstanceSpecs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": [\\n {\\n \\"cpu\\": 1,\\n \\"mem\\": 16,\\n \\"minDisk\\": 100,\\n \\"maxDisk\\": 600\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListInstances' => [
+ 'path' => '/openapi/ha3/instances',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -14296,211 +9157,331 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'abilityTreeCode' => '114152',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchIQC42D',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '102492',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG', 'FEATUREopensearchJB31XH'],
],
'parameters' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '指定页码,默认为:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'type',
+ 'name' => 'pageSize',
'in' => 'query',
- 'schema' => [
- 'title' => 'qrs: 查询节点, search: 数据节点, index: 索引节点, cluster: 集群',
- 'description' => '算法类型'."\n"
- .'- pop 人气模型'."\n"
- .'- cp 类目预测'."\n"
- .'- hot 热词'."\n"
- .'- hint 底纹'."\n"
- .'- suggest 下拉提示',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'hot',
- ],
+ 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
- 'name' => 'name',
+ 'name' => 'instanceId',
'in' => 'query',
- 'schema' => [
- 'description' => '修改前的配置名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'clusterName',
+ 'name' => 'description',
'in' => 'query',
- 'schema' => [
- 'description' => '集群名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_sh_domain_2',
- ],
+ 'schema' => ['description' => '通过实例描述称进行过滤,支持模糊匹配。', 'type' => 'string', 'required' => false, 'example' => 'searchengine instance'],
],
[
- 'name' => 'dataSourceName',
+ 'name' => 'resourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => '数据来源名称。取值:-search:搜索数据。-not_search:不搜索数据。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'search',
- ],
+ 'schema' => ['description' => '资源组id。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzgpiswzbksdi'],
],
[
- 'name' => 'body',
- 'in' => 'body',
+ 'name' => 'edition',
+ 'in' => 'query',
+ 'schema' => ['description' => '实例类型,vector(向量索引版),engine(召回引擎版)', 'type' => 'string', 'required' => false, 'example' => 'vector'],
+ ],
+ [
+ 'name' => 'tags',
+ 'in' => 'query',
'style' => 'json',
'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'dataFragmentNumber' => [
- 'title' => '数据分片数',
- 'description' => '数据分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'dataDuplicateNumber' => [
- 'title' => '数据副本数',
- 'description' => '数据副本数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'minServicePercent' => [
- 'title' => '最小服务比例',
- 'description' => '最小服务比例',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- 'published' => [
- 'title' => '集群是否挂载',
- 'description' => '集群是否挂载',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'active' => [
- 'title' => '在线生效(索引是否从在线下掉)',
- 'description' => '在线生效(索引是否从在线下掉)',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'flowRatio' => [
- 'description' => '流量比例',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
+ 'description' => '标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => ['description' => '标签键', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
+ 'value' => ['description' => '标签值', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
],
+ 'required' => false,
],
'required' => false,
- 'example' => '{\\"desc\\":\\"new version\\"}',
],
],
+ [
+ 'name' => 'catalog',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'database',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'table',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'dataSourceType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0',
- ],
'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
+ 'description' => '返回结果',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'InstanceItemType',
+ 'description' => 'InstanceItemType',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '实例描述', 'description' => '实例描述', 'type' => 'string', 'example' => 'test'],
+ 'resourceGroupId' => ['title' => '资源组ID', 'description' => '资源组ID', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****'],
+ 'expiredTime' => ['title' => '到期时间', 'description' => '到期时间', 'type' => 'string', 'example' => '1634885083'],
+ 'commodityCode' => ['title' => '商品code', 'description' => '商品code', 'type' => 'string', 'example' => 'opensearch_ha3post_public_cn'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'READY'],
+ 'instanceId' => ['title' => '资源一级ID', 'description' => '资源一级ID', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****'],
+ 'createTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2022-06-04T02:03:21Z'],
+ 'lockMode' => ['title' => '锁定状态', 'description' => '锁定状态', 'type' => 'string', 'example' => 'Unlock'],
+ 'chargeType' => ['title' => '付费类型', 'description' => '付费类型', 'type' => 'string', 'example' => 'POSTPAY'],
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2018-12-06T11:17:49.0'],
+ 'inDebt' => ['title' => '是否欠费', 'description' => '是否欠费', 'type' => 'boolean', 'example' => 'false'],
+ 'network' => [
+ 'description' => '网络搜索引擎实例信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'vSwitchId' => ['description' => '虚拟交换机id', 'type' => 'string', 'example' => 'vsw-bp11ldcf59q2n****'],
+ 'vpcId' => ['description' => 'vpc网络id', 'type' => 'string', 'example' => 'vpc-wz9axk41d9vff****'],
+ 'endpoint' => ['description' => '网关接入点。', 'type' => 'string', 'example' => 'ha-cn-35t3r****.ha.aliyuncs.com'],
+ 'publicEndpoint' => ['description' => '公网域名', 'type' => 'string', 'example' => 'ha-cn-35t3ni****.public.ha.aliyuncs.com'],
+ 'allow' => ['description' => '公网域名白名单', 'type' => 'string', 'example' => '127.0.0.1'],
+ ],
+ ],
+ 'tags' => [
+ 'description' => '标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => ['description' => '标签键', 'type' => 'string', 'example' => 'opensearch'],
+ 'value' => ['description' => '标签值', 'type' => 'string', 'example' => 'opensearch'],
+ ],
+ ],
+ ],
+ 'edition' => ['description' => '实例版本 -vector: 向量检索版 -engine:召回引擎版', 'type' => 'string', 'example' => 'vector'],
+ 'userName' => ['description' => '用户名', 'type' => 'string', 'example' => 'admin'],
+ 'version' => ['description' => '引擎版本号', 'type' => 'string', 'example' => 'ha3_3.10.0'],
+ 'noQrs' => ['description' => '是否是单节点实例', 'type' => 'boolean', 'example' => 'false'],
+ 'spec' => [
+ 'description' => '节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'qrsResource' => [
+ 'description' => '查询节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'category' => ['description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型', 'type' => 'string', 'example' => 'local_ssd'],
+ 'cpu' => ['description' => 'CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'mem' => ['description' => '内存,单位:G。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'disk' => ['description' => '节点存储空间大小,单位:GB。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'nodeCount' => ['description' => '节点数量', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
+ ],
+ ],
+ 'searchResource' => [
+ 'description' => '数据节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'category' => ['description' => '机型 -local_ssd:本地SSD盘型 -cloud: 云盘型', 'type' => 'string', 'example' => 'local_ssd'],
+ 'cpu' => ['description' => 'CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'mem' => ['description' => '内存,单位:G。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'disk' => ['description' => '节点存储空间大小,单位:GB。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'nodeCount' => ['description' => '节点数量', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
+ ],
+ ],
+ ],
+ ],
+ 'dataSourceDetails' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'indexName' => ['type' => 'string', 'description' => ''],
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'config' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'endpoint' => ['type' => 'string', 'description' => ''],
+ 'accessKey' => ['type' => 'string', 'description' => ''],
+ 'project' => ['type' => 'string', 'description' => ''],
+ 'partition' => ['type' => 'string', 'description' => ''],
+ 'table' => ['type' => 'string', 'description' => ''],
+ 'namespace' => ['type' => 'string', 'description' => ''],
+ 'path' => ['type' => 'string', 'description' => ''],
+ 'ossPath' => ['type' => 'string', 'description' => ''],
+ 'bucket' => ['type' => 'string', 'description' => ''],
+ 'catalog' => ['type' => 'string', 'description' => ''],
+ 'database' => ['type' => 'string', 'description' => ''],
+ 'tag' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'description' => '',
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
],
+ 'totalCount' => ['title' => '总记录数。', 'description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '89B968E6-1E41-58DF-BB25-5F98ECC759CE'],
],
],
],
- 500 => [],
+ 500 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['type' => 'string', 'description' => ''],
+ 'message' => ['type' => 'string', 'description' => ''],
+ 'code' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改节点配置',
+ 'title' => '获取实例列表',
+ 'summary' => '获取实例列表。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test'."\n"
+ .'/openapi/ha3/instances'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .'```java'."\n"
- .'PUT /openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test'."\n"
- .'```'."\n"
+ 'requestParamsDescription' => '| 参数 | 类型 | 是否必需 | 描述 |'."\n"
+ .'| ----------- | ------ | -------- | ------------------------------------------------------------ |'."\n"
+ .'| status | String | 否 | 通过实例状态进行过滤。Running, Ready, Initializing,Starting |'."\n"
+ .'| expiredTime | Long | 否 | 秒级时间戳,通过过期时间过滤,大于当前时间会过滤出即将过期的实例(不包含已经过期的实例) |'."\n"
."\n"
- .''."\n"
+ .'### 示例'."\n"
+ .'**请求示例**'."\n"
."\n"
- .'```java'."\n"
+ .'`GET /openapi/ha3/instances?name=test&instanceId=abc&page=1&size=10`',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ .'**正常返回示例**'."\n"
+ .'```'."\n"
.'{'."\n"
- .''."\n"
- .' "dataFragmentNumber":1,//查询节点+数据结点'."\n"
- .''."\n"
- .' "dataDuplicateNumber":1,//查询节点+数据结点'."\n"
- .''."\n"
- .' "minServicePercent":20,//查询节点+数据结点'."\n"
- .''."\n"
- .' "published":true,//集群'."\n"
- .''."\n"
- .' "active": true //index'."\n"
- .''."\n"
+ .' "result":'."\n"
+ .' ['."\n"
+ .' {'."\n"
+ .' "inDebt": false,'."\n"
+ .' "lockMode": "Unlock",'."\n"
+ .' "trFreeUrl": "",'."\n"
+ .' "chargeType": "POSTPAY",'."\n"
+ .' "edition": "engine",'."\n"
+ .' "description": "test",'."\n"
+ .' "updateTime": "2024-05-06 14:08:24.0",'."\n"
+ .' "userName": "admin",'."\n"
+ .' "version": "ha3_3.10.0",'."\n"
+ .' "spec":'."\n"
+ .' {'."\n"
+ .' "qrsResource":'."\n"
+ .' {'."\n"
+ .' "category": "local_ssd",'."\n"
+ .' "cpu": 2,'."\n"
+ .' "mem": 8,'."\n"
+ .' "disk": 100,'."\n"
+ .' "nodeCount": 5'."\n"
+ .' },'."\n"
+ .' "searchResource":'."\n"
+ .' {'."\n"
+ .' "category": "local_ssd",'."\n"
+ .' "cpu": 2,'."\n"
+ .' "mem": 16,'."\n"
+ .' "disk": 100,'."\n"
+ .' "nodeCount": 4'."\n"
+ .' }'."\n"
+ .' },'."\n"
+ .' "network":'."\n"
+ .' {'."\n"
+ .' "vSwitchId": "vsw-bp179zkffzyva26ua8xil",'."\n"
+ .' "vpcId": "vpc-bp1956duqqe2lm2lvqjf1",'."\n"
+ .' "endpoint": "ha-cn-35t3ni61z06.ha.aliyuncs.com",'."\n"
+ .' "publicEndpoint": "ha-cn-35t3ni61z06.public.ha.aliyuncs.com",'."\n"
+ .' "allow": "127.0.0.1"'."\n"
+ .' },'."\n"
+ .' "tags":'."\n"
+ .' ['."\n"
+ .' {'."\n"
+ .' "value": "rg-acfmv2hk2jpsxia",'."\n"
+ .' "key": "acs:rm:rgId"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "noQrs": false,'."\n"
+ .' "instanceId": "ha-cn-35t3ni61z06",'."\n"
+ .' "createTime": "2024-03-14 10:49:32.0",'."\n"
+ .' "commodityCode": "opensearch_ha3post_public_cn",'."\n"
+ .' "resourceGroupId": "rg-acfmv2hk2jpsxia",'."\n"
+ .' "status": "READY"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "requestId": "949FDF5E-6FF6-13B9-A196-59B25F143B7F",'."\n"
+ .' "totalCount": 1'."\n"
.'}'."\n"
- .'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
- ."\n"
- .'正确返回'."\n"
- .''."\n"
+ .'```'."\n"
+ .'**异常返回示例**'."\n"
."\n"
- .'```java'."\n"
+ .'```'."\n"
.'{'."\n"
- .''."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .''."\n"
- .' "result": []'."\n"
- .''."\n"
+ .' "requestId": "BD1EA715-DF6F-06C2-004C-C1FA0D3A9820",'."\n"
+ .' "httpCode": 404,'."\n"
+ .' "code": "App.NotFound",'."\n"
+ .' "message": "App not found"'."\n"
.'}'."\n"
- .'```'."\n"
- .'详情可参考[响应结构](https://www.alibabacloud.com/help/zh/open-search/vector-search-edition/response-structure)',
- ],
- 'GetDeployGraph' => [
- 'summary' => '展示部署全局概览。',
- 'path' => '/openapi/ha3/instances/{instanceId}/deploy-graph',
- 'methods' => [
- 'get',
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInstances'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListInstances',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"description\\": \\"test\\",\\n \\"resourceGroupId\\": \\"ha-cn-pl32rf0****\\",\\n \\"expiredTime\\": \\"1634885083\\",\\n \\"commodityCode\\": \\"opensearch_ha3post_public_cn\\",\\n \\"status\\": \\"READY\\",\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\",\\n \\"createTime\\": \\"2022-06-04T02:03:21Z\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"updateTime\\": \\"2018-12-06T11:17:49.0\\",\\n \\"inDebt\\": false,\\n \\"network\\": {\\n \\"vSwitchId\\": \\"vsw-bp11ldcf59q2n****\\",\\n \\"vpcId\\": \\"vpc-wz9axk41d9vff****\\",\\n \\"endpoint\\": \\"ha-cn-35t3r****.ha.aliyuncs.com\\",\\n \\"publicEndpoint\\": \\"ha-cn-35t3ni****.public.ha.aliyuncs.com\\",\\n \\"allow\\": \\"127.0.0.1\\"\\n },\\n \\"tags\\": [\\n {\\n \\"key\\": \\"opensearch\\",\\n \\"value\\": \\"opensearch\\"\\n }\\n ],\\n \\"edition\\": \\"vector\\",\\n \\"userName\\": \\"admin\\",\\n \\"version\\": \\"ha3_3.10.0\\",\\n \\"noQrs\\": false,\\n \\"spec\\": {\\n \\"qrsResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 1,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 3\\n },\\n \\"searchResource\\": {\\n \\"category\\": \\"local_ssd\\",\\n \\"cpu\\": 1,\\n \\"mem\\": 10,\\n \\"disk\\": 100,\\n \\"nodeCount\\": 3\\n }\\n },\\n \\"dataSourceDetails\\": [\\n {\\n \\"indexName\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"accessKey\\": \\"\\",\\n \\"project\\": \\"\\",\\n \\"partition\\": \\"\\",\\n \\"table\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"ossPath\\": \\"\\",\\n \\"bucket\\": \\"\\",\\n \\"catalog\\": \\"\\",\\n \\"database\\": \\"\\",\\n \\"tag\\": \\"\\"\\n }\\n }\\n ]\\n }\\n ],\\n \\"totalCount\\": 5,\\n \\"requestId\\": \\"89B968E6-1E41-58DF-BB25-5F98ECC759CE\\"\\n}","type":"json"}]',
+ ],
+ 'ListLogs' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/logs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -14509,18 +9490,45 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '223197',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-i7m2roiy504'],
+ ],
+ [
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => ['title' => 'select: 查询日志, push: 写入日志', 'description' => 'select: 查询日志, push: 写入日志', 'type' => 'string', 'required' => false, 'example' => 'push', 'default' => 'select'],
+ ],
+ [
+ 'name' => 'pageNum',
+ 'in' => 'query',
+ 'schema' => ['description' => '页码,默认值 1。', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '指定每页展示条数,默认为10。', 'type' => 'string', 'required' => false, 'example' => '10'],
+ ],
+ [
+ 'name' => 'startTime',
+ 'in' => 'query',
+ 'schema' => ['description' => '查询开始时间戳。单位:秒。', 'type' => 'string', 'required' => false, 'example' => '1706340600'],
+ ],
+ [
+ 'name' => 'endTime',
+ 'in' => 'query',
+ 'schema' => ['description' => '查询结束时间戳。单位:秒。', 'type' => 'string', 'required' => false, 'example' => '1710432000'],
+ ],
+ [
+ 'name' => 'query',
+ 'in' => 'query',
+ 'schema' => ['description' => '查询语句。', 'type' => 'string', 'required' => false, 'example' => 'status: 200 AND totalTime > 0.01'],
],
],
'responses' => [
@@ -14528,215 +9536,315 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
'result' => [
- 'title' => 'DeployGraph',
- 'description' => '返回结果。',
+ 'title' => 'ListResult',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'graph' => [
- 'description' => '部署信息',
- 'type' => 'object',
- 'properties' => [
- 'onlineMaster' => [
- 'title' => '在线集群元信息',
- 'description' => '在线集群元信息',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'id' => [
- 'description' => '机房id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'name' => [
- 'description' => '在线集群名称',
- 'type' => 'string',
- 'example' => ' '."\n"
- .'ha-cn-pl32rf0****_hz_pre_vpc_domain_1',
- ],
- 'domainName' => [
- 'description' => '机房',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- 'hippoId' => [
- 'description' => '资源id',
- 'type' => 'string',
- 'example' => '5377',
- ],
- ],
- ],
- ],
- 'zoneMetas' => [
- 'title' => 'zone元信息',
- 'description' => 'zone元信息列表',
- 'type' => 'array',
- 'items' => [
- 'description' => 'zone元信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- 'tag' => [
- 'description' => '标签',
- 'type' => 'string',
- 'example' => ' '."\n"
- .'ha-cn-pl32rf0****_qrs_hz_pre_vpc_domain_1',
- ],
- 'suezAdminName' => [
- 'description' => 'suez admin名称',
- 'type' => 'string',
- 'example' => ' '."\n"
- .'ha-cn-pl32rf0****_hz_pre_vpc_domain_1',
- ],
- 'type' => [
- 'description' => '类型',
- 'type' => 'string',
- 'example' => 'qrs',
- ],
- 'domainInfo' => [
- 'description' => '机房',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- ],
- ],
- ],
- 'tableMetas' => [
- 'title' => '数据源元信息',
- 'description' => '数据源元信息',
- 'type' => 'array',
- 'items' => [
+ 'result' => [
+ 'description' => '结果集',
+ 'type' => 'array',
+ 'items' => ['description' => '日志信息', 'type' => 'any', 'example' => '[{"requestTime":"2024-07-02T16:06:57+08:00","totalTime":"0.003","requestId":"6d63e7a9b58a04827cfxxxxx","host":"ha-cn-xxx.ha.aliyuncs.com","requestUri":"/vector-service/fetch","status":"200"}]'],
+ ],
+ 'totalCount' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '查询实例日志',
+ 'summary' => '查询实例日志。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/logs'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListLogs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {\\n \\"result\\": [\\n \\"[{\\\\\\"requestTime\\\\\\":\\\\\\"2024-07-02T16:06:57+08:00\\\\\\",\\\\\\"totalTime\\\\\\":\\\\\\"0.003\\\\\\",\\\\\\"requestId\\\\\\":\\\\\\"6d63e7a9b58a04827cfxxxxx\\\\\\",\\\\\\"host\\\\\\":\\\\\\"ha-cn-xxx.ha.aliyuncs.com\\\\\\",\\\\\\"requestUri\\\\\\":\\\\\\"/vector-service/fetch\\\\\\",\\\\\\"status\\\\\\":\\\\\\"200\\\\\\"}]\\"\\n ],\\n \\"totalCount\\": 5\\n }\\n}","type":"json"}]',
+ ],
+ 'ListModels' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/models',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['title' => '实例ID'."\n", 'description' => '实例ID'."\n", 'type' => 'string', 'required' => true, 'example' => 'ha-cn-test'],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'query',
+ 'schema' => ['title' => '模型名称'."\n", 'description' => '模型名称'."\n", 'type' => 'string', 'required' => false, 'example' => 'test1'],
+ ],
+ [
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => ['title' => '模型类别'."\n", 'description' => '模型类别'."\n", 'type' => 'string', 'required' => false, 'example' => 'text_embedding'],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['title' => '页数,默认为1'."\n", 'description' => '页数,默认为1'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['title' => '每页显示条数,默认为10'."\n", 'description' => '每页显示条数,默认为10'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '返回参数包括请求ID和模型列表,其中模型列表中的每个元素包含模型的详细信息如名称、类型、URL、状态等。'."\n",
+ 'description' => '返回参数包括请求ID和模型列表,其中模型列表中的每个元素包含模型的详细信息如名称、类型、URL、状态等。'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '请求ID'."\n", 'description' => '请求ID'."\n", 'type' => 'string', 'example' => '38b079f1-7846-4226-8c90-3e2644b5c52b'],
+ 'totalCount' => ['title' => '总数'."\n", 'description' => '总数'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '14'],
+ 'result' => [
+ 'title' => '模型列表参考:Model'."\n",
+ 'description' => '模型列表参考:Model'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '模型信息',
+ 'description' => '模型信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '模型名称', 'description' => '模型名称', 'type' => 'string', 'example' => 'test'],
+ 'type' => ['title' => '模型类别', 'description' => '模型类别'."\n"
+ ."\n"
+ .'- a. 文本向量化:text_embedding'."\n"
+ .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
+ .'- c. 图片向量化:image_embedding'."\n"
+ .'- d. 图片内容解析:image_analyze', 'type' => 'string', 'example' => 'text_embedding'],
+ 'url' => ['title' => '模型访问地址', 'description' => '模型服务的访问地址', 'type' => 'string', 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001'],
+ 'status' => [
+ 'title' => '模型状态。'."\n"
+ .' * ok: 模型可用'."\n"
+ .' * forbidden: 模型不可用',
+ 'description' => '模型状态。'."\n"
+ .' * ok: 模型可用'."\n"
+ .' * forbidden: 模型不可用',
+ 'type' => 'string',
+ 'example' => 'ok',
+ 'enum' => ['ok', 'forbidden'],
+ ],
+ 'dimension' => ['title' => '模型的维度', 'description' => '模型的维度', 'type' => 'integer', 'format' => 'int32', 'example' => '128'],
+ 'content' => [
+ 'title' => '模型的内容信息',
+ 'description' => '模型的内容信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'modelName' => ['title' => '模型名称', 'description' => '模型名称', 'type' => 'string', 'example' => 'test'],
+ 'modelType' => ['title' => '模型类型', 'description' => '模型类别'."\n"
+ ."\n"
+ .'- a. 文本向量化:text_embedding'."\n"
+ .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
+ .'- c. 图片向量化:image_embedding'."\n"
+ .'- d. 图片内容解析:image_analyze', 'type' => 'string', 'example' => 'text_embedding'],
+ 'url' => ['title' => '模型访问地址', 'description' => '模型服务的访问地址', 'type' => 'string', 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001'],
+ 'method' => ['title' => '请求方法', 'description' => '模型服务访问的http method, 支持PUT和POST', 'type' => 'string', 'example' => 'POST'],
+ 'request' => [
+ 'title' => '请求配置信息',
+ 'description' => '请求配置信息',
'type' => 'object',
'properties' => [
- 'tableDeployId' => [
- 'description' => '表部署id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2177',
- ],
- 'name' => [
- 'description' => '数据源名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'tag' => [
- 'description' => '标签',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api_hz_pre_vpc_domain_1',
- ],
- 'domainName' => [
- 'description' => '机房',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
+ 'header' => [
+ 'title' => '请求头信息',
+ 'description' => '访问模型服务的http header',
+ 'type' => 'object',
+ 'properties' => [
+ 'Authorization' => ['title' => '认证信息', 'description' => '认证信息,格式:Bearer access_token', 'type' => 'string', 'example' => 'Bearer OS-v0********6vvs'."\n"],
+ 'Content-Type' => ['title' => '内容类型', 'description' => 'HTTP请求内容类型。', 'type' => 'string', 'example' => 'application/json'."\n"],
+ ],
],
- 'buildDeployId' => [
- 'description' => '离线部署id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ 'urlParams' => [
+ 'title' => 'URL参数',
+ 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'build' => ['title' => '构建时的URL参数', 'description' => '构建索引时传递的参数', 'type' => 'object', 'example' => 'key: value'],
+ 'search' => ['title' => '搜索时的URL参数', 'description' => '查询时传递的参数', 'type' => 'object', 'example' => 'key: value'],
+ ],
],
- 'type' => [
- 'description' => '数据源类型',
- 'type' => 'string',
- 'example' => 'odps',
+ 'requestBody' => ['title' => '请求体模板', 'description' => '请求Body体的模板字符串', 'type' => 'string', 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}'],
+ 'parameters' => [
+ 'title' => '请求参数',
+ 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
+ 'type' => 'object',
+ 'properties' => [
+ 'build' => [
+ 'title' => '构建时的请求参数',
+ 'description' => '索引构建阶段的参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'input_type' => [
+ 'title' => '输入类型。'."\n"
+ .' * document: 文档类型',
+ 'description' => '输入类型',
+ 'type' => 'string',
+ 'example' => 'query'."\n",
+ 'enum' => ['document'],
+ ],
+ ],
+ ],
+ 'search' => [
+ 'title' => '搜索时的请求参数',
+ 'description' => '查询阶段的参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'input_type' => [
+ 'title' => '输入类型。'."\n"
+ .' * query: 查询类型',
+ 'description' => '输入类型',
+ 'type' => 'string',
+ 'example' => 'document'."\n",
+ 'enum' => ['query'],
+ ],
+ ],
+ ],
+ ],
],
],
],
- ],
- 'indexMetas' => [
- 'title' => '索引元信息',
- 'description' => '索引元信息列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引元信息',
+ 'response' => [
+ 'description' => '如何解析结果信息,使用json path格式描述',
'type' => 'object',
'properties' => [
- 'name' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'example' => 'test_api',
- ],
- 'tag' => [
- 'description' => '标签',
- 'type' => 'string',
- 'example' => 'test_api_hz_pre_vpc_domain_1',
- ],
- 'domainName' => [
- 'description' => '机房',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- 'tableDeployId' => [
- 'description' => '表部署id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2409',
- ],
- 'tableName' => [
- 'description' => '数据源名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'zoneName' => [
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
+ 'embeddings' => ['description' => '如何解析结果信息,使用json path格式描述', 'type' => 'string', 'example' => '$.result.embeddings[*].embedding'."\n"],
],
],
],
- 'zoneIndexRelation' => [
- 'title' => 'zone和索引关联关系',
- 'description' => 'zone和索引关联关系列表',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'example' => 'general_hz_pre_vpc_domain_1',
- 'description' => '索引关联集群',
- ],
- 'description' => 'zone和索引关联关系',
- ],
- ],
- 'tableIndexRelation' => [
- 'title' => '数据源和索引关联关系',
- 'description' => '数据源和索引关联关系列表',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'example' => 'test_api_hz_pre_vpc_domain_1',
- 'description' => '索引关联表',
- ],
- 'description' => '数据源和索引关联关系',
- ],
- ],
],
+ 'createTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
+ 'updateTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2024-05-21 16:05:26'],
],
],
- 'example' => '{}',
],
],
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '模型列表',
+ 'summary' => '通过实例ID查询指定条件下的模型列表。',
+ 'description' => '## 请求说明'."\n"
+ .'本API用于从指定实例中获取模型列表,支持通过模型名称、类型以及分页参数进行筛选。请求时需提供实例ID作为路径参数,其他筛选条件为可选的查询参数。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListModels',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"38b079f1-7846-4226-8c90-3e2644b5c52b\\",\\n \\"totalCount\\": 14,\\n \\"result\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"type\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"status\\": \\"ok\\",\\n \\"dimension\\": 128,\\n \\"content\\": {\\n \\"modelName\\": \\"test\\",\\n \\"modelType\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"method\\": \\"POST\\",\\n \\"request\\": {\\n \\"header\\": {\\n \\"Authorization\\": \\"Bearer OS-v0********6vvs\\\\n\\",\\n \\"Content-Type\\": \\"application/json\\\\n\\"\\n },\\n \\"urlParams\\": {\\n \\"build\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"search\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"requestBody\\": \\"{\\\\\\\\\\\\\\"input\\\\\\\\\\\\\\": [\\\\\\\\\\\\\\"%{input}\\\\\\\\\\\\\\"], \\\\\\\\\\\\\\"input_type\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"%{input_type}\\\\\\\\\\\\\\"}\\",\\n \\"parameters\\": {\\n \\"build\\": {\\n \\"input_type\\": \\"query\\\\n\\"\\n },\\n \\"search\\": {\\n \\"input_type\\": \\"document\\\\n\\"\\n }\\n }\\n },\\n \\"response\\": {\\n \\"embeddings\\": \\"$.result.embeddings[*].embedding\\\\n\\"\\n }\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListOnlineConfigs' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'http'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list'],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'nodeName',
+ 'in' => 'path',
+ 'schema' => ['description' => '节点名称。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_qrs'],
+ ],
+ [
+ 'name' => 'domain',
+ 'in' => 'query',
+ 'schema' => ['description' => '域名', 'type' => 'string', 'required' => true, 'example' => 'sz_vpc_domain_1'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
+ 'result' => [
+ 'title' => 'List',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置结果列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'indexName' => ['description' => '索引名称', 'type' => 'string', 'example' => 'generation'],
+ 'config' => ['description' => '配置信息', 'type' => 'string', 'example' => '{\\"specItems\\":[{\\"specKey\\":\\"YQ_KEYWORD_NUMBER_PLUS\\",\\"value\\":\\"1\\"}]}'],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"graph\\": {\\n \\"onlineMaster\\": [\\n {\\n \\"id\\": 1,\\n \\"name\\": \\"\\\\t\\\\nha-cn-pl32rf0****_hz_pre_vpc_domain_1\\",\\n \\"domainName\\": \\"hz_pre_vpc_domain_1\\",\\n \\"hippoId\\": \\"5377\\"\\n }\\n ],\\n \\"zoneMetas\\": [\\n {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"tag\\": \\"\\\\t\\\\nha-cn-pl32rf0****_qrs_hz_pre_vpc_domain_1\\",\\n \\"suezAdminName\\": \\"\\\\t\\\\nha-cn-pl32rf0****_hz_pre_vpc_domain_1\\",\\n \\"type\\": \\"qrs\\",\\n \\"domainInfo\\": \\"hz_pre_vpc_domain_1\\"\\n }\\n ],\\n \\"tableMetas\\": [\\n {\\n \\"tableDeployId\\": 2177,\\n \\"name\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"tag\\": \\"ha-cn-pl32rf0****_test_api_hz_pre_vpc_domain_1\\",\\n \\"domainName\\": \\"hz_pre_vpc_domain_1\\",\\n \\"buildDeployId\\": 1,\\n \\"type\\": \\"odps\\"\\n }\\n ],\\n \\"indexMetas\\": [\\n {\\n \\"name\\": \\"test_api\\",\\n \\"tag\\": \\"test_api_hz_pre_vpc_domain_1\\",\\n \\"domainName\\": \\"hz_pre_vpc_domain_1\\",\\n \\"tableDeployId\\": 2409,\\n \\"tableName\\": \\"ha-cn-pl32rf0****_test_api\\",\\n \\"zoneName\\": \\"ha-cn-pl32rf0****_qrs\\"\\n }\\n ],\\n \\"zoneIndexRelation\\": {\\n \\"key\\": [\\n \\"general_hz_pre_vpc_domain_1\\"\\n ]\\n },\\n \\"tableIndexRelation\\": {\\n \\"key\\": [\\n \\"test_api_hz_pre_vpc_domain_1\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]',
- 'title' => '展示部署全局概览',
+ 'title' => '获取在线表配置的详情',
+ 'summary' => '获取在线表配置的详情。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -14746,277 +9854,75 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/deploy-graph'."\n"
- .'```',
- 'requestParamsDescription' => "\n"
- .'### 请求示例'."\n"
- ."\n"
+ .'/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs?domain={domain}',
+ 'requestParamsDescription' => '###请求示例'."\n"
.'```java'."\n"
- .''."\n"
- .'GET /openapi/ha3/instances/{instanceId}/deploy-graph'."\n"
- .'```',
- 'responseParamsDescription' => "\n"
+ .'GET /openapi/ha3/instances/ha-test1/node/ihome_searcher/online-configs?domain=pre_ea120'."\n"
+ .'```'."\n",
+ 'responseParamsDescription' => '### 返回示例'."\n"
."\n"
- .'### 返回示例'."\n"
.'正确返回'."\n"
.''."\n"
- ."\n"
.'```java'."\n"
.'{'."\n"
.''."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .''."\n"
- .' "result": {'."\n"
- .''."\n"
- .' "app": {'."\n"
- .''."\n"
- .' "creator": "74087",'."\n"
- .''."\n"
- .' "gmtModified": 1628151698000,'."\n"
- .''."\n"
- .' "groupId": 596,'."\n"
- .''."\n"
- .' "platformType": "tisplus",'."\n"
- .''."\n"
- .' "description": "qrs改写插件测试集群,测试同学不要使用",'."\n"
- .''."\n"
- .' "gmtCreate": 1628151698000,'."\n"
- .''."\n"
- .' "isActive": 0,'."\n"
- .''."\n"
- .' "type": "online_group",'."\n"
- .''."\n"
- .' "appStatus": 0,'."\n"
- .''."\n"
- .' "procStatus": 0,'."\n"
- .''."\n"
- .' "isDeleted": 0,'."\n"
- .''."\n"
- .' "name": "search4TestPlugin",'."\n"
- .''."\n"
- .' "id": 5171'."\n"
- .''."\n"
- .' },'."\n"
- .''."\n"
- .' "hippos": [],'."\n"
- .''."\n"
- .' "appGroupName": "多biz测试业务线",'."\n"
- .''."\n"
- .' "name": "search4TestPlugin",'."\n"
+ .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
.''."\n"
- .' "availableDeploys": ['."\n"
+ .' "result": ['."\n"
.''."\n"
.' {'."\n"
.''."\n"
- .' "gmtModified": 1594193012000,'."\n"
- .''."\n"
- .' "virtualDomainList": "6,7,8",'."\n"
- .''."\n"
- .' "platformType": "[\\"tisplus\\",\\"tisplus_khronos\\",\\"tisplus_dingtalk\\"]",'."\n"
- .''."\n"
- .' "description": "pre_et2机房",'."\n"
- .''."\n"
- .' "groups": "",'."\n"
- .''."\n"
- .' "gmtCreate": 1565752477000,'."\n"
- .''."\n"
- .' "type": "INNET",'."\n"
- .''."\n"
- .' "modules": "[\\"online\\"]",'."\n"
- .''."\n"
- .' "foundationDetailList": "15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,94",'."\n"
- .''."\n"
- .' "name": "pre_et2",'."\n"
- .''."\n"
- .' "hippoId": "hippo_et2_7u",'."\n"
+ .' "indexName": "nm_algo_dense_weights",'."\n"
.''."\n"
- .' "id": 5'."\n"
+ .' "config": "{\\"realtime\\":false,\\"cluster_config\\":{\\"table_name\\":\\"nm_algo_dense_weights\\"},\\"online_index_config\\":{\\"online_keep_version_count\\":3,\\"build_config\\":{\\"build_total_memory\\":1024},\\"max_realtime_memory_use\\":1024,\\"load_config\\":[{\\"file_patterns\\":[\\".*\\"],\\"load_strategy\\":\\"mmap\\",\\"load_strategy_param\\":{\\"slice\\":409600,\\"lock\\":true,\\"interval\\":2}},{\\"file_patterns\\":[\\".*\\"],\\"load_strategy\\":\\"mmap\\",\\"load_strategy_param\\":{\\"slice\\":409600,\\"lock\\":true,\\"interval\\":2}},{\\"file_patterns\\":[\\"/summary/data\\"],\\"load_strategy\\":\\"cache\\",\\"load_strategy_param\\":{\\"direct_io\\":true,\\"cache_size\\":512}},{\\"warmup_strategy\\":\\"none\\",\\"file_patterns\\":[\\".*\\"],\\"load_strategy\\":\\"mmap\\",\\"load_strategy_param\\":{\\"lock\\":false}}]},\\"build_option_config\\":{\\"async_queue_size\\":1000,\\"max_recover_time\\":10,\\"async_build\\":true}}"'."\n"
.''."\n"
.' },'."\n"
.''."\n"
.' {'."\n"
.''."\n"
- .' "gmtModified": 1571642223000,'."\n"
- .''."\n"
- .' "platformType": "[\\"tisplus\\"]",'."\n"
- .''."\n"
- .' "description": "预发oc27机房",'."\n"
- .''."\n"
- .' "groups": "",'."\n"
- .''."\n"
- .' "gmtCreate": 1571642223000,'."\n"
- .''."\n"
- .' "type": "INNET",'."\n"
- .''."\n"
- .' "modules": "[\\"online\\"]",'."\n"
- .''."\n"
- .' "foundationDetailList": "67,68,69,70,71,72,73,74,75,76,77,78,79",'."\n"
- .''."\n"
- .' "name": "oc27_pre",'."\n"
- .''."\n"
- .' "hippoId": "hippo_7u_oc27",'."\n"
- .''."\n"
- .' "id": 15'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
- .' ],'."\n"
- .''."\n"
- .' "graph": {'."\n"
- .''."\n"
- .' "zoneMetas": ['."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "suezAdminName": "search4TestPlugin_pre",'."\n"
- .''."\n"
- .' "zoneMetaId": 8509,'."\n"
- .''."\n"
- .' "domainInfo": "pre",'."\n"
- .''."\n"
- .' "mainZone": true,'."\n"
- .''."\n"
- .' "name": "search4TestPlugin_qrs",'."\n"
- .''."\n"
- .' "zoneId": 11379,'."\n"
- .''."\n"
- .' "tag": "search4TestPlugin_qrs_pre",'."\n"
- .''."\n"
- .' "clusterId": 5265,'."\n"
- .''."\n"
- .' "type": "qrs"'."\n"
- .''."\n"
- .' },'."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "suezAdminName": "search4TestPlugin_pre",'."\n"
- .''."\n"
- .' "zoneMetaId": 8510,'."\n"
- .''."\n"
- .' "domainInfo": "pre",'."\n"
- .''."\n"
- .' "mainZone": true,'."\n"
- .''."\n"
- .' "name": "test_searcher",'."\n"
- .''."\n"
- .' "zoneId": 11380,'."\n"
- .''."\n"
- .' "tag": "test_searcher_pre",'."\n"
- .''."\n"
- .' "clusterId": 5265,'."\n"
- .''."\n"
- .' "type": "searcher"'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
- .' ],'."\n"
- .''."\n"
- .' "tableIndexRelation": {'."\n"
- .''."\n"
- .' "product_sku_pre_ea120": ['."\n"
- .''."\n"
- .' "product_sku_pre_ea120"'."\n"
+ .' "indexName": "search4_mj_mos_item_index",'."\n"
.''."\n"
- .' ]'."\n"
+ .' "config": "{\\"realtime\\":true,\\"cluster_config\\":{\\"table_name\\":\\"search4_mj_mos_item_index\\"},\\"online_index_config\\":{\\"online_keep_version_count\\":3,\\"build_config\\":{\\"build_total_memory\\":4096},\\"max_realtime_memory_use\\":8192,\\"load_config\\":[{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_INDEX_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_INDEX_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"none\\",\\"file_patterns\\":[\\"_SUMMARY_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_SUMMARY_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_ATTRIBUTE_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_ATTRIBUTE_\\",\\"load_strategy_param\\":{\\"lock\\":true}}],\\"speedup_primary_key_reader\\":true},\\"build_option_config\\":{\\"async_queue_size\\":10000,\\"max_recover_time\\":10,\\"async_build\\":true}}"'."\n"
.''."\n"
.' },'."\n"
.''."\n"
- .' "onlineMaster": ['."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "appId": 5171,'."\n"
- .''."\n"
- .' "domainId": 1,'."\n"
- .''."\n"
- .' "domainName": "pre",'."\n"
- .''."\n"
- .' "gmtCreate": 1628561292000,'."\n"
- .''."\n"
- .' "gmtModified": 1628562498000,'."\n"
- .''."\n"
- .' "hippoGroupId": "20",'."\n"
- .''."\n"
- .' "id": 5265,'."\n"
- .''."\n"
- .' "monitorStatus": 1,'."\n"
- .''."\n"
- .' "name": "search4TestPlugin_pre",'."\n"
- .''."\n"
- .' "processorInfoId": 27789,'."\n"
- .''."\n"
- .' "zkAddr": ""'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
- .' ],'."\n"
- .''."\n"
- .' "indexMetas": ['."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "tableDeployId": 7366,'."\n"
- .''."\n"
- .' "zoneMetaId": 8510,'."\n"
- .''."\n"
- .' "domainName": "pre_ea120",'."\n"
- .''."\n"
- .' "name": "product_sku",'."\n"
- .''."\n"
- .' "tableId": 6866,'."\n"
- .''."\n"
- .' "tag": "product_sku_pre_ea120",'."\n"
- .''."\n"
- .' "zoneName": "test_searcher",'."\n"
- .''."\n"
- .' "tableName": "product_sku"'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
- .' ],'."\n"
- .''."\n"
- .' "offlineMaster": ['."\n"
- .''."\n"
- .' {'."\n"
- .''."\n"
- .' "appId": 5214,'."\n"
- .''."\n"
- .' "domainId": 18,'."\n"
- .''."\n"
- .' "domainName": "pre_ea120",'."\n"
- .''."\n"
- .' "gmtCreate": 1628501863000,'."\n"
- .''."\n"
- .' "gmtModified": 1628501863000,'."\n"
- .''."\n"
- .' "id": 3751,'."\n"
- .''."\n"
- .' "isPublic": 2,'."\n"
- .''."\n"
- .' "monitorStatus": 1,'."\n"
+ .' {'."\n"
.''."\n"
- .' "name": "search4_multi_biz_bs",'."\n"
+ .' "indexName": "nm_algo_search_retrieval_item_index",'."\n"
.''."\n"
- .' "platformType": "tisplus",'."\n"
+ .' "config": "{\\"realtime\\":true,\\"cluster_config\\":{\\"table_name\\":\\"nm_algo_search_retrieval_item_index\\"},\\"online_index_config\\":{\\"online_keep_version_count\\":3,\\"build_config\\":{\\"build_total_memory\\":4096},\\"max_realtime_memory_use\\":8192,\\"load_config\\":[{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_INDEX_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_INDEX_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"none\\",\\"file_patterns\\":[\\"_SUMMARY_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_SUMMARY_\\",\\"load_strategy_param\\":{\\"lock\\":true}},{\\"warmup_strategy\\":\\"sequential\\",\\"file_patterns\\":[\\"_ATTRIBUTE_\\"],\\"load_strategy\\":\\"mmap\\",\\"name\\":\\"_ATTRIBUTE_\\",\\"load_strategy_param\\":{\\"lock\\":true}}],\\"speedup_primary_key_reader\\":true},\\"build_option_config\\":{\\"async_queue_size\\":10000,\\"max_recover_time\\":10,\\"async_build\\":true}}"'."\n"
.''."\n"
- .' "processorInfoId": 27755,'."\n"
+ .' } '."\n"
.''."\n"
- .' "zkAddr": ""'."\n"
+ .' ]'."\n"
.''."\n"
- .' }'."\n"
+ .'}'."\n"
.'```'."\n",
- ],
- 'GetNodeConfig' => [
- 'summary' => '获取节点配置信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/node-config',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListOnlineConfigs'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListOnlineConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": [\\n {\\n \\"indexName\\": \\"generation\\",\\n \\"config\\": \\"{\\\\\\\\\\\\\\"specItems\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"specKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"YQ_KEYWORD_NUMBER_PLUS\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\"}]}\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListPausePolicys' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/pause-policies',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15025,124 +9931,204 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '104681',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchIQC42D',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '178009',
+ 'abilityTreeNodes' => ['FEATUREopensearch5EAGY5'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '实例 ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ 'result' => [
+ 'title' => 'Map',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'pauseAll' => ['title' => '暂停全部目标下发', 'description' => '暂停全部目标下发', 'type' => 'boolean', 'example' => 'true'],
+ 'pauseIndex' => ['title' => '暂停新的全量版本下发', 'description' => '暂停新的全量版本下发', 'type' => 'boolean', 'example' => 'true'],
+ 'pauseIndexBatch' => ['title' => '暂停批次增量下发', 'description' => '暂停批次增量下发', 'type' => 'boolean', 'example' => 'true'],
+ 'pauseBiz' => ['title' => '暂停配置下发', 'description' => '暂停配置下发', 'type' => 'boolean', 'example' => 'true'],
+ 'pauseRuntime' => ['title' => '暂停实时增量', 'description' => '暂停实时增量', 'type' => 'boolean', 'example' => 'true'],
+ ],
+ 'description' => '返回结果',
+ ],
+ ],
+ ],
+ 'description' => '',
],
],
+ 500 => [],
+ ],
+ 'title' => '获取暂停策略',
+ 'summary' => '获取暂停策略。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/pause-policies'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPausePolicys'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListPausePolicys',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"key\\": {\\n \\"pauseAll\\": true,\\n \\"pauseIndex\\": true,\\n \\"pauseIndexBatch\\": true,\\n \\"pauseBiz\\": true,\\n \\"pauseRuntime\\": true\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'ListPostQueryResult' => [
+ 'summary' => '召回引擎版使用POST请求获取搜索测试结果。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/query',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '205312',
+ 'abilityTreeNodes' => ['FEATUREopensearchO9FNU6'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
[
'name' => 'type',
'in' => 'query',
+ 'schema' => ['title' => 'sql: sql查询, ha3: ha3查询', 'description' => 'sql: sql查询, ha3: ha3查询', 'type' => 'string', 'required' => false, 'example' => 'ha3', 'default' => 'sql'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '请求结构。', 'type' => 'object', 'required' => false, 'example' => '{"assemblyQuery":"query=id:1&&cluster=general&&config=start:0,hit:10,format:json"}'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => 'qrs: 查询节点, search: 数据节点, index: 索引节点, cluster: 集群',
- 'description' => '节点类型'."\n"
- ."\n"
- .'- qrs:查询节点'."\n"
- .'- search:数据节点'."\n"
- .'- index:索引节点'."\n"
- .'- cluster:集群',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
+ 'result' => ['title' => 'Object', 'description' => '返回结果。', 'type' => 'any', 'example' => '{}'],
+ ],
+ 'description' => '',
],
],
+ 500 => [],
+ ],
+ 'title' => '召回引擎版使用POST请求获取搜索测试结果',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'POST'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/query'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListPostQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
+ ],
+ 'ListQueryResult' => [
+ 'summary' => '获取搜索测试结果。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/query',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'name',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get'],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'query',
'in' => 'query',
- 'schema' => [
- 'description' => '节点名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-30174dhoz53_qrs',
- ],
+ 'schema' => ['description' => 'query 语句', 'type' => 'string', 'required' => false, 'example' => 'query%3D1%26%26config%3Dstart%3A0%2Chit%3A10%2Cformat%3Ajson%26%26cluster%3Dgeneral'],
],
[
- 'name' => 'clusterName',
+ 'name' => 'sql',
'in' => 'query',
- 'schema' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_sh_domain_2',
- ],
+ 'schema' => ['description' => 'SQL语句。', 'type' => 'string', 'required' => false, 'example' => 'query%3Dselect%20max(content_id)%20from%20generation'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
- 'result' => [
- 'title' => 'NodeConfig',
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'dataFragmentNumber' => [
- 'title' => '数据分片数',
- 'description' => '数据分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'dataDuplicateNumber' => [
- 'title' => '数据副本数',
- 'description' => '数据副本数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'minServicePercent' => [
- 'title' => '最小服务比例',
- 'description' => '最小服务比例',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '50',
- ],
- 'published' => [
- 'title' => '集群是否挂载',
- 'description' => '集群是否挂载',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'active' => [
- 'title' => '在线生效(索引是否从在线下掉)',
- 'description' => '在线生效(索引是否从在线下掉)',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'flowRatio' => [
- 'description' => '流量比例',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- ],
- ],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '9E5BCFAA-98B3-51D0-9188-B1BC07589337'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"dataFragmentNumber\\": 1,\\n \\"dataDuplicateNumber\\": 1,\\n \\"minServicePercent\\": 50,\\n \\"published\\": true,\\n \\"active\\": true,\\n \\"flowRatio\\": 100\\n }\\n}","type":"json"}]',
- 'title' => '获取节点配置信息',
+ 'title' => '获取搜索测试结果',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -15152,49 +10138,56 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/node-config'."\n"
- .'```'."\n",
- 'requestParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .'```java'."\n"
- .'GET /openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test&'."\n"
+ .'/openapi/ha3/instances/{instanceId}/query'."\n"
.'```',
- 'responseParamsDescription' => "\n"
- ."\n\n"
- .'### 返回示例'."\n"
+ 'responseParamsDescription' => '| 字段 | 类型 | 描述 |'."\n"
+ .'| --------- | ------ | ------------------------------------------------------------ |'."\n"
+ .'| requestId | String | 请求ID |'."\n"
+ .'| result | String | 引擎返回结果 |',
+ 'extraInfo' => '### 示例'."\n"
+ .'**请求示例**'."\n"
+ ."\n"
+ .'```'."\n"
+ .'sql: GET /openapi/ha3/instances/ha3_instances_id/query?sql=query%3Dselect+%2A+from+mx_index1217'."\n"
+ ."\n"
+ .'query: GET /openapi/ha3/instances/ha3_instances_id/query?query=config%3Dhit%3A4%2Cformat%3Ajson%2Cfetch_summary_type%3Apk%2Cqrs_chain%3Asearch%26%26query%3Did%3A8148508889615505646%26%26cluster%3Dgeneral'."\n"
+ .'```'."\n"
+ .'**返回示例**'."\n"
+ ."\n"
.'正确返回'."\n"
- .''."\n"
- .'```java'."\n"
+ ."\n"
+ .'```'."\n"
.'{'."\n"
- .''."\n"
.' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .''."\n"
- .' "result": {'."\n"
- .''."\n"
- .' "dataFragmentNumber":1,'."\n"
- .''."\n"
- .' "dataDuplicateNumber":1,'."\n"
- .''."\n"
- .' "minServicePercent":20,'."\n"
- .''."\n"
- .' "published":true,'."\n"
- .''."\n"
- .' "active": true // 在线是否生效'."\n"
- .''."\n"
- .' }'."\n"
- .''."\n"
+ .' "result": {}'."\n"
.'}'."\n"
.'```'."\n",
- ],
- 'ListIndexRecoverRecords' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/list-recover-records',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQueryResult'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9E5BCFAA-98B3-51D0-9188-B1BC07589337\\"\\n}","type":"json"}]',
+ ],
+ 'ListRestQueryResult' => [
+ 'summary' => '召回引擎版获取rest查询搜索测试结果。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/rest-query',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15204,30 +10197,29 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
- 'abilityTreeCode' => '218752',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchSLLBIN',
- ],
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '171180',
+ 'abilityTreeNodes' => ['FEATUREopensearchO9FNU6'],
],
'parameters' => [
[
- 'name' => 'indexName',
+ 'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '索引名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_api',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'instanceId',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
+ 'description' => '请求结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'indexName' => ['title' => '索引表名', 'description' => '索引表名', 'type' => 'string', 'required' => false, 'example' => 'main_index'],
+ 'query' => ['title' => 'rest查询语句', 'description' => 'rest查询语句', 'type' => 'object', 'required' => false, 'example' => 'query%3Drelation_id%3A%221151274675_2%22%26%26cluster%3Dgeneral%26%26config%3Dstart%3A0%2Chit%3A10%2Cformat%3Ajson'],
+ ],
'required' => false,
- 'example' => 'ha-cn-pl32rf0****',
],
],
],
@@ -15236,50 +10228,52 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'generationId' => [
- 'description' => '索引全量版本',
- 'type' => 'string',
- 'example' => '1708674867',
- ],
- 'desc' => [
- 'description' => '备注',
- 'type' => 'string',
- 'example' => 'Custom Configuration',
- ],
- 'finishedTime' => [
- 'description' => '本次发布的完成时间',
- 'type' => 'string',
- 'example' => '2024-06-07 16:43:00',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C'],
+ 'result' => ['title' => 'Object', 'description' => '返回结果。', 'type' => 'any', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"generationId\\": \\"1708674867\\",\\n \\"desc\\": \\"Custom Configuration\\",\\n \\"finishedTime\\": \\"2024-06-07 16:43:00\\"\\n}","type":"json"}]',
- 'title' => '获取恢复数据记录',
- 'summary' => '获取恢复数据记录。',
+ 'title' => '召回引擎版获取rest查询搜索测试结果',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/list-recover-records'."\n"
+ .'/openapi/ha3/instances/{instanceId}/rest-query'."\n"
.'```',
- ],
- 'ListPausePolicys' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/pause-policies',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRestQueryResult'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListRestQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
+ ],
+ 'ListSchemas' => [
+ 'summary' => '根据数据同步配置获取schema信息。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/schemas',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15289,83 +10283,154 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
- 'abilityTreeCode' => '178009',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch5EAGY5',
- ],
+ 'abilityTreeCode' => '186763',
+ 'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => ['title' => 'odps, swift, saro, oss, unKnow', 'description' => 'odps, swift, saro, oss, unKnow', 'type' => 'string', 'required' => true, 'example' => 'odps'],
+ ],
+ [
+ 'name' => 'endpoint',
+ 'in' => 'query',
+ 'schema' => ['description' => 'odps endpoint', 'type' => 'string', 'required' => false, 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ ],
+ [
+ 'name' => 'accessKey',
+ 'in' => 'query',
+ 'schema' => ['description' => 'odps数据源ak', 'type' => 'string', 'required' => false, 'example' => 'L***p'],
+ ],
+ [
+ 'name' => 'accessSecret',
+ 'in' => 'query',
+ 'schema' => ['description' => 'odps数据源as', 'type' => 'string', 'required' => false, 'example' => '5**9a6'],
+ ],
+ [
+ 'name' => 'project',
+ 'in' => 'query',
+ 'schema' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'required' => false, 'example' => 'sec_odps'],
+ ],
+ [
+ 'name' => 'partition',
+ 'in' => 'query',
+ 'schema' => ['description' => '数据分片', 'type' => 'string', 'required' => false, 'example' => 'dt=20230520'],
+ ],
+ [
+ 'name' => 'table',
+ 'in' => 'query',
+ 'schema' => ['description' => 'saro、odps数据源表名', 'type' => 'string', 'required' => false, 'example' => 'item'],
+ ],
+ [
+ 'name' => 'namespace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'saro数据源的namespace', 'type' => 'string', 'required' => false, 'example' => 'imm'],
+ ],
+ [
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
+ 'result' => ['title' => 'Object', 'description' => '返回结果。', 'type' => 'any', 'example' => '{}'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '根据数据同步配置获取schema信息',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/schemas'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListSchemas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
+ ],
+ 'ListTableGenerations' => [
+ 'summary' => '获取索引generation列表。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '218778',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'tableName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引表名称', 'type' => 'string', 'required' => true, 'example' => 'test_summary'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'F6E3D968-529C-5C40-AFDD-133A8B8FD930'],
'result' => [
- 'title' => 'Map',
+ 'title' => 'List',
'description' => '返回结果。',
- 'type' => 'object',
- 'additionalProperties' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'pauseAll' => [
- 'title' => '暂停全部目标下发',
- 'description' => '暂停全部目标下发',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'pauseIndex' => [
- 'title' => '暂停新的全量版本下发',
- 'description' => '暂停新的全量版本下发',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'pauseIndexBatch' => [
- 'title' => '暂停批次增量下发',
- 'description' => '暂停批次增量下发',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'pauseBiz' => [
- 'title' => '暂停配置下发',
- 'description' => '暂停配置下发',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'pauseRuntime' => [
- 'title' => '暂停实时增量',
- 'description' => '暂停实时增量',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'generationId' => ['description' => '索引全量版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1708674867'],
],
- 'description' => '返回结果',
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"key\\": {\\n \\"pauseAll\\": true,\\n \\"pauseIndex\\": true,\\n \\"pauseIndexBatch\\": true,\\n \\"pauseBiz\\": true,\\n \\"pauseRuntime\\": true\\n }\\n }\\n}","type":"json"}]',
- 'title' => '获取暂停策略',
- 'summary' => '获取暂停策略。',
+ 'title' => '获取索引generation列表'."\0",
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -15375,142 +10440,334 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/pause-policies'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions'."\n"
.'```',
- ],
- 'ModifyPausePolicy' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/pause-policies',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /v2/instances/{instanceId}/tables/{tableName}/index_versions'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTableGenerations',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F6E3D968-529C-5C40-AFDD-133A8B8FD930\\",\\n \\"result\\": [\\n {\\n \\"generationId\\": 1708674867\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListTables' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/tables',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '178006',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0Z9KDD',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '218776',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'newMode',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否为新版本控制台页面', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => [
+ 'title' => 'List',
+ 'description' => '返回结果',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '索引名', 'description' => '索引名', 'type' => 'string', 'example' => 'es_test_1b'],
+ 'indexStatus' => ['title' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)', 'description' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)', 'type' => 'string', 'example' => 'IN_USE'],
+ 'status' => ['title' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)', 'description' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)', 'type' => 'string', 'example' => 'IN_USE'],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '获取索引列表',
+ 'summary' => '获取索引列表。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tables'."\n"
+ .'```',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET /openapi/ha3/instances/{instanceId}/tables'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTables',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"es_test_1b\\",\\n \\"indexStatus\\": \\"IN_USE\\",\\n \\"status\\": \\"IN_USE\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListTagResources' => [
+ 'path' => '/openapi/ha3/resource-tags',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'body',
- 'in' => 'body',
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '166297',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG', 'FEATUREopensearchJB31XH'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'instance'],
+ ],
+ [
+ 'name' => 'resourceId',
+ 'in' => 'query',
'style' => 'json',
'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
+ 'title' => '资源ID,最多 50个子项',
+ 'description' => '资源ID,最多 50个子项',
+ 'type' => 'array',
+ 'items' => ['description' => '资源ID', 'type' => 'string', 'required' => false, 'example' => 'es-cn-i7m2u6o2*******'."\n"],
'required' => false,
- 'additionalProperties' => [
+ ],
+ ],
+ [
+ 'name' => 'tag',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '对应新增标签列表,最多包含20个子项',
+ 'description' => '对应新增标签列表,最多包含20个子项',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签',
'type' => 'object',
'properties' => [
- 'pauseAll' => [
- 'title' => '暂停全部目标下发',
- 'description' => '暂停全部目标下发',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'pauseIndex' => [
- 'title' => '暂停新的全量版本下发',
- 'description' => '暂停新的全量版本下发',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'pauseIndexBatch' => [
- 'title' => '暂停批次增量下发',
- 'description' => '暂停批次增量下发',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'pauseBiz' => [
- 'title' => '暂停配置下发',
- 'description' => '暂停配置下发',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'pauseRuntime' => [
- 'title' => '暂停实时增量',
- 'description' => '暂停实时增量',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'key' => ['title' => '标签键', 'description' => '标签键', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
+ 'value' => ['title' => '标签值', 'description' => '标签值', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
],
- 'description' => '请求体参数',
+ 'required' => false,
],
+ 'required' => false,
],
],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '下一个查询开始Token', 'description' => '下一个查询开始Token', 'type' => 'string', 'required' => false, 'example' => '600********33'],
+ ],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '0B1FF998-BB8D-5182-BFC0-E471AA77095A',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
+ 'requestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ 'nextToken' => ['title' => '下一个查询开始Token', 'description' => '下一个查询开始Token', 'type' => 'string', 'example' => 'b56*******de4a7eca'],
+ 'tagResources' => [
+ 'title' => '资源列表',
+ 'description' => '资源列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '绑定了标签的资源。',
+ 'type' => 'object',
+ 'properties' => [
+ 'tagKey' => ['title' => '标签键', 'description' => '标签键', 'type' => 'string', 'example' => 'opensearch'],
+ 'tagValue' => ['title' => '标签值', 'description' => '标签值', 'type' => 'string', 'example' => 'opensearch'],
+ 'resourceId' => ['title' => '资源ID', 'description' => '资源ID', 'type' => 'string', 'example' => 'rmq-cn-jeo3mn55j01'],
+ 'resourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'example' => 'instance'],
+ ],
+ ],
],
],
+ 'description' => '',
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B1FF998-BB8D-5182-BFC0-E471AA77095A\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改暂停开关',
- 'summary' => '修改暂停开关。',
+ 'title' => '查询资源标签关系列表',
+ 'summary' => '查询资源标签关系列表。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'GET'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/pause-policies'."\n"
+ .'/openapi/ha3/resource-tags'."\n"
.'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"nextToken\\": \\"b56*******de4a7eca\\",\\n \\"tagResources\\": [\\n {\\n \\"tagKey\\": \\"opensearch\\",\\n \\"tagValue\\": \\"opensearch\\",\\n \\"resourceId\\": \\"rmq-cn-jeo3mn55j01\\",\\n \\"resourceType\\": \\"instance\\"\\n }\\n ]\\n}","type":"json"}]',
],
- 'CreateCluster' => [
- 'summary' => '添加集群。',
- 'path' => '/openapi/ha3/instances/{instanceId}/clusters',
- 'methods' => [
- 'post',
+ 'ListTasks' => [
+ 'summary' => '获取实例的变更历史。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/tasks',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '211712',
+ 'abilityTreeNodes' => ['FEATUREopensearchW54CZ4'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'start',
+ 'in' => 'query',
+ 'schema' => ['description' => '日程开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718846192'],
+ ],
+ [
+ 'name' => 'end',
+ 'in' => 'query',
+ 'schema' => ['description' => '日程结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718846192'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0'],
+ 'result' => ['title' => 'Object', 'description' => '返回结果', 'type' => 'any', 'example' => '{}'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => '获取实例的变更历史',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'GET'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tasks'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
+ ],
+ 'ListVectorQueryResult' => [
+ 'summary' => '向量检索版获取向量查询搜索测试结果。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/vector-query',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15519,23 +10776,111 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '104657',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchA6GC80',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '194016',
+ 'abilityTreeNodes' => ['FEATUREopensearchYR63E7'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'path',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'queryType',
+ 'in' => 'query',
+ 'schema' => ['description' => '查询类型:vector、primary_key、vector_text', 'type' => 'string', 'required' => false, 'example' => 'primary_key', 'default' => 'vector'],
+ ],
+ [
+ 'name' => 'vectorQueryType',
+ 'in' => 'query',
+ 'schema' => ['description' => '向量查询类型:vector、image、text', 'type' => 'string', 'required' => false, 'example' => 'image', 'default' => 'vector'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => 'body参数。', 'type' => 'object', 'required' => false, 'example' => '{"tableName":"api","ids":["1"]}'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
+ 'result' => ['title' => 'Object', 'description' => '返回结果。', 'type' => 'any', 'example' => '{}'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '向量检索版获取向量查询搜索测试结果',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'POST'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/vector-query'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListVectorQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
+ ],
+ 'ModifyAdvanceConfig' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '173716',
+ 'abilityTreeNodes' => ['FEATUREopensearch8WJIRU'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'configName',
+ 'in' => 'path',
+ 'schema' => ['description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_offline_adv_edit'],
+ ],
[
'name' => 'body',
'in' => 'body',
@@ -15544,68 +10889,31 @@
'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- 'description' => [
- 'title' => '集群描述',
- 'description' => '集群描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '自定义描述',
- ],
- 'queryNode' => [
- 'title' => '查询节点配置',
- 'description' => '查询节点详情信息',
- 'type' => 'object',
- 'properties' => [
- 'number' => [
- 'title' => '节点数量',
- 'description' => ' 查询节点数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- ],
- 'required' => false,
- ],
- 'dataNode' => [
- 'title' => '数据节点配置',
- 'description' => '数据节点详情信息',
- 'type' => 'object',
- 'properties' => [
- 'number' => [
- 'title' => '节点数量',
- 'description' => '数据节点的数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'partition' => [
- 'description' => '分片数',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2',
+ 'name' => ['title' => '配置名称', 'description' => '配置名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_offline_adv_edit'."\n"],
+ 'status' => ['title' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)', 'description' => '配置状态 (drafting: 草稿, used: 线上使用, unused: 未使用, trash: 删除中)', 'type' => 'string', 'required' => false, 'example' => 'used'],
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2024-02-27T07:50:55Z'],
+ 'desc' => ['title' => '高级配置描述信息', 'description' => '高级配置描述信息', 'type' => 'string', 'required' => false, 'example' => 'Custom Configuration'],
+ 'files' => [
+ 'title' => '文件名列表',
+ 'description' => '文件名列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '文件信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'required' => false, 'example' => 'general'],
+ 'fullPathName' => ['title' => '全路径名称', 'description' => '全路径名称', 'type' => 'string', 'required' => false, 'example' => '/cluster.json'],
+ 'isDir' => ['title' => '是否是目录', 'description' => '是否是目录', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'isTemplate' => ['title' => '是否是模板', 'description' => '是否是模板', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
+ 'required' => false,
],
'required' => false,
],
- 'autoLoad' => [
- 'title' => '添加完成后是否自动挂载',
- 'description' => '是否自动挂载',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'content' => ['title' => '配置内容 http,git 请求时不为空', 'description' => '配置内容 http,git 请求时不为空', 'type' => 'string', 'required' => false, 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}'],
+ 'contentType' => ['title' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)', 'description' => '配置内容的类型 (FILE, GIT, HTTP, ODPS)', 'type' => 'string', 'required' => false, 'example' => 'FILE'],
],
'required' => false,
- 'example' => '{}',
],
],
],
@@ -15614,70 +10922,52 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '添加集群',
+ 'title' => '修改http、git类型的文件内容',
+ 'summary' => '修改http、git类型的文件内容。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/clusters'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}'."\n"
.'```',
- 'requestParamsDescription' => '### Sample requests'."\n"
- ."\n"
- .'`POST/openapi/ha3/instances/ha3_instance_id/clusters`'."\n"
- ."\n"
- .' {'."\n"
- .' "name":"cluster1",'."\n"
- .' "queryNode": {'."\n"
- .' "number": 1'."\n"
- .' },'."\n"
- .' "dataNode": {'."\n"
- .' "number": 2'."\n"
- .' },'."\n"
- .' "description":"The description of the cluster",'."\n"
- .' "autoLoad":true'."\n"
- .' }',
- 'responseParamsDescription' => '### Sample responses'."\n"
- ."\n"
- .' {'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": []'."\n"
- .' }'."\n"
- ."\n"
- .'详情请查看<props="china">[响应结构](https://help.aliyun.com/zh/open-search/retrieval-engine-edition/data-structure-1/)</props><props="intl">[响应结构](https://www.alibabacloud.com/help/zh/open-search/response-struct)</props>',
- ],
- 'RemoveCluster' => [
- 'summary' => '删除某一集群。',
- 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}',
- 'methods' => [
- 'delete',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAdvanceConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyAdvanceConfigFile' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15690,95 +10980,254 @@
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'clusterName',
+ 'name' => 'configName',
'in' => 'path',
+ 'schema' => ['description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_online_config_edit'],
+ ],
+ [
+ 'name' => 'fileName',
+ 'in' => 'query',
+ 'schema' => ['description' => '文件名', 'type' => 'string', 'required' => true, 'example' => '/qrs.json'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['title' => '文件内容--词典配置', 'description' => '文件内容', 'type' => 'string', 'required' => false, 'example' => '{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}'],
+ 'variables' => [
+ 'title' => '变量值--在线配置',
+ 'description' => '变量列表',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'disableModify' => ['type' => 'boolean', 'required' => false, 'description' => '是否不允许修改', 'example' => 'false'],
+ 'isModify' => ['type' => 'boolean', 'required' => false, 'description' => '是否被修改过', 'example' => 'false'],
+ 'value' => ['type' => 'string', 'required' => false, 'example' => 'qrs_connection_timeout', 'description' => '变量值'],
+ 'description' => ['type' => 'string', 'required' => false, 'description' => '描述', 'example' => '超时时间'],
+ 'templateValue' => ['type' => 'string', 'required' => false, 'description' => '模板值', 'example' => '800'],
+ 'type' => ['title' => 'NORMAL, FUNCTION', 'description' => '类型:'."\n"
+ .'- NORMAL: 普通变量'."\n"
+ .'- FUNCTION:function变量', 'type' => 'string', 'required' => false, 'example' => 'NORMAL'],
+ 'funcValue' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'funcClassName' => ['type' => 'string', 'required' => false, 'example' => 'ModifyFile', 'description' => '方法类名'],
+ 'template' => ['type' => 'string', 'required' => false, 'description' => '模板', 'example' => 'test-template'],
+ ],
+ 'required' => false,
+ 'description' => '函数变量',
+ ],
+ ],
+ 'description' => '子变量信息',
+ ],
+ ],
+ ],
'required' => false,
- 'example' => 'bj_vpc_domain_2',
+ 'example' => '{}',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
- ],
- 'result' => [
- 'title' => '结果',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除某一集群',
- 'description' => '### 方法'."\n"
+ 'title' => '修改词典',
+ 'summary' => '修改词典。',
+ 'description' => '## 方法'."\n"
."\n"
- .'```java'."\n"
- .'DELETE'."\n"
+ .'```'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
- .'### URI'."\n"
+ .'## URI'."\n"
."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/clusters/{clusterName}'."\n"
- .'```'."\n",
- 'requestParamsDescription' => '### 请求示例'."\n"
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
+ .'```',
+ 'requestParamsDescription' => "\n"
+ ."\n"
+ .'## 请求示例'."\n"
."\n"
- .'```java'."\n"
.''."\n"
- .'DELETE /openapi/ha3/instances/ha3_instance_name/clusters/my_cluster_name'."\n"
- .'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'PUT /openapi/ha3/instances/{instanceId}/advancedConfigs/{configName}/file?fileName=/root/test.txt'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "content": "",'."\n"
+ .''."\n"
+ .' "variables": {'."\n"
+ .''."\n"
+ .' "qrs_connection_timeout": {'."\n"
+ .''."\n"
+ .' "description": "",'."\n"
+ .''."\n"
+ .' "disableModify": false,'."\n"
+ .''."\n"
+ .' "isModify": true,'."\n"
+ .''."\n"
+ .' "type": "NORMAL",'."\n"
+ .''."\n"
+ .' "value": "800"'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
."\n"
.'正确返回'."\n"
.''."\n"
."\n"
- .'```java'."\n"
+ .'```'."\n"
.'{'."\n"
.''."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
.''."\n"
.' "result": []'."\n"
.''."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAdvanceConfigFile'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyAdvanceConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyAlias' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/aliases/{alias}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '223194',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-0ju2re****'],
+ ],
+ [
+ 'name' => 'alias',
+ 'in' => 'path',
+ 'schema' => ['description' => '别名', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'alias' => ['title' => '别名', 'description' => '别名', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'index' => ['title' => '关联索引', 'description' => '关联索引', 'type' => 'string', 'required' => false, 'example' => 'index'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F6E3D968-529C-5C40-AFDD-133A8B8FD930'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '修改表别名',
+ 'summary' => '修改表别名。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'PUT'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/aliases/{alias}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F6E3D968-529C-5C40-AFDD-133A8B8FD930\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
'ModifyClusterDesc' => [
'summary' => '更改集群的描述信息。',
'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/desc',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15791,35 +11240,20 @@
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'clusterName',
'in' => 'path',
- 'schema' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'sz_vpc_domain_1',
- ],
+ 'schema' => ['description' => '集群名称', 'type' => 'string', 'required' => true, 'example' => 'sz_vpc_domain_1'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{'."\n"
- .' "description": "自定义描述"'."\n"
- .'}',
- ],
+ 'schema' => ['description' => '请求体参数', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
+ .'    "description": "Custom description"'."\n"
+ .'}'],
],
],
'responses' => [
@@ -15827,24 +11261,14 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
'title' => '更改集群的描述信息',
'description' => '### 方法'."\n"
."\n"
@@ -15878,17 +11302,32 @@
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyClusterDesc'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyClusterDesc',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
'ModifyClusterOfflineConfig' => [
'summary' => '修改集群的配置信息。',
'path' => '/openapi/ha3/instances/{instanceId}/cluster-offline-config',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15899,20 +11338,13 @@
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '104631',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchA6GC80',
- ],
+ 'abilityTreeNodes' => ['FEATUREopensearchA6GC80'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'body',
@@ -15922,75 +11354,21 @@
'description' => '请求结构。',
'type' => 'object',
'properties' => [
- 'dataSourceName' => [
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****_test_api',
- ],
- 'dataSourceType' => [
- 'title' => '数据源类型 (odps: maxComputer, swift: swift, unKnow)',
- 'description' => '数据源类型 (odps: maxComputer, swift: swift, unKnow)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'odps',
- ],
- 'domain' => [
- 'title' => '离线部署',
- 'description' => '数据源部署',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc_hz_domain_1',
- ],
+ 'dataSourceName' => ['description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'dataSourceType' => ['title' => '数据源类型 (odps: maxComputer, swift: swift, unKnow)', 'description' => '数据源类型 (odps: maxComputer, swift: swift, unKnow)', 'type' => 'string', 'required' => false, 'example' => 'odps'],
+ 'domain' => ['title' => '离线部署', 'description' => '数据源部署', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_1'],
'config' => [
'title' => 'key:配置名称',
'description' => 'key:配置名称',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'description' => 'value:配置版本号',
- 'example' => '1',
- ],
- ],
- 'partition' => [
- 'title' => '对于odps数据源触发全量时必传',
- 'description' => '对于odps数据源触发全量时必传',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20211202',
- ],
- 'dataTimeSec' => [
- 'title' => '对于api推送数据源触发全量时必传',
- 'description' => '对于API推送数据源触发全量时必传',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1640867288',
- ],
- 'buildMode' => [
- 'title' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)',
- 'description' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'indexRecover',
- ],
- 'generation' => [
- 'title' => '从索引中恢复数据源,dump表的generation',
- 'description' => '索引全量版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '160142641',
- ],
- 'pushMode' => [
- 'title' => '推送方式:PUSH_ONLY(仅推送配置)、PUSH_GENERATION (指定generation)、TRIGGER_BUILD(推送配置并做全量)',
- 'description' => '推送配置方式: 默认仅推送配置',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PUSH_ONLY',
+ 'additionalProperties' => ['type' => 'integer', 'format' => 'int32', 'description' => 'value:配置版本号', 'example' => '1'],
],
+ 'partition' => ['title' => '对于odps数据源触发全量时必传', 'description' => '对于odps数据源触发全量时必传', 'type' => 'string', 'required' => false, 'example' => 'ds=20211202'],
+ 'dataTimeSec' => ['title' => '对于api推送数据源触发全量时必传', 'description' => '对于API推送数据源触发全量时必传', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1640867288'],
+ 'buildMode' => ['title' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)', 'description' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)', 'type' => 'string', 'required' => false, 'example' => 'indexRecover'],
+ 'generation' => ['title' => '从索引中恢复数据源,dump表的generation', 'description' => '索引全量版本', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '160142641'],
+ 'pushMode' => ['title' => '推送方式:PUSH_ONLY(仅推送配置)、PUSH_GENERATION (指定generation)、TRIGGER_BUILD(推送配置并做全量)', 'description' => '推送配置方式: 默认仅推送配置', 'type' => 'string', 'required' => false, 'example' => 'PUSH_ONLY'],
],
'required' => false,
'example' => '{}',
@@ -16002,24 +11380,14 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
'title' => '修改集群的配置信息',
'description' => '### 方法'."\n"
."\n"
@@ -16079,17 +11447,32 @@
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyClusterOfflineConfig'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyClusterOfflineConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
'ModifyClusterOnlineConfig' => [
'summary' => '修改集群的在线配置信息。',
'path' => '/openapi/ha3/instances/{instanceId}/cluster-online-config',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- 'http',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
@@ -16102,12 +11485,7 @@
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'body',
@@ -16122,25 +11500,15 @@
'description' => '配置信息',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'description' => '配置版本号',
- 'example' => '2',
- ],
+ 'additionalProperties' => ['type' => 'integer', 'format' => 'int32', 'description' => '配置版本号', 'example' => '2'],
],
'clusters' => [
'title' => '集群信息',
'description' => '集群信息',
'type' => 'array',
- 'items' => [
- 'description' => '集群列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '['."\n"
- .' "hz_pre_vpc_domain_1"'."\n"
- .']',
- ],
+ 'items' => ['description' => '集群列表。', 'type' => 'string', 'required' => false, 'example' => '['."\n"
+ .' "hz_pre_vpc_domain_1"'."\n"
+ .']'],
'required' => false,
],
],
@@ -16153,24 +11521,14 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
'title' => '修改集群的在线配置信息',
'description' => '### 方法'."\n"
."\n"
@@ -16203,868 +11561,851 @@
.'}'."\n"
.'```'."\n"
.'**详情可参考[响应结构](~~465311~~)**',
- ],
- 'GetCluster' => [
- 'summary' => '获取某一集群的详细信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyClusterOnlineConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyClusterOnlineConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyDataSourceDeploy' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '104163',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch5EAGY5',
- ],
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '159954',
+ 'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'clusterName',
+ 'name' => 'deployName',
'in' => 'path',
- 'schema' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'bj_vpc_domain_2',
- ],
+ 'schema' => ['description' => '机房', 'type' => 'string', 'required' => true, 'example' => 'vpc_hz_domain_1'],
],
- ],
- 'responses' => [
- 200 => [
+ [
+ 'name' => 'dataSourceName',
+ 'in' => 'path',
+ 'schema' => ['description' => '数据源名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ ],
+ [
+ 'name' => 'generationId',
+ 'in' => 'query',
+ 'schema' => ['description' => '索引全量版本', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1708674867'],
+ ],
+ [
+ 'name' => 'dryRun',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
+ 'storage' => [
+ 'description' => '数据源信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'endpoint' => ['title' => 'odps相关', 'description' => 'odps endpoint', 'type' => 'string', 'required' => false, 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'required' => false, 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源ak secret', 'type' => 'string', 'required' => false, 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'required' => false, 'example' => 'kubenest'],
+ 'partition' => ['description' => '分区信息', 'type' => 'string', 'required' => false, 'example' => 'ds=20220713'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'saro、odps相关', 'type' => 'string', 'required' => false, 'example' => 'item'],
+ 'namespace' => ['title' => 'saro相关', 'description' => 'saro相关', 'type' => 'string', 'required' => false, 'example' => 'dp-dev'],
+ 'path' => ['title' => 'hdfs相关', 'description' => 'hdfs相关', 'type' => 'string', 'required' => false, 'example' => '/ude_jobs/iflow_offline_data_access'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss数据源相关', 'type' => 'string', 'required' => false, 'example' => '/opensearch'],
+ 'bucket' => ['description' => 'Bucket名称。', 'type' => 'string', 'required' => false, 'example' => 'test-bucket'],
+ 'catalog' => ['description' => 'dlf数据源-数据目录名称', 'type' => 'string', 'required' => false, 'example' => 'test-catalog'],
+ 'database' => ['description' => 'dlf数据源-数据库', 'type' => 'string', 'required' => false, 'example' => 'test-database'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'tableFormat' => ['description' => 'dlf数据源-表格式', 'type' => 'string', 'required' => false, 'example' => 'paimon'."\n"
+ .'lance'."\n"
+ .'object'],
+ ],
+ 'required' => false,
],
- 'result' => [
- 'title' => '集群列表',
- 'description' => '返回结果。',
+ 'autoBuildIndex' => ['title' => '是否开启自动全量', 'description' => '是否开启自动全量', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'processor' => [
+ 'description' => '进程参数',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'bj_vpc_domain_2',
- ],
- 'description' => [
- 'title' => '集群描述',
- 'description' => '集群描述',
- 'type' => 'string',
- 'example' => '自定义描述',
- ],
- 'currentAdvanceConfigVersion' => [
- 'title' => '高级配置生效版本',
- 'description' => '高级配置生效版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'latestAdvanceConfigVersion' => [
- 'title' => '高级配置最新版本',
- 'description' => '高级配置最新版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'currentOnlineConfigVersion' => [
- 'title' => '在线配置生效版本',
- 'description' => '在线配置生效版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_online_adv_v1',
- ],
- 'latestOnlineConfigVersion' => [
- 'title' => '在线配置最新版本',
- 'description' => '在线配置最新版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_online_adv_v1',
- ],
- 'configUpdateTime' => [
- 'title' => '集群更新时间',
- 'description' => '集群更新时间',
- 'type' => 'string',
- 'example' => '2021-08-09 00:01:02',
- ],
- 'status' => [
- 'description' => '集群的创建状态,有两个取值 NEW(创建中) or PUBLISH(创建完成)',
- 'type' => 'string',
- 'example' => 'NEW',
- ],
- 'queryNode' => [
- 'description' => '查询节点规格',
+ 'args' => ['title' => '进程启动参数', 'description' => '进程启动参数', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "processInfos": [],'."\n"
+ .' "groupId": "opensearch",'."\n"
+ .' "containerConfigs": [],'."\n"
+ .' "priority": {'."\n"
+ .' "minor_priority": 0,'."\n"
+ .' "major_priority": 64'."\n"
+ .' }'."\n"
+ .'}'],
+ 'resource' => ['title' => '资源信息', 'description' => '资源信息', 'type' => 'string', 'required' => false, 'example' => '[{'."\n"
+ .' "_bs_role": "processor.*.inc",'."\n"
+ .' "priority": {'."\n"
+ .' "major_priority": 32,'."\n"
+ .' "minor_priority": 0'."\n"
+ .' },'."\n"
+ .' "slotResources": [{'."\n"
+ .' "slotResources": [{'."\n"
+ .' "amount": 200,'."\n"
+ .' "name": "cpu"'."\n"
+ .' }, {'."\n"
+ .' "amount": 8192,'."\n"
+ .' "name": "mem"'."\n"
+ .' }, {'."\n"
+ .' "amount": 0,'."\n"
+ .' "name": "T4"'."\n"
+ .' }, {'."\n"
+ .' "amount": 10,'."\n"
+ .' "type": "SCALAR",'."\n"
+ .' "name": "disk_ratio_9999"'."\n"
+ .' }, {'."\n"
+ .' "amount": 20480,'."\n"
+ .' "type": "SCALAR",'."\n"
+ .' "name": "disk_size_9999"'."\n"
+ .' }]'."\n"
+ .' }]'."\n"
+ .'}]'],
+ ],
+ 'required' => false,
+ ],
+ 'extend' => [
+ 'description' => '扩展信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'saro' => [
+ 'description' => 'saro数据源信息',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- 'number' => [
- 'description' => '节点数量。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'partition' => [
- 'title' => '副本数量',
- 'description' => '副本数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
+ 'path' => ['description' => '路径', 'type' => 'string', 'required' => false, 'example' => '/'],
+ 'version' => ['description' => '版本号', 'type' => 'string', 'required' => false, 'example' => '1'],
],
+ 'required' => false,
],
- 'dataNode' => [
- 'description' => '数据节点规格',
+ 'hdfs' => [
+ 'description' => 'hdfs信息',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'number' => [
- 'description' => '副本数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'partition' => [
- 'description' => '分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
+ 'path' => ['description' => 'hdfs数据源路径。', 'type' => 'string', 'required' => false, 'example' => 'ymsh-service/src/main/java/cn/ymsh/util/jd'],
],
+ 'required' => false,
],
- 'createTime' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'config' => [
- 'description' => '配置信息',
+ 'odps' => [
+ 'description' => 'odps数据源信息',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'additionalProperties' => [
+ 'properties' => [
+ 'partitions' => [
+ 'description' => '数据源的分区信息',
'type' => 'object',
- 'properties' => [
- 'name' => [
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1'."\n",
- 'description' => '配置名称',
- ],
- 'updateTime' => [
- 'type' => 'string',
- 'description' => '更新时间',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'desc' => [
- 'type' => 'string',
- 'description' => '描述',
- 'example' => '自定义描述',
- ],
- ],
- 'description' => '子配置项信息',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'string', 'description' => '数据源的分区信息', 'example' => 'ds=20230824'],
],
- 'description' => '子配置项信息',
],
+ 'required' => false,
+ ],
+ 'oss' => [
+ 'description' => 'oss信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'path' => ['description' => 'oss数据源路径', 'type' => 'string', 'required' => false, 'example' => 'oss://test'],
+ ],
+ 'required' => false,
],
],
+ 'required' => false,
],
+ 'swift' => [
+ 'title' => '增量swift信息',
+ 'description' => '增量swift信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'zk' => ['description' => 'zk', 'type' => 'string', 'required' => false, 'example' => 'zk'],
+ 'topic' => ['description' => 'topic', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"name\\": \\"bj_vpc_domain_2\\",\\n \\"description\\": \\"自定义描述\\",\\n \\"currentAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_online_adv_v1\\",\\n \\"latestOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_online_adv_v1\\",\\n \\"configUpdateTime\\": \\"2021-08-09 00:01:02\\",\\n \\"status\\": \\"NEW\\",\\n \\"queryNode\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"number\\": 1,\\n \\"partition\\": 2\\n },\\n \\"dataNode\\": {\\n \\"name\\": \\"general\\",\\n \\"number\\": 1,\\n \\"partition\\": 2\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"config\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\\\n\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"desc\\": \\"自定义描述\\"\\n }\\n }\\n }\\n }\\n}","type":"json"}]',
- 'title' => '获取某一集群的详细信息',
+ 'title' => '修改数据源部署信息',
+ 'summary' => '修改数据源部署信息。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instance/{instanceId}/clusters/{clusterName}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- .'`GET /openapi/ha3/instance/ha_name_example/clusters/my_cluster`',
- 'responseParamsDescription' => '### 返回示例'."\n"
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDataSourceDeploy'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyDataSourceDeploy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyFile' => [
+ 'summary' => '修改文件。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
+ ],
+ [
+ 'name' => 'versionName',
+ 'in' => 'path',
+ 'schema' => ['description' => '版本', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_online_config_v1'],
+ ],
+ [
+ 'name' => 'fileName',
+ 'in' => 'query',
+ 'schema' => ['description' => '文件全路径名称', 'type' => 'string', 'required' => true, 'example' => '/schemas/generation_schema.json'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['title' => '文件内容', 'description' => '内容', 'type' => 'string', 'required' => false, 'example' => '{\\"partition\\":1}'],
+ 'partition' => ['title' => '数据分片', 'description' => '分片数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ ],
+ 'required' => false,
+ 'example' => '{\\"desc\\":\\"new version\\"}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '89B968E6-1E41-58DF-BB25-5F98ECC759CE'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '修改文件',
+ 'description' => '## 方法'."\n"
+ ."\n"
+ .'```'."\n"
+ .'PUT'."\n"
+ .'```'."\n"
+ ."\n"
+ .'## URI'."\n"
."\n"
.'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file'."\n"
+ .'```',
+ 'requestParamsDescription' => '## 请求示例'."\n"
+ ."\n\n"
+ ."\n"
+ .'```'."\n"
+ .'PUT /openapi/ha3/instances/ose-test1/indexes/index1/versions/version1?fileName=/root/test.txt'."\n"
+ .''."\n"
.'{'."\n"
+ .''."\n"
+ .' "partition": 1,'."\n"
+ .''."\n"
+ .' "content": ""'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
.' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": {'."\n"
- .' "name": "cluster1",'."\n"
- .' "configUpdateTime": "2021-08-09 00:01:02",'."\n"
- .' "CurrentAdvanceConfigVersion": "test_yyds_data1",'."\n"
- .' "lastestAdvanceConfigVersion": "test_yyds_data1",'."\n"
- .' "currentOnlineConfigVersion": "test_yyds_data1",'."\n"
- .' "lastestOnlineConfigVersion": "test_yyds_data1", '."\n"
- .' "description": "airecpre",'."\n"
- .' "queryNode": {'."\n"
- .' "name":"ha-cn-0ju2iimcu07_qrs",'."\n"
- .' "number": 1'."\n"
- .' },'."\n"
- .' "dataNode": {'."\n"
- .' "name":"general",'."\n"
- .' "number": 2,'."\n"
- .' "partition": 1'."\n"
- .' } '."\n"
- .' }'."\n"
+ .''."\n"
+ .' "result": {}'."\n"
+ .''."\n"
.'}'."\n"
.'```',
- ],
- 'GetClusterRunTimeInfo' => [
- 'summary' => '获取集群信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/cluster-run-time-info',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFile'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"89B968E6-1E41-58DF-BB25-5F98ECC759CE\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyIndex' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '186780',
+ 'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例 ID',
- 'description' => '实例 ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****'."\n",
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
- ],
- 'responses' => [
- 200 => [
+ [
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
+ ],
+ [
+ 'name' => 'dryRun',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否校验入参数据合法性,默认false。'."\n"
+ ."\n"
+ .'取值:'."\n"
+ ."\n"
+ .'- **true**:只校验参数合法性。'."\n"
+ ."\n"
+ .'- **false**:校验参数合法性,创建归因配置。', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF',
+ 'dataSourceInfo' => [
+ 'description' => '数据源相关信息 (向量检索版新版本必填)',
+ 'type' => 'object',
+ 'properties' => [
+ 'buildMode' => ['title' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)', 'description' => '索引重建方式 (api: API方式推送数据源, indexRecover: 从索引中恢复数据源)', 'type' => 'string', 'required' => false, 'example' => 'api'],
+ 'generation' => ['title' => '从索引中恢复数据源,dump表的generation', 'description' => '从索引中恢复数据源,dump表的generation', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718698593'],
+ 'dataTimeSec' => ['title' => '追增量时间戳', 'description' => '追增量时间戳', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1709715164'],
+ 'processPartitionCount' => ['title' => '数据更新资源数', 'description' => '数据更新资源数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
+ 'name' => ['title' => '数据源名', 'description' => '数据源名', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_index_1'],
+ 'type' => ['title' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'description' => '数据源类型 (odps, swift, saro, oss, unKnow)', 'type' => 'string', 'required' => false, 'example' => 'odps'],
+ 'domain' => ['title' => '离线部署', 'description' => '离线部署', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_1'."\n"],
+ 'config' => [
+ 'title' => 'odps 数据源配置',
+ 'description' => 'odps 数据源配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'endpoint' => ['title' => 'odps相关', 'description' => 'odps相关', 'type' => 'string', 'required' => false, 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'required' => false, 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源ak secret', 'type' => 'string', 'required' => false, 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'required' => false, 'example' => 'bbt_algo_pai'],
+ 'partition' => ['description' => 'ODPS Partition。例如:ds=20180102。', 'type' => 'string', 'required' => false, 'example' => 'ds=20230114'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'saro、odps相关', 'type' => 'string', 'required' => false, 'example' => 'item'],
+ 'namespace' => ['title' => 'saro相关', 'description' => 'saro相关', 'type' => 'string', 'required' => false, 'example' => 'test-namespace'],
+ 'path' => ['title' => 'hdfs相关', 'description' => 'hdfs相关', 'type' => 'string', 'required' => false, 'example' => 'test-hdfs-path'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss数据源相关', 'type' => 'string', 'required' => false, 'example' => '/opensearch/oss.json'],
+ 'bucket' => ['description' => 'OSS存储空间。', 'type' => 'string', 'required' => false, 'example' => 'test-bucket'],
+ 'format' => ['description' => 'oss文件格式类型'."\n"
+ .'- ha3'."\n"
+ .'- json', 'type' => 'string', 'required' => false, 'example' => 'ha3'],
+ 'catalog' => ['description' => 'dlf数据源-数据目录ID', 'type' => 'string', 'required' => false, 'example' => 'test-catalog'],
+ 'database' => ['description' => 'dlf数据源-数据库', 'type' => 'string', 'required' => false, 'example' => 'test-database'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'required' => false, 'example' => 'test-tag'],
+ 'tableFormat' => ['description' => 'dlf数据源-表格式', 'type' => 'string', 'required' => false, 'example' => 'paimon'."\n"
+ .'lance'."\n"
+ .'object'],
+ ],
+ 'required' => false,
+ ],
+ 'saroConfig' => [
+ 'title' => 'saro数据源配置',
+ 'description' => 'saro数据源配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'namespace' => ['description' => 'saro数据源的namespace', 'type' => 'string', 'required' => false, 'example' => 'flink-test-fjx-default'],
+ 'tableName' => ['description' => 'saro数据表名称', 'type' => 'string', 'required' => false, 'example' => 'device_event_shy_summary_'],
+ ],
+ 'required' => false,
+ ],
+ 'autoBuildIndex' => ['title' => '是否开启自动全量', 'description' => '是否开启自动全量', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'processParallelNum' => ['description' => '全量process并发数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'partition' => ['title' => 'odps数据源进行索引重建选择的数据分区', 'description' => 'odps数据源分区-数据源为odps时必填。', 'type' => 'string', 'required' => false, 'example' => 'ds=20230114'],
+ 'ossDataPath' => ['title' => 'oss数据源进行索引重建时选择的文件地址', 'description' => 'oss数据源进行索引重建时选择的文件地址', 'type' => 'string', 'required' => false, 'example' => '/opensearch/oss.json'],
+ ],
+ 'required' => false,
],
- 'result' => [
- 'title' => '结果集',
- 'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '集群运行时长信息。',
+ 'description' => ['description' => '描述信息。', 'type' => 'string', 'required' => false, 'example' => '"test"'],
+ 'content' => ['title' => '文件内容', 'description' => '文件内容', 'type' => 'string', 'required' => false, 'example' => '{\\"summarys\\":{\\"summary_fields\\":[\\"id\\"]},\\"indexs\\":[{\\"index_name\\":\\"index_id\\",\\"index_type\\":\\"PRIMARYKEY64\\",\\"index_fields\\":\\"id\\",\\"has_primary_key_attribute\\":true,\\"is_primary_key_sorted\\":false}],\\"attributes\\":[\\"id\\"],\\"fields\\":[{\\"field_name\\":\\"id\\",\\"field_type\\":\\"UINT16\\"}],\\"table_name\\":\\"index_2\\"}'],
+ 'partition' => ['title' => '数据分片', 'description' => '数据分片', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'dataSource' => ['title' => '数据源', 'description' => '数据源', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_index_1'],
+ 'domain' => ['title' => '数据源部署', 'description' => '数据源部署', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_1'],
+ 'buildParallelNum' => ['description' => '全量build并发数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'mergeParallelNum' => ['description' => '全量merge并发数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'cluster' => [
+ 'description' => '集群信息',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
'type' => 'object',
- 'properties' => [
- 'clusterName' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_1',
- ],
- 'queryNode' => [
- 'title' => '查询结点信息',
- 'description' => '查询结点信息',
- 'type' => 'object',
- 'properties' => [
- 'serviceStatus' => [
- 'title' => '服务状态',
- 'description' => '服务状态',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_1'."\n",
- ],
- 'totalSize' => [
- 'title' => '总大小',
- 'description' => '总大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'doneSize' => [
- 'title' => '完成大小',
- 'description' => '完成大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'donePercent' => [
- 'title' => '进度',
- 'description' => '进度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- ],
- ],
- 'configStatusList' => [
- 'description' => '配置状态列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '配置状态列表。',
- 'type' => 'object',
- 'properties' => [
- 'configUpdateTime' => [
- 'description' => '集群更新时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'name' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'vpc_hz_domain_1'."\n",
- ],
- 'totalSize' => [
- 'description' => '总大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '6',
- ],
- 'doneSize' => [
- 'description' => '完成大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'donePercent' => [
- 'description' => '进度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- ],
- ],
- ],
- ],
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'value' => ['type' => 'string', 'description' => '变量', 'example' => 'partition'],
+ 'description' => ['type' => 'string', 'description' => '描述信息', 'example' => 'Custom Variable'],
+ 'disableModify' => ['type' => 'boolean', 'example' => 'true', 'description' => '是否可被用户修改'],
+ 'isModify' => ['type' => 'boolean', 'example' => 'false', 'description' => '是否被修改过'],
+ 'type' => ['type' => 'string', 'example' => 'NORMAL', 'description' => '普通变量:NORMAL, function变量:FUNCTION'],
],
- 'dataNodes' => [
- 'title' => '数据结点信息',
- 'description' => '数据结点信息',
+ 'description' => 'cluster.json更新内容',
+ ],
+ 'description' => '集群信息',
+ ],
+ ],
+ 'clusterConfigName' => ['description' => 'cluster.json文件名', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****@a-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config_v1'],
+ 'config' => [
+ 'description' => '离线配置信息',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'desc' => ['type' => 'string', 'required' => false, 'example' => 'test', 'description' => '备注'],
+ 'files' => [
'type' => 'array',
'items' => [
- 'description' => '集群节点信息。',
'type' => 'object',
'properties' => [
- 'dataStatusList' => [
- 'description' => '节点数据列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '节点数据列表。',
- 'type' => 'object',
- 'properties' => [
- 'docSize' => [
- 'description' => '存储容量 (单位:GB)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'fullVersion' => [
- 'description' => '全量版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1718846192',
- ],
- 'incVersion' => [
- 'description' => '增量版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1718846192',
- ],
- 'incUpdateTime' => [
- 'description' => '增量更新时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'fullUpdateTime' => [
- 'description' => '全量更新时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'indexConfigInfo' => [
- 'description' => '索引配置',
- 'type' => 'object',
- 'properties' => [
- 'configMetaName' => [
- 'description' => '索引配置名称',
- 'type' => 'string',
- 'example' => 'index_meta_name',
- ],
- 'version' => [
- 'description' => '索引模板的版本。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1.0.0',
- ],
- ],
- ],
- 'advanceConfigInfo' => [
- 'description' => '高级配置信息',
+ 'operateType' => ['type' => 'string', 'required' => false, 'example' => 'UPDATE', 'description' => '操作类型:UPDATE:更新;DELETE:删除;默认UPDATE'],
+ 'parentFullPath' => ['type' => 'string', 'required' => false, 'example' => '/', 'description' => '上级目录的路径'],
+ 'fileName' => ['type' => 'string', 'required' => false, 'description' => '文件名称', 'example' => '/intervene_dict/analyzer.dict'],
+ 'config' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['type' => 'string', 'required' => false, 'example' => '$dictContent', 'description' => '文件内容--词典配置'],
+ 'variables' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
'type' => 'object',
'properties' => [
- 'configMetaName' => [
- 'description' => '索引配置名称',
- 'type' => 'string',
- 'example' => 'index_meta_name',
- ],
- 'version' => [
- 'description' => '版本号。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1.0',
- ],
- ],
- ],
- 'lackMemWorker' => [
- 'description' => '因缺少内存而失败的worker的name',
- 'type' => 'array',
- 'items' => [
- 'description' => '失败的worker的name',
- 'type' => 'string',
- 'example' => 'test-fail-worker'."\n",
+ 'description' => ['type' => 'string', 'required' => false, 'example' => 'test', 'description' => '描述'],
+ 'disableModify' => ['type' => 'boolean', 'required' => false, 'description' => '是否可被用户修改', 'example' => 'true'],
+ 'isModify' => ['type' => 'boolean', 'required' => false, 'example' => 'false', 'description' => '是否被修改过'],
+ 'type' => ['type' => 'string', 'required' => false, 'example' => 'NORMAL', 'description' => '普通变量:NORMAL, function变量:FUNCTION'],
+ 'value' => ['type' => 'string', 'required' => false, 'example' => 'test', 'description' => '变量'],
],
+ 'description' => '变量信息',
],
- 'deployFailedWorker' => [
- 'description' => '因部署失败而失败的worker的name',
- 'type' => 'array',
- 'items' => [
- 'description' => '失败的worker的name',
- 'type' => 'string',
- 'example' => 'test-fail-worker'."\n",
- ],
- ],
- 'lackDiskWorker' => [
- 'description' => '因缺少磁盘而失败的worker的name',
- 'type' => 'array',
- 'items' => [
- 'description' => '失败的worker的name',
- 'type' => 'string',
- 'example' => 'test-fail-worker',
- ],
- ],
- 'errorMsg' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => '0A3B1C48006A6C0905F6375F4821EB50',
- ],
- 'indexSize' => [
- 'description' => '索引长度',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'name' => [
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- 'totalSize' => [
- 'description' => '总大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'doneSize' => [
- 'description' => '完成大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'donePercent' => [
- 'description' => '总共完成的进度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- ],
- ],
- ],
- 'serviceStatus' => [
- 'description' => '服务状态。',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => '名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- 'totalSize' => [
- 'description' => '集群总节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'doneSize' => [
- 'description' => '集群处理中的节点数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'donePercent' => [
- 'description' => '总共完成进度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- ],
- ],
- 'configStatusList' => [
- 'description' => '配置状态列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '响应体',
- 'type' => 'object',
- 'properties' => [
- 'configUpdateTime' => [
- 'description' => '集群更新时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'name' => [
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'test_0704',
- ],
- 'totalSize' => [
- 'description' => '总大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'doneSize' => [
- 'description' => '完成大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'donePercent' => [
- 'description' => '总共完成的进度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
+ 'description' => '变量',
],
],
+ 'required' => false,
+ 'description' => '本次更新的配置',
],
+ 'dirName' => ['type' => 'string', 'required' => false, 'description' => '目录名称', 'example' => '/test'],
],
+ 'required' => false,
+ 'description' => '',
],
+ 'required' => false,
+ 'description' => '修改的文件列表',
],
],
+ 'description' => '离线配置',
],
],
+ 'pushMode' => ['description' => '推送配置方式: 默认仅推送配置', 'type' => 'string', 'required' => false, 'example' => 'PUSH_ONLY'],
+ 'extend' => ['description' => '字段配置的扩展的内容。'."\n"
+ .'key: vector(向量字段)、embeding(需embeding字段)、备注字段(description)'."\n"
+ .'value: ["schema字段名称"]', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
+ .' "vector":'."\n"
+ .' ['."\n"
+ .' "source_image_vector"'."\n"
+ .' ],'."\n"
+ .' "embeding":'."\n"
+ .' ['."\n"
+ .' "source_image"'."\n"
+ .' ],'."\n"
+ .' "description":'."\n"
+ .' []'."\n"
+ .' }'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429'],
+ 'result' => ['title' => 'Object', 'description' => '返回结果。', 'type' => 'any', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": [\\n {\\n \\"clusterName\\": \\"vpc_hz_domain_1\\",\\n \\"queryNode\\": {\\n \\"serviceStatus\\": {\\n \\"name\\": \\"vpc_hz_domain_1\\\\n\\",\\n \\"totalSize\\": 100,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n },\\n \\"configStatusList\\": [\\n {\\n \\"configUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"name\\": \\"vpc_hz_domain_1\\\\n\\",\\n \\"totalSize\\": 6,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n }\\n ]\\n },\\n \\"dataNodes\\": [\\n {\\n \\"dataStatusList\\": [\\n {\\n \\"docSize\\": 2,\\n \\"fullVersion\\": 1718846192,\\n \\"incVersion\\": 1718846192,\\n \\"incUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"fullUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"indexConfigInfo\\": {\\n \\"configMetaName\\": \\"index_meta_name\\",\\n \\"version\\": 0\\n },\\n \\"advanceConfigInfo\\": {\\n \\"configMetaName\\": \\"index_meta_name\\",\\n \\"version\\": 1\\n },\\n \\"lackMemWorker\\": [\\n \\"test-fail-worker\\\\n\\"\\n ],\\n \\"deployFailedWorker\\": [\\n \\"test-fail-worker\\\\n\\"\\n ],\\n \\"lackDiskWorker\\": [\\n \\"test-fail-worker\\"\\n ],\\n \\"errorMsg\\": \\"0A3B1C48006A6C0905F6375F4821EB50\\",\\n \\"indexSize\\": 100,\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"totalSize\\": 1,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n }\\n ],\\n \\"serviceStatus\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"totalSize\\": 100,\\n \\"doneSize\\": 100,\\n \\"donePercent\\": 100\\n },\\n \\"configStatusList\\": [\\n {\\n \\"configUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"name\\": \\"test_0704\\",\\n \\"totalSize\\": 0,\\n \\"doneSize\\": 1,\\n \\"donePercent\\": 100\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取集群信息',
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => '修改索引',
+ 'summary' => '修改索引。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/cluster-run-time-info'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- .'`GET /openapi/ha3/instances/ose-test1/cluster-run-time-info`',
- 'responseParamsDescription' => '### 返回示例'."\n"
- .'正确返回'."\n"
- ."\n"
- .'```java'."\n"
- .'{'."\n"
- .' "requestId": "38b079f1-7846-4226-8c90-3e2644b5c52b",'."\n"
- .' "result": ['."\n"
- .' {'."\n"
- .' "clusterName": "",'."\n"
- .' "queryNode": {'."\n"
- .' "serviceStatus": {'."\n"
- .' "name": "service_name",'."\n"
- .' "totalSize": 1,'."\n"
- .' "doneSize": 1,'."\n"
- .' "donePercent": 100'."\n"
- .' },'."\n"
- .' "configStatusList": ['."\n"
- .' {'."\n"
- .' "name": "default",'."\n"
- .' "totalSize": 1,'."\n"
- .' "doneSize": 1,'."\n"
- .' "donePercent": 100,'."\n"
- .' "configUpdateTime": ""'."\n"
- .' }'."\n"
- .' ]'."\n"
- .' },'."\n"
- .' "dataNodes": ['."\n"
- .' {'."\n"
- .' "serviceStatus": {'."\n"
- .' "name": "service_name",'."\n"
- .' "totalSize": 1,'."\n"
- .' "doneSize": 1,'."\n"
- .' "donePercent": 100'."\n"
- .' },'."\n"
- .' "configStatusList": ['."\n"
- .' {'."\n"
- .' "name": "default",'."\n"
- .' "totalSize": 1,'."\n"
- .' "doneSize": 1,'."\n"
- .' "donePercent": 100,'."\n"
- .' "configUpdateTime": ""'."\n"
- .' }'."\n"
- .' ],'."\n"
- .' "dataStatusList": ['."\n"
- .' {'."\n"
- .' "name": "index1",'."\n"
- .' "totalSize": 1,'."\n"
- .' "doneSize": 1,'."\n"
- .' "donePercent": 100,'."\n"
- .' "docSize": 123423,'."\n"
- .' "fullVersion": 123423,'."\n"
- .' "incVersion": 123423,'."\n"
- .' "incUpdateTime": "",'."\n"
- .' "fullUpdateTime": "",'."\n"
- .' "indexConfigInfo": {'."\n"
- .' "configMetaName": "index_meta_name",'."\n"
- .' "version": 13241234'."\n"
- .' },'."\n"
- .' "advanceConfigInfo": {'."\n"
- .' "configMetaName": "advance_meta_name",'."\n"
- .' "version": 13241234'."\n"
- .' },'."\n"
- .' "lackMemWorker": ['."\n"
- .' "worker1",'."\n"
- .' "worker2"'."\n"
- .' ],'."\n"
- .' "deployFailedWorker": ['."\n"
- .' "worker3",'."\n"
- .' "worker4"'."\n"
- .' ],'."\n"
- .' "lackDiskWorker": ['."\n"
- .' "worker5",'."\n"
- .' "worker6"'."\n"
- .' ],'."\n"
- .' "errorMsg": "lackMemWorker/deployFailedWorker/lackDiskWorker"'."\n"
- .' },'."\n"
- .' {'."\n"
- .' "name": "index1",'."\n"
- .' "totalSize": 1,'."\n"
- .' "doneSize": 1,'."\n"
- .' "donePercent": 100,'."\n"
- .' "docSize": 123423,'."\n"
- .' "fullVersion": 123423,'."\n"
- .' "incVersion": 123423,'."\n"
- .' "incUpdateTime": "",'."\n"
- .' "fullUpdateTime": "",'."\n"
- .' "indexConfigInfo": {'."\n"
- .' "configMetaName": "index_meta_name",'."\n"
- .' "version": 13241234'."\n"
- .' },'."\n"
- .' "advanceConfigInfo": {'."\n"
- .' "configMetaName": "advance_meta_name",'."\n"
- .' "version": 13241234'."\n"
- .' },'."\n"
- .' "lackMemWorker": ['."\n"
- .' "worker1",'."\n"
- .' "worker2"'."\n"
- .' ],'."\n"
- .' "deployFailedWorker": ['."\n"
- .' "worker3",'."\n"
- .' "worker4"'."\n"
- .' ],'."\n"
- .' "lackDiskWorker": ['."\n"
- .' "worker5",'."\n"
- .' "worker6"'."\n"
- .' ],'."\n"
- .' "errorMsg": "lackMemWorker/deployFailedWorker/lackDiskWorker"'."\n"
- .' }'."\n"
- .' ]'."\n"
- .' }'."\n"
- .' ]'."\n"
- .' }'."\n"
- .' ]'."\n"
- .'}'."\n"
- .'```'."\n",
- 'extraInfo' => "\n"
- ."\n",
- ],
- 'ListClusterNames' => [
- 'summary' => '获取集群可选择的名称。',
- 'path' => '/openapi/ha3/cluster-names',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
+ ],
+ 'ModifyIndexOnlineStrategy' => [
+ 'summary' => '修改索引在线策略。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy',
+ 'methods' => ['put'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'dataSourceName',
+ 'in' => 'path',
+ 'schema' => ['description' => '数据源名称。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_api_test'],
+ ],
+ [
+ 'name' => 'deployName',
+ 'in' => 'path',
+ 'schema' => ['description' => '机房', 'type' => 'string', 'required' => true, 'example' => 'vpc_hz_domain_1'],
+ ],
+ [
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_tusou_v2'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'changeRate' => ['title' => '索引变化率', 'description' => '索引变化率', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
+ ],
+ 'required' => false,
+ ],
+ ],
],
- 'parameters' => [],
'responses' => [
200 => [
+ 'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F6E3D968-529C-5C40-AFDD-133A8B8FD930',
- ],
- 'result' => [
- 'title' => 'ClusterNameInfo',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '集群名称',
- 'description' => '集群名称。',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- 'description' => [
- 'title' => '集群描述',
- 'description' => '集群描述。',
- 'type' => 'string',
- 'example' => '自定义描述',
- ],
- 'id' => [
- 'description' => '集群ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '25030',
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F6E3D968-529C-5C40-AFDD-133A8B8FD930\\",\\n \\"result\\": {\\n \\"name\\": \\"hz_pre_vpc_domain_1\\",\\n \\"description\\": \\"自定义描述\\",\\n \\"id\\": 25030\\n }\\n}","type":"json"}]',
- 'title' => '获取集群可选择的名称',
+ 'title' => '修改某一索引在线策略',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/cluster-names'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIndexOnlineStrategy'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndexOnlineStrategy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyIndexPartition' => [
+ 'summary' => '快速扩缩列。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/index-partition',
+ 'methods' => ['put'],
+ 'schemes' => ['https', 'http'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'dataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'generation' => ['title' => 'generation 主键', 'description' => 'generation 主键', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633293829'],
+ 'domainName' => ['title' => '机房', 'description' => '机房', 'type' => 'string', 'required' => false, 'example' => 'sz_vpc_domain_1'],
+ 'indexInfos' => [
+ 'title' => '索引分片信息',
+ 'description' => '索引信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '索引信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'indexName' => ['title' => '索引名称', 'description' => '索引名称', 'type' => 'string', 'required' => false, 'example' => 'test_api'],
+ 'partitionCount' => ['title' => '分片数', 'description' => '索引对应的分片数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'],
+ 'parallelNum' => ['title' => '并发数,默认是 1', 'description' => '并发数,默认是 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '93A9E542-8CF8-5BA6-99AB-94C0FE520429'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '[]'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '修改索引分区信息',
+ 'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET /openapi/ha3/instances/ha3_instance_name/cluster-names'."\n"
- .'```',
- 'responseParamsDescription' => '### 返回示例'."\n"
- .'正确返回'."\n"
+ .'PUT'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
."\n"
.'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/index-partition'."\n"
+ .'```',
+ 'requestParamsDescription' => '### 示例'."\n"
+ .'`PUT /openapi/ha3/instances/{instanceId}/index-partition`'."\n"
+ ."\n"
+ .'```'."\n"
.'{'."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": ['."\n"
+ .' "dataSourceName":"ha-cn-pl32n3bi904_d",'."\n"
+ .' "domainName":"pre_domain_1",'."\n"
+ .' "generation":"1633293829",'."\n"
+ .' "indexInfos":['."\n"
.' {'."\n"
- .' "name":"pre",'."\n"
- .' "description":"pre机房",'."\n"
- .' "id": 1,'."\n"
+ .' "indexName":"atest2",'."\n"
+ .' "partitionCount":2'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```',
- 'extraInfo' => '## 示例'."\n"
- ."\n"
- .'### 请求示例'."\n"
+ 'responseParamsDescription' => '### 返回示例'."\n"
."\n"
- .'```java'."\n"
- .'GET /openapi/ha3/instances/ha3_instance_name/cluster-names'."\n"
.'```'."\n"
- .'###返回示例'."\n"
- .'正确返回'."\n"
- ."\n"
- .'```java'."\n"
.'{'."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": ['."\n"
- .' {'."\n"
- .' "name":"pre",'."\n"
- .' "description":"pre机房",'."\n"
- .' "id": 1,'."\n"
- .' }'."\n"
- .' ]'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": []'."\n"
.'}'."\n"
- .'```',
- ],
- 'ListClusters' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/clusters',
- 'methods' => [
- 'get',
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIndexPartition'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndexPartition',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"93A9E542-8CF8-5BA6-99AB-94C0FE520429\\",\\n \\"result\\": []\\n}","type":"json"}]',
+ ],
+ 'ModifyIndexVersion' => [
+ 'summary' => '修改集群索引版本(索引回滚)。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -17072,22 +12413,37 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '103715',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch5EAGY5',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'clusterName',
+ 'in' => 'path',
+ 'schema' => ['description' => '集群名称', 'type' => 'string', 'required' => false, 'example' => 'vpc_hz_domain_2'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'description' => '请求结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'indexName' => ['title' => '索引名称', 'description' => '索引名称', 'type' => 'string', 'required' => false, 'example' => 'main_index'],
+ 'version' => ['title' => '索引版本', 'description' => '索引版本', 'type' => 'string', 'required' => false, 'example' => '1'],
+ 'buildDeployId' => ['title' => '产出索引的离线部署', 'description' => '数据源部署id', 'type' => 'string', 'required' => false, 'example' => '277'],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'example' => '{}',
],
],
],
@@ -17096,262 +12452,417 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '集群列表',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '集群名称(对应后端domainName)',
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'hz_pre_vpc_domain_1',
- ],
- 'description' => [
- 'title' => '集群描述',
- 'description' => '集群描述',
- 'type' => 'string',
- 'example' => '自定义描述',
- ],
- 'currentAdvanceConfigVersion' => [
- 'title' => '高级配置生效版本',
- 'description' => '高级配置生效版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'latestAdvanceConfigVersion' => [
- 'title' => '高级配置最新版本',
- 'description' => '高级配置最新版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'currentOnlineConfigVersion' => [
- 'title' => '在线配置生效版本',
- 'description' => '在线配置生效版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'latestOnlineConfigVersion' => [
- 'title' => '在线配置最新版本',
- 'description' => '在线配置最新版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'currentOnlineQueryConfigVersion' => [
- 'title' => '查询配置生效版本',
- 'description' => '查询配置生效版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'latestOnlineQueryConfigVersion' => [
- 'title' => '查询配置最新版本',
- 'description' => '查询配置最新版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'currentOfflineDictConfigVersion' => [
- 'title' => '词典配置生效版本',
- 'description' => '词典配置生效版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'latestOfflineDictConfigVersion' => [
- 'title' => '词典配置最新版本',
- 'description' => '词典配置最新版本',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- ],
- 'configUpdateTime' => [
- 'title' => '配置更新时间',
- 'description' => '配置更新时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'status' => [
- 'description' => '集群状态。取值:-running:运行中-starting:启动中-stopping:停止中-stopped:已停止',
- 'type' => 'string',
- 'example' => 'running',
- ],
- 'queryNode' => [
- 'title' => '查询节点',
- 'description' => '集群搜索节点。',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_qrs',
- ],
- 'number' => [
- 'title' => '节点数量',
- 'description' => '节点数量。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'partition' => [
- 'title' => '副本数量',
- 'description' => '副本数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- 'dataNode' => [
- 'title' => '数据节点',
- 'description' => '集群中的节点信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'general',
- ],
- 'number' => [
- 'title' => '节点数量',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'partition' => [
- 'title' => '副本数量',
- 'description' => '节点分区id。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 500 => [],
+ ],
+ 'title' => '修改集群索引版本(索引回滚)',
+ 'description' => '## 方法'."\n"
+ ."\n"
+ .'```'."\n"
+ .'PUT'."\n"
+ .'```'."\n"
+ ."\n"
+ .'## URI'."\n"
+ ."\n"
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version'."\n"
+ .'```',
+ 'requestParamsDescription' => "\n"
+ ."\n"
+ .'## 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'PUT /openapi/ha3/instances/ha3_instance_nameclusters/test_cluster/index-version'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'['."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "indexName": "index1",'."\n"
+ .''."\n"
+ .' "version": "123456",'."\n"
+ .''."\n"
+ .' "buildDeployId": "20201010"'."\n"
+ .''."\n"
+ .' },'."\n"
+ .''."\n"
+ .' {'."\n"
+ .''."\n"
+ .' "indexName": "index1",'."\n"
+ .''."\n"
+ .' "version": "123456",'."\n"
+ .''."\n"
+ .' "buildDeployId": "20201010"'."\n"
+ .''."\n"
+ .' }'."\n"
+ .''."\n"
+ .']'."\n"
+ .''."\n"
+ .'​'."\n"
+ .'```'."\n"
+ ."\n\n"
+ ."\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .''."\n"
+ .' "result":[]'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIndexVersion'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyModel' => [
+ 'summary' => '修改模型详情,修改模型状态。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'modelName',
+ 'in' => 'path',
+ 'schema' => ['title' => '模型名称', 'description' => '模型名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ [
+ 'name' => 'dryRun',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否仅执行校验,默认为False。', 'description' => '是否仅执行校验,默认为False。', 'type' => 'string', 'required' => false, 'example' => 'true'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => [
+ 'description' => '模型详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'method' => ['description' => '模型服务访问的http method, 支持PUT和POST', 'type' => 'string', 'required' => false, 'example' => 'POST'."\n"
+ ."\n"],
+ 'modelType' => ['description' => '模型类别'."\n"
+ .'- a. 文本向量化:text_embedding'."\n"
+ .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
+ .'- c. 图片向量化:image_embedding'."\n"
+ .'- d. 图片内容解析:image_analyze', 'type' => 'string', 'required' => false, 'example' => 'text_embedding'],
+ 'dimension' => ['title' => '模型的维度', 'description' => '模型的维度', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '128'],
+ 'request' => [
+ 'description' => '模型请求体',
+ 'type' => 'object',
+ 'properties' => [
+ 'header' => [
+ 'description' => '访问模型服务的http header',
+ 'type' => 'object',
+ 'properties' => [
+ 'Authorization' => ['description' => '认证信息,格式:Bearer access_token', 'type' => 'string', 'required' => false, 'example' => 'Bearer OS-v0********6vvs'."\n"],
+ 'Content-Type' => ['description' => 'HTTP请求内容类型。', 'type' => 'string', 'required' => false, 'example' => 'application/json'."\n"],
],
+ 'required' => false,
],
- ],
- 'createTime' => [
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'config' => [
- 'description' => '配置信息',
- 'type' => 'object',
- 'additionalProperties' => [
+ 'parameters' => [
+ 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'type' => 'string',
- 'example' => 'ha-cn-pl32rf0****_offline_adv_v1',
- 'description' => '配置名称',
- ],
- 'updateTime' => [
- 'type' => 'string',
- 'description' => '更新时间',
- 'example' => '2024-05-21 16:05:26',
+ 'properties' => [
+ 'build' => [
+ 'description' => '索引构建阶段的参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'input_type' => ['description' => '输入类型', 'type' => 'string', 'required' => false, 'example' => 'query'."\n"],
],
- 'desc' => [
- 'type' => 'string',
- 'description' => '描述',
- 'example' => '自定义描述',
+ 'required' => false,
+ ],
+ 'search' => [
+ 'description' => '查询阶段的参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'input_type' => ['description' => '输入类型', 'type' => 'string', 'required' => false, 'example' => 'document'."\n"],
],
+ 'required' => false,
],
- 'description' => '子配置项信息',
],
- 'description' => '配置信息',
+ 'required' => false,
+ ],
+ 'requestBody' => ['description' => '请求Body体的模板字符串', 'type' => 'string', 'required' => false, 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}'."\n"],
+ 'urlParams' => [
+ 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'build' => ['description' => '索引构建阶段的参数', 'type' => 'object', 'required' => false, 'example' => 'key: value'."\n"
+ ."\n"],
+ 'search' => ['description' => '查询阶段的参数', 'type' => 'object', 'required' => false, 'example' => 'key: value'."\n"
+ ."\n"],
+ ],
+ 'required' => false,
],
],
+ 'required' => false,
],
+ 'response' => [
+ 'description' => '如何解析结果信息,使用json path格式描述',
+ 'type' => 'object',
+ 'properties' => [
+ 'embeddings' => ['description' => '如何解析结果信息,使用json path格式描述', 'type' => 'string', 'required' => false, 'example' => '$.result.embeddings[*].embedding'."\n"],
+ ],
+ 'required' => false,
+ ],
+ 'url' => ['description' => '模型服务的访问地址', 'type' => 'string', 'required' => false, 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001'],
],
+ 'required' => false,
],
+ 'status' => ['description' => '模型状态。'."\n"
+ ."\n"
+ .'- ok: 模型可用'."\n"
+ .'- forbidden: 模型不可用', 'type' => 'string', 'required' => false, 'example' => 'ok'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0'],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '修改模型',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\"\\n}","type":"json"}]',
+ ],
+ 'ModifyNodeConfig' => [
+ 'summary' => '修改节点配置。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/node-config',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'abilityTreeCode' => '114152',
+ 'abilityTreeNodes' => ['FEATUREopensearchIQC42D'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => ['title' => 'qrs: 查询节点, search: 数据节点, index: 索引节点, cluster: 集群', 'description' => '算法类型'."\n"
+ .'- pop 人气模型'."\n"
+ .'- cp 类目预测'."\n"
+ .'- hot 热词'."\n"
+ .'- hint 底纹'."\n"
+ .'- suggest 下拉提示', 'type' => 'string', 'required' => true, 'example' => 'hot'],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'query',
+ 'schema' => ['description' => '修改前的配置名称。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_qrs'],
+ ],
+ [
+ 'name' => 'clusterName',
+ 'in' => 'query',
+ 'schema' => ['description' => '集群名称。', 'type' => 'string', 'required' => false, 'example' => 'vpc_sh_domain_2'],
+ ],
+ [
+ 'name' => 'dataSourceName',
+ 'in' => 'query',
+ 'schema' => ['description' => '数据来源名称。取值:-search:搜索数据。-not_search:不搜索数据。', 'type' => 'string', 'required' => false, 'example' => 'search'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'dataFragmentNumber' => ['title' => '数据分片数', 'description' => '数据分片数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'dataDuplicateNumber' => ['title' => '数据副本数', 'description' => '数据副本数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'minServicePercent' => ['title' => '最小服务比例', 'description' => '最小服务比例', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'published' => ['title' => '集群是否挂载', 'description' => '集群是否挂载', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'active' => ['title' => '在线生效(索引是否从在线下掉)', 'description' => '在线生效(索引是否从在线下掉)', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'flowRatio' => ['description' => '流量比例', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
+ 'required' => false,
+ 'example' => '{\\"desc\\":\\"new version\\"}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
+ ],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"hz_pre_vpc_domain_1\\",\\n \\"description\\": \\"自定义描述\\",\\n \\"currentAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestAdvanceConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestOnlineConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOnlineQueryConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestOnlineQueryConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"currentOfflineDictConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"latestOfflineDictConfigVersion\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"configUpdateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"status\\": \\"running\\",\\n \\"queryNode\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_qrs\\",\\n \\"number\\": 1,\\n \\"partition\\": 1\\n },\\n \\"dataNode\\": {\\n \\"name\\": \\"general\\",\\n \\"number\\": 1,\\n \\"partition\\": 1\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"config\\": {\\n \\"key\\": {\\n \\"key\\": {\\n \\"name\\": \\"ha-cn-pl32rf0****_offline_adv_v1\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\",\\n \\"desc\\": \\"自定义描述\\"\\n }\\n }\\n }\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取集群列表',
- 'summary' => '获取集群列表。',
+ 'title' => '修改节点配置',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/clusters'."\n"
- .'```'."\n",
+ .'/openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test'."\n"
+ .'```',
'requestParamsDescription' => '### 请求示例'."\n"
."\n"
.'```java'."\n"
- .'GET /openapi/ha3/instances/ha3_instance_name/clusters'."\n"
+ .'PUT /openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "dataFragmentNumber":1,//查询节点+数据结点'."\n"
+ .''."\n"
+ .' "dataDuplicateNumber":1,//查询节点+数据结点'."\n"
+ .''."\n"
+ .' "minServicePercent":20,//查询节点+数据结点'."\n"
+ .''."\n"
+ .' "published":true,//集群'."\n"
+ .''."\n"
+ .' "active": true //index'."\n"
+ .''."\n"
+ .'}'."\n"
.'```',
'responseParamsDescription' => '### 返回示例'."\n"
."\n"
.'正确返回'."\n"
+ .''."\n"
."\n"
.'```java'."\n"
.'{'."\n"
- .' "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",'."\n"
- .' "result": ['."\n"
- .' {'."\n"
- .' "name": "cluster1",'."\n"
- .' "configUpdateTime": "2021-08-09 00:01:02",'."\n"
- .' "currentAdvanceConfigVersion": "test_yyds_data1",'."\n"
- .' "lastestAdvanceConfigVersion": "test_yyds_data1",'."\n"
- .' "currentOnlineConfigVersion": "test_yyds_data1",'."\n"
- .' "lastestOnlineConfigVersion": "test_yyds_data1", '."\n"
- .' "description": "airecpre",'."\n"
- .' "queryNode": {'."\n"
- .' "number": 1'."\n"
- .' },'."\n"
- .' "dataNode": {'."\n"
- .' "number": 2,'."\n"
- .' "partition": 1'."\n"
- .' }, '."\n"
- .' },'."\n"
- .' {'."\n"
- .' "name": "cluster2",'."\n"
- .' "configUpdateTime": "2021-08-09 00:01:02",'."\n"
- .' "currentAdvanceConfigVersion": "test_yyds_data2",'."\n"
- .' "lastestAdvanceConfigVersion": "test_yyds_data2",'."\n"
- .' "currentOnlineConfigVersion": "test_yyds_data1",'."\n"
- .' "lastestOnlineConfigVersion": "test_yyds_data1", '."\n"
- .' "description": "this is descrition",'."\n"
- .' "queryNode": {'."\n"
- .' "number": 1'."\n"
- .' },'."\n"
- .' "dataNode": {'."\n"
- .' "number": 2,'."\n"
- .' "partition": 1'."\n"
- .' }'."\n"
- .' }'."\n"
- .' ]'."\n"
+ .''."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .''."\n"
+ .' "result": []'."\n"
+ .''."\n"
.'}'."\n"
- .'```',
- 'extraInfo' => "\n"
- ."\n\n"
- ."\n",
- ],
- 'ModifyAlias' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/aliases/{alias}',
- 'methods' => [
- 'put',
+ .'```'."\n"
+ .'详情可参考[响应结构](https://www.alibabacloud.com/help/zh/open-search/vector-search-edition/response-structure)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyNodeConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyNodeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyOnlineConfig' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs/{indexName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
@@ -17359,58 +12870,32 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '223194',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-0ju2re****',
- ],
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'alias',
+ 'name' => 'nodeName',
'in' => 'path',
- 'schema' => [
- 'description' => '别名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '节点名称。', 'type' => 'string', 'required' => true, 'example' => 'general'],
+ ],
+ [
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求结构。',
+ 'description' => '请求体',
'type' => 'object',
- 'properties' => [
- 'alias' => [
- 'title' => '别名',
- 'description' => '别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'index' => [
- 'title' => '关联索引',
- 'description' => '关联索引',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index',
- ],
- ],
'required' => false,
+ 'additionalProperties' => ['type' => 'string', 'description' => 'body参数。', 'example' => '{}'],
],
],
],
@@ -17419,26 +12904,16 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F6E3D968-529C-5C40-AFDD-133A8B8FD930',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F6E3D968-529C-5C40-AFDD-133A8B8FD930\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改表别名',
- 'summary' => '修改表别名。',
+ 'title' => '修改在线表配置',
+ 'summary' => '修改在线表配置。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -17448,41 +12923,100 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/aliases/{alias}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/node/{nodeName}/online-configs/{indexName}'."\n"
.'```',
- ],
- 'ListAliases' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/aliases',
- 'methods' => [
- 'get',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'PUT /openapi/ha3/instances/ha-test1/node/ihome_searcher/online-configs'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "content": "xxxx",'."\n"
+ .''."\n"
+ .' "suezAdminName": "xxxx"'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```',
+ 'responseParamsDescription' => '### 请求示例'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'PUT /openapi/ha3/instances/ha-test1/node/ihome_searcher/online-configs'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "content": "xxxx",'."\n"
+ .''."\n"
+ .' "suezAdminName": "xxxx"'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyOnlineConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyOnlineConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyPassword' => [
+ 'summary' => '修改实例的密码。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/password',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '223195',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'description' => '修改密码请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'username' => ['description' => '用户名'."\n", 'type' => 'string', 'required' => false, 'example' => 'testUserName'],
+ 'password' => ['description' => '密码', 'type' => 'string', 'required' => false, 'example' => 'testPassword'],
+ ],
+ 'required' => false,
+ 'example' => '{}',
],
],
],
@@ -17491,64 +13025,62 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'alias' => [
- 'title' => '别名',
- 'description' => '别名',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'index' => [
- 'title' => '关联索引',
- 'description' => '关联索引',
- 'type' => 'string',
- 'example' => 'index',
- ],
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '407BFD91-DE7D-50BA-8F88-CDE52A3B5E46'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": [\\n {\\n \\"alias\\": \\"test\\",\\n \\"index\\": \\"index\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '查询表别名列表',
- 'summary' => '查询表别名列表。',
+ 'title' => '修改实例的密码',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/aliases'."\n"
+ .'/openapi/ha3/instances/{instanceId}/password'."\n"
.'```',
- ],
- 'DeleteAlias' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/aliases/{alias}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'requestParamsDescription' => '### 请求示例'."\n"
+ .'`PUT /openapi/ha3/instances/{instanceId}/password`'."\n"
+ ."\n"
+ .'### 请求体示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "userName":"my_user_name",'."\n"
+ .' "password":"newPassword" '."\n"
+ .'}'."\n"
+ .'```',
+ 'responseParamsDescription' => '### 返回参数说明'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyPassword',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"407BFD91-DE7D-50BA-8F88-CDE52A3B5E46\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyPausePolicy' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/pause-policies',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -17557,31 +13089,35 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '223196',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '178006',
+ 'abilityTreeNodes' => ['FEATUREopensearch0Z9KDD'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例 ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'alias',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '别名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'pauseAll' => ['title' => '暂停全部目标下发', 'description' => '暂停全部目标下发', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'pauseIndex' => ['title' => '暂停新的全量版本下发', 'description' => '暂停新的全量版本下发', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'pauseIndexBatch' => ['title' => '暂停批次增量下发', 'description' => '暂停批次增量下发', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'pauseBiz' => ['title' => '暂停配置下发', 'description' => '暂停配置下发', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'pauseRuntime' => ['title' => '暂停实时增量', 'description' => '暂停实时增量', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ ],
+ 'description' => '请求体参数',
+ ],
],
],
],
@@ -17590,47 +13126,53 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '0B1FF998-BB8D-5182-BFC0-E471AA77095A'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除别名',
- 'summary' => '删除别名。',
+ 'title' => '修改暂停开关',
+ 'summary' => '修改暂停开关。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'DELETE'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/aliases/{alias}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/pause-policies'."\n"
.'```',
- ],
- 'CreateAlias' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/aliases',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyPausePolicy'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyPausePolicy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B1FF998-BB8D-5182-BFC0-E471AA77095A\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifyPublicUrlIpList' => [
+ 'summary' => '修改公网域名白名单。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/public-url-ip-list',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -17639,58 +13181,25 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '223193',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '171291',
+ 'abilityTreeNodes' => ['FEATUREopensearch0AT3OG', 'FEATUREopensearchJB31XH'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'newMode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否为新版本控制台页面',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'true',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求体参数',
+ 'description' => 'body请求体, key: publicUrlAllow',
'type' => 'object',
- 'properties' => [
- 'alias' => [
- 'title' => '别名',
- 'description' => '别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'index' => [
- 'title' => '关联索引',
- 'description' => '关联索引',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index',
- ],
- ],
'required' => false,
+ 'additionalProperties' => ['type' => 'string', 'example' => '47.100.XX.XX,140.205.XX.XX', 'description' => 'value: 白名单,逗号分隔'],
],
],
],
@@ -17699,372 +13208,243 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '创建别名',
- 'summary' => '创建别名。',
+ 'title' => '修改公网域名白名单',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/aliases'."\n"
+ .'/openapi/ha3/instances/{instanceId}/public-url-ip-list'."\n"
.'```',
- ],
- 'CreateTable' => [
- 'summary' => '创建索引表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tables',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyPublicUrlIpList'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyPublicUrlIpList',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'ModifySearcherReplica' => [
+ 'summary' => '通过指定实例ID来修改数据节点的副本或分片数量。',
+ 'description' => '## 请求说明'."\n"
+ .'本API允许用户修改特定实例下的数据节点副本数或分片数。请求时,需提供实例ID,并在请求体中指定要修改的`replica`(副本数)或`partition`(分片数)。请注意,这两个参数都是可选的,但至少需要提供其中一个以执行更新操作。'."\n",
+ 'path' => '/openapi/ha3/instances/{instanceId}/replica',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '218772',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'abilityTreeNodes' => ['FEATUREopensearch5EAGY5'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
+ 'schema' => ['title' => '实例ID'."\n", 'description' => '实例ID'."\n", 'type' => 'string', 'required' => true, 'example' => 'ha-cn-test'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ 'description' => '请求体',
+ 'type' => 'object',
+ 'properties' => [
+ 'replica' => ['title' => '数据节点副本数'."\n", 'description' => '数据节点副本数'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ 'partition' => ['title' => '数据节点分片数'."\n", 'description' => '数据节点分片数'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '修改成功',
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '请求ID'."\n", 'description' => '请求ID'."\n", 'type' => 'string', 'example' => 'e1eef569-1ff7-4bf8-acf7-1cecca9894ce'],
+ 'result' => ['title' => '操作的结果对象,当前版本下该对象为空。', 'description' => '操作的结果对象,当前版本下该对象为空。', 'type' => 'object'],
+ ],
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '修改数据节点副本分片数',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifySearcherReplica',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"e1eef569-1ff7-4bf8-acf7-1cecca9894ce\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]',
+ ],
+ 'ModifyTable' => [
+ 'summary' => '修改索引表。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '218773',
+ 'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
+ ],
+ [
+ 'name' => 'tableName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引表名称', 'type' => 'string', 'required' => true, 'example' => 'index_hdfs'],
+ ],
[
'name' => 'dryRun',
'in' => 'query',
- 'schema' => [
- 'description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'false',
- ],
+ 'schema' => ['description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => 'body',
+ 'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '索引名',
- 'description' => '索引名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'api_index_1',
- ],
- 'dataProcessorCount' => [
- 'title' => '数据更新资源数',
- 'description' => '数据更新资源数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'partitionCount' => [
- 'title' => '数据分片数',
- 'description' => '数据分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'partitionCount' => ['title' => '数据分片数', 'description' => '数据分片数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'dataSource' => [
'title' => '数据源配置',
'description' => '数据源配置',
'type' => 'object',
'properties' => [
- 'type' => [
- 'title' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'odps',
- ],
- 'dataTimeSec' => [
- 'title' => '追增量时间戳',
- 'description' => '追增量时间戳',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1715160176',
- ],
- 'autoBuildIndex' => [
- 'title' => '是否自动索引重建',
- 'description' => '是否自动索引重建',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'dataTimeSec' => ['title' => '追增量时间戳', 'description' => '追增量时间戳', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1715160176'],
+ 'autoBuildIndex' => ['title' => '是否自动索引重建', 'description' => '是否自动索引重建', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'config' => [
'title' => '数据源配置',
'description' => '数据源配置',
'type' => 'object',
'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => '访问域名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源ak secret',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_project',
- ],
- 'partition' => [
- 'description' => '数据源为odps时必填',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20220713',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'odps、dlf数据源表名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test56',
- ],
- 'path' => [
- 'description' => '相对路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/test',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss数据源相关',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/opensearch/test.txt',
- ],
- 'bucket' => [
- 'description' => 'oss bucket',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-bucket',
- ],
- 'catalog' => [
- 'description' => 'dlf数据源-数据目录名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_catalog',
- ],
- 'database' => [
- 'description' => 'dlf数据源-数据库',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch_db',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'tableFormat' => [
- 'description' => 'dlf数据源-表格式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'paimon'."\n"
- .'lance'."\n"
- .'object',
- ],
- 'format' => [
- 'title' => '文件格式类型(oss和dlf复用这个字段),默认为ha3类型',
- 'description' => '文件格式类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha3'."\n"
- .'json',
- ],
+ 'endpoint' => ['title' => 'odps相关', 'description' => '访问域名', 'type' => 'string', 'required' => false, 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api'],
+ 'accessKey' => ['description' => 'odps数据源ak', 'type' => 'string', 'required' => false, 'example' => 'L***p'],
+ 'accessSecret' => ['description' => 'odps数据源ak secret', 'type' => 'string', 'required' => false, 'example' => '5**9a6'],
+ 'project' => ['description' => 'odps数据源项目名称', 'type' => 'string', 'required' => false, 'example' => 'test_project'],
+ 'partition' => ['description' => '分区信息', 'type' => 'string', 'required' => false, 'example' => 'ds=20231220'],
+ 'table' => ['title' => 'saro、odps相关', 'description' => 'odps、dlf数据源表名', 'type' => 'string', 'required' => false, 'example' => 'behavior'],
+ 'ossPath' => ['title' => 'oss数据源相关', 'description' => 'oss文件路径', 'type' => 'string', 'required' => false, 'example' => '/opensearch/test.txt'],
+ 'bucket' => ['description' => 'oss bucket', 'type' => 'string', 'required' => false, 'example' => 'test_bucket'],
+ 'catalog' => ['description' => 'dlf数据源-数据目录名称', 'type' => 'string', 'required' => false, 'example' => 'test_catalog'],
+ 'database' => ['description' => 'dlf数据源-数据库', 'type' => 'string', 'required' => false, 'example' => 'opensearch_db'],
+ 'tag' => ['description' => 'dlf数据源-tag', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'tableFormat' => ['description' => 'dlf数据源-表格式', 'type' => 'string', 'required' => false, 'example' => 'paimon'."\n"
+ .'lance'."\n"
+ .'object'],
+ 'path' => ['description' => '相对路径', 'type' => 'string', 'required' => false, 'example' => '/test'],
+ 'format' => ['description' => '文件格式类型', 'type' => 'string', 'required' => false, 'example' => 'ha3'."\n"
+ .'json'],
],
'required' => false,
],
],
'required' => false,
],
- 'rawSchema' => [
- 'title' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装',
- 'description' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'primaryKey' => [
- 'title' => '主键字段',
- 'description' => '主键字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'id',
- ],
+ 'rawSchema' => ['title' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装', 'description' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'primaryKey' => ['title' => '主键字段', 'description' => '主键字段', 'type' => 'string', 'required' => false, 'example' => 'id'],
'fieldSchema' => [
'title' => 'key: 字段名',
- 'description' => 'key: 字段名',
+ 'description' => '字段map集合',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "id": "INT64",'."\n"
- .' "source_image": "STRING",'."\n"
- .' "namespace": "INT64",'."\n"
- .' "source_image_vector": "MULTI_FLOAT"'."\n"
- .'}',
- 'description' => 'map结构',
- ],
+ 'additionalProperties' => ['type' => 'string', 'description' => 'key: 字段名 value: 字段类型', 'example' => '{'."\n"
+ .' "id": "INT64",'."\n"
+ .' "source_image": "STRING",'."\n"
+ .' "namespace": "INT64",'."\n"
+ .' "source_image_vector": "MULTI_FLOAT"'."\n"
+ .'}'],
],
'vectorIndex' => [
'title' => '索引结构',
'description' => '索引结构',
'type' => 'array',
'items' => [
+ 'description' => '索引结构详细信息',
'type' => 'object',
'properties' => [
- 'indexName' => [
- 'title' => '索引结构名称',
- 'description' => '索引结构名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_index',
- ],
- 'vectorField' => [
- 'title' => '向量字段',
- 'description' => '向量字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'source_image_vector',
- ],
- 'sparseIndexField' => [
- 'title' => '稀疏向量下标字段',
- 'description' => '稀疏向量下标字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sparse_indices',
- ],
- 'sparseValueField' => [
- 'title' => '稀疏向量值字段',
- 'description' => '稀疏向量值字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sparse_values',
- ],
- 'dimension' => [
- 'title' => '向量维度',
- 'description' => '向量维度',
- 'type' => 'string',
- 'required' => false,
- 'example' => '128',
- ],
- 'vectorIndexType' => [
- 'title' => '向量索引算法',
- 'description' => '向量索引算法',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Qc',
- ],
- 'distanceType' => [
- 'title' => '距离类型',
- 'description' => '距离类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'SquaredEuclidean',
- ],
- 'namespace' => [
- 'title' => '命名空间字段',
- 'description' => '命名空间字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'namespace',
- ],
+ 'indexName' => ['title' => '索引结构名称', 'description' => '索引结构名称', 'type' => 'string', 'required' => false, 'example' => 'test_index'],
+ 'vectorField' => ['title' => '向量字段', 'description' => '向量字段', 'type' => 'string', 'required' => false, 'example' => 'source_image_vector'],
+ 'sparseIndexField' => ['title' => '稀疏向量下标字段', 'description' => '稀疏向量下标字段', 'type' => 'string', 'required' => false, 'example' => 'sparse_indices'],
+ 'sparseValueField' => ['title' => '稀疏向量值字段', 'description' => '稀疏向量值字段', 'type' => 'string', 'required' => false, 'example' => 'sparse_values'],
+ 'dimension' => ['title' => '向量维度', 'description' => '向量维度', 'type' => 'string', 'required' => false, 'example' => '128'],
+ 'vectorIndexType' => ['title' => '向量索引算法', 'description' => '向量索引算法', 'type' => 'string', 'required' => false, 'example' => 'Qc'],
+ 'distanceType' => ['title' => '距离类型', 'description' => '距离类型', 'type' => 'string', 'required' => false, 'example' => 'SquaredEuclidean'],
+ 'namespace' => ['title' => '命名空间字段', 'description' => '命名空间字段', 'type' => 'string', 'required' => false, 'example' => 'namespace'],
'advanceParams' => [
'title' => '索引结构配置',
'description' => '索引结构配置',
'type' => 'object',
'properties' => [
- 'buildIndexParams' => [
- 'title' => '索引构建参数',
- 'description' => '索引构建参数',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'searchIndexParams' => [
- 'title' => '索引检索参数',
- 'description' => '索引检索参数',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'minScanDocCnt' => [
- 'title' => '召回候选集的个数最小值',
- 'description' => '召回候选集的个数最小值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '20000',
- ],
- 'linearBuildThreshold' => [
- 'title' => '线性构建的阈值',
- 'description' => '线性构建的阈值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5000',
- ],
+ 'buildIndexParams' => ['title' => '索引构建参数', 'description' => '索引构建参数', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'searchIndexParams' => ['title' => '索引检索参数', 'description' => '索引检索参数', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'minScanDocCnt' => ['title' => '召回候选集的个数最小值', 'description' => '召回候选集的个数最小值', 'type' => 'string', 'required' => false, 'example' => '20000'],
+ 'linearBuildThreshold' => ['title' => '线性构建的阈值', 'description' => '线性构建的阈值', 'type' => 'string', 'required' => false, 'example' => '5000'],
],
'required' => false,
],
@@ -18081,69 +13461,24 @@
'description' => '字段处理配置详细信息',
'type' => 'object',
'properties' => [
- 'operator' => [
- 'title' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)',
- 'description' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vectorize',
- ],
- 'dstField' => [
- 'title' => '目标字段',
- 'description' => '目标字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'source_image_vector',
- ],
- 'srcField' => [
- 'title' => '源字段',
- 'description' => '源字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'source_image',
- ],
+ 'operator' => ['title' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)', 'description' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)', 'type' => 'string', 'required' => false, 'example' => 'vectorize'],
+ 'dstField' => ['title' => '目标字段', 'description' => '目标字段', 'type' => 'string', 'required' => false, 'example' => 'source_image_vector'],
+ 'srcField' => ['title' => '源字段', 'description' => '源字段', 'type' => 'string', 'required' => false, 'example' => 'source_image'],
'params' => [
'title' => '配置模型信息',
'description' => '配置模型信息',
'type' => 'object',
'properties' => [
- 'vectorModel' => [
- 'title' => '向量化模型',
- 'description' => '向量化模型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'clip',
- ],
- 'vectorModal' => [
- 'title' => '数据类型',
- 'description' => '数据类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'image',
- ],
+ 'vectorModel' => ['title' => '向量化模型', 'description' => '向量化模型', 'type' => 'string', 'required' => false, 'example' => 'clip'],
+ 'vectorModal' => ['title' => '数据类型', 'description' => '数据类型', 'type' => 'string', 'required' => false, 'example' => 'image'],
'srcFieldConfig' => [
'title' => '向量化信息来源',
'description' => '向量化信息来源',
'type' => 'object',
'properties' => [
- 'ossEndpoint' => [
- 'description' => 'OSS区域地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss-cn-hangzhou-internal.aliyuncs.com',
- ],
- 'ossBucket' => [
- 'description' => 'OSSBucket',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-bucket',
- ],
- 'uid' => [
- 'description' => '云账号id',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1062017779051424',
- ],
+ 'ossEndpoint' => ['description' => 'OSS区域地址。', 'type' => 'string', 'required' => false, 'example' => 'oss-cn-hangzhou-internal.aliyuncs.com'."\n"],
+ 'ossBucket' => ['description' => 'OSS Bucket名称。', 'type' => 'string', 'required' => false, 'example' => 'test-bucket'],
+ 'uid' => ['description' => '云账号id', 'type' => 'string', 'required' => false, 'example' => '1062017779051424'],
],
'required' => false,
],
@@ -18155,13 +13490,6 @@
],
'required' => false,
],
- 'scene' => [
- 'title' => '场景模版',
- 'description' => '模版类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'videoSearcher',
- ],
],
'required' => false,
],
@@ -18172,48 +13500,38 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '创建索引表',
+ 'title' => '修改索引表',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tables'."\n"
+ .'/openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
."\n"
.''."\n"
."\n"
.'```java'."\n"
- .'POST /openapi/ha3/instances/{instanceId}/tables'."\n"
+ .'PUT /openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
.'```'."\n"
- .'><notice>示例仅列举最简单的参数, 更多自定义参数请参考请求参数></notice>'."\n"
+ ."\n"
+ .'><notice>示例仅列举最简单的参数, 更多自定义参数请参考请求参数></notice>'."\n"
."\n"
.'```java'."\n"
.'{'."\n"
- .' "name": "api",'."\n"
.' "partitionCount": 1,'."\n"
.' "primaryKey": "id",'."\n"
.' "fieldSchema": {'."\n"
@@ -18233,411 +13551,95 @@
.' ]'."\n"
.'}'."\n"
.'```'."\n"
- .'详情可参考[响应结构](~~465311~~)<details>',
- ],
- 'ModifyTable' => [
- 'summary' => '修改索引表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'PublishAdvanceConfig' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/actions/publish',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '218773',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'abilityTreeCode' => '104708',
+ 'abilityTreeNodes' => ['FEATUREopensearchA6GC80'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'tableName',
+ 'name' => 'configName',
'in' => 'path',
- 'schema' => [
- 'description' => '索引表名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'index_hdfs',
- ],
- ],
- [
- 'name' => 'dryRun',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否dryRun创建(仅校验数据源是否合法)。取值:-true 是 -false 否',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'false',
- ],
+ 'schema' => ['description' => '配置名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_online_config_v3'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '请求体参数',
+ 'description' => '请求结构。',
'type' => 'object',
'properties' => [
- 'partitionCount' => [
- 'title' => '数据分片数',
- 'description' => '数据分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'dataSource' => [
- 'title' => '数据源配置',
- 'description' => '数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'dataTimeSec' => [
- 'title' => '追增量时间戳',
- 'description' => '追增量时间戳',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1715160176',
- ],
- 'autoBuildIndex' => [
- 'title' => '是否自动索引重建',
- 'description' => '是否自动索引重建',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'config' => [
- 'title' => '数据源配置',
- 'description' => '数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => '访问域名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'odps数据源ak',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'L***p',
- ],
- 'accessSecret' => [
- 'description' => 'odps数据源ak secret',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5**9a6',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_project',
- ],
- 'partition' => [
- 'description' => '分区信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20231220',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'odps、dlf数据源表名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'behavior',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/opensearch/test.txt',
- ],
- 'bucket' => [
- 'description' => 'oss bucket',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_bucket',
- ],
- 'catalog' => [
- 'description' => 'dlf数据源-数据目录名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_catalog',
- ],
- 'database' => [
- 'description' => 'dlf数据源-数据库',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'opensearch_db',
- ],
- 'tag' => [
- 'description' => 'dlf数据源-tag',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'tableFormat' => [
- 'description' => 'dlf数据源-表格式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'paimon'."\n"
- .'lance'."\n"
- .'object',
- ],
- 'path' => [
- 'description' => '相对路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/test',
- ],
- 'format' => [
- 'description' => '文件格式类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha3'."\n"
- .'json',
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'rawSchema' => [
- 'title' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装',
- 'description' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'primaryKey' => [
- 'title' => '主键字段',
- 'description' => '主键字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'id',
- ],
- 'fieldSchema' => [
- 'title' => 'key: 字段名',
- 'description' => '字段map集合',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'key: 字段名 value: 字段类型',
- 'example' => '{'."\n"
- .' "id": "INT64",'."\n"
- .' "source_image": "STRING",'."\n"
- .' "namespace": "INT64",'."\n"
- .' "source_image_vector": "MULTI_FLOAT"'."\n"
- .'}',
- ],
- ],
- 'vectorIndex' => [
- 'title' => '索引结构',
- 'description' => '索引结构',
- 'type' => 'array',
- 'items' => [
- 'description' => '索引结构详细信息',
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'title' => '索引结构名称',
- 'description' => '索引结构名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_index',
- ],
- 'vectorField' => [
- 'title' => '向量字段',
- 'description' => '向量字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'source_image_vector',
- ],
- 'sparseIndexField' => [
- 'title' => '稀疏向量下标字段',
- 'description' => '稀疏向量下标字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sparse_indices',
- ],
- 'sparseValueField' => [
- 'title' => '稀疏向量值字段',
- 'description' => '稀疏向量值字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sparse_values',
- ],
- 'dimension' => [
- 'title' => '向量维度',
- 'description' => '向量维度',
- 'type' => 'string',
- 'required' => false,
- 'example' => '128',
- ],
- 'vectorIndexType' => [
- 'title' => '向量索引算法',
- 'description' => '向量索引算法',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Qc',
- ],
- 'distanceType' => [
- 'title' => '距离类型',
- 'description' => '距离类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'SquaredEuclidean',
- ],
- 'namespace' => [
- 'title' => '命名空间字段',
- 'description' => '命名空间字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'namespace',
- ],
- 'advanceParams' => [
- 'title' => '索引结构配置',
- 'description' => '索引结构配置',
- 'type' => 'object',
- 'properties' => [
- 'buildIndexParams' => [
- 'title' => '索引构建参数',
- 'description' => '索引构建参数',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'searchIndexParams' => [
- 'title' => '索引检索参数',
- 'description' => '索引检索参数',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'minScanDocCnt' => [
- 'title' => '召回候选集的个数最小值',
- 'description' => '召回候选集的个数最小值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '20000',
- ],
- 'linearBuildThreshold' => [
- 'title' => '线性构建的阈值',
- 'description' => '线性构建的阈值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5000',
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- 'dataProcessConfig' => [
- 'title' => '字段处理配置',
- 'description' => '字段处理配置',
+ 'desc' => ['description' => '高级配置描述信息', 'type' => 'string', 'required' => false, 'example' => 'Custom configuration'],
+ 'files' => [
+ 'description' => '文件信息',
'type' => 'array',
'items' => [
- 'description' => '字段处理配置详细信息',
+ 'description' => '文件信息',
'type' => 'object',
'properties' => [
- 'operator' => [
- 'title' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)',
- 'description' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vectorize',
- ],
- 'dstField' => [
- 'title' => '目标字段',
- 'description' => '目标字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'source_image_vector',
- ],
- 'srcField' => [
- 'title' => '源字段',
- 'description' => '源字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'source_image',
- ],
- 'params' => [
- 'title' => '配置模型信息',
- 'description' => '配置模型信息',
+ 'ossPath' => ['description' => 'oss文件路径', 'type' => 'string', 'required' => false, 'example' => 'oss://opensearch/test.json'],
+ 'operateType' => ['description' => '操作类型:UPDATE:更新;DELETE:删除;默认UPDATE', 'type' => 'string', 'required' => false, 'example' => 'UPDATE'],
+ 'parentFullPath' => ['description' => '上级文件路径', 'type' => 'string', 'required' => false, 'example' => '/'],
+ 'fileName' => ['description' => '文件名称', 'type' => 'string', 'required' => false, 'example' => 'vector_question_schema.json'],
+ 'dirName' => ['description' => '目录名称。', 'type' => 'string', 'required' => false, 'example' => '/clusters'],
+ 'config' => [
+ 'description' => '高级配置信息',
'type' => 'object',
'properties' => [
- 'vectorModel' => [
- 'title' => '向量化模型',
- 'description' => '向量化模型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'clip',
- ],
- 'vectorModal' => [
- 'title' => '数据类型',
- 'description' => '数据类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'image',
- ],
- 'srcFieldConfig' => [
- 'title' => '向量化信息来源',
- 'description' => '向量化信息来源',
+ 'content' => ['description' => '文件内容', 'type' => 'string', 'required' => false, 'example' => "\n"
+ .'{\\"url\\":\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\"}'],
+ 'variables' => [
+ 'description' => '变量列表',
'type' => 'object',
- 'properties' => [
- 'ossEndpoint' => [
- 'description' => 'OSS区域地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss-cn-hangzhou-internal.aliyuncs.com'."\n",
- ],
- 'ossBucket' => [
- 'description' => 'OSS Bucket名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-bucket',
- ],
- 'uid' => [
- 'description' => '云账号id',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1062017779051424',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['type' => 'string', 'required' => false, 'description' => '变量描述', 'example' => '自定义变量'],
+ 'disableModify' => ['type' => 'boolean', 'required' => false, 'example' => 'true', 'description' => '是否可被用户修改'],
+ 'isModify' => ['type' => 'boolean', 'required' => false, 'description' => '变量是否被修改过', 'example' => 'true'],
+ 'type' => ['type' => 'string', 'required' => false, 'example' => 'NORMAL', 'description' => '类型:普通变量-NORMAL; function变量-FUNCTION'],
+ 'value' => ['type' => 'string', 'required' => false, 'example' => 'test', 'description' => '变量值'],
],
+ 'description' => '变量',
],
- 'required' => false,
],
],
'required' => false,
@@ -18649,6 +13651,7 @@
],
],
'required' => false,
+ 'example' => '{\\"desc\\":\\"new version\\"}',
],
],
],
@@ -18657,79 +13660,69 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '修改索引表',
+ 'title' => '发布高级版本',
+ 'summary' => '发布高级版本。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'PUT'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/actions/publish'."\n"
.'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
- .'PUT /openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
+ 'requestParamsDescription' => '## 请求示例'."\n"
.'```'."\n"
+ .'POST /openapi/ha3/instances/ose-test1/advanced-configs/test/actions/publish'."\n"
."\n"
- .'><notice>示例仅列举最简单的参数, 更多自定义参数请参考请求参数></notice>'."\n"
- ."\n"
- .'```java'."\n"
.'{'."\n"
- .' "partitionCount": 1,'."\n"
- .' "primaryKey": "id",'."\n"
- .' "fieldSchema": {'."\n"
- .' "id": "INT64",'."\n"
- .' "source_image": "STRING",'."\n"
- .' "namespace": "STRING",'."\n"
- .' "source_image_vector": "MULTI_FLOAT"'."\n"
- .' },'."\n"
- .' "vectorIndex": ['."\n"
- .' {'."\n"
- .' "indexName": "test_index_1",'."\n"
- .' "vectorField": "source_image_vector",'."\n"
- .' "vectorIndexType": "HNSW",'."\n"
- .' "dimension": "512",'."\n"
- .' "distanceType": "InnerProduct"'."\n"
- .' }'."\n"
- .' ]'."\n"
+ .' "desc": "new version"'."\n"
+ .'}'."\n"
+ .'```',
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ .'### 正确返回'."\n"
+ .'```json'."\n"
+ .'{'."\n"
+ .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
+ .' "result": {}'."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
- ],
- 'GetTable' => [
- 'summary' => '获取索引表信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishAdvanceConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:PublishAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'PublishIndexVersion' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/publish',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -18737,33 +13730,26 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '218774',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'tableName',
+ 'name' => 'indexName',
'in' => 'path',
- 'schema' => [
- 'description' => '索引表名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_summary',
- ],
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '请求体', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
+ .'"dataSource": "ha-cn-pl32rf0****_test_api",'."\n"
+ .'"desc": "Remarks"'."\n"
+ .'}'],
],
],
'responses' => [
@@ -18771,474 +13757,181 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
- 'result' => [
- 'title' => 'IndexConfigV2',
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '索引名',
- 'description' => '索引名',
- 'type' => 'string',
- 'example' => 'test_oss',
- ],
- 'status' => [
- 'title' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)',
- 'description' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)',
- 'type' => 'string',
- 'example' => 'IN_USE',
- ],
- 'dataProcessorCount' => [
- 'title' => '数据更新资源数',
- 'description' => '数据更新资源数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'partitionCount' => [
- 'title' => '数据分片数',
- 'description' => '数据分片数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'dataSource' => [
- 'title' => '数据源配置',
- 'description' => '数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'type' => [
- 'title' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)',
- 'description' => '数据源类型: 仅支持odps、swift、oss三种类型 (odps, swift, saro, oss, unKnow)',
- 'type' => 'string',
- 'example' => 'odps',
- ],
- 'dataTimeSec' => [
- 'title' => '追增量时间戳',
- 'description' => '追增量时间戳',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1715160176',
- ],
- 'autoBuildIndex' => [
- 'title' => '是否自动索引重建',
- 'description' => '是否自动索引重建',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'config' => [
- 'title' => '数据源配置',
- 'description' => '数据源配置',
- 'type' => 'object',
- 'properties' => [
- 'endpoint' => [
- 'title' => 'odps相关',
- 'description' => 'odps相关',
- 'type' => 'string',
- 'example' => 'http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api',
- ],
- 'accessKey' => [
- 'description' => 'AK',
- 'type' => 'string',
- 'example' => 'ak',
- ],
- 'accessSecret' => [
- 'description' => 'AS',
- 'type' => 'string',
- 'example' => 'as',
- ],
- 'project' => [
- 'description' => 'odps数据源项目名称',
- 'type' => 'string',
- 'example' => 'dp_pdm_marketing_prod',
- ],
- 'partition' => [
- 'description' => '分区信息',
- 'type' => 'string',
- 'example' => 'ds=20220808',
- ],
- 'table' => [
- 'title' => 'saro、odps相关',
- 'description' => 'saro、odps数据源表名',
- 'type' => 'string',
- 'example' => 'test_add',
- ],
- 'namespace' => [
- 'title' => 'saro相关',
- 'description' => 'saro相关',
- 'type' => 'string',
- 'example' => 'namespace',
- ],
- 'path' => [
- 'title' => 'hdfs相关',
- 'description' => 'hdfs相关',
- 'type' => 'string',
- 'example' => 'vendor/sebastian/comparator/src/exceptions',
- ],
- 'ossPath' => [
- 'title' => 'oss数据源相关',
- 'description' => 'oss文件路径',
- 'type' => 'string',
- 'example' => '/opensearch_index_data/sift_oss_test.data',
- ],
- 'bucket' => [
- 'description' => 'oss命名空间',
- 'type' => 'string',
- 'example' => 'heytea-ops-oss',
- ],
- ],
- ],
- ],
- ],
- 'rawSchema' => [
- 'title' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装',
- 'description' => '如果用户传了rawSchema,则直接使用rawSchema作为ha3 schema结构,不用手动拼装',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'primaryKey' => [
- 'title' => '主键字段',
- 'description' => '主键字段',
- 'type' => 'string',
- 'example' => 'id',
- ],
- 'fieldSchema' => [
- 'title' => 'key: 字段名',
- 'description' => '字段map集合, key: 字段名 value: 字段类型',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'id',
- 'example' => 'INT64',
- ],
- ],
- 'vectorIndex' => [
- 'title' => '索引结构',
- 'description' => '索引结构',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'title' => '索引结构名称',
- 'description' => '索引结构名称',
- 'type' => 'string',
- 'example' => 'test_odps',
- ],
- 'vectorField' => [
- 'title' => '向量字段',
- 'description' => '向量字段',
- 'type' => 'string',
- 'example' => 'source_image_vector',
- ],
- 'sparseIndexField' => [
- 'title' => '稀疏向量下标字段',
- 'description' => '稀疏向量下标字段',
- 'type' => 'string',
- 'example' => 'sparse_indices',
- ],
- 'sparseValueField' => [
- 'title' => '稀疏向量值字段',
- 'description' => '稀疏向量值字段',
- 'type' => 'string',
- 'example' => 'sparse_values',
- ],
- 'dimension' => [
- 'title' => '向量维度',
- 'description' => '向量维度',
- 'type' => 'string',
- 'example' => '128',
- ],
- 'vectorIndexType' => [
- 'title' => '向量索引算法',
- 'description' => '向量索引算法',
- 'type' => 'string',
- 'example' => 'Qc',
- ],
- 'distanceType' => [
- 'title' => '距离类型',
- 'description' => '距离类型',
- 'type' => 'string',
- 'example' => 'SquaredEuclidean',
- ],
- 'namespace' => [
- 'title' => '命名空间字段',
- 'description' => '命名空间字段',
- 'type' => 'string',
- 'example' => 'namespace',
- ],
- 'advanceParams' => [
- 'title' => '索引结构配置',
- 'description' => '索引结构配置',
- 'type' => 'object',
- 'properties' => [
- 'buildIndexParams' => [
- 'title' => '索引构建参数',
- 'description' => '索引构建参数',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "proxima.qc.builder.quantizer_class": "Int8QuantizerConverter",'."\n"
- .' "proxima.qc.builder.quantize_by_centroid": true,'."\n"
- .' "proxima.qc.builder.optimizer_class": "BruteForceBuilder",'."\n"
- .' "proxima.qc.builder.thread_count": 10,'."\n"
- .' "proxima.qc.builder.optimizer_params": {'."\n"
- .' "proxima.linear.builder.column_major_order": true'."\n"
- .' },'."\n"
- .' "proxima.qc.builder.store_original_features": false,'."\n"
- .' "proxima.qc.builder.train_sample_count": 3000000,'."\n"
- .' "proxima.qc.builder.train_sample_ratio": 0.5'."\n"
- .'}',
- ],
- 'searchIndexParams' => [
- 'title' => '索引检索参数',
- 'description' => '索引检索参数',
- 'type' => 'string',
- 'example' => '{"proxima.qc.searcher.scan_ratio":0.01}',
- ],
- 'minScanDocCnt' => [
- 'title' => '召回候选集的个数最小值',
- 'description' => '召回候选集的个数最小值',
- 'type' => 'string',
- 'example' => '20000',
- ],
- 'linearBuildThreshold' => [
- 'title' => '线性构建的阈值',
- 'description' => '线性构建的阈值',
- 'type' => 'string',
- 'example' => '5000',
- ],
- ],
- ],
- ],
- ],
- ],
- 'dataProcessConfig' => [
- 'title' => '字段处理配置',
- 'description' => '字段处理配置',
- 'type' => 'array',
- 'items' => [
- 'description' => '字段处理配置',
- 'type' => 'object',
- 'properties' => [
- 'operator' => [
- 'title' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)',
- 'description' => '字段处理方式 (copy: 将源字段拷贝至目标字段, vectorize: 使用模型对源字段进行向量化,向量存储在目标字段中)',
- 'type' => 'string',
- 'example' => 'vectorize',
- ],
- 'dstField' => [
- 'title' => '目标字段',
- 'description' => '目标字段',
- 'type' => 'string',
- 'example' => 'source_image_vector',
- ],
- 'srcField' => [
- 'title' => '源字段',
- 'description' => '源字段',
- 'type' => 'string',
- 'example' => 'source_image',
- ],
- 'params' => [
- 'title' => '配置模型信息',
- 'description' => '配置模型信息',
- 'type' => 'object',
- 'properties' => [
- 'vectorModel' => [
- 'title' => '向量化模型',
- 'description' => '向量化模型',
- 'type' => 'string',
- 'example' => 'clip',
- ],
- 'vectorModal' => [
- 'title' => '数据类型',
- 'description' => '数据类型',
- 'type' => 'string',
- 'example' => 'image',
- ],
- 'srcFieldConfig' => [
- 'title' => '向量化信息来源',
- 'description' => '向量化信息来源',
- 'type' => 'object',
- 'properties' => [
- 'ossEndpoint' => [
- 'description' => 'OSS区域地址。',
- 'type' => 'string',
- 'example' => 'oss-cn-hangzhou-internal.aliyuncs.com'."\n",
- ],
- 'ossBucket' => [
- 'description' => 'OSS Bucket',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'uid' => [
- 'description' => '云账号id',
- 'type' => 'string',
- 'example' => 'uid',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {\\n \\"name\\": \\"test_oss\\",\\n \\"status\\": \\"IN_USE\\",\\n \\"dataProcessorCount\\": 1,\\n \\"partitionCount\\": 1,\\n \\"dataSource\\": {\\n \\"type\\": \\"odps\\",\\n \\"dataTimeSec\\": 1715160176,\\n \\"autoBuildIndex\\": true,\\n \\"config\\": {\\n \\"endpoint\\": \\"http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api\\",\\n \\"accessKey\\": \\"ak\\",\\n \\"accessSecret\\": \\"as\\",\\n \\"project\\": \\"dp_pdm_marketing_prod\\",\\n \\"partition\\": \\"ds=20220808\\",\\n \\"table\\": \\"test_add\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"path\\": \\"vendor/sebastian/comparator/src/exceptions\\",\\n \\"ossPath\\": \\"/opensearch_index_data/sift_oss_test.data\\",\\n \\"bucket\\": \\"heytea-ops-oss\\"\\n }\\n },\\n \\"rawSchema\\": \\"{}\\",\\n \\"primaryKey\\": \\"id\\",\\n \\"fieldSchema\\": {\\n \\"key\\": \\"INT64\\"\\n },\\n \\"vectorIndex\\": [\\n {\\n \\"indexName\\": \\"test_odps\\",\\n \\"vectorField\\": \\"source_image_vector\\",\\n \\"sparseIndexField\\": \\"sparse_indices\\",\\n \\"sparseValueField\\": \\"sparse_values\\",\\n \\"dimension\\": \\"128\\",\\n \\"vectorIndexType\\": \\"Qc\\",\\n \\"distanceType\\": \\"SquaredEuclidean\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"advanceParams\\": {\\n \\"buildIndexParams\\": \\"{\\\\n \\\\\\"proxima.qc.builder.quantizer_class\\\\\\": \\\\\\"Int8QuantizerConverter\\\\\\",\\\\n \\\\\\"proxima.qc.builder.quantize_by_centroid\\\\\\": true,\\\\n \\\\\\"proxima.qc.builder.optimizer_class\\\\\\": \\\\\\"BruteForceBuilder\\\\\\",\\\\n \\\\\\"proxima.qc.builder.thread_count\\\\\\": 10,\\\\n \\\\\\"proxima.qc.builder.optimizer_params\\\\\\": {\\\\n \\\\\\"proxima.linear.builder.column_major_order\\\\\\": true\\\\n },\\\\n \\\\\\"proxima.qc.builder.store_original_features\\\\\\": false,\\\\n \\\\\\"proxima.qc.builder.train_sample_count\\\\\\": 3000000,\\\\n \\\\\\"proxima.qc.builder.train_sample_ratio\\\\\\": 0.5\\\\n}\\",\\n \\"searchIndexParams\\": \\"{\\\\\\"proxima.qc.searcher.scan_ratio\\\\\\":0.01}\\",\\n \\"minScanDocCnt\\": \\"20000\\",\\n \\"linearBuildThreshold\\": \\"5000\\"\\n }\\n }\\n ],\\n \\"dataProcessConfig\\": [\\n {\\n \\"operator\\": \\"vectorize\\",\\n \\"dstField\\": \\"source_image_vector\\",\\n \\"srcField\\": \\"source_image\\",\\n \\"params\\": {\\n \\"vectorModel\\": \\"clip\\",\\n \\"vectorModal\\": \\"image\\",\\n \\"srcFieldConfig\\": {\\n \\"ossEndpoint\\": \\"oss-cn-hangzhou-internal.aliyuncs.com\\\\n\\",\\n \\"ossBucket\\": \\"test\\",\\n \\"uid\\": \\"uid\\"\\n }\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '获取索引表信息',
- 'description' => '### 方法'."\n"
+ 'title' => '发布索引版本',
+ 'summary' => '发布索引版本。',
+ 'description' => '## 方法'."\n"
."\n"
- .'```java'."\n"
- .'GET'."\n"
+ .'```'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
- .'### URI'."\n"
+ .'## URI'."\n"
."\n"
- .'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
- .'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
+ .'```'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/publish'."\n"
+ .'```'."\n"
+ ."\n",
+ 'requestParamsDescription' => "\n"
+ ."\n"
+ .'## 请求示例'."\n"
."\n"
.''."\n"
."\n"
- .'```java'."\n"
- .'GET /openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
- .'```',
- ],
- 'ListTables' => [
- 'summary' => '获取索引列表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tables',
- 'methods' => [
- 'get',
+ .'```'."\n"
+ .'POST /openapi/ha3/instances/ose-test1/indexes/my_index/actions/publish'."\n"
+ .'```'."\n"
+ ."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "desc": "new version",'."\n"
+ .''."\n"
+ .' "dataSource": "test1",'."\n"
+ .''."\n"
+ .' "domain": "test_domain"'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n\n"
+ ."\n\n"
+ ."\n\n"
+ ."\n\n",
+ 'responseParamsDescription' => '## 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",'."\n"
+ .''."\n"
+ .' "result": []'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishIndexVersion'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:PublishIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'PushDocuments' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/actions/bulk',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '218776',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'newMode',
- 'in' => 'query',
+ 'name' => 'dataSourceName',
+ 'in' => 'path',
+ 'schema' => ['description' => '数据源名称', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****_ecom_table_test'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '是否为新版本控制台页面',
- 'type' => 'boolean',
+ 'description' => '请求体参数',
+ 'type' => 'array',
+ 'items' => ['description' => '请求体', 'type' => 'any', 'required' => false, 'example' => '[{"cmd":"add","fields":{"id":"1","vt":[0.1]}}]'],
'required' => false,
- 'example' => 'true',
- 'default' => 'true',
],
],
+ [
+ 'name' => 'pkField',
+ 'in' => 'query',
+ 'schema' => ['description' => '主键字段', 'type' => 'string', 'required' => false, 'example' => 'id'],
+ ],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '返回结果',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '索引名',
- 'description' => '索引名',
- 'type' => 'string',
- 'example' => 'es_test_1b',
- ],
- 'indexStatus' => [
- 'title' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)',
- 'description' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)',
- 'type' => 'string',
- 'example' => 'IN_USE',
- ],
- 'status' => [
- 'title' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)',
- 'description' => '索引表状态 (NEW, PUBLISH, IN_USE: 召回引擎版创建成功后为正常状态, NOT_USE, STOP_USE, RESTORE_USE, FAIL: 向量检索版新版本首次创建索引失败状态)',
- 'type' => 'string',
- 'example' => 'IN_USE',
- ],
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": [\\n {\\n \\"name\\": \\"es_test_1b\\",\\n \\"indexStatus\\": \\"IN_USE\\",\\n \\"status\\": \\"IN_USE\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取索引列表',
+ 'title' => '推送数据',
+ 'summary' => '推送数据。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tables'."\n"
- .'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
- .'GET /openapi/ha3/instances/{instanceId}/tables'."\n"
+ .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/actions/bulk'."\n"
.'```',
- ],
- 'DeleteTable' => [
- 'summary' => '删除索引表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:PushDocuments',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'RecoverIndex' => [
+ 'summary' => '从索引中恢复数据。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/recover-index',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -19247,31 +13940,30 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '218775',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '144320',
+ 'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'tableName',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '索引表名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_summary',
+ 'description' => 'body参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'dataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****_test_api'],
+ 'indexName' => ['title' => '索引名称', 'description' => '索引名称', 'type' => 'string', 'required' => false, 'example' => 'test_api'],
+ 'generation' => ['title' => 'generation', 'description' => '索引全量版本', 'type' => 'string', 'required' => false, 'example' => '1653018575'],
+ 'buildDeployId' => ['title' => 'buildDeployId', 'description' => '数据源离线部署id', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '277'],
+ ],
+ 'required' => false,
],
],
],
@@ -19280,54 +13972,72 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '删除索引表',
+ 'title' => '从索引中恢复数据',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'DELETE'."\n"
+ .'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/recover-index'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
+ .'`POST /openapi/ha3/instances/ha3_instances_id/recover-index`'."\n"
."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
- .'DELETE /openapi/ha3/instances/{instanceId}/tables/{tableName}'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "generation": "1653018575",'."\n"
+ .' "dataSourceName":"test_yyds_data1",'."\n"
+ .' "buildDeployId":277,'."\n"
+ .' "indexName":"index_1"'."\n"
+ .'}'."\n"
.'```',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .' "result": []'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecoverIndex'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:RecoverIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
'Reindex' => [
'summary' => '重建索引。',
'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}/reindex',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -19338,30 +14048,18 @@
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '218777',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchD5N27K',
- ],
+ 'abilityTreeNodes' => ['FEATUREopensearchD5N27K'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'tableName',
'in' => 'path',
- 'schema' => [
- 'description' => '索引表名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_summary',
- ],
+ 'schema' => ['description' => '索引表名称', 'type' => 'string', 'required' => true, 'example' => 'test_summary'],
],
[
'name' => 'body',
@@ -19371,25 +14069,9 @@
'description' => '一个JSON格式的字符串,完整JSON字符串信息,具体内容参见以下详细信息。',
'type' => 'object',
'properties' => [
- 'dataTimeSec' => [
- 'description' => 'int类型,秒级时间戳,数据源为API推送时必填',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1640867288',
- ],
- 'partition' => [
- 'description' => '数据源为odps时必填',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ds=20220713',
- ],
- 'ossDataPath' => [
- 'description' => 'oss文件路径',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss://opensearch',
- ],
+ 'dataTimeSec' => ['description' => 'int类型,秒级时间戳,数据源为API推送时必填', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1640867288'],
+ 'partition' => ['description' => '数据源为odps时必填', 'type' => 'string', 'required' => false, 'example' => 'ds=20220713'],
+ 'ossDataPath' => ['description' => 'oss文件路径', 'type' => 'string', 'required' => false, 'example' => 'oss://opensearch'],
],
'required' => false,
],
@@ -19400,24 +14082,14 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
'title' => '重建索引',
'description' => '### 方法'."\n"
."\n"
@@ -19437,17 +14109,30 @@
.'```java'."\n"
.'POST /openapi/ha3/instances/{instanceId}/tables/{tableName}/reindex'."\n"
.'```',
- ],
- 'ListTableGenerations' => [
- 'summary' => '获取索引generation列表。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:Reindex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'RemoveCluster' => [
+ 'summary' => '删除某一集群。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/clusters/{clusterName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -19455,143 +14140,130 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '218778',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例id。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'tableName',
+ 'name' => 'clusterName',
'in' => 'path',
- 'schema' => [
- 'description' => '索引表名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_summary',
- ],
+ 'schema' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'required' => false, 'example' => 'bj_vpc_domain_2'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'F6E3D968-529C-5C40-AFDD-133A8B8FD930',
- ],
- 'result' => [
- 'title' => 'List',
- 'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'generationId' => [
- 'description' => '索引全量版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1708674867',
- ],
- ],
- ],
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
+ 'result' => ['title' => '结果', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F6E3D968-529C-5C40-AFDD-133A8B8FD930\\",\\n \\"result\\": [\\n {\\n \\"generationId\\": 1708674867\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取索引generation列表'."\0",
+ 'title' => '删除某一集群',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions'."\n"
- .'```',
+ .'/openapi/ha3/instances/{instanceId}/clusters/{clusterName}'."\n"
+ .'```'."\n",
'requestParamsDescription' => '### 请求示例'."\n"
."\n"
+ .'```java'."\n"
+ .''."\n"
+ .'DELETE /openapi/ha3/instances/ha3_instance_name/clusters/my_cluster_name'."\n"
+ .'```',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
.''."\n"
."\n"
.'```java'."\n"
- .'GET /v2/instances/{instanceId}/tables/{tableName}/index_versions'."\n"
- .'```',
- ],
- 'GetTableGeneration' => [
- 'summary' => '根据generationId获取某个索引版本状态。',
- 'path' => '/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions/{generationId}',
- 'methods' => [
- 'get',
+ .'{'."\n"
+ .''."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .''."\n"
+ .' "result": []'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveCluster'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:RemoveCluster',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'RenameFolder' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}/name',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '218780',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '138809',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'tableName',
+ 'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'description' => '索引表名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_summary',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
- 'name' => 'generationId',
+ 'name' => 'folderId',
'in' => 'path',
+ 'schema' => ['description' => '文件夹id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '-1'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '索引全量版本',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1708674867',
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => '文件夹名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ 'required' => false,
],
],
],
@@ -19600,67 +14272,67 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => [
- 'title' => 'IndexGeneration',
- 'description' => '返回结果',
+ 'title' => 'NodeVO',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'generationId' => [
- 'description' => '历史回流generationId',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1708674867',
- ],
- 'status' => [
- 'title' => 'starting, building, ready, stopped, failed',
- 'description' => '索引状态starting, building, ready, stopped, failed',
- 'type' => 'string',
- 'example' => 'ready',
- ],
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '1719221186114'],
+ 'gmtModified' => ['description' => '修改时间。', 'type' => 'string', 'example' => '1719221186114'],
+ 'name' => ['description' => '文件名称', 'type' => 'string', 'example' => 'test'],
+ 'parent' => ['description' => '父层级id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'True'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'template'],
+ 'instanceId' => ['description' => '实例id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"generationId\\": 1708674867,\\n \\"status\\": \\"ready\\"\\n }\\n}","type":"json"}]',
- 'title' => '根据generationId获取某个索引版本状态'."\0\0",
+ 'title' => '修改目录名称',
+ 'summary' => '修改目录名称。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions/{generationId}'."\n"
- .'```',
- 'requestParamsDescription' => '### 请求示例'."\n"
- ."\n"
- .''."\n"
- ."\n"
- .'```java'."\n"
- .'GET /openapi/ha3/instances/{instanceId}/tables/{tableName}/index_versions/{generationId}'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}/name'."\n"
.'```',
- ],
- 'ListPostQueryResult' => [
- 'summary' => '召回引擎版使用POST请求获取搜索测试结果。',
- 'path' => '/openapi/ha3/instances/{instanceId}/query',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RenameFolder'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:RenameFolder',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Folder', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {\\n \\"id\\": 1,\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"test\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"template\\",\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
+ ],
+ 'StartIndex' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/startIndex',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -19669,47 +14341,20 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '205312',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchO9FNU6',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '187010',
+ 'abilityTreeNodes' => ['FEATUREopensearchJ3PXKB'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'type',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'sql: sql查询, ha3: ha3查询',
- 'description' => 'sql: sql查询, ha3: ha3查询',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha3',
- 'default' => 'sql',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求结构。',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{"assemblyQuery":"query=id:1&&cluster=general&&config=start:0,hit:10,format:json"}',
- ],
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
],
'responses' => [
@@ -19717,25 +14362,16 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
- 'result' => [
- 'title' => 'Object',
- 'description' => '返回结果。',
- 'type' => 'any',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
- 'title' => '召回引擎版使用POST请求获取搜索测试结果',
+ 'title' => '恢复使用索引',
+ 'summary' => '恢复使用索引。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -19745,19 +14381,31 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/query'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/startIndex'."\n"
.'```',
- ],
- 'ListRestQueryResult' => [
- 'summary' => '召回引擎版获取rest查询搜索测试结果。',
- 'path' => '/openapi/ha3/instances/{instanceId}/rest-query',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:StartIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'StopIndex' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/indexes/{indexName}/stopIndex',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -19766,50 +14414,20 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '171180',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchO9FNU6',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '187011',
+ 'abilityTreeNodes' => ['FEATUREopensearchJ3PXKB'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求结构。',
- 'type' => 'object',
- 'properties' => [
- 'indexName' => [
- 'title' => '索引表名',
- 'description' => '索引表名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'main_index',
- ],
- 'query' => [
- 'title' => 'rest查询语句',
- 'description' => 'rest查询语句',
- 'type' => 'object',
- 'required' => false,
- 'example' => 'query%3Drelation_id%3A%221151274675_2%22%26%26cluster%3Dgeneral%26%26config%3Dstart%3A0%2Chit%3A10%2Cformat%3Ajson',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'indexName',
+ 'in' => 'path',
+ 'schema' => ['description' => '索引名称', 'type' => 'string', 'required' => true, 'example' => 'test_api'],
],
],
'responses' => [
@@ -19817,25 +14435,16 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'F43E8AB4-419C-5F4C-90D6-615590DFAA3C',
- ],
- 'result' => [
- 'title' => 'Object',
- 'description' => '返回结果。',
- 'type' => 'any',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
+ 'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
+ 'description' => '',
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F43E8AB4-419C-5F4C-90D6-615590DFAA3C\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
- 'title' => '召回引擎版获取rest查询搜索测试结果',
+ 'title' => '停止使用索引',
+ 'summary' => '停止使用索引。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -19845,214 +14454,184 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/rest-query'."\n"
+ .'/openapi/ha3/instances/{instanceId}/indexes/{indexName}/stopIndex'."\n"
.'```',
- ],
- 'ListVectorQueryResult' => [
- 'summary' => '向量检索版获取向量查询搜索测试结果。',
- 'path' => '/openapi/ha3/instances/{instanceId}/vector-query',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:StopIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'StopTask' => [
+ 'summary' => '停止fsm任务。',
+ 'path' => '/openapi/ha3/instances/{instanceId}/stop-task/{fsmId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '194016',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchYR63E7',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'path',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'queryType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '查询类型:vector、primary_key、vector_text',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'primary_key',
- 'default' => 'vector',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'vectorQueryType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '向量查询类型:vector、image、text',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'image',
- 'default' => 'vector',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => 'body参数。',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{"tableName":"api","ids":["1"]}',
- ],
+ 'name' => 'fsmId',
+ 'in' => 'path',
+ 'schema' => ['description' => '已停止的设备id', 'type' => 'string', 'required' => true, 'example' => 'tisplus_opensearch@datasource_flow_fsm@1865410598556969-ha-cn-pl32rf0****_api2@bj_vpc_domain_1@null@MANUAL-ha-cn-pl32rf0****_api2@1649729867698@028315'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
- 'result' => [
- 'title' => 'Object',
- 'description' => '返回结果。',
- 'type' => 'any',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'FE03180A-0E29-5474-8A86-33F0683294A4'],
+ 'result' => ['title' => '索引信息', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": \\"{}\\"\\n}","type":"json"}]',
- 'title' => '向量检索版获取向量查询搜索测试结果',
+ 'title' => '停止fsm任务',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'POST'."\n"
+ .'PUT'."\n"
.'```'."\n"
- ."\n"
.'### URI'."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/stop-task/{fsmId}'."\n"
+ .'```',
+ 'requestParamsDescription' => '### 请求示例'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/vector-query'."\n"
+ .'PUT /openapi/ha3/instances/{instanceId}/stop-task/tisplus_opensearch@add_index_config@1062017779051424-ha-cn-0ju2i0e5z01_mx1228@null@index_11@null@1641282725526@607017'."\n"
.'```',
- ],
- 'PushDocuments' => [
- 'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/actions/bulk',
- 'methods' => [
- 'post',
+ 'responseParamsDescription' => '### 返回示例'."\n"
+ ."\n"
+ .'正确返回'."\n"
+ .''."\n"
+ ."\n"
+ .'```java'."\n"
+ .'{'."\n"
+ .''."\n"
+ .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
+ .''."\n"
+ .' "result": []'."\n"
+ .''."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopTask'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:StopTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FE03180A-0E29-5474-8A86-33F0683294A4\\",\\n \\"result\\": {}\\n}","type":"json"}]',
+ ],
+ 'TagResources' => [
+ 'path' => '/openapi/ha3/resource-tags',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '166280',
+ 'abilityTreeNodes' => ['FEATUREopensearchJB31XH'],
+ ],
'parameters' => [
[
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
- ],
- [
- 'name' => 'dataSourceName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '数据源名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****_ecom_table_test',
- ],
- ],
- [
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
- 'type' => 'array',
- 'items' => [
- 'description' => '请求体',
- 'type' => 'any',
- 'required' => false,
- 'example' => '[{"cmd":"add","fields":{"id":"1","vt":[0.1]}}]',
+ 'type' => 'object',
+ 'properties' => [
+ 'resourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'instance'],
+ 'resourceId' => [
+ 'title' => '资源ID,最多 50个子项',
+ 'description' => '资源ID,最多 50个子项',
+ 'type' => 'array',
+ 'items' => ['description' => '资源ID', 'type' => 'string', 'required' => false, 'example' => 'es-cn-i7m2u6o2*******'],
+ 'required' => true,
+ ],
+ 'tag' => [
+ 'title' => '对应新增标签列表,最多包含20个子项',
+ 'description' => '对应新增标签列表,最多包含20个子项',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => ['title' => '标签键', 'description' => '标签键', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
+ 'value' => ['title' => '标签值', 'description' => '标签值', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
],
'required' => false,
],
],
- [
- 'name' => 'pkField',
- 'in' => 'query',
- 'schema' => [
- 'description' => '主键字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'id',
- ],
- ],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'id of request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2AE63638-5420-56DC-BF59-37D8174039A0',
- ],
- 'result' => [
- 'title' => 'Map',
- 'description' => '返回结果。',
- 'type' => 'object',
- 'example' => '{}',
- ],
+ 'requestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
],
+ 'description' => '',
],
],
- 500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"2AE63638-5420-56DC-BF59-37D8174039A0\\",\\n \\"result\\": {}\\n}","type":"json"}]',
- 'title' => '推送数据',
- 'summary' => '推送数据。',
+ 'title' => '批量增加/更新标签',
+ 'summary' => '批量增加/更新标签。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
@@ -20062,212 +14641,230 @@
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/actions/bulk'."\n"
+ .'/openapi/ha3/resource-tags'."\n"
.'```',
- ],
- 'DescribeRegions' => [
- 'path' => '/openapi/ha3/regions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\"\\n}","type":"json"}]',
+ ],
+ 'UntagResources' => [
+ 'path' => '/openapi/ha3/resource-tags',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '180430',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch0AT3OG',
- 'FEATUREopensearchJB31XH',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '166296',
+ 'abilityTreeNodes' => ['FEATUREopensearchJB31XH'],
],
'parameters' => [
[
- 'name' => 'acceptLanguage',
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'instance'],
+ ],
+ [
+ 'name' => 'resourceId',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '指定返回的语言,默认值为zh-cn。',
- 'type' => 'string',
+ 'title' => '资源ID,最多 50个子项',
+ 'description' => '资源ID,最多 50个子项',
+ 'type' => 'array',
+ 'items' => ['description' => '资源ID', 'type' => 'string', 'required' => false, 'example' => 'es-cn-i7m2u6o2*******'],
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'tagKey',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '对应标签键列表,最多包含20个子项',
+ 'description' => '对应标签键列表,最多包含20个子项',
+ 'type' => 'array',
+ 'items' => ['description' => '标签键', 'type' => 'string', 'required' => false, 'example' => 'opensearch'],
'required' => false,
- 'example' => 'zh-cn',
],
],
+ [
+ 'name' => 'all',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否全部删除,只针对tags为空时有效。取值范围: true false True False 默认是 false', 'description' => '是否全部删除,只针对tags为空时有效。取值范围: true false True False 默认是 false', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ ],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
- ],
- 'result' => [
- 'description' => '返回结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回详情结果',
- 'type' => 'object',
- 'properties' => [
- 'localName' => [
- 'description' => '区域名称',
- 'type' => 'string',
- 'example' => 'China (Hangzhou)',
- ],
- 'endpoint' => [
- 'description' => '接入点地址',
- 'type' => 'string',
- 'example' => 'endpoint',
- ],
- 'regionId' => [
- 'description' => '区域ID'."\n"
- .'cn-hangzhou 华东1(杭州)'."\n"
- .'cn-shanghai 华东2(上海)'."\n"
- .'cn-qingdao 华北1(青岛)'."\n"
- .'cn-beijing 华北2(北京)'."\n"
- .'cn-zhangjiakou 华北3(张家口)'."\n"
- .'cn-shenzhen 华南1(深圳)'."\n"
- .'ap-southeast-1 新加坡'."\n"
- .'cn-internal 内网中心'."\n"
- .'cn-zhangbei-in 内网张北'."\n"
- .'us-west-1-in 内网美国'."\n"
- .'cn-daily 日常'."\n"
- .'cn-test 联调'."\n"
- .'pre-hangzhou 预发杭州',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- ],
- ],
- ],
+ 'tequestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'."\n"],
],
+ 'description' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": [\\n {\\n \\"localName\\": \\"China (Hangzhou)\\",\\n \\"endpoint\\": \\"endpoint\\",\\n \\"regionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '获取云产品区域列表',
- 'summary' => '获取云产品区域列表。',
+ 'title' => '批量删除标签',
+ 'summary' => '批量删除标签。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/regions'."\n"
+ .'/openapi/ha3/resource-tags'."\n"
.'```',
- ],
- 'ListQueryResult' => [
- 'summary' => '获取搜索测试结果。',
- 'path' => '/openapi/ha3/instances/{instanceId}/query',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"tequestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\\\n\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateInstance' => [
+ 'summary' => '修改指定实例配置。',
+ 'path' => '/openapi/ha3/instances/{instanceId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => false, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'query',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'query 语句',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'query%3D1%26%26config%3Dstart%3A0%2Chit%3A10%2Cformat%3Ajson%26%26cluster%3Dgeneral',
- ],
- ],
- [
- 'name' => 'sql',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => 'SQL语句。',
- 'type' => 'string',
+ 'description' => '请求结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'components' => [
+ 'title' => '配额信息,与description不能同时更新。',
+ 'description' => '实例相关的规格信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例相关的规格信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['description' => '规格code,和售卖参数保持一致', 'type' => 'string', 'required' => false, 'example' => 'searcherdocsizesum'],
+ 'value' => ['description' => '值', 'type' => 'string', 'required' => false, 'example' => '200'],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'orderType' => ['title' => '订单类型,与description不能同时传递。', 'description' => 'UPGRAGE: 提升实例规格'."\n"
+ .'DOWNGRADE: 降低实例规格', 'type' => 'string', 'required' => false, 'example' => 'UPGRAGE'],
+ 'description' => ['title' => '更新实例描述信息,与components及orderType字段不能同时更新。', 'description' => '实例描述信息。', 'type' => 'string', 'required' => false, 'example' => 'Instance description'],
+ ],
'required' => false,
- 'example' => 'query%3Dselect%20max(content_id)%20from%20generation',
+ 'example' => '{}',
],
],
],
'responses' => [
200 => [
+ 'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '9E5BCFAA-98B3-51D0-9188-B1BC07589337',
+ 'result' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '实例描述', 'description' => '实例描述', 'type' => 'string', 'example' => 'Test instance'],
+ 'resourceGroupId' => ['title' => '资源组ID', 'description' => '资源组ID', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****'],
+ 'expiredTime' => ['title' => '到期时间', 'description' => '到期时间', 'type' => 'string', 'example' => '2019-01-06T16:00:00.0'],
+ 'commodityCode' => ['title' => '商品code', 'description' => '商品code', 'type' => 'string', 'example' => 'opensearch_ha3post_public_cn'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'READY'],
+ 'instanceId' => ['title' => '资源一级ID', 'description' => '资源一级ID', 'type' => 'string', 'example' => 'ha-cn-pl32rf0****'],
+ 'createTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2018-12-06T11:17:49.0'],
+ 'lockMode' => ['title' => '锁定状态', 'description' => '锁定状态', 'type' => 'string', 'example' => 'Unlock'],
+ 'chargeType' => ['title' => '付费类型', 'description' => '付费类型', 'type' => 'string', 'example' => 'POSTPAY'],
+ 'updateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2018-12-06T11:17:49.0'],
+ 'inDebt' => ['title' => '是否欠费', 'description' => '是否欠费', 'type' => 'boolean', 'example' => 'false'],
+ ],
],
+ 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '90D6B8F5-FE97-4509-9AAB-367836C51818'],
],
],
],
500 => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9E5BCFAA-98B3-51D0-9188-B1BC07589337\\"\\n}","type":"json"}]',
- 'title' => '获取搜索测试结果',
+ 'title' => '修改指定实例配置',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
- .'GET'."\n"
+ .'PUT'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
- .'/openapi/ha3/instances/{instanceId}/query'."\n"
+ .'/openapi/ha3/instances/{instanceId}'."\n"
.'```',
- 'responseParamsDescription' => '| 字段 | 类型 | 描述 |'."\n"
- .'| --------- | ------ | ------------------------------------------------------------ |'."\n"
- .'| requestId | String | 请求ID |'."\n"
- .'| result | String | 引擎返回结果 |',
'extraInfo' => '### 示例'."\n"
.'**请求示例**'."\n"
."\n"
- .'```'."\n"
- .'sql: GET /openapi/ha3/instances/ha3_instances_id/query?sql=query%3Dselect+%2A+from+mx_index1217'."\n"
+ .'`PUT /openapi/ha3/instances/ha-cn-xxxxxx`'."\n"
."\n"
- .'query: GET /openapi/ha3/instances/ha3_instances_id/query?query=config%3Dhit%3A4%2Cformat%3Ajson%2Cfetch_summary_type%3Apk%2Cqrs_chain%3Asearch%26%26query%3Did%3A8148508889615505646%26%26cluster%3Dgeneral'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "description": "the new description"'."\n"
+ .'}'."\n"
+ .'或'."\n"
+ .'{'."\n"
+ .' "resourceGroupId": "the new resourceGroupId"'."\n"
+ .'}'."\n"
.'```'."\n"
.'**返回示例**'."\n"
."\n"
@@ -20275,20 +14872,71 @@
."\n"
.'```'."\n"
.'{'."\n"
- .' "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",'."\n"
- .' "result": {}'."\n"
+ .' "result": {'."\n"
+ .' "instanceId": "ha-cn-pl32rf0****",'."\n"
+ .' "description": "测试实例",'."\n"
+ .' "status": "Running",'."\n"
+ .' "chargeType": "POSTPAY",'."\n"
+ .' "commodityCode": "opensearch_ha3post_public_cn",'."\n"
+ .' "createTime": "2018-12-06T11:17:49.0",'."\n"
+ .' "updateTime": "2018-12-06T11:17:49.0",'."\n"
+ .' "expiredTime": "2019-01-06T16:00:00.0",'."\n"
+ .' "resourceGroupId": "rg-abcdefg",'."\n"
+ .' "lockMode": "Unlock",'."\n"
+ .' "inDebt": false,'."\n"
+ .' "spec": {'."\n"
+ .' "password": "passwd",'."\n"
+ .' "searchResource": {'."\n"
+ .' "disk": 50,'."\n"
+ .' "mem": 8,'."\n"
+ .' "cpu": 2,'."\n"
+ .' "nodeCount": 2'."\n"
+ .' },'."\n"
+ .' "instanceName": "ha-cn-pl32rf0****",'."\n"
+ .' "vSwitchId": "vswitch_id_xxx",'."\n"
+ .' "vpcId": "vpc_id_xxx",'."\n"
+ .' "qrsResource": {'."\n"
+ .' "disk": 50,'."\n"
+ .' "mem": 8,'."\n"
+ .' "cpu": 2,'."\n"
+ .' "nodeCount": 2'."\n"
+ .' },'."\n"
+ .' "region": "cn-hangzhou",'."\n"
+ .' "userName": "user"'."\n"
+ .' },'."\n"
+ .' "status": {'."\n"
+ .' "phase": "PENDING",'."\n"
+ .' "instancePhase": "INIT",'."\n"
+ .' "createSuccess": false'."\n"
+ .' }'."\n"
+ .' },'."\n"
+ .' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818"'."\n"
.'}'."\n"
- .'```'."\n",
- ],
- 'DeleteModel' => [
- 'summary' => '删除模型。',
- 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
+ .'```'."\n"
+ .'详情可参考[响应结构](~~465311~~)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"description\\": \\"Test instance\\",\\n \\"resourceGroupId\\": \\"ha-cn-pl32rf0****\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.0\\",\\n \\"commodityCode\\": \\"opensearch_ha3post_public_cn\\",\\n \\"status\\": \\"READY\\",\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\",\\n \\"createTime\\": \\"2018-12-06T11:17:49.0\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"updateTime\\": \\"2018-12-06T11:17:49.0\\",\\n \\"inDebt\\": false\\n },\\n \\"requestId\\": \\"90D6B8F5-FE97-4509-9AAB-367836C51818\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateSqlInstanceContent' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/content',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -20297,69 +14945,109 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '139112',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'modelName',
+ 'name' => 'database',
'in' => 'path',
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
+ ],
+ [
+ 'name' => 'sqlInstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '5975'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => '模型的名称',
- 'description' => '模型的名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
+ 'description' => '请求体参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['description' => '内容', 'type' => 'string', 'required' => true, 'example' => 'select * from test'],
+ ],
+ 'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E45380E8-994A-5402-9806-F114B3295FCF'],
+ 'result' => [
+ 'title' => 'InstanceVersionVO',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '1719221186114'],
+ 'gmtModified' => ['description' => '修改时间。', 'type' => 'string', 'example' => '1719221186114'],
+ 'instanceId' => ['description' => '实例id。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'version' => ['description' => '版本号。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'comment' => ['description' => '备注', 'type' => 'string', 'example' => 'Confirm and Execute'],
+ 'relatedTemplateId' => ['description' => '模版id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'content' => ['description' => 'sql内容。', 'type' => 'string', 'example' => 'select * from test'],
+ 'kvpairs' => ['description' => 'kv包含的参数。', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'dynamicParams' => ['description' => '动态参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'templateParams' => ['description' => '模版参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'staticParams' => ['description' => '静态参数。', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'combineParams' => ['description' => '组合参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ ],
],
],
+ 'description' => '',
],
],
+ 500 => [],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\"\\n}","type":"json"}]',
- 'title' => '删除模型',
- ],
- 'ModifyModel' => [
- 'summary' => '修改模型详情,修改模型状态。',
- 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}',
- 'methods' => [
- 'put',
+ 'title' => '更新SQL实例内容',
+ 'summary' => '更新SQL实例内容。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'PUT'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/content'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSqlInstanceContent'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateSqlInstanceContent',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E45380E8-994A-5402-9806-F114B3295FCF\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"instanceId\\": 1,\\n \\"version\\": 1,\\n \\"comment\\": \\"Confirm and Execute\\",\\n \\"relatedTemplateId\\": 1,\\n \\"content\\": \\"select * from test\\",\\n \\"kvpairs\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"dynamicParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"templateParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"staticParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"combineParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateSqlInstanceName' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/name',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -20369,45 +15057,24 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'abilityTreeCode' => '139114',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'modelName',
+ 'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'title' => '模型名称',
- 'description' => '模型名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
- 'name' => 'dryRun',
- 'in' => 'query',
- 'schema' => [
- 'title' => '是否仅执行校验,默认为False。',
- 'description' => '是否仅执行校验,默认为False。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'name' => 'sqlInstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
],
[
'name' => 'body',
@@ -20417,152 +15084,7 @@
'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'content' => [
- 'description' => '模型详情',
- 'type' => 'object',
- 'properties' => [
- 'method' => [
- 'description' => '模型服务访问的http method, 支持PUT和POST',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'POST'."\n"
- ."\n",
- ],
- 'modelType' => [
- 'description' => '模型类别'."\n"
- .'- a. 文本向量化:text_embedding'."\n"
- .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
- .'- c. 图片向量化:image_embedding'."\n"
- .'- d. 图片内容解析:image_analyze',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'text_embedding',
- ],
- 'dimension' => [
- 'title' => '模型的维度',
- 'description' => '模型的维度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '128',
- ],
- 'request' => [
- 'description' => '模型请求体',
- 'type' => 'object',
- 'properties' => [
- 'header' => [
- 'description' => '访问模型服务的http header',
- 'type' => 'object',
- 'properties' => [
- 'Authorization' => [
- 'description' => '认证信息,格式:Bearer access_token',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Bearer OS-v0********6vvs'."\n",
- ],
- 'Content-Type' => [
- 'description' => 'HTTP请求内容类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'application/json'."\n",
- ],
- ],
- 'required' => false,
- ],
- 'parameters' => [
- 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'description' => '索引构建阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'description' => '输入类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'query'."\n",
- ],
- ],
- 'required' => false,
- ],
- 'search' => [
- 'description' => '查询阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'description' => '输入类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'document'."\n",
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'requestBody' => [
- 'description' => '请求Body体的模板字符串',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}'."\n",
- ],
- 'urlParams' => [
- 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'description' => '索引构建阶段的参数',
- 'type' => 'object',
- 'required' => false,
- 'example' => 'key: value'."\n"
- ."\n",
- ],
- 'search' => [
- 'description' => '查询阶段的参数',
- 'type' => 'object',
- 'required' => false,
- 'example' => 'key: value'."\n"
- ."\n",
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'response' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'object',
- 'properties' => [
- 'embeddings' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'string',
- 'required' => false,
- 'example' => '$.result.embeddings[*].embedding'."\n",
- ],
- ],
- 'required' => false,
- ],
- 'url' => [
- 'description' => '模型服务的访问地址',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001',
- ],
- ],
- 'required' => false,
- ],
- 'status' => [
- 'description' => '模型状态。'."\n"
- ."\n"
- .'- ok: 模型可用'."\n"
- .'- forbidden: 模型不可用',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ok',
- ],
+ 'name' => ['description' => 'sql实例名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
'required' => false,
],
@@ -20571,83 +15093,96 @@
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'D39EE0F1-D7EF-5F46-B781-6BF4185308B0',
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
+ 'result' => [
+ 'title' => 'NodeVO',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['description' => '主键id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'],
+ 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '1719220182844'],
+ 'gmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => '1719221186114'],
+ 'name' => ['description' => 'sql实例名称', 'type' => 'string', 'example' => 'general'],
+ 'parent' => ['description' => '父任务id。', 'type' => 'integer', 'format' => 'int64', 'example' => '-1'],
+ 'isDir' => ['description' => '是否为目录。取值:-true:是-false:否', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
+ 'type' => ['title' => 'table, instance, template, function', 'description' => 'table, instance, template, function', 'type' => 'string', 'example' => 'instance'],
+ 'instanceId' => ['description' => '实例id。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'templateId' => ['description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
],
],
+ 'description' => '',
],
],
+ 500 => [],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\"\\n}","type":"json"}]',
- 'title' => '修改模型',
- ],
- 'DebugModel' => [
- 'summary' => '调试模型。',
- 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}/actions/debug',
- 'methods' => [
- 'post',
+ 'title' => '更新SQL实例名称',
+ 'summary' => '更新SQL实例名称。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'PUT'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/name'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSqlInstanceName'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateSqlInstanceName',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'SqlInstance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\",\\n \\"result\\": {\\n \\"id\\": 22,\\n \\"gmtCreate\\": \\"1719220182844\\",\\n \\"gmtModified\\": \\"1719221186114\\",\\n \\"name\\": \\"general\\",\\n \\"parent\\": -1,\\n \\"isDir\\": 0,\\n \\"type\\": \\"instance\\",\\n \\"instanceId\\": 1,\\n \\"templateId\\": 1\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateSqlInstanceParams' => [
+ 'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/params',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '139113',
+ 'abilityTreeNodes' => ['FEATUREopensearch95VJR4'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ha-cn-pl32rf0****',
- ],
+ 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
- 'name' => 'modelName',
+ 'name' => 'database',
'in' => 'path',
- 'schema' => [
- 'title' => '模型的名称',
- 'description' => '模型的名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '数据库名称', 'type' => 'string', 'required' => true, 'example' => 'general'],
],
[
- 'name' => 'isOnline',
- 'in' => 'query',
- 'schema' => [
- 'title' => '是否在线查询,为true时使用search配置,false时使用build配置',
- 'description' => '是否在线查询,为true时使用search配置,false时使用build配置',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'name' => 'sqlInstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
],
[
'name' => 'body',
@@ -20657,12 +15192,75 @@
'description' => '请求体参数',
'type' => 'object',
'properties' => [
- 'input' => [
- 'title' => '模型输入',
- 'description' => '模型输入',
- 'type' => 'string',
+ 'kvpair' => [
+ 'description' => '实例kv配置',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'any', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}', 'description' => '实例kv配置'],
+ ],
+ 'dynamicParam' => [
+ 'description' => '动态参数',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'any', 'description' => '动态参数', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}'],
+ ],
+ 'staticParam' => [
+ 'description' => '静态参数',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'any', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}', 'description' => '静态参数'],
+ ],
+ 'params' => [
+ 'description' => '修改参数。',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'any', 'description' => '修改参数。', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}'],
+ ],
+ 'combineParam' => [
+ 'description' => '组合参数',
+ 'type' => 'object',
'required' => false,
- 'example' => 'test',
+ 'additionalProperties' => ['type' => 'any', 'example' => '{'."\n"
+ .' "trace": "INFO",'."\n"
+ .' "databaseName": "general",'."\n"
+ .' "iquan.plan.cache.enable": true,'."\n"
+ .' "iquan.plan.prepare.level": "jni.post.optimize",'."\n"
+ .' "urlencode_data": false,'."\n"
+ .' "formatType": "string",'."\n"
+ .' "timeout": 1000'."\n"
+ .'}', 'description' => '组合参数'],
],
],
'required' => false,
@@ -20672,994 +15270,1704 @@
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886',
+ 'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
+ 'result' => [
+ 'title' => 'InstanceVersionVO',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '1719221186114'],
+ 'gmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => '1719220182844'],
+ 'instanceId' => ['description' => '实例id。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'version' => ['description' => '版本号。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'comment' => ['description' => '备注。', 'type' => 'string', 'example' => 'Confirm and Execute'],
+ 'relatedTemplateId' => ['description' => '模版id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'content' => ['description' => '内容', 'type' => 'string', 'example' => 'select * from test'],
+ 'kvpairs' => ['description' => 'kv参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'dynamicParams' => ['description' => '动态参数。', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'templateParams' => ['description' => '模版参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'staticParams' => ['description' => '静态参数。', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ 'combineParams' => ['description' => '组合参数', 'type' => 'string', 'example' => '{\\"trace\\":\\"INFO\\",\\"databaseName\\":\\"general\\",\\"iquan.plan.cache.enable\\":true,\\"iquan.plan.prepare.level\\":\\"jni.post.optimize\\",\\"urlencode_data\\":false,\\"formatType\\":\\"string\\",\\"timeout\\":1000}'],
+ ],
],
],
+ 'description' => '',
],
],
+ 500 => [],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '更新SQL实例参数',
+ 'summary' => '更新SQL实例参数。',
+ 'description' => '### 方法'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'PUT'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### URI'."\n"
+ ."\n"
+ .'```java'."\n"
+ .'/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/params'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSqlInstanceParams'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E7B7D598-B080-5C8E-AA35-D43EC0D5F886\\"\\n}","type":"json"}]',
- 'title' => '模型调试',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateSqlInstanceParams',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"1719221186114\\",\\n \\"gmtModified\\": \\"1719220182844\\",\\n \\"instanceId\\": 1,\\n \\"version\\": 1,\\n \\"comment\\": \\"Confirm and Execute\\",\\n \\"relatedTemplateId\\": 1,\\n \\"content\\": \\"select * from test\\",\\n \\"kvpairs\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"dynamicParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"templateParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"staticParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\",\\n \\"combineParams\\": \\"{\\\\\\\\\\\\\\"trace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"INFO\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"databaseName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"general\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"iquan.plan.cache.enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"iquan.plan.prepare.level\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"jni.post.optimize\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"urlencode_data\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"formatType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"string\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeout\\\\\\\\\\\\\\":1000}\\"\\n }\\n}","type":"json"}]',
],
- 'GetModel' => [
- 'summary' => '通过实例ID和模型名称查询特定模型的详细配置信息。',
- 'description' => '## 请求说明'."\n"
- .'- 该API用于获取指定实例下的特定模型的详细信息,包括模型类型、URL、状态等。'."\n"
- .'- 确保提供的`instanceId`和`modelName`是有效的,否则可能返回错误或找不到资源。'."\n"
- .'- 返回的数据结构中包含了模型的内容(如请求头、参数等)以及创建和更新时间,有助于了解模型的具体配置及其最新状态。',
- 'path' => '/openapi/ha3/instances/{instanceId}/models/{modelName}',
- 'methods' => [
- 'get',
+ ],
+ 'endpoints' => [
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchengine.ap-southeast-1.aliyuncs.com', 'endpoint' => 'searchengine.ap-southeast-1.aliyuncs.com', 'vpc' => 'searchengine-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchengine.cn-beijing.aliyuncs.com', 'endpoint' => 'searchengine.cn-beijing.aliyuncs.com', 'vpc' => 'searchengine-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchengine.cn-hangzhou.aliyuncs.com', 'endpoint' => 'searchengine.cn-hangzhou.aliyuncs.com', 'vpc' => 'searchengine-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchengine.cn-shanghai.aliyuncs.com', 'endpoint' => 'searchengine.cn-shanghai.aliyuncs.com', 'vpc' => 'searchengine-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchengine.cn-shenzhen.aliyuncs.com', 'endpoint' => 'searchengine.cn-shenzhen.aliyuncs.com', 'vpc' => 'searchengine-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchengine.cn-hongkong.aliyuncs.com', 'endpoint' => 'searchengine.cn-hongkong.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchengine.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'searchengine.cn-zhangjiakou.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'searchengine.eu-central-1.aliyuncs.com', 'endpoint' => 'searchengine.eu-central-1.aliyuncs.com', 'vpc' => ''],
+ ],
+ 'errorCodes' => [
+ ['code' => 'ClusterConflict', 'message' => 'cluster conflict', 'http_code' => 400, 'description' => '集群冲突'],
+ ['code' => 'ClusterInitializing', 'message' => 'cluster initializing', 'http_code' => 400, 'description' => '集群初始化'],
+ ['code' => 'ClusterMinCount', 'message' => 'cluster min count', 'http_code' => 400, 'description' => '集群最小计数'],
+ ['code' => 'ClusterNoIndex', 'message' => 'cluster has not index', 'http_code' => 400, 'description' => '集群未加载任何索引'],
+ ['code' => 'ClusterNotExist', 'message' => 'cluster not exist', 'http_code' => 400, 'description' => '集群不存在'],
+ ['code' => 'ConfigInUse', 'message' => 'config in use', 'http_code' => 400, 'description' => '正在使用的配置'],
+ ['code' => 'ConfigPublishTaskRunning', 'message' => 'config publish task running', 'http_code' => 400, 'description' => '配置发布任务正在运行'],
+ ['code' => 'DataNodeNotEnough', 'message' => 'data node not enough', 'http_code' => 400, 'description' => '数据节点不足'],
+ ['code' => 'DataSourceConflict', 'message' => 'data source conflict', 'http_code' => 400, 'description' => '数据源冲突'],
+ ['code' => 'DataSourceCreating', 'message' => 'data source creating', 'http_code' => 400, 'description' => '数据源创建流程还未执行完'],
+ ['code' => 'DataSourceExceed', 'message' => 'data source exceed', 'http_code' => 400, 'description' => '数据源超出'],
+ ['code' => 'DataSourceHasExist', 'message' => 'data source has exist', 'http_code' => 400, 'description' => '数据源已存在'],
+ ['code' => 'DataSourceIndexCreating', 'message' => 'data source index creating', 'http_code' => 400, 'description' => '数据源新增index流程未结束'],
+ ['code' => 'DataSourceInfoInvalid', 'message' => 'data source info invalid', 'http_code' => 400, 'description' => '数据源信息无效'],
+ ['code' => 'DataSourceNameInvalid', 'message' => 'data source name invalid', 'http_code' => 400, 'description' => '数据源名称无效'],
+ ['code' => 'DataSourceNotExist', 'message' => 'data source not exist', 'http_code' => 400, 'description' => '数据源不存在'],
+ ['code' => 'DataSourcePartitionNotExist', 'message' => 'data source partition not exist', 'http_code' => 400, 'description' => '数据源分区不存在'],
+ ['code' => 'FetchTisBackendError', 'message' => 'fetch tis backend error', 'http_code' => 400, 'description' => '获取tis后端错误'],
+ ['code' => 'FetchTisNotExistError', 'message' => 'fetch tis not exist error', 'http_code' => 400, 'description' => '提取tis不存在错误'],
+ ['code' => 'FileNotExist', 'message' => 'file not exist', 'http_code' => 400, 'description' => '文件不存在'],
+ ['code' => 'ha3.DownGradeForbiddenLessNode', 'message' => 'down grade forbidden less node', 'http_code' => 400, 'description' => '降级禁止无节点'],
+ ['code' => 'ha3.DownGradeForbiddenWhenBuildIndex', 'message' => 'down grade forbidden when build index', 'http_code' => 400, 'description' => '建立索引时禁止降级'],
+ ['code' => 'ha3.DownGradeForbiddenWhenUpdating', 'message' => 'down grade forbidden when updating', 'http_code' => 400, 'description' => '更新时禁止降级'],
+ ['code' => 'ha3.DownGradeInvalidSpec', 'message' => 'down grade invalid spec', 'http_code' => 400, 'description' => '降级无效规格'],
+ ['code' => 'ha3.InstanceExit', 'message' => 'Instance exit', 'http_code' => 400, 'description' => '实例不存在'],
+ ['code' => 'ha3.InstanceNotExit', 'message' => 'instance not exit', 'http_code' => 400, 'description' => '实例不存在'],
+ ['code' => 'ha3.InvalidContainerSpec', 'message' => 'Invalid containerSpec', 'http_code' => 400, 'description' => '无效的配置'],
+ ['code' => 'ha3.InvalidOrderType', 'message' => 'invalid order type', 'http_code' => 400, 'description' => '无效的订单类型'],
+ ['code' => 'ha3.UpgradeInvalidSpec', 'message' => 'upgrade spec is invalid', 'http_code' => 400, 'description' => '升配规格无效'],
+ ['code' => 'ha3.VpcEmpty', 'message' => 'vpc Empty', 'http_code' => 400, 'description' => 'vpc 为空'],
+ ['code' => 'IndexAlreadyExist', 'message' => 'index alredy exist', 'http_code' => 400, 'description' => '索引已存在'],
+ ['code' => 'IndexExceed', 'message' => 'index exceed', 'http_code' => 400, 'description' => '数据源最大索引数超过'],
+ ['code' => 'IndexInUse', 'message' => 'index in use', 'http_code' => 400, 'description' => '使用中的索引'],
+ ['code' => 'IndexSchemaInvalid', 'message' => 'index schema invalid', 'http_code' => 400, 'description' => '索引架构无效'],
+ ['code' => 'InstanceInit', 'message' => 'instance is initing', 'http_code' => 400, 'description' => '实例创建中'],
+ ['code' => 'InstanceNotExist', 'message' => 'instance not exit', 'http_code' => 400, 'description' => '实例不存在'],
+ ['code' => 'InternalServerError', 'message' => 'internal server error', 'http_code' => 400, 'description' => '内部服务器错误'],
+ ['code' => 'InvalidDataSourceType', 'message' => 'data source type is invalid', 'http_code' => 400, 'description' => '数据源类型无效'],
+ ['code' => 'InvalidOrder', 'message' => 'invalid order', 'http_code' => 400, 'description' => '无效订单'],
+ ['code' => 'InvalidParameter', 'message' => 'invalid parameter', 'http_code' => 400, 'description' => '无效参数'],
+ ['code' => 'InvalidParameter', 'message' => 'invalid parameter.', 'http_code' => 400, 'description' => '无效参数'],
+ ['code' => 'InvalidRequestParameter', 'message' => 'invalid request parameter', 'http_code' => 400, 'description' => '无效的请求参数'],
+ ['code' => 'LackDataNode', 'message' => 'lack data node', 'http_code' => 400, 'description' => '数据节点资源不够'],
+ ['code' => 'LackQueryNode', 'message' => 'lack query node', 'http_code' => 400, 'description' => '查询节点资源不够'],
+ ['code' => 'NodeNotExist', 'message' => 'node not exist', 'http_code' => 400, 'description' => '节点不存在'],
+ ['code' => 'NoExistCluster', 'message' => 'no exist cluster', 'http_code' => 400, 'description' => '不存在集群'],
+ ['code' => 'QueryNodeNotExist', 'message' => 'query node not exist', 'http_code' => 400, 'description' => '查询节点不存在'],
+ ['code' => 'QuerySearchEngineError', 'message' => 'query search engine error', 'http_code' => 400, 'description' => '查询搜索引擎错误'],
+ ['code' => 'UserNotExist', 'message' => 'user not exist', 'http_code' => 400, 'description' => 'user 不存在'],
+ ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndexOnlineStrategy'],
+ ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSqlInstanceParams'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataSourceTasks'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFolder'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSqlInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyPausePolicy'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSqlInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAdvanceConfigDir'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetNodeConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListClusterNames'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyClusterOfflineConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDataSourceDeploy'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyOnlineConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIndexOnlineStrategy'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQueryResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSqlInstanceContent'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndex'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDataSourceDeploy'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAdvanceConfigs'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetClusterRunTimeInfo'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeployGraph'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListOnlineConfigs'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListClusterTasks'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListClusters'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRestQueryResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataSourceSchemas'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExecuteSqlInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFile'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDataSource'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAdvanceConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveCluster'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndexVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFolder'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAdvanceConfigFile'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSqlInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RenameFolder'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecoverIndex'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCluster'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIndexPartition'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyPublicUrlIpList'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDataSource'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIndexVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAdvanceConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFile'],
+ ['threshold' => '3', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDatabases'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndex'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInstances'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPausePolicys'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSqlInstanceName'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishIndexVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyClusterOnlineConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CloneSqlInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BuildIndex'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAdvanceConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetInstance'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIndexes'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInstanceSpecs'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDatabaseSchema'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePublicUrl'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDataSource'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIndex'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopTask'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyNodeConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDateSourceGenerations'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndexVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePublicUrl'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyClusterDesc'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyAdvanceConfigFile'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishAdvanceConfig'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ForceSwitch'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'SearchEngine',
+ 'productName' => '智能开放搜索 OpenSearch',
+ 'ramCodes' => ['searchengine'],
+ 'ramLevel' => '资源级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'GetDataSourceDeploy',
+ 'description' => '获取数据源部署信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDataSourceDeploy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'CreateConfigFile',
+ 'description' => '高级配置创建文件',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'CreateFolder',
+ 'description' => '创建目录',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateFolder',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Folder', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'UpdateSqlInstanceContent',
+ 'description' => '更新SQL实例内容',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateSqlInstanceContent',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyPassword',
+ 'description' => '修改实例的密码',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyPassword',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetNodeConfig',
+ 'description' => '获取节点配置信息',
'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetNodeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ [
+ 'apiName' => 'DeleteModel',
+ 'description' => '删除模型',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'modelName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '模型名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
+ ],
+ [
+ 'apiName' => 'ListInstanceSpecs',
+ 'description' => '获取集群可选择的规格列表',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListInstanceSpecs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
],
- 'responses' => [
- 200 => [
- 'description' => '查询成功',
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => '请求ID'."\n",
- 'description' => '请求ID'."\n",
- 'type' => 'string',
- 'example' => '38b079f1-7846-4226-8c90-3e2644b5c52b',
- ],
- 'result' => [
- 'title' => '模型配置信息',
- 'description' => '模型配置信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '模型名称',
- 'description' => '模型名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'type' => [
- 'title' => '模型类型。'."\n"
- .' * text_embedding: 文本嵌入模型',
- 'description' => '模型类别'."\n"
- .'- a. 文本向量化:text_embedding'."\n"
- .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
- .'- c. 图片向量化:image_embedding'."\n"
- .'- d. 图片内容解析:image_analyze',
- 'type' => 'string',
- 'enumValueTitles' => [
- 'text_embedding' => '文本向量化',
- 'image_embedding' => '图片向量化',
- 'image_analyze' => '图片内容解析',
- 'text_sparse_embedding' => '文本稀疏向量化',
- ],
- 'example' => 'text_embedding',
- 'enum' => [
- 'text_embedding',
- ],
- ],
- 'url' => [
- 'title' => '模型访问URL',
- 'description' => '模型访问URL',
- 'type' => 'string',
- 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001',
- ],
- 'status' => [
- 'title' => '模型状态。'."\n"
- .' * ok: 模型正常'."\n"
- .' * error: 模型异常',
- 'description' => '模型状态。'."\n"
- .' * ok: 模型正常'."\n"
- .' * error: 模型异常',
- 'type' => 'string',
- 'example' => 'ok',
- 'enum' => [
- 'ok',
- 'error',
- ],
- ],
- 'dimension' => [
- 'title' => '模型的维度',
- 'description' => '模型的维度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '128',
- ],
- 'content' => [
- 'title' => '模型配置信息',
- 'description' => '模型配置信息',
- 'type' => 'object',
- 'properties' => [
- 'modelName' => [
- 'title' => '模型名称',
- 'description' => '模型名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'modelType' => [
- 'title' => '模型类型。'."\n"
- .' * text_embedding: 文本嵌入模型',
- 'description' => '模型类别'."\n"
- .'- a. 文本向量化:text_embedding'."\n"
- .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
- .'- c. 图片向量化:image_embedding'."\n"
- .'- d. 图片内容解析:image_analyze',
- 'type' => 'string',
- 'enumValueTitles' => [],
- 'example' => 'text_embedding',
- 'enum' => [
- 'text_embedding',
- ],
- ],
- 'url' => [
- 'title' => '模型访问URL',
- 'description' => '模型服务的访问地址',
- 'type' => 'string',
- 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001',
- ],
- 'method' => [
- 'title' => '请求方法',
- 'description' => '模型服务访问的http method, 支持PUT和POST',
- 'type' => 'string',
- 'example' => 'POST',
- ],
- 'request' => [
- 'title' => '请求配置信息',
- 'description' => '请求配置信息',
- 'type' => 'object',
- 'properties' => [
- 'header' => [
- 'title' => 'HTTP请求头',
- 'description' => 'HTTP请求头',
- 'type' => 'object',
- 'properties' => [
- 'Authorization' => [
- 'title' => '授权令牌',
- 'description' => '认证信息,格式:Bearer access_token',
- 'type' => 'string',
- 'example' => 'Bearer OS-v0********6vvs'."\n",
- ],
- 'Content-Type' => [
- 'title' => '内容类型',
- 'description' => 'HTTP请求内容类型。',
- 'type' => 'string',
- 'example' => 'application/json'."\n",
- ],
- ],
- ],
- 'urlParams' => [
- 'title' => 'URL参数',
- 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'description' => '构建索引时传递的参数',
- 'type' => 'object',
- 'example' => 'key: value'."\n",
- ],
- 'search' => [
- 'description' => '查询时传递的参数',
- 'type' => 'object',
- 'example' => 'key: value',
- ],
- ],
- ],
- 'requestBody' => [
- 'title' => '请求体模板',
- 'description' => '请求Body体的模板字符串',
- 'type' => 'string',
- 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}'."\n",
- ],
- 'parameters' => [
- 'title' => '请求参数',
- 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'title' => '构建时的请求参数',
- 'description' => '索引构建阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'title' => '输入类型。'."\n"
- .' * document: 文档',
- 'description' => '输入类型',
- 'type' => 'string',
- 'example' => 'query'."\n",
- 'enum' => [
- 'document',
- ],
- ],
- ],
- ],
- 'search' => [
- 'title' => '搜索时的请求参数',
- 'description' => '查询阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'title' => '输入类型。'."\n"
- .' * query: 查询',
- 'description' => '输入类型',
- 'type' => 'string',
- 'example' => 'document'."\n",
- 'enum' => [
- 'query',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'response' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'object',
- 'properties' => [
- 'embeddings' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'string',
- 'example' => '$.result.embeddings[*].embedding'."\n",
- ],
- ],
- ],
- ],
- ],
- 'createTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'updateTime' => [
- 'title' => '修改时间',
- 'description' => '修改时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'ListLogs',
+ 'description' => '查询实例日志',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListLogs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ModifySearcherReplica',
+ 'description' => '修改数据节点副本分片数',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifySearcherReplica',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"38b079f1-7846-4226-8c90-3e2644b5c52b\\",\\n \\"result\\": {\\n \\"name\\": \\"test\\",\\n \\"type\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"status\\": \\"ok\\",\\n \\"dimension\\": 128,\\n \\"content\\": {\\n \\"modelName\\": \\"test\\",\\n \\"modelType\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"method\\": \\"POST\\",\\n \\"request\\": {\\n \\"header\\": {\\n \\"Authorization\\": \\"Bearer OS-v0********6vvs\\\\n\\",\\n \\"Content-Type\\": \\"application/json\\\\n\\"\\n },\\n \\"urlParams\\": {\\n \\"build\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"search\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"requestBody\\": \\"{\\\\\\\\\\\\\\"input\\\\\\\\\\\\\\": [\\\\\\\\\\\\\\"%{input}\\\\\\\\\\\\\\"], \\\\\\\\\\\\\\"input_type\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"%{input_type}\\\\\\\\\\\\\\"}\\\\n\\",\\n \\"parameters\\": {\\n \\"build\\": {\\n \\"input_type\\": \\"query\\\\n\\"\\n },\\n \\"search\\": {\\n \\"input_type\\": \\"document\\\\n\\"\\n }\\n }\\n },\\n \\"response\\": {\\n \\"embeddings\\": \\"$.result.embeddings[*].embedding\\\\n\\"\\n }\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取模型详细信息',
- ],
- 'ListModels' => [
- 'summary' => '通过实例ID查询指定条件下的模型列表。',
- 'description' => '## 请求说明'."\n"
- .'本API用于从指定实例中获取模型列表,支持通过模型名称、类型以及分页参数进行筛选。请求时需提供实例ID作为路径参数,其他筛选条件为可选的查询参数。',
- 'path' => '/openapi/ha3/instances/{instanceId}/models',
- 'methods' => [
- 'get',
+ [
+ 'apiName' => 'ForceSwitch',
+ 'description' => '强制切换',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ForceSwitch',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'ListDateSourceGenerations',
+ 'description' => '获取数据源的历史回流信息',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDateSourceGenerations',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'DeleteAdvanceConfig',
+ 'description' => '删除高级配置的详情',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'ListAdvanceConfigs',
+ 'description' => '获取高级配置列表',
'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListAdvanceConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '实例ID'."\n",
- 'description' => '实例ID'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-test',
+ [
+ 'apiName' => 'GetAdvanceConfigFile',
+ 'description' => '获取词典信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetAdvanceConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'name',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模型名称'."\n",
- 'description' => '模型名称'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test1',
+ ],
+ [
+ 'apiName' => 'DeleteTable',
+ 'description' => '删除索引表',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'type',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模型类别'."\n",
- 'description' => '模型类别'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'text_embedding',
+ ],
+ [
+ 'apiName' => 'ModifyDataSourceDeploy',
+ 'description' => '修改数据源部署信息',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyDataSourceDeploy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
- [
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'schema' => [
- 'title' => '页数,默认为1'."\n",
- 'description' => '页数,默认为1'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ ],
+ [
+ 'apiName' => 'ModifyAlias',
+ 'description' => '修改表别名',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'pageSize',
- 'in' => 'query',
- 'schema' => [
- 'title' => '每页显示条数,默认为10'."\n",
- 'description' => '每页显示条数,默认为10'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
+ ],
+ [
+ 'apiName' => 'DeleteConfigDir',
+ 'description' => '删除高级配置目录',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteConfigDir',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'responses' => [
- 200 => [
- 'description' => '查询成功',
- 'schema' => [
- 'title' => '返回参数包括请求ID和模型列表,其中模型列表中的每个元素包含模型的详细信息如名称、类型、URL、状态等。'."\n",
- 'description' => '返回参数包括请求ID和模型列表,其中模型列表中的每个元素包含模型的详细信息如名称、类型、URL、状态等。'."\n",
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => '请求ID'."\n",
- 'description' => '请求ID'."\n",
- 'type' => 'string',
- 'example' => '38b079f1-7846-4226-8c90-3e2644b5c52b',
- ],
- 'totalCount' => [
- 'title' => '总数'."\n",
- 'description' => '总数'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '14',
- ],
- 'result' => [
- 'title' => '模型列表参考:Model'."\n",
- 'description' => '模型列表参考:Model'."\n",
- 'type' => 'array',
- 'items' => [
- 'title' => '模型信息',
- 'description' => '模型信息',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '模型名称',
- 'description' => '模型名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'type' => [
- 'title' => '模型类别',
- 'description' => '模型类别'."\n"
- ."\n"
- .'- a. 文本向量化:text_embedding'."\n"
- .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
- .'- c. 图片向量化:image_embedding'."\n"
- .'- d. 图片内容解析:image_analyze',
- 'type' => 'string',
- 'example' => 'text_embedding',
- ],
- 'url' => [
- 'title' => '模型访问地址',
- 'description' => '模型服务的访问地址',
- 'type' => 'string',
- 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001',
- ],
- 'status' => [
- 'title' => '模型状态。'."\n"
- .' * ok: 模型可用'."\n"
- .' * forbidden: 模型不可用',
- 'description' => '模型状态。'."\n"
- .' * ok: 模型可用'."\n"
- .' * forbidden: 模型不可用',
- 'type' => 'string',
- 'example' => 'ok',
- 'enum' => [
- 'ok',
- 'forbidden',
- ],
- ],
- 'dimension' => [
- 'title' => '模型的维度',
- 'description' => '模型的维度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '128',
- ],
- 'content' => [
- 'title' => '模型的内容信息',
- 'description' => '模型的内容信息',
- 'type' => 'object',
- 'properties' => [
- 'modelName' => [
- 'title' => '模型名称',
- 'description' => '模型名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'modelType' => [
- 'title' => '模型类型',
- 'description' => '模型类别'."\n"
- ."\n"
- .'- a. 文本向量化:text_embedding'."\n"
- .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
- .'- c. 图片向量化:image_embedding'."\n"
- .'- d. 图片内容解析:image_analyze',
- 'type' => 'string',
- 'example' => 'text_embedding',
- ],
- 'url' => [
- 'title' => '模型访问地址',
- 'description' => '模型服务的访问地址',
- 'type' => 'string',
- 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001',
- ],
- 'method' => [
- 'title' => '请求方法',
- 'description' => '模型服务访问的http method, 支持PUT和POST',
- 'type' => 'string',
- 'example' => 'POST',
- ],
- 'request' => [
- 'title' => '请求配置信息',
- 'description' => '请求配置信息',
- 'type' => 'object',
- 'properties' => [
- 'header' => [
- 'title' => '请求头信息',
- 'description' => '访问模型服务的http header',
- 'type' => 'object',
- 'properties' => [
- 'Authorization' => [
- 'title' => '认证信息',
- 'description' => '认证信息,格式:Bearer access_token',
- 'type' => 'string',
- 'example' => 'Bearer OS-v0********6vvs'."\n",
- ],
- 'Content-Type' => [
- 'title' => '内容类型',
- 'description' => 'HTTP请求内容类型。',
- 'type' => 'string',
- 'example' => 'application/json'."\n",
- ],
- ],
- ],
- 'urlParams' => [
- 'title' => 'URL参数',
- 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'title' => '构建时的URL参数',
- 'description' => '构建索引时传递的参数',
- 'type' => 'object',
- 'example' => 'key: value',
- ],
- 'search' => [
- 'title' => '搜索时的URL参数',
- 'description' => '查询时传递的参数',
- 'type' => 'object',
- 'example' => 'key: value',
- ],
- ],
- ],
- 'requestBody' => [
- 'title' => '请求体模板',
- 'description' => '请求Body体的模板字符串',
- 'type' => 'string',
- 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}',
- ],
- 'parameters' => [
- 'title' => '请求参数',
- 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'title' => '构建时的请求参数',
- 'description' => '索引构建阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'title' => '输入类型。'."\n"
- .' * document: 文档类型',
- 'description' => '输入类型',
- 'type' => 'string',
- 'example' => 'query'."\n",
- 'enum' => [
- 'document',
- ],
- ],
- ],
- ],
- 'search' => [
- 'title' => '搜索时的请求参数',
- 'description' => '查询阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'title' => '输入类型。'."\n"
- .' * query: 查询类型',
- 'description' => '输入类型',
- 'type' => 'string',
- 'example' => 'document'."\n",
- 'enum' => [
- 'query',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'response' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'object',
- 'properties' => [
- 'embeddings' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'string',
- 'example' => '$.result.embeddings[*].embedding'."\n",
- ],
- ],
- ],
- ],
- ],
- 'createTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- 'updateTime' => [
- 'title' => '修改时间',
- 'description' => '修改时间',
- 'type' => 'string',
- 'example' => '2024-05-21 16:05:26',
- ],
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'GetIndex',
+ 'description' => '查看索引表详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ListDataSources',
+ 'description' => '获取数据源列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDataSources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"38b079f1-7846-4226-8c90-3e2644b5c52b\\",\\n \\"totalCount\\": 14,\\n \\"result\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"type\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"status\\": \\"ok\\",\\n \\"dimension\\": 128,\\n \\"content\\": {\\n \\"modelName\\": \\"test\\",\\n \\"modelType\\": \\"text_embedding\\",\\n \\"url\\": \\"http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001\\",\\n \\"method\\": \\"POST\\",\\n \\"request\\": {\\n \\"header\\": {\\n \\"Authorization\\": \\"Bearer OS-v0********6vvs\\\\n\\",\\n \\"Content-Type\\": \\"application/json\\\\n\\"\\n },\\n \\"urlParams\\": {\\n \\"build\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"search\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"requestBody\\": \\"{\\\\\\\\\\\\\\"input\\\\\\\\\\\\\\": [\\\\\\\\\\\\\\"%{input}\\\\\\\\\\\\\\"], \\\\\\\\\\\\\\"input_type\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"%{input_type}\\\\\\\\\\\\\\"}\\",\\n \\"parameters\\": {\\n \\"build\\": {\\n \\"input_type\\": \\"query\\\\n\\"\\n },\\n \\"search\\": {\\n \\"input_type\\": \\"document\\\\n\\"\\n }\\n }\\n },\\n \\"response\\": {\\n \\"embeddings\\": \\"$.result.embeddings[*].embedding\\\\n\\"\\n }\\n },\\n \\"createTime\\": \\"2024-05-21 16:05:26\\",\\n \\"updateTime\\": \\"2024-05-21 16:05:26\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '模型列表',
- ],
- 'CreateModel' => [
- 'summary' => '创建模型信息。',
- 'path' => '/openapi/ha3/instances/{instanceId}/models',
- 'methods' => [
- 'post',
+ [
+ 'apiName' => 'DeleteIndexVersion',
+ 'description' => '删除索引的版本',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'TagResources',
+ 'description' => '批量增加/更新标签',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'RenameFolder',
+ 'description' => '修改目录名称',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:RenameFolder',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Folder', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'ModifyAdvanceConfig',
+ 'description' => '修改http、git类型的文件内容',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetInstance',
+ 'description' => '根据实例ID查看实例详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetIndexOnlineStrategy',
+ 'description' => '获取某一索引在线策略',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetIndexOnlineStrategy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAdvanceConfigDir',
+ 'description' => '获取高级配置目录下文件列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListAdvanceConfigDir',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyModel',
+ 'description' => '修改模型',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeletePublicUrl',
+ 'description' => '删除公网域名',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeletePublicUrl',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetClusterRunTimeInfo',
+ 'description' => '获取集群信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetClusterRunTimeInfo',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StartIndex',
+ 'description' => '恢复使用索引',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:StartIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteIndex',
+ 'description' => '删除索引',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTable',
+ 'description' => '获取索引表信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyFile',
+ 'description' => '修改文件',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyIndex',
+ 'description' => '修改索引',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDeployGraph',
+ 'description' => '展示部署全局概览',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDeployGraph',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateModel',
+ 'description' => '创建模型',
'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREopensearchGTRUN8',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '实例ID',
- 'description' => '实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-pl32rf0****',
+ [
+ 'apiName' => 'UpdateSqlInstanceName',
+ 'description' => '更新SQL实例名称',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateSqlInstanceName',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'SqlInstance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'dryRun',
- 'in' => 'query',
- 'schema' => [
- 'title' => '是否仅执行校验,默认为False。',
- 'description' => '是否仅执行校验,默认为False。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
+ ],
+ [
+ 'apiName' => 'ListDataSourceTasks',
+ 'description' => '展示数据源任务',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDataSourceTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体参数',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'description' => '模型名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- 'content' => [
- 'description' => '模型详情',
- 'type' => 'object',
- 'properties' => [
- 'modelType' => [
- 'description' => '模型类别'."\n"
- .'- a. 文本向量化:text_embedding'."\n"
- .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
- .'- c. 图片向量化:image_embedding'."\n"
- .'- d. 图片内容解析:image_analyze',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'text_embedding',
- ],
- 'dimension' => [
- 'title' => '模型的维度',
- 'description' => '模型的维度。类型为text_embedding和image_embedding时需要填写模型的维度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '128',
- ],
- 'url' => [
- 'description' => '模型服务的访问地址',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://***.platform-cn-shanghai.opensearch.aliyuncs.com/v3/openapi/workspaces/default/text-embedding/ops-text-embedding-001',
- ],
- 'method' => [
- 'description' => '模型服务访问的http method, 支持PUT和POST',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'POST',
- ],
- 'request' => [
- 'description' => '模型请求体',
- 'type' => 'object',
- 'properties' => [
- 'header' => [
- 'description' => '访问模型服务的http header',
- 'type' => 'object',
- 'properties' => [
- 'Authorization' => [
- 'description' => '认证信息,格式:Bearer access_token',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Bearer OS-v0********6vvs',
- ],
- 'Content-Type' => [
- 'description' => 'HTTP请求内容类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'application/json',
- ],
- ],
- 'required' => false,
- ],
- 'urlParams' => [
- 'description' => 'url中的参数,有限模型服务需要从url上传递参数。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'description' => '构建索引时传递的参数',
- 'type' => 'object',
- 'required' => false,
- 'example' => 'key: value',
- ],
- 'search' => [
- 'description' => '查询时传递的参数',
- 'type' => 'object',
- 'required' => false,
- 'example' => 'key: value',
- ],
- ],
- 'required' => false,
- ],
- 'parameters' => [
- 'description' => '如果body中的参数需要区分build和search阶段,可以定义在这个参数中。',
- 'type' => 'object',
- 'properties' => [
- 'build' => [
- 'description' => '索引构建阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'description' => '输入类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'query',
- ],
- ],
- 'required' => false,
- ],
- 'search' => [
- 'description' => '查询阶段的参数',
- 'type' => 'object',
- 'properties' => [
- 'input_type' => [
- 'description' => '输入类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'document',
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'requestBody' => [
- 'description' => '请求Body体的模板字符串',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"input\\": [\\"%{input}\\"], \\"input_type\\": \\"%{input_type}\\"}',
- ],
- ],
- 'required' => false,
- ],
- 'response' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'object',
- 'properties' => [
- 'embeddings' => [
- 'description' => '如何解析结果信息,使用json path格式描述',
- 'type' => 'string',
- 'required' => false,
- 'example' => '$.result.embeddings[*].embedding',
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
+ ],
+ [
+ 'apiName' => 'StopTask',
+ 'description' => '停止fsm任务',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:StopTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463',
- ],
- ],
+ [
+ 'apiName' => 'GetIndexVersion',
+ 'description' => '获取集群可回滚的索引信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ModifyOnlineConfig',
+ 'description' => '修改在线表配置',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyOnlineConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\"\\n}","type":"json"}]',
- 'title' => '创建模型',
- ],
- 'ModifySearcherReplica' => [
- 'summary' => '通过指定实例ID来修改数据节点的副本或分片数量。',
- 'description' => '## 请求说明'."\n"
- .'本API允许用户修改特定实例下的数据节点副本数或分片数。请求时,需提供实例ID,并在请求体中指定要修改的`replica`(副本数)或`partition`(分片数)。请注意,这两个参数都是可选的,但至少需要提供其中一个以执行更新操作。'."\n",
- 'path' => '/openapi/ha3/instances/{instanceId}/replica',
- 'methods' => [
- 'put',
+ [
+ 'apiName' => 'UpdateInstance',
+ 'description' => '修改指定实例配置',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'GetTableGeneration',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetTableGeneration',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'ModifyClusterOfflineConfig',
+ 'description' => '修改集群的配置信息',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyClusterOfflineConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'consumes' => [
- 'application/json',
+ [
+ 'apiName' => 'CreateTable',
+ 'description' => '创建索引表',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ [
+ 'apiName' => 'ListOnlineConfigs',
+ 'description' => '获取在线表配置的详情',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListOnlineConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'ListRestQueryResult',
+ 'description' => '召回引擎版获取rest查询搜索测试结果',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListRestQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyIndexVersion',
+ 'description' => '修改集群索引版本(索引回滚)',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteFolder',
+ 'description' => '删除目录',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteFolder',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Folder', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyNodeConfig',
+ 'description' => '修改节点配置',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyNodeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAlias',
+ 'description' => '删除别名',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListInstances',
+ 'description' => '获取实例列表',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListInstances',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListClusters',
+ 'description' => '获取集群列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListClusters',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteSqlInstance',
+ 'description' => '删除SQL实例',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'SqlInstance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListIndexes',
+ 'description' => '获取索引列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListIndexes',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListPausePolicys',
+ 'description' => '获取暂停策略',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListPausePolicys',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PublishAdvanceConfig',
+ 'description' => '发布高级版本',
'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREopensearch5EAGY5',
+ 'ramAction' => [
+ 'action' => 'searchengine:PublishAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'instanceId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '实例ID'."\n",
- 'description' => '实例ID'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ha-cn-test',
+ [
+ 'apiName' => 'DeleteDataSource',
+ 'description' => '删除数据源',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteDataSource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体',
- 'type' => 'object',
- 'properties' => [
- 'replica' => [
- 'title' => '数据节点副本数'."\n",
- 'description' => '数据节点副本数'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'partition' => [
- 'title' => '数据节点分片数'."\n",
- 'description' => '数据节点分片数'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- ],
- 'required' => false,
+ ],
+ [
+ 'apiName' => 'Reindex',
+ 'description' => '重建索引',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:Reindex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'responses' => [
- 200 => [
- 'description' => '修改成功',
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'requestId' => [
- 'title' => '请求ID'."\n",
- 'description' => '请求ID'."\n",
- 'type' => 'string',
- 'example' => 'e1eef569-1ff7-4bf8-acf7-1cecca9894ce',
- ],
- 'result' => [
- 'title' => '操作的结果对象,当前版本下该对象为空。',
- 'description' => '操作的结果对象,当前版本下该对象为空。',
- 'type' => 'object',
- ],
- ],
+ [
+ 'apiName' => 'CreateSqlInstance',
+ 'description' => '创建SQL实例',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTableGenerations',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTableGenerations',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'GetCluster',
+ 'description' => '获取某一集群的详细信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetCluster',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyAdvanceConfigFile',
+ 'description' => '修改词典',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyAdvanceConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAliases',
+ 'description' => '查询表别名列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListAliases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListVectorQueryResult',
+ 'description' => '向量检索版获取向量查询搜索测试结果',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListVectorQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTables',
+ 'description' => '获取索引列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTables',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListSchemas',
+ 'description' => '根据数据同步配置获取schema信息',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListSchemas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RemoveCluster',
+ 'description' => '删除某一集群',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:RemoveCluster',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAlias',
+ 'description' => '创建别名',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateSqlInstanceParams',
+ 'description' => '更新SQL实例参数',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:UpdateSqlInstanceParams',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListQueryResult',
+ 'description' => '获取搜索测试结果',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'TransformPlan',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:TransformPlan',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'BuildIndex',
+ 'description' => '触发索引重建',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:BuildIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateDataSource',
+ 'description' => '创建数据源',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateDataSource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyClusterOnlineConfig',
+ 'description' => '修改集群的在线配置信息',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyClusterOnlineConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyTable',
+ 'description' => '修改索引表',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyTable',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateCluster',
+ 'description' => '添加集群',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateCluster',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTagResources',
+ 'description' => '查询资源标签关系列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListIndexRecoverRecords',
+ 'description' => '获取恢复数据记录',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListIndexRecoverRecords',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListClusterTasks',
+ 'description' => '展示集群任务',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListClusterTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DebugModel',
+ 'description' => '模型调试',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:DebugModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RecoverIndex',
+ 'description' => '从索引中恢复数据',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:RecoverIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteConfigFile',
+ 'description' => '删除高级配置文件',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteConfigFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListClusterNames',
+ 'description' => '获取集群可选择的名称',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListClusterNames',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UntagResources',
+ 'description' => '批量删除标签',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PublishIndexVersion',
+ 'description' => '发布索引版本',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:PublishIndexVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDatabases',
+ 'description' => '展示已有数据库',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDatabases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyIndexPartition',
+ 'description' => '修改索引分区信息',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndexPartition',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDataSourceSchemas',
+ 'description' => '获取某一数据源的schema信息',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListDataSourceSchemas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateInstance',
+ 'description' => '创建实例',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyClusterDesc',
+ 'description' => '更改集群的描述信息',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyClusterDesc',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTasks',
+ 'description' => '获取实例的变更历史',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ExecuteSqlInstance',
+ 'description' => '执行SQL实例',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:ExecuteSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetSqlInstance',
+ 'description' => '获取SQL实例信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreatePublicUrl',
+ 'description' => '开通公网域名',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreatePublicUrl',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetModel',
+ 'description' => '获取模型详细信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetModel',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyPublicUrlIpList',
+ 'description' => '修改公网域名白名单',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyPublicUrlIpList',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDataSource',
+ 'description' => '获取某一数据源',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDataSource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAdvanceConfig',
+ 'description' => '获取词典信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetAdvanceConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CloneSqlInstance',
+ 'description' => '复制SQL实例',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CloneSqlInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetFile',
+ 'description' => '查看索引表版本详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PushDocuments',
+ 'description' => '推送数据',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:PushDocuments',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListModels',
+ 'description' => '模型列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListModels',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDatabaseSchema',
+ 'description' => '获取数据库schema',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'searchengine:GetDatabaseSchema',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyPausePolicy',
+ 'description' => '修改暂停开关',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyPausePolicy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StopIndex',
+ 'description' => '停止使用索引',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:StopIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyIndexOnlineStrategy',
+ 'description' => '修改某一索引在线策略',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:ModifyIndexOnlineStrategy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateIndex',
+ 'description' => '创建索引信息',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateIndex',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListPostQueryResult',
+ 'description' => '召回引擎版使用POST请求获取搜索测试结果',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'searchengine:ListPostQueryResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ChangeResourceGroup',
+ 'description' => '修改资源组',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'searchengine:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateConfigDir',
+ 'description' => '高级配置创建文件目录',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'searchengine:CreateConfigDir',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteInstance',
+ 'description' => '删除实例',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'searchengine:DeleteInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"e1eef569-1ff7-4bf8-acf7-1cecca9894ce\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '修改数据节点副本分片数',
- ],
- ],
- 'endpoints' => [
- [
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'searchengine.ap-southeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'searchengine.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'searchengine.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'searchengine.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'searchengine.cn-shenzhen.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hongkong',
- 'endpoint' => 'searchengine.cn-hongkong.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-zhangjiakou',
- 'endpoint' => 'searchengine.cn-zhangjiakou.aliyuncs.com',
],
- [
- 'regionId' => 'eu-central-1',
- 'endpoint' => 'searchengine.eu-central-1.aliyuncs.com',
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ['validationType' => 'always', 'resourceType' => 'Folder', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/*'],
+ ['validationType' => 'always', 'resourceType' => 'SqlInstance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
];