'1.0',
'info' => ['style' => 'ROA', 'product' => 'searchengine', 'version' => '2021-10-25'],
'directories' => [
[
'children' => ['ChangeResourceGroup', 'TagResources', 'UntagResources', 'ListTagResources', 'CreatePublicUrl', 'DeletePublicUrl', 'ModifyPublicUrlIpList', 'CreateInstance', 'DeleteInstance', 'UpdateInstance', 'ModifyPassword', 'ListInstances', 'GetInstance', 'ListInstanceSpecs'],
'type' => 'directory',
'title' => '实例',
'id' => 159559,
],
[
'children' => [
[
'children' => ['GetIndexOnlineStrategy', 'ModifyIndexOnlineStrategy', 'ModifyOnlineConfig', 'ListOnlineConfigs'],
'type' => 'directory',
'title' => '在线表配置',
'id' => 159592,
],
[
'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',
'title' => '高级配置',
'id' => 159597,
],
[
'children' => ['ListSchemas', 'ModifyDataSourceDeploy', 'CreateDataSource', 'DeleteDataSource', 'GetDataSource', 'ListDataSources', 'ListDataSourceSchemas', 'ListDateSourceGenerations', 'GetDataSourceDeploy'],
'type' => 'directory',
'title' => '数据源配置',
'id' => 159610,
],
],
'type' => 'directory',
'title' => '配置中心',
'id' => 159574,
],
[
'children' => [
[
'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',
'title' => '变更历史',
'id' => 159659,
],
[
'children' => ['ListLogs'],
'type' => 'directory',
'title' => '日志管理',
'id' => 159679,
],
[
'children' => ['ModifyNodeConfig', 'GetDeployGraph', 'GetNodeConfig'],
'type' => 'directory',
'title' => '部署管理',
'id' => 159655,
],
[
'children' => ['ListIndexRecoverRecords', 'ListPausePolicys', 'ModifyPausePolicy', 'CreateCluster', 'RemoveCluster', 'ModifyClusterDesc', 'ModifyClusterOfflineConfig', 'ModifyClusterOnlineConfig', 'GetCluster', 'GetClusterRunTimeInfo', 'ListClusterNames', 'ListClusters'],
'type' => 'directory',
'title' => '运维管理',
'id' => 159642,
],
],
'type' => 'directory',
'title' => '运维中心',
'id' => 159641,
],
[
'children' => [
[
'children' => ['ModifyAlias', 'ListAliases', 'DeleteAlias', 'CreateAlias'],
'type' => 'directory',
'title' => '表别名管理',
'id' => 159636,
],
'CreateTable',
'ModifyTable',
'GetTable',
'ListTables',
'DeleteTable',
'Reindex',
'ListTableGenerations',
'GetTableGeneration',
],
'type' => 'directory',
'title' => '表管理',
'id' => 159627,
],
[
'children' => ['ListPostQueryResult', 'ListRestQueryResult', 'ListVectorQueryResult', 'PushDocuments', 'DescribeRegions', 'ListQueryResult', 'DeleteModel', 'ModifyModel', 'DebugModel', 'GetModel', 'ListModels', 'CreateModel', 'ModifySearcherReplica'],
'type' => 'directory',
'title' => '其他',
'id' => 159620,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'BuildIndex' => [
'summary' => '触发索引重建。',
'path' => '/openapi/ha3/instances/{instanceId}/actions/build-index',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '104671',
'abilityTreeNodes' => ['FEATUREopensearchD5N27K'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '一个JSON格式的字符串,完整JSON字符串信息,具体内容参见以下详细信息。',
'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'],
],
'required' => false,
'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' => '407BFD91-DE7D-50BA-8F88-CDE52A3B5E46'],
'result' => ['title' => '集群列表', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
],
],
500 => [],
],
'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~~)',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BuildIndex'],
],
],
'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' => [],
],
],
'consumes' => [],
'produces' => [],
'operationType' => 'read',
'deprecated' => false,
'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',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'newResourceGroupId' => ['title' => '新资源组id', 'description' => '新资源组id', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmxr3gs*****'],
'resourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => false, 'example' => 'instance'],
],
'required' => false,
],
],
],
'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' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
],
],
],
],
'title' => '修改资源组',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/actions/change-resource-group'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'],
],
],
'ramActions' => [
[
'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 \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\"\\n}","type":"json"}]',
],
'CloneSqlInstance' => [
'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/sql-instances/{sqlInstanceId}/actions/clone',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '139625',
'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' => 'sqlInstanceId',
'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' => [
'targetFolderId' => ['description' => '目标sql实例id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
'name' => ['description' => '名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => [
'title' => 'NodeVO',
'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'],
],
],
],
'description' => '',
],
],
500 => [],
],
'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/clone'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CloneSqlInstance'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'searchengine:CloneSqlInstance',
'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 \\"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"}]',
],
'CreateAlias' => [
'path' => '/openapi/ha3/instances/{instanceId}/aliases',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '223193',
'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'],
],
[
'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' => '10D5E615-69F7-5F49-B850-00169ADE513C'],
'result' => ['title' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '创建别名',
'summary' => '创建别名。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/aliases'."\n"
.'```',
'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' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'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' => '请求体参数',
'type' => 'object',
'properties' => [
'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' => [
'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'],
],
'required' => false,
],
'autoLoad' => ['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' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '添加集群',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/clusters'."\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"
.'详情请查看[响应结构](https://help.aliyun.com/zh/open-search/retrieval-engine-edition/data-structure-1/)[响应结构](https://www.alibabacloud.com/help/zh/open-search/response-struct)',
'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' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'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' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'dirName' => ['title' => '目录名称', 'description' => '目录名称', 'type' => 'string', 'required' => false, 'example' => '/clusters'],
'parentFullPath' => ['title' => '上级文件路径', 'description' => '上级文件路径', 'type' => 'string', 'required' => false, 'example' => '/'],
],
'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' => 'Map', 'description' => '返回结果。', 'type' => 'object', 'example' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '高级配置创建文件目录',
'summary' => '高级配置创建文件目录。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir'."\n"
.'```',
'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' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'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' => '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,
],
],
],
'responses' => [
200 => [
'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' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '高级配置创建文件',
'summary' => '高级配置创建文件。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
.'```',
'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' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '104719',
'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
'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, 'description' => ''],
'database' => ['type' => 'string', 'required' => false, 'description' => ''],
'tag' => ['type' => 'string', 'required' => false, 'description' => ''],
],
'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' => '{}'],
],
'description' => '',
],
],
'5XX' => [],
],
'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~~)',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDataSource'],
],
],
'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' => '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****'],
],
[
'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'],
],
],
],
'description' => '',
],
],
500 => [],
],
'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"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFolder'],
],
],
'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' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '104691',
'abilityTreeNodes' => ['FEATUREopensearchVHEWK3'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-2r42ppr****'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'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' => [
'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' => [
'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数据源配置。',
'type' => 'object',
'properties' => [
'namespace' => ['description' => 'saro数据源的namespace。(目前仅在内网支持)', 'type' => 'string', 'required' => false, 'example' => 'test'],
'tableName' => ['description' => 'saro数据表名称。(目前仅在内网支持)', 'type' => 'string', 'required' => false, 'example' => 'tableA'],
],
'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字段名称"]', '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'],
],
'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' => '{}'],
],
],
],
500 => [],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '创建索引信息',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/indexes'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
."\n"
.'```java'."\n"
.'POST /openapi/ha3/instances/ose-test1/indexes'."\n"
.'```'."\n"
."\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"
.' },'."\n"
.' "partition": 1,'."\n"
.' "dataSourceInfo":'."\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"
.'```',
'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'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'searchengine:CreateIndex',
'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"}]',
],
'CreateInstance' => [
'summary' => '创建问天引擎实例。',
'path' => '/openapi/ha3/instances',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '136888',
'abilityTreeNodes' => ['FEATUREopensearchXLGC1X', 'FEATUREopensearchCH6TQD'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'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' => '付费信息。',
'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'],
],
'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' => ''],
],
'required' => false,
'example' => '{}',
],
],
],
'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****'],
],
],
],
],
],
'5XX' => [],
],
'title' => '创建实例',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances'."\n"
.'```',
'responseParamsDescription' => '### 返回示例'."\n"
.'**正常返回示例**'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818",'."\n"
.' "result": {'."\n"
.' "instanceId": "deeprec-cn-xxxxxx1"'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'**异常返回示例**'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "requestId": "90D6B8F5-FE97-4509-9AAB-367836C51818",'."\n"
.' "code": "InternalServerError",'."\n"
.' "message":"internal server error"'."\n"
.'}'."\n"
.'```'."\n"
.'详情可参考[响应结构](~~465311~~)',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '3', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstance'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'searchengine:CreateInstance',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SearchEngine', 'resourceType' => 'Instance', 'arn' => 'acs:searchengine:{#regionId}:{#accountId}:instance/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D39EE0F1-D7EF-5F46-B781-6BF4185308B0\\",\\n \\"result\\": {\\n \\"instanceId\\": \\"ha-cn-pl32rf0****\\"\\n }\\n}","type":"json"}]',
],
'CreateModel' => [
'path' => '/openapi/ha3/instances/{instanceId}/models',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'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' => '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' => [
'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,
],
],
],
'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'],
],
],
],
],
'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\\": \\"022F36C7-9FB4-5D67-BEBC-3D14B0984463\\"\\n}","type":"json"}]',
],
'CreatePublicUrl' => [
'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****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['title' => 'id of request', 'description' => '请求ID', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
'result' => ['title' => 'Map', 'description' => '返回结果', 'type' => 'object', 'example' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '开通公网域名',
'summary' => '开通公网域名。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/public-url'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePublicUrl'],
],
],
'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' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '139624',
'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' => '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,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'B43CD1BB-ABD7-59C5-B89A-6E5F6FE60A84'],
'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' => '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 => [],
],
'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'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSqlInstance'],
],
],
'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' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '218772',
'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'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', 'default' => 'false'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'body',
'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'],
'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'],
'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'],
],
'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' => 'key: 字段名',
'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结构'],
],
'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,
],
'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,
],
'scene' => ['title' => '场景模版', 'description' => '模版类型', 'type' => 'string', 'required' => false, 'example' => 'videoSearcher'],
],
'required' => false,
],
],
],
'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' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '创建索引表',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'POST'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/tables'."\n"
.'```',
'requestParamsDescription' => '### 请求示例'."\n"
."\n"
.''."\n"
."\n"
.'```java'."\n"
.'POST /openapi/ha3/instances/{instanceId}/tables'."\n"
.'```'."\n"
.'>示例仅列举最简单的参数, 更多自定义参数请参考请求参数>'."\n"
."\n"
.'```java'."\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"
.' "vectorIndex": ['."\n"
.' {'."\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~~)',
'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' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
'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' => '请求体参数',
'type' => 'object',
'properties' => [
'input' => ['title' => '模型输入', 'description' => '模型输入', 'type' => 'string', 'required' => false, 'example' => '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' => 'E7B7D598-B080-5C8E-AA35-D43EC0D5F886'],
],
],
],
],
'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' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'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' => '{}'],
],
],
],
500 => [],
],
'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~~)',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAdvanceConfig'],
],
],
'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' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '223196',
'abilityTreeNodes' => ['FEATUREopensearchGTRUN8'],
],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
'schema' => ['description' => '实例 ID', 'type' => 'string', 'required' => true, 'example' => 'ha-cn-pl32rf0****'],
],
[
'name' => 'alias',
'in' => 'path',
'schema' => ['description' => '别名', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
],
'responses' => [
200 => [
'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' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '删除别名',
'summary' => '删除别名。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/aliases/{alias}'."\n"
.'```',
'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' => 'write',
'deprecated' => false,
'systemTags' => [],
'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' => 'dirName',
'in' => 'query',
'schema' => ['description' => '目录名称。', 'type' => 'string', 'required' => true, 'example' => '/clusters'],
],
[
'name' => 'parentFullPath',
'in' => 'query',
'schema' => ['description' => '上级目录的路径', 'type' => 'string', 'required' => true, 'example' => '/'],
],
],
'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' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '删除高级配置目录',
'summary' => '删除高级配置目录。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/dir'."\n"
.'```',
'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' => 'write',
'deprecated' => false,
'systemTags' => [],
'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',
'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' => '/'],
],
],
'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' => '{}'],
],
'description' => '',
],
],
500 => [],
],
'title' => '删除高级配置文件',
'summary' => '删除高级配置文件。',
'description' => '### 方法'."\n"
."\n"
.'```java'."\n"
.'DELETE'."\n"
.'```'."\n"
."\n"
.'### URI'."\n"
."\n"
.'```java'."\n"
.'/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}/file'."\n"
.'```',
'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}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
'DeleteDataSource' => [
'summary' => '删除数据源。',
'path' => '/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'instanceId',
'in' => 'path',
'schema' => ['title' => '实例ID', '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 => [],
],
'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~~)',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDataSource'],
],
],
'ramActions' => [
[
'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\\": \\"10D5E615-69F7-5F49-B850-00169ADE513C\\",\\n \\"result\\": {}\\n}","type":"json"}]',
],
'DeleteFolder' => [
'path' => '/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/folders/{folderId}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '138810',
'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'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['title' => 'id of request', 'description' => '请求ID。', 'type' => 'string', 'example' => '022F36C7-9FB4-5D67-BEBC-3D14B0984463'],
'result' => [
'title' => 'Response