'1.0',
'info' => ['style' => 'ROA', 'product' => 'OpenSearch', 'version' => '2017-12-25'],
'directories' => [
[
'children' => [
[
'children' => ['DescribeAppGroup', 'RenewAppGroup', 'CreateAppGroup', 'ModifyAppGroup', 'ModifyAppGroupQuota', 'UpdateAppGroupDeleteProtection', 'RemoveAppGroup', 'ListAppGroups'],
'type' => 'directory',
'title' => 'Application management',
],
[
'children' => ['CreateApp', 'RemoveApp', 'DescribeApps', 'DescribeApp'],
'type' => 'directory',
'title' => 'Application versions',
],
],
'type' => 'directory',
'title' => 'Application instances',
],
[
'children' => [
[
'children' => ['ListUserAnalyzers', 'CreateUserAnalyzer', 'DescribeUserAnalyzer', 'ListUserAnalyzerEntries', 'PushUserAnalyzerEntries'],
'type' => 'directory',
'title' => 'Custom analyzers',
],
[
'children' => [
[
'children' => ['CreateABTestScene', 'DescribeABTestScene', 'UpdateABTestScene', 'DeleteABTestScene'],
'type' => 'directory',
'title' => 'Experiment scenarios',
],
[
'children' => ['ListABTestGroups', 'CreateABTestGroup', 'DeleteABTestGroup', 'DescribeABTestGroup', 'UpdateABTestGroup'],
'type' => 'directory',
'title' => 'Experiment groups',
],
[
'children' => ['CreateABTestExperiment', 'DescribeABTestExperiment', 'UpdateABTestExperiment', 'DeleteABTestExperiment'],
'type' => 'directory',
'title' => 'Experiments',
],
[
'children' => ['ListABTestFixedFlowDividers', 'UpdateABTestFixedFlowDividers'],
'type' => 'directory',
'title' => 'Whitelists',
],
],
'type' => 'directory',
'title' => 'ABTest',
],
[
'children' => ['CreateFirstRank', 'DescribeFirstRank', 'RemoveFirstRank', 'ModifyFirstRank'],
'type' => 'directory',
'title' => 'Rough sort expressions',
],
[
'children' => ['ListSecondRanks', 'CreateSecondRank', 'DescribeSecondRank', 'ModifySecondRank', 'RemoveSecondRank'],
'type' => 'directory',
'title' => 'Fine sort expressions',
],
[
'children' => ['ListQueryProcessors', 'ModifyQueryProcessor', 'RemoveQueryProcessor', 'DescribeQueryProcessor', 'ListQueryProcessorNers', 'ListQueryProcessorAnalyzerResults'],
'type' => 'directory',
'title' => 'Query analyzers',
],
[
'children' => ['ListInterventionDictionaries', 'CreateInterventionDictionary', 'DescribeInterventionDictionary', 'RemoveInterventionDictionary', 'ListInterventionDictionaryEntries', 'PushInterventionDictionaryEntries', 'ListInterventionDictionaryRelatedEntities', 'ListInterventionDictionaryNerResults'],
'type' => 'directory',
'title' => 'Intervention dictionaries',
],
[
'children' => ['EnableSlowQuery', 'DisableSlowQuery', 'DescribeSlowQueryStatus', 'StartSlowQueryAnalyzer', 'ListSlowQueryQueries', 'ListSlowQueryCategories'],
'type' => 'directory',
'title' => 'Optimization master',
],
[
'children' => ['ListQuotaReviewTasks'],
'type' => 'directory',
'title' => 'Quota approval',
],
[
'children' => ['ListScheduledTasks', 'CreateScheduledTask', 'DescribeScheduledTask', 'ModifyScheduledTask', 'RemoveScheduledTask'],
'type' => 'directory',
'title' => 'Scheduled tasks',
],
[
'children' => ['ListSortExpressions'],
'type' => 'directory',
'title' => 'Search policies',
],
[
'children' => ['UnbindEsInstance', 'BindEsInstance', 'BindESUserAnalyzer', 'UnbindESUserAnalyzer'],
'type' => 'directory',
'title' => 'Elasticsearch engine instances',
],
[
'children' => ['ListProceedings'],
'type' => 'directory',
'title' => 'Current processing flows',
],
[
'children' => ['ListStatisticLogs', 'ListStatisticReport'],
'type' => 'directory',
'title' => 'Statistics',
],
[
'children' => ['ListSortScripts', 'UpdateSortScript', 'ReleaseSortScript', 'GetSortScriptFile', 'GetSortScript', 'GetScriptFileNames', 'DeleteSortScriptFile', 'DeleteSortScript', 'CreateSortScript', 'CompileSortScript'],
'type' => 'directory',
'title' => 'Cava scripts',
],
[
'children' => ['UpdateSearchStrategy', 'RemoveSearchStrategy', 'ListSearchStrategies', 'GetSearchStrategy', 'CreateSearchStrategy'],
'type' => 'directory',
'title' => 'Query policies',
],
],
'type' => 'directory',
'title' => 'Instance peripherals',
],
[
'children' => [
[
'children' => ['UpdateFetchFields'],
'type' => 'directory',
'title' => 'Default display fields',
],
[
'children' => ['UpdateSummaries'],
'type' => 'directory',
'title' => 'Search result summaries',
],
],
'type' => 'directory',
'title' => 'Version peripherals',
],
[
'children' => ['CreateFunctionResource', 'GetFunctionCurrentVersion', 'GetFunctionVersion', 'GetFunctionDefaultInstance', 'UpdateFunctionDefaultInstance', 'ListFunctionTasks', 'GetFunctionTask', 'DeleteFunctionTask', 'CreateFunctionTask', 'ListFunctionInstances', 'GetFunctionInstance', 'DeleteFunctionInstance', 'UpdateFunctionInstance', 'GetFunctionResource', 'ListFunctionResources', 'DeleteFunctionResource', 'UpdateFunctionResource', 'CreateFunctionInstance'],
'type' => 'directory',
'title' => 'Algorithm peripherals',
],
[
'children' => ['ValidateDataSources', 'ListDataSourceTables', 'ListDataSourceTableFields', 'GetDomain', 'DescribeRegions'],
'type' => 'directory',
'title' => 'Others (documents not in the directory)',
],
[
'children' => ['DescribeDataCollction', 'ListDataCollections', 'RemoveDataCollection', 'UntagResources', 'ListTagResources', 'TagResources', 'CreateAppGroupCredentials', 'CreateQueryProcessor', 'DescribeAppStatistics', 'GenerateMergedTable', 'ListABTestExperiments', 'ListABTestScenes', 'ListFirstRanks', 'RemoveUserAnalyzer', 'ReplaceAppGroupCommodityCode', 'SaveSortScriptFile'],
'type' => 'directory',
'title' => 'Others',
],
],
'components' => [
'schemas' => [
'ABTestExperiment' => [
'title' => '',
'description' => 'The A/B testing experiment.',
'type' => 'object',
'properties' => [
'name' => ['title' => '', 'description' => 'The alias of the experiment.', 'type' => 'string', 'example' => 'my_test', 'visibility' => 'Public', 'backendName' => 'name'],
'traffic' => ['title' => '', 'description' => 'The percentage of traffic for experiment bucketing. Valid values: 0 to 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'visibility' => 'Public', 'backendName' => 'traffic'],
'serialNumber' => ['title' => '', 'description' => 'The serial number of the experiment. This number is automatically generated by Hyperspace.', 'type' => 'integer', 'format' => 'int32', 'example' => '85373', 'visibility' => 'Public', 'backendName' => 'serialNumber'],
'online' => ['title' => '', 'description' => 'The status of the experiment.'."\n"
."\n"
.'- true: The experiment is online.'."\n"
."\n"
.'- false: The experiment is offline.', 'type' => 'boolean', 'example' => 'false', 'visibility' => 'Public', 'backendName' => 'online'],
'params' => [
'title' => '',
'description' => 'The parameters of the experiment.',
'type' => 'object',
'additionalProperties' => ['description' => 'The parameter items.'."\n"
."\n"
.'- firstFormulaName: The name of the rough sort.'."\n"
."\n"
.'- formulaName: The name of the fine sort.'."\n"
."\n"
.'- qpChainName: The name of the query analysis.'."\n"
."\n"
.'- catePredictModel: The name of the category prediction model.', 'type' => 'string', 'example' => '{'."\n"
.' "firstFormulaName": "default"'."\n"
.' }', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'params',
],
],
'example' => '',
'visibility' => 'Public',
],
'ABTestGroup' => [
'title' => '',
'description' => 'The information about an A/B test group.'."\n",
'type' => 'object',
'properties' => [
'name' => ['title' => '', 'description' => 'The alias of the test group.'."\n", 'type' => 'string', 'example' => '“kevin_test”', 'visibility' => 'Public', 'backendName' => 'name'],
'status' => ['title' => '', 'description' => 'The status of the test group. Valid values:'."\n"
."\n"
.'* 0: not in effect'."\n"
.'* 1: in effect'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'status'],
],
'visibility' => 'Public',
'example' => '',
],
'ABTestScene' => [
'title' => '',
'description' => 'The information about an A/B test scene.'."\n",
'type' => 'object',
'properties' => [
'name' => ['title' => '', 'description' => 'The alias of the test scenario.'."\n", 'type' => 'string', 'example' => 'test'],
'values' => [
'title' => '',
'description' => 'The ID of the test scenario'."\n",
'type' => 'array',
'items' => ['description' => 'The indicators of the test scenarios.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
'example' => '',
],
'status' => ['title' => '', 'description' => 'The status of the test scenario. Valid values:'."\n"
."\n"
.'* 0: not in effect'."\n"
.'* 1: in effect'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
'example' => '',
],
'DataSource' => [
'title' => '数据源配置',
'type' => 'object',
'properties' => [
'tableName' => ['title' => '数据源配置标识', 'type' => 'string'],
'type' => ['title' => '数据源类型', 'type' => 'string'],
'fields' => [
'title' => '数据源表字段 => 应用表字段映射',
'type' => 'array',
'items' => [
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
'plugins' => [
'title' => '数据源插件',
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'name' => ['title' => '插件名称', 'type' => 'string'],
'fromFields' => ['title' => '数据来源字段', 'type' => 'string'],
'parameters' => [
'title' => '插件参数',
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
],
'keyField' => ['title' => '主键', 'type' => 'string'],
'schemaName' => ['title' => '宽表名称', 'type' => 'string'],
'parameters' => ['title' => '数据源信息', 'type' => 'object'],
],
],
'FirstRank' => [
'title' => '粗排表达式配置',
'type' => 'object',
'properties' => [
'type' => ['title' => '表达式类型 (STRUCT, STRING)', 'type' => 'string'],
'name' => ['title' => '名称', 'type' => 'string'],
'description' => ['title' => '描述', 'type' => 'string'],
'active' => ['title' => '是否是默认表达式', 'type' => 'boolean'],
'meta' => ['title' => '表达式信息', 'type' => 'any'],
],
],
'PrepayOrderInfo' => [
'title' => '',
'description' => 'The information about the subscription order.'."\n",
'type' => 'object',
'properties' => [
'duration' => ['title' => '', 'description' => 'The subscription duration.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'duration'],
'pricingCycle' => ['title' => '', 'description' => 'The billing cycle. Valid values:'."\n"
."\n"
.'* Year'."\n"
.'* Month'."\n", 'type' => 'string', 'example' => 'Year', 'visibility' => 'Public', 'backendName' => 'pricingCycle'],
'autoRenew' => ['title' => '', 'description' => 'Specifies whether to enable auto-renewal for the instance.'."\n", 'type' => 'boolean', 'example' => 'false', 'visibility' => 'Public', 'backendName' => 'autoRenew'],
],
'visibility' => 'Public',
'example' => '',
],
'Proceeding' => [
'type' => 'object',
'properties' => [
'progress' => ['type' => 'number', 'format' => 'float', 'description' => '', 'title' => '', 'example' => ''],
'type' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'status' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'subTasks' => ['$ref' => '#/components/schemas/Proceeding', 'description' => '', 'title' => '', 'example' => ''],
'detail' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'Quota' => [
'title' => '版本配额',
'type' => 'object',
'properties' => [
'docSize' => ['title' => '存储容量 (单位:GB)', 'type' => 'integer', 'format' => 'int32'],
'computeResource' => ['title' => '计算资源 (单位:LCU)', 'type' => 'integer', 'format' => 'int32'],
'spec' => ['title' => '规格', 'type' => 'string'],
'orderType' => ['title' => '变配类型', 'type' => 'string'],
],
],
'ScheduledTask' => [
'title' => '定时任务',
'description' => '定时任务',
'type' => 'object',
'properties' => [
'type' => ['title' => '任务类型', 'type' => 'string'],
'cron' => ['title' => '时间表达式', 'type' => 'string'],
'enabled' => ['title' => '是否执行', 'type' => 'boolean'],
'version' => ['title' => '待删除版本号', 'type' => 'string'],
'forkedAppId' => ['title' => '上一个版本id', 'type' => 'string'],
'autoSwitch' => ['title' => '是否自动切换上线', 'type' => 'boolean'],
'permanent' => ['title' => '是否持久化', 'type' => 'boolean'],
'runNow' => ['title' => '是否立即执行', 'type' => 'boolean'],
'filter' => [
'title' => '清理配置',
'type' => 'object',
'properties' => [
'field' => ['title' => '过滤字段名称', 'type' => 'string'],
'days' => ['title' => '保留天数', 'type' => 'integer', 'format' => 'int32'],
'unit' => ['title' => '时间单位', 'type' => 'string'],
'expression' => ['title' => '表达式', 'type' => 'string'],
],
],
],
],
'Schema' => [
'title' => '应用结构',
'type' => 'object',
'properties' => [
'tables' => [
'title' => '用户数据表',
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'name' => ['title' => '表名称', 'type' => 'string'],
'primaryTable' => ['title' => '是否是主表', 'type' => 'boolean'],
'fields' => [
'title' => '字段清单',
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'name' => ['title' => '字段名称', 'type' => 'string'],
'primaryKey' => ['title' => '是否是主键', 'type' => 'boolean'],
'type' => ['title' => '字段类型 (INT, INT_ARRAY, FLOAT, FLOAT_ARRAY, DOUBLE, DOUBLE_ARRAY, TEXT, SHORT_TEXT, LITERAL, LITERAL_ARRAY, GEO_POINT, TIMESTAMP)', 'type' => 'string'],
'joinWith' => [
'title' => '外表链接的数据表集合',
'type' => 'array',
'items' => ['type' => 'string'],
],
'label' => ['title' => '字段标签', 'type' => 'string'],
],
],
],
],
],
],
'indexes' => [
'title' => '索引配置',
'type' => 'object',
'properties' => [
'searchFields' => [
'title' => '索引字段',
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'analyzer' => ['title' => '分析器名称', 'type' => 'string'],
'analyzerType' => ['title' => '分析器类型 (AUTO, MODEL, SYSTEM, USER)', 'type' => 'string'],
'analyzerGeneration' => ['title' => '模型定制分析器Generation', 'type' => 'string'],
'fields' => [
'title' => '索引字段集合',
'type' => 'array',
'items' => ['type' => 'string'],
],
'label' => ['title' => '索引标签', 'type' => 'string'],
],
],
],
'filterFields' => [
'title' => '属性字段集合',
'type' => 'array',
'items' => ['type' => 'string'],
],
],
],
'routeField' => ['title' => '一级分列字段名称', 'type' => 'string'],
'routeFieldValues' => [
'title' => '一级分列字段热点值清单(配置后启用“二级分列”)',
'type' => 'array',
'items' => ['type' => 'string'],
],
'secondRouteField' => ['title' => '二级分列字段名称(当且仅当配置有`routeFieldValues`时生效,默认使用宽表主键)', 'type' => 'string'],
'ttlField' => [
'title' => '文档清理配置',
'type' => 'object',
'properties' => [
'name' => ['title' => '文档时间字段', 'type' => 'string'],
'ttl' => ['title' => '存活时间(毫秒)', 'type' => 'integer', 'format' => 'int64'],
],
],
'indexSortConfig' => [
'title' => '倒排索引配置',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'field' => ['title' => '字段', 'type' => 'string'],
'direction' => ['title' => '排序方式ASC, DESC', 'type' => 'string'],
],
],
],
'name' => ['title' => '宽表表名', 'type' => 'string'],
],
],
'SearchStrategy' => [
'title' => '查询策略',
'description' => '查询策略',
'type' => 'object',
'properties' => [
'name' => ['title' => '策略名称', 'type' => 'string'],
'description' => ['title' => '策略描述', 'type' => 'string'],
'searchConfigs' => [
'title' => '查询策略',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'queryType' => ['title' => '查询类型', 'type' => 'string', 'example' => 'keyword: 关键字查询 vector: 向量查询'],
'firstRankName' => ['title' => '基础排序名称', 'type' => 'string'],
'secondRankName' => ['title' => '业务排序名称', 'type' => 'string'],
'mergeProportion' => ['title' => '参与综合排序的比例', 'type' => 'integer', 'format' => 'int32'],
],
],
],
'mergeConfig' => [
'title' => '归并排序配置',
'type' => 'object',
'properties' => [
'rankName' => ['title' => '归并排序名称', 'type' => 'string'],
'docCount' => ['title' => '归并排序文档数', 'type' => 'integer', 'format' => 'int32'],
],
],
'isDefault' => ['title' => '是否设置默认', 'type' => 'boolean'],
],
],
'SecondRank' => [
'title' => '精排表达式配置',
'type' => 'object',
'properties' => [
'meta' => ['title' => '表达式', 'type' => 'any'],
'name' => ['title' => '名称', 'type' => 'string'],
'description' => ['title' => '描述', 'type' => 'string'],
'active' => ['title' => '是否是默认表达式', 'type' => 'boolean'],
],
],
],
],
'apis' => [
'BindESUserAnalyzer' => [
'summary' => 'Binds a custom analyzer to an Elasticsearch instance.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/es/{esInstanceId}/actions/bind-analyzer',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55141',
'abilityTreeNodes' => ['FEATUREopensearch447AAX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '130187460'],
],
[
'name' => 'esInstanceId',
'in' => 'path',
'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'es-cn-zvp2g952l000v5uxp'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.', 'type' => 'any', 'required' => false, 'title' => '', 'example' => '{'."\n"
.' "name": "kevintest-analyzer"'."\n"
.'}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'result' => ['description' => 'The custom analyzer.', 'type' => 'object', 'title' => '', 'example' => '[]'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '3AD34CAD-9603-5251-AFF5-3916C848A1D3'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'BindESUserAnalyzer',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [],\\n \\"requestId\\": \\"3AD34CAD-9603-5251-AFF5-3916C848A1D3\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'BindEsInstance' => [
'summary' => 'Binds an Elasticsearch instance as a dependency.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/actions/bind-es-instance',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchQZGKV9'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['type' => 'object', 'required' => false, 'description' => 'The request body.', 'title' => '', 'example' => '{'."\n"
.' "esInstanceId": "es-cn-abcde"'."\n"
.'}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'result' => ['description' => 'The result.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'F5099063-6B86-F398-D843-905F9EFB683A'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'BindEsInstance',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:BindEsInstance',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"F5099063-6B86-F398-D843-905F9EFB683A\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'CompileSortScript' => [
'summary' => 'Compiles a sort script.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/actions/compiling',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'search'],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The name of the script.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'script'],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '130196473'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CompileSortScript',
'responseParamsDescription' => '```'."\n"
.'Error response'."\n"
.'{'."\n"
.' "requestId" : "ABCDEFGH",'."\n"
.' "code":"InvalidAppStatus",'."\n"
.' "message":"invalid app status.",'."\n"
.' "httpCode":400'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateABTestExperiment' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The group ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. The default value is false. Valid values:'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- **true**: The system checks the validity of the request parameters.'."\n"
."\n"
.'- **false**: The system checks the validity of the request parameters and creates the experiment.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.', 'required' => false, '$ref' => '#/components/schemas/ABTestExperiment', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The experiment details.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the experiment was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'params' => ['description' => 'The experiment parameters.', 'type' => 'object', 'title' => '', 'example' => '{"firstFormulaName": "default"}'],
'traffic' => ['description' => 'The percentage of traffic that is routed to the experiment.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '30'],
'online' => ['description' => 'The status of the experiment.'."\n"
."\n"
.'- true: The experiment is in effect.'."\n"
."\n"
.'- false: The experiment is not in effect.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'name' => ['description' => 'The experiment alias.', 'type' => 'string', 'title' => '', 'example' => 'test3'],
'updated' => ['description' => 'The time when the experiment was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1589017861'],
'id' => ['description' => 'The experiment ID.', 'type' => 'string', 'title' => '', 'example' => '12889'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateABTestExperiment',
'summary' => 'Creates an experiment.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| --------- | ------- | -------- | ------------------------------- | -------------------------------------------------------------------------------------- |'."\n"
.'| name | String | Yes | "my_test" | The experiment name. |'."\n"
.'| traffic | Integer | Yes | 30 | The percentage of traffic to route to the experiment. |'."\n"
.'| online | Boolean | Yes | true | Specifies whether the experiment is in effect. |'."\n"
.'| params | Object | Yes | {"firstFormulaName": "default"} | The experiment configuration. For more information, see [ABTestExperiment](~~173617~~) |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 0,\\n \\"params\\": {\\n \\"firstFormulaName\\": \\"default\\"\\n },\\n \\"traffic\\": 30,\\n \\"online\\": true,\\n \\"name\\": \\"test3\\",\\n \\"updated\\": 1589017861,\\n \\"id\\": \\"12889\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateABTestGroup' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body. For more information, see [ABTestGroup](~~178935~~).', 'required' => false, '$ref' => '#/components/schemas/ABTestGroup', 'title' => '', 'example' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to check the validity of the input parameters. The default value is false.'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- **true**: checks only the validity of the input parameters.'."\n"
."\n"
.'- **false**: checks the validity of the input parameters and creates an attribution configuration.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The returned results.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the experiment group was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'status' => ['description' => 'The status of the experiment group.'."\n"
."\n"
.'- 0: Inactive'."\n"
."\n"
.'- 1: Active', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'updated' => ['description' => 'The time when the experiment group was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'name' => ['description' => 'The alias of the group.', 'type' => 'string', 'title' => '', 'example' => 'Group_2020-5-7_15:23:3'],
'id' => ['description' => 'The ID of the group.', 'type' => 'string', 'title' => '', 'example' => '13466'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateABTestGroup',
'summary' => 'Creates an experiment group.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| --------- | ------ | -------- | ------------ | --------------------------------- |'."\n"
.'| name | String | Yes | "kevintest3" | The name of the experiment group. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 1588839490,\\n \\"status\\": 1,\\n \\"updated\\": 1588839490,\\n \\"name\\": \\"Group_2020-5-7_15:23:3\\",\\n \\"id\\": \\"13466\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateABTestScene' => [
'summary' => 'Creates an experiment scenario.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The A/B test scene. For more information, see [ABTestScene](~~173618~~).', 'required' => false, '$ref' => '#/components/schemas/ABTestScene', 'title' => '', 'example' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to validate only the request parameters. The default value is false.'."\n"
."\n"
.'Values:'."\n"
."\n"
.'- **true**: Validates only the request parameters.'."\n"
."\n"
.'- **false**: Validates the request parameters and creates the attribution configuration.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The result of the request.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the scene was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'status' => ['description' => 'The status of the scene. Valid values:'."\n"
."\n"
.'- 0: disabled'."\n"
."\n"
.'- 1: enabled', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'updated' => ['description' => 'The time when the scene was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1589012351'],
'name' => ['description' => 'The name of the group.', 'type' => 'string', 'title' => '', 'example' => 'kevintest_2020-5-7_15:21:48'],
'id' => ['description' => 'The ID of the group.', 'type' => 'string', 'title' => '', 'example' => '20405'],
'values' => [
'description' => 'The IDs of the scenes.',
'type' => 'array',
'items' => ['description' => 'The ID of a scene.', 'type' => 'string', 'title' => '', 'example' => '[ "kevintest" ]'],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateABTestScene',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| --------- | ------- | -------- | ------------- | -------------------------------------------------------------------------------------------------- |'."\n"
.'| name | String | Yes | "kevintest22" | The name of the scene. |'."\n"
.'| status | Integer | No | 0 | The status of the scene. Valid values: 0: The experiment is stopped. 1: The experiment is running. |'."\n"
.'| created | Integer | No | 1589012351 | The time when the scene was created. |'."\n"
.'| updated | Integer | No | 1589012351 | The time when the scene was last updated. |'."\n"
.'| values[] | String | No | "kevintest22" | The ID of the scene. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ABTestScenes', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 0,\\n \\"status\\": 1,\\n \\"updated\\": 1589012351,\\n \\"name\\": \\"kevintest_2020-5-7_15:21:48\\",\\n \\"id\\": \\"20405\\",\\n \\"values\\": [\\n \\"[ \\\\\\"kevintest\\\\\\" ]\\"\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateApp' => [
'summary' => 'Creates a new version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55146',
'abilityTreeNodes' => ['FEATUREopensearch2ESE2N', 'FEATUREopensearchG9QGQK', 'FEATUREopensearchO36CPI'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. A dry run checks the validity of the data source but does not create the application. Valid values: true and false.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'autoSwitch' => ['description' => 'Specifies whether to automatically set the new version as the online version after it is created.'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
'networkType' => ['description' => 'The network type. Valid values:'."\n"
."\n"
.'- vpc'."\n"
."\n"
.'- oxs', 'type' => 'string', 'required' => false, 'example' => 'vpc', 'title' => ''],
'description' => ['description' => 'The description of the version.', 'type' => 'string', 'example' => '"version description"', 'required' => false, 'title' => ''],
'schema' => [
'description' => 'The schema of the single-table application.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "primaryTable": true,'."\n"
.' "name": "main",'."\n"
.' "fields": {'."\n"
.' "id": {'."\n"
.' "name": "id",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": true'."\n"
.' },'."\n"
.' "title": {'."\n"
.' "name": "title",'."\n"
.' "type": "TEXT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "buy": {'."\n"
.' "name": "buy",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_id": {'."\n"
.' "name": "cate_id",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_name": {'."\n"
.' "name": "cate_name",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": false'."\n"
.' }'."\n"
.' }'."\n"
.'}', 'title' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'required' => false, 'example' => 'id', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "fields": ["title"],'."\n"
.' "analyzer": "chn_standard"'."\n"
.'}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The name of the level-1 routing field.', 'type' => 'string', 'required' => false, 'example' => 'field1', 'title' => ''],
'routeFieldValues' => [
'description' => 'The list of hotspot values for the level-1 routing field. After you configure this parameter, level-2 routing is enabled.',
'type' => 'array',
'items' => ['description' => 'The hotspot value of the level-1 routing field.', 'type' => 'string', 'required' => false, 'example' => 'routeFieldValues', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The name of the level-2 routing field. This parameter takes effect only when `routeFieldValues` is configured. By default, the primary key of the wide table is used.', 'type' => 'string', 'required' => false, 'example' => 'field2', 'title' => ''],
'ttlField' => [
'description' => 'The document expiration configuration.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document time field.', 'type' => 'string', 'required' => false, 'example' => 'text1', 'title' => ''],
'ttl' => ['description' => 'The time to live (TTL), in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The inverted index configurations.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'required' => false, 'example' => 'field1', 'title' => ''],
'direction' => ['description' => 'The sort order.', 'type' => 'string', 'required' => false, 'example' => 'ASC;'."\n"
.'DESC;', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'required' => false, 'example' => 'table_name', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'schemas' => [
'description' => 'The schema of the multi-table application.',
'type' => 'array',
'items' => [
'description' => 'The schema of the single-table application.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "primaryTable": true,'."\n"
.' "name": "main",'."\n"
.' "fields": {'."\n"
.' "id": {'."\n"
.' "name": "id",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": true'."\n"
.' },'."\n"
.' "title": {'."\n"
.' "name": "title",'."\n"
.' "type": "TEXT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "buy": {'."\n"
.' "name": "buy",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_id": {'."\n"
.' "name": "cate_id",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_name": {'."\n"
.' "name": "cate_name",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": false'."\n"
.' }'."\n"
.' }'."\n"
.'}', 'title' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'required' => false, 'example' => 'id', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "fields": ["title"],'."\n"
.' "analyzer": "chn_standard"'."\n"
.'}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The name of the level-1 routing field.', 'type' => 'string', 'required' => false, 'example' => 'field1', 'title' => ''],
'routeFieldValues' => [
'description' => 'The list of hotspot values for the level-1 routing field. After you configure this parameter, level-2 routing is enabled.',
'type' => 'array',
'items' => ['description' => 'The hotspot value of the level-1 routing field.', 'type' => 'string', 'required' => false, 'example' => 'routeFieldValues'."\n", 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The name of the level-2 routing field. This parameter takes effect only when routeFieldValues is configured. By default, the primary key of the wide table is used.', 'type' => 'string', 'required' => false, 'example' => 'field2', 'title' => ''],
'ttlField' => [
'description' => 'The document expiration configuration.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document time field.', 'type' => 'string', 'required' => false, 'example' => 'text1', 'title' => ''],
'ttl' => ['description' => 'The time to live (TTL), in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The inverted index configurations.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'required' => false, 'example' => 'field1', 'title' => ''],
'direction' => ['description' => 'The sort order.'."\n"
."\n"
.'- ASC'."\n"
."\n"
.'- DESC', 'type' => 'string', 'required' => false, 'example' => 'DESC', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'required' => false, 'example' => 'table_name', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'firstRanks' => [
'description' => 'The rough sort configurations.',
'type' => 'array',
'items' => [
'description' => 'The rough sort configurations.',
'type' => 'object',
'properties' => [
'type' => ['description' => 'The type of the expression.'."\n"
."\n"
.'- STRUCT: structured expression.'."\n"
."\n"
.'- STRING: custom formula. This is the default value.', 'type' => 'string', 'required' => false, 'example' => 'STRING', 'title' => ''],
'name' => ['description' => 'The name of the rough sort expression.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'Description', 'required' => false, 'title' => ''],
'active' => ['description' => 'Specifies whether the expression is the default one.', 'type' => 'boolean', 'required' => false, 'example' => 'False', 'title' => ''],
'meta' => ['description' => 'The details of the expression. The value can be an array or a string.', 'type' => 'any', 'required' => false, 'example' => 'String :"random()*100+now()";'."\n"
.'Array: ['."\n"
.' {'."\n"
.' "attribute": "static_bm25()",'."\n"
.' "arg": "",'."\n"
.' "weight": 10'."\n"
.' }'."\n"
.' ]', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'secondRanks' => [
'description' => 'The fine sort configurations.',
'type' => 'array',
'items' => [
'description' => 'The fine sort configurations.',
'type' => 'object',
'properties' => [
'meta' => ['description' => 'The fine sort expression. You can write an expression that contains fields, feature functions, and mathematical functions to implement complex sort logic.', 'type' => 'any', 'required' => false, 'example' => '"cate_id > 0 and cate_id < 1000"', 'title' => ''],
'name' => ['description' => 'The name of the fine sort expression.', 'type' => 'string', 'required' => false, 'example' => 'default', 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'required' => false, 'example' => '描述', 'title' => ''],
'active' => ['description' => 'Specifies whether the expression is the default one.', 'type' => 'boolean', 'required' => false, 'example' => 'False', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'dataSources' => [
'description' => 'The data source configurations.',
'type' => 'array',
'items' => [
'description' => 'The data source configurations.',
'type' => 'object',
'properties' => [
'tableName' => ['description' => 'The name of the application table.', 'type' => 'string', 'required' => false, 'example' => 'main', 'title' => ''],
'type' => ['description' => 'The type of the data source.'."\n"
."\n"
.'- rds'."\n"
."\n"
.'- odps'."\n"
."\n"
.'- opensearch'."\n"
."\n"
.'- polardb', 'type' => 'string', 'required' => false, 'example' => 'rds', 'title' => ''],
'fields' => [
'description' => 'The information about field mappings.',
'type' => 'array',
'items' => ['description' => 'The information about field mappings.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "id": "id"'."\n"
.' }', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'plugins' => ['description' => 'The data processing plugins for fields.'."\n"
."\n"
.'Plugin name (name):'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover'."\n"
."\n"
.'Plugin parameters (parameters):'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "name": "JsonKeyValueExtractor",'."\n"
.' "parameters": {'."\n"
.' "key": "my_field"'."\n"
.'}'."\n"
.'}', 'title' => ''],
'keyField' => ['description' => 'The primary key.', 'type' => 'string', 'required' => false, 'example' => 'id', 'title' => ''],
'schemaName' => ['description' => 'The name of the wide table.', 'type' => 'string', 'required' => false, 'example' => 'table_name', 'title' => ''],
'parameters' => ['description' => 'The information about the data source.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "instanceId": "rds-instance-id",'."\n"
.' "dbName": "my_db",'."\n"
.' "dbTableName": "my_table",'."\n"
.' "dbUser": "my",'."\n"
.' "dbPassword": "my_passwd",'."\n"
.' "filter":"",'."\n"
.' "autoSync": true'."\n"
.'}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'summaries' => [
'description' => 'The search result summary settings.',
'type' => 'array',
'items' => [
'description' => 'The search result summary settings.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The group name.', 'type' => 'string', 'required' => false, 'example' => 'default', 'title' => ''],
'meta' => [
'description' => 'The summary configurations.',
'type' => 'array',
'items' => [
'description' => 'The summary configuration.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The field.', 'type' => 'string', 'required' => false, 'example' => 'field1', 'title' => ''],
'len' => ['description' => 'The length of the snippet. The value must be in the range of \\[1, 300].', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''],
'element' => ['description' => 'The HTML tag for highlight.', 'type' => 'string', 'required' => false, 'example' => 'em', 'title' => ''],
'ellipsis' => ['description' => 'The string used to connect snippets.', 'type' => 'string', 'required' => false, 'example' => '...', 'title' => ''],
'snippet' => ['description' => 'The number of snippets. The value must be in the range of \\[1, 5].', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'fetchFields' => [
'description' => 'The default display fields.',
'type' => 'array',
'items' => ['description' => 'The field.', 'type' => 'string', 'required' => false, 'example' => 'field1', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'queryProcessors' => [
'description' => 'The intention recognition configurations.',
'type' => 'array',
'items' => [
'description' => 'The intention recognition configurations.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The rule name.', 'type' => 'string', 'required' => false, 'example' => 'name', 'title' => ''],
'domain' => ['description' => 'The industry. Valid values:'."\n"
."\n"
.'- GENERAL: general'."\n"
."\n"
.'- ECOMMERCE: e-commerce'."\n"
."\n"
.'- IT\\_CONTENT: IT content', 'type' => 'string', 'required' => false, 'example' => 'ECOMMERCE', 'title' => ''],
'category' => ['description' => 'The industry category.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
'processors' => [
'description' => 'The features that are included.',
'type' => 'array',
'items' => ['description' => 'The features that are included.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.'"name": "stop_word", "useSystemDictionary": true,'."\n"
.'"interventionDictionary": "my_dict",'."\n"
.' "ignoreSpace": true'."\n"
.'}', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'indexes' => [
'description' => 'The indexes of the application.',
'type' => 'array',
'items' => ['description' => 'The application index.', 'type' => 'string', 'required' => false, 'example' => 'default', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
'active' => ['description' => 'Specifies whether the rule is the default one.', 'type' => 'boolean', 'required' => false, 'example' => 'True', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'cluster' => [
'description' => 'The feature configurations.',
'type' => 'object',
'properties' => [
'maxTimeoutMS' => ['description' => 'The timeout period for the cluster, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '750', 'title' => ''],
'maxQueryClauseLength' => ['description' => 'The maximum length of the query clause.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1024', 'title' => ''],
'textSparseEmbeddingModel' => ['type' => 'string', 'example' => 'ops-text-sparse-embedding-001', 'description' => '', 'title' => ''],
'textEmbeddingModel' => ['type' => 'string', 'example' => 'ops-text-embedding-002', 'description' => '', 'title' => ''],
'chunkModels' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'imageContentRecognizerModels' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'graphRag' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'vectorIndexConfigs' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'domain' => [
'description' => 'The industry model.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The industry.', 'type' => 'string', 'required' => false, 'example' => 'ecommerce', 'title' => ''],
'category' => ['description' => 'The industry category.', 'type' => 'string', 'required' => false, 'example' => 'general', 'title' => ''],
'functions' => ['description' => 'The selected features.'."\n"
."\n"
.'- qp: query analysis'."\n"
."\n"
.'- algo: sort policy'."\n"
."\n"
.'- service: ancillary service', 'type' => 'object', 'required' => false, 'example' => '{"qp":["spellcheck"],"algo":["pop"],"service":["suggest"]}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'realtimeShared' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
'interpretations' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'prompts' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'configItems' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'ABCDEFG', 'title' => ''],
'result' => [
'description' => 'The response data.',
'type' => 'object',
'properties' => [
'id' => ['description' => 'The application ID.', 'type' => 'string', 'example' => '12888', 'title' => ''],
'isCurrent' => ['description' => 'Indicates whether the version is the online version.', 'type' => 'boolean', 'example' => '12333', 'title' => ''],
'clusterName' => ['description' => 'The name of the cluster.', 'type' => 'string', 'deprecated' => true, 'example' => 'vpc_sh_domain_1', 'title' => ''],
'type' => ['description' => 'The application type.'."\n"
."\n"
.'- standard: Standard Edition'."\n"
."\n"
.'- enhanced: Premium Edition', 'type' => 'string', 'example' => 'standard', 'title' => ''],
'description' => ['description' => 'The application description.', 'type' => 'string', 'example' => 'My application', 'title' => ''],
'status' => ['description' => 'The application status.'."\n"
."\n"
.'- OK'."\n"
."\n"
.'- STOPPED: The application is paused.'."\n"
."\n"
.'- FROZEN: The application is frozen.'."\n"
."\n"
.'- INITIALIZING: The version is being initialized.'."\n"
."\n"
.'- UNAVAILABLE: The version is invalid.'."\n"
."\n"
.'- DATA\\_WAITING: The system is waiting for data initialization.'."\n"
."\n"
.'- DATA\\_PREPARING: Data is being initialized.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'schema' => [
'description' => 'The schema of the single-table application.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'example' => '{'."\n"
.' "primaryTable": true,'."\n"
.' "name": "main",'."\n"
.' "fields": {'."\n"
.' "id": {'."\n"
.' "name": "id",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": true'."\n"
.' },'."\n"
.' "title": {'."\n"
.' "name": "title",'."\n"
.' "type": "TEXT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "buy": {'."\n"
.' "name": "buy",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_id": {'."\n"
.' "name": "cate_id",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_name": {'."\n"
.' "name": "cate_name",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": false'."\n"
.' }'."\n"
.' }'."\n"
.'}', 'title' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'example' => 'id', 'title' => ''],
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'example' => '{'."\n"
.' "fields": ["title"],'."\n"
.' "analyzer": "chn_standard"'."\n"
.'}', 'title' => ''],
],
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The name of the level-1 routing field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'routeFieldValues' => [
'description' => 'The name of the level-2 routing field. This parameter takes effect only when routeFieldValues is configured. By default, the primary key of the wide table is used.',
'type' => 'array',
'items' => ['description' => 'The hotspot value of the level-1 routing field.', 'type' => 'string', 'example' => 'routeFieldValues', 'title' => ''],
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The name of the level-2 routing field. This parameter takes effect only when routeFieldValues is configured. By default, the primary key of the wide table is used.', 'type' => 'string', 'example' => 'field2'."\n", 'title' => ''],
'ttlField' => [
'description' => 'The document expiration configuration.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document time field.', 'type' => 'string', 'example' => 'text1'."\n", 'title' => ''],
'ttl' => ['description' => 'The time to live (TTL), in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The inverted index configurations.',
'type' => 'array',
'items' => [
'description' => 'The inverted index configuration.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'direction' => ['description' => 'The sort order.'."\n"
."\n"
.'- ASC'."\n"
."\n"
.'- DESC', 'type' => 'string', 'example' => 'DESC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'test', 'title' => ''],
],
'title' => '',
'example' => '',
],
'progressPercent' => ['description' => 'The data import progress, in percentage.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
'fetchFields' => [
'description' => 'The default display fields.',
'type' => 'array',
'items' => ['description' => 'The default display field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'title' => '',
'example' => '',
],
'domain' => [
'description' => 'The industry model.',
'type' => 'object',
'properties' => [
'category' => ['description' => 'The industry category.', 'type' => 'string', 'example' => '-', 'title' => ''],
'name' => ['description' => 'The industry. Valid values:'."\n"
."\n"
.'- GENERAL'."\n"
."\n"
.'- ECOMMERCE'."\n"
."\n"
.'- IT\\_CONTENT', 'type' => 'string', 'example' => 'GENERAL', 'title' => ''],
'functions' => [
'description' => 'The selected features.',
'type' => 'object',
'properties' => [
'service' => [
'description' => 'The ancillary service features.',
'type' => 'array',
'items' => ['description' => 'The ancillary service features.', 'type' => 'string', 'example' => 'suggest'."\n"
."\n", 'title' => ''],
'title' => '',
'example' => '',
],
'qp' => [
'description' => 'The query analysis features.',
'type' => 'array',
'items' => ['description' => 'The query analysis features.', 'type' => 'string', 'example' => 'spellcheck', 'title' => ''],
'title' => '',
'example' => '',
],
'algo' => [
'description' => 'The sort policy features.',
'type' => 'array',
'items' => ['description' => 'The sort policy features.', 'type' => 'string', 'example' => 'pop', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'schemas' => [
'description' => 'The schema of the multi-table application.',
'type' => 'array',
'items' => [
'description' => 'The application schema.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'example' => '{'."\n"
.' "primaryTable": true,'."\n"
.' "name": "main",'."\n"
.' "fields": {'."\n"
.' "id": {'."\n"
.' "name": "id",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": true'."\n"
.' },'."\n"
.' "title": {'."\n"
.' "name": "title",'."\n"
.' "type": "TEXT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "buy": {'."\n"
.' "name": "buy",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_id": {'."\n"
.' "name": "cate_id",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_name": {'."\n"
.' "name": "cate_name",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": false'."\n"
.' }'."\n"
.' }'."\n"
.'}', 'title' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'example' => '{'."\n"
.' "fields": ["title"],'."\n"
.' "analyzer": "chn_standard"'."\n"
.'}'."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The name of the level-1 routing field.', 'type' => 'string', 'example' => 'field1'."\n", 'title' => ''],
'routeFieldValues' => [
'description' => 'The list of hotspot values for the level-1 routing field. After you configure this parameter, level-2 routing is enabled.',
'type' => 'array',
'items' => ['description' => 'The hotspot value of the level-1 routing field.', 'type' => 'string', 'example' => 'routeFieldValues', 'title' => ''],
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The name of the level-2 routing field. This parameter takes effect only when routeFieldValues is configured. By default, the primary key of the wide table is used.', 'type' => 'string', 'example' => 'field2', 'title' => ''],
'ttlField' => [
'description' => 'The document expiration configuration.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document time field.', 'type' => 'string', 'example' => 'fIeld1', 'title' => ''],
'ttl' => ['description' => 'The time to live (TTL), in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The inverted index configuration.',
'type' => 'array',
'items' => [
'description' => 'The inverted index configuration.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'example' => 'fIeld1', 'title' => ''],
'direction' => ['description' => 'The sort order.'."\n"
."\n"
.'- ASC'."\n"
."\n"
.'- DESC', 'type' => 'string', 'example' => 'DESC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'main', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'firstRanks' => [
'description' => 'The rough sort configurations.',
'type' => 'array',
'items' => [
'description' => 'The rough sort configurations.',
'type' => 'object',
'properties' => [
'type' => ['description' => 'The type of the expression. Valid values: \\`STRUCT\\`: a structured expression. \\`STRING\\`: a custom formula. Default value: \\`STRING\\`.'."\n"
."\n"
.'STRUCT: The content of the expression is a structure. STRING (default): custom formula.', 'type' => 'string', 'example' => 'STRING', 'title' => ''],
'name' => ['description' => 'The name of the rough sort expression.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => '描述', 'title' => ''],
'active' => ['description' => 'Specifies whether the expression is the default one.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
'meta' => ['description' => 'The details of the expression. The value can be an array or a string.', 'type' => 'any', 'example' => 'String :"random()*100+now()";'."\n"
.'Array: ['."\n"
.' {'."\n"
.' "attribute": "static_bm25()",'."\n"
.' "arg": "",'."\n"
.' "weight": 10'."\n"
.' }'."\n"
.' ]', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'secondRanks' => [
'description' => 'The fine sort configurations.',
'type' => 'array',
'items' => [
'description' => 'The fine sort configuration.',
'type' => 'object',
'properties' => [
'meta' => ['description' => 'The fine sort expression. You can write an expression that contains fields, feature functions, and mathematical functions to implement complex sort logic.', 'type' => 'any', 'example' => '"cate_id > 0 and cate_id < 1000"'."\n", 'title' => ''],
'name' => ['description' => 'The name of the fine sort expression.', 'type' => 'string', 'example' => 'default'."\n", 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'default'."\n", 'title' => ''],
'active' => ['description' => 'Specifies whether the expression is the default one.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'dataSources' => [
'description' => 'The data source configurations.',
'type' => 'array',
'items' => [
'description' => 'The data source configurations.',
'type' => 'object',
'properties' => [
'tableName' => ['description' => 'The name of the application table.', 'type' => 'string', 'example' => 'main', 'title' => ''],
'type' => ['description' => 'The type of the data source.'."\n"
."\n"
.'- rds'."\n"
."\n"
.'- odps'."\n"
."\n"
.'- opensearch'."\n"
."\n"
.'- polardb', 'type' => 'string', 'example' => 'rds', 'title' => ''],
'fields' => [
'description' => 'The information about field mappings.',
'type' => 'array',
'items' => ['description' => 'The information about field mappings.', 'type' => 'object', 'example' => '{'."\n"
.' "id": "id"'."\n"
.' }'."\n", 'title' => ''],
'title' => '',
'example' => '',
],
'plugins' => ['description' => 'The data processing plugins for fields.'."\n"
."\n"
.'Plugin name (name):'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover'."\n"
."\n"
.'Plugin parameters (parameters):'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover', 'type' => 'object', 'example' => '{'."\n"
.' "name": "JsonKeyValueExtractor",'."\n"
.' "parameters": {'."\n"
.' "key": "my_field"'."\n"
.'}'."\n"
.'}', 'title' => ''],
'keyField' => ['description' => 'The primary key.', 'type' => 'string', 'example' => 'id', 'title' => ''],
'schemaName' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'table_name', 'title' => ''],
'parameters' => ['description' => 'The information about the data source.', 'type' => 'object', 'example' => '{'."\n"
.' "instanceId": "rds-instance-id",'."\n"
.' "dbName": "my_db",'."\n"
.' "dbTableName": "my_table",'."\n"
.' "dbUser": "my",'."\n"
.' "dbPassword": "my_passwd",'."\n"
.' "filter":"",'."\n"
.' "autoSync": true'."\n"
.'}'."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'summaries' => [
'description' => 'The search result summary settings.',
'type' => 'array',
'items' => [
'description' => 'The search result summary settings.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The group name.', 'type' => 'string', 'example' => 'fefault', 'title' => ''],
'meta' => [
'description' => 'The summary configurations.',
'type' => 'array',
'items' => [
'description' => 'The summary configuration.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'len' => ['description' => 'The length of the snippet. The value must be in the range of \\[1, 300].', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'element' => ['description' => 'The HTML tag for highlight.', 'type' => 'string', 'example' => 'em', 'title' => ''],
'ellipsis' => ['description' => 'The string used to connect snippets.', 'type' => 'string', 'example' => '...', 'title' => ''],
'snippet' => ['description' => 'The number of snippets. The value must be in the range of \\[1, 5].', 'type' => 'string', 'example' => '5', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'queryProcessors' => [
'description' => 'The intention recognition configurations.',
'type' => 'array',
'items' => [
'description' => 'The intention recognition configurations.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The rule name.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'domain' => ['description' => 'The industry. Valid values:'."\n"
."\n"
.'- GENERAL: general'."\n"
."\n"
.'- ECOMMERCE: e-commerce'."\n"
."\n"
.'- IT\\_CONTENT: IT content', 'type' => 'string', 'example' => 'GENERAL', 'title' => ''],
'category' => ['description' => 'The industry category.', 'type' => 'string', 'example' => '""', 'title' => ''],
'processors' => [
'description' => 'The features that are included.',
'type' => 'array',
'items' => ['description' => 'The features that are included.', 'type' => 'object', 'example' => '{'."\n"
.'"name": "stop_word", "useSystemDictionary": true,'."\n"
.'"interventionDictionary": "my_dict",'."\n"
.' "ignoreSpace": true'."\n"
.'}', 'title' => ''],
'title' => '',
'example' => '',
],
'indexes' => [
'description' => 'The indexes of the application.',
'type' => 'array',
'items' => ['description' => 'The application index.', 'type' => 'string', 'example' => 'id', 'title' => ''],
'title' => '',
'example' => '',
],
'active' => ['description' => 'Specifies whether the rule is the default one.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'cluster' => [
'description' => 'The feature configurations.',
'type' => 'object',
'properties' => [
'maxTimeoutMS' => ['description' => 'The timeout period for the cluster, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '750', 'title' => ''],
'maxQueryClauseLength' => ['description' => 'The maximum length of the query clause.', 'type' => 'integer', 'format' => 'int32', 'example' => '1024', 'title' => ''],
'textEmbeddingModel' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'textSparseEmbeddingModel' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'chunkModels' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'imageContentRecognizerModels' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'graphRag' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'vectorIndexConfigs' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'prompts' => [
'description' => 'The prompt configurations.',
'type' => 'array',
'items' => ['description' => 'The prompt configuration.', 'type' => 'object', 'example' => '{'."\n"
.' "name" : "prompt_name",'."\n"
.' "isDefault" : false,'."\n"
.' "description":"描述",'."\n"
.' "prompt" : {'."\n"
.' "parameters" : ['."\n"
.' {'."\n"
.' "name" : "docs",'."\n"
.' "value" : "doc内容的拼接方式,比如现在的 qwen的 \'\\n${doc}\\n\\n"'."\n"
.' }'."\n"
.' ],'."\n"
.' "messages":['."\n"
.' {'."\n"
.' "role" : "role_name,这里是否需要限定只能是 system, user, assistant,还是可以让用户随意填写",'."\n"
.' "content" : "用户设置的prompt内容,里面可以使用 ${parameter_key} 来表示期望动态替换的内容,具体替换规则参考下面说明"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' }', 'title' => ''],
'title' => '',
'example' => '',
],
'quota' => [
'description' => 'The quota of the version.',
'type' => 'object',
'properties' => [
'qps' => ['description' => 'The queries per second (QPS).', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'computeResource' => ['description' => 'The compute resources.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'docSize' => ['description' => 'The storage capacity.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'spec' => ['description' => 'The instance specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: Starter Edition'."\n"
."\n"
.'- opensearch.share.common: Shared General-purpose'."\n"
."\n"
.'- opensearch.share.compute: Shared Compute-optimized'."\n"
."\n"
.'- opensearch.share.storage: Shared Storage-optimized'."\n"
."\n"
.'- opensearch.private.common: Exclusive General-purpose'."\n"
."\n"
.'- opensearch.private.compute: Exclusive Compute-optimized'."\n"
."\n"
.'- opensearch.private.storage: Exclusive Storage-optimized', 'type' => 'string', 'example' => 'opensearch.share.common', 'title' => ''],
'usedQps' => ['type' => 'integer', 'format' => 'int32', 'example' => '100', 'description' => '', 'title' => ''],
'usedDocSize' => ['type' => 'number', 'format' => 'double', 'example' => '1024', 'description' => '', 'title' => ''],
'usedComputeResource' => ['type' => 'integer', 'format' => 'int32', 'example' => '100', 'description' => '', 'title' => ''],
],
'title' => '',
'example' => '',
],
'interpretations' => [
'description' => 'The descriptions of the large language model (LLM) table fields.',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'type' => 'array',
'example' => '{'."\n"
.' "name": "longyu_llm_1",'."\n"
.' "schemas": [],'."\n"
.' "interpretations": ['."\n"
.' {'."\n"
.' "table": "table1",'."\n"
.' "fields": ['."\n"
.' {'."\n"
.' "name": "field1",'."\n"
.' "interpretation": " title"'."\n"
.' },'."\n"
.' {'."\n"
.' "name": "field2",'."\n"
.' "interpretation": " ID"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'title' => '',
],
'configItems' => [
'type' => 'array',
'items' => ['type' => 'object', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'updated' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
'created' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
'switchTime' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
],
'example' => '{}',
'title' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFG\\",\\n \\"result\\": {\\n \\"id\\": \\"12888\\",\\n \\"isCurrent\\": true,\\n \\"clusterName\\": \\"vpc_sh_domain_1\\",\\n \\"type\\": \\"standard\\",\\n \\"description\\": \\"My application\\",\\n \\"status\\": \\"OK\\",\\n \\"schema\\": {\\n \\"tables\\": {\\n \\"primaryTable\\": true,\\n \\"name\\": \\"main\\",\\n \\"fields\\": {\\n \\"id\\": {\\n \\"name\\": \\"id\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": true\\n },\\n \\"title\\": {\\n \\"name\\": \\"title\\",\\n \\"type\\": \\"TEXT\\",\\n \\"primaryKey\\": false\\n },\\n \\"buy\\": {\\n \\"name\\": \\"buy\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_id\\": {\\n \\"name\\": \\"cate_id\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_name\\": {\\n \\"name\\": \\"cate_name\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": false\\n }\\n }\\n },\\n \\"indexes\\": {\\n \\"filterFields\\": [\\n \\"id\\"\\n ],\\n \\"searchFields\\": {\\n \\"fields\\": [\\n \\"title\\"\\n ],\\n \\"analyzer\\": \\"chn_standard\\"\\n }\\n },\\n \\"routeField\\": \\"field1\\",\\n \\"routeFieldValues\\": [\\n \\"routeFieldValues\\"\\n ],\\n \\"secondRouteField\\": \\"field2\\\\n\\",\\n \\"ttlField\\": {\\n \\"name\\": \\"text1\\\\n\\",\\n \\"ttl\\": 1000\\n },\\n \\"indexSortConfig\\": [\\n {\\n \\"field\\": \\"field1\\",\\n \\"direction\\": \\"DESC\\"\\n }\\n ],\\n \\"name\\": \\"test\\"\\n },\\n \\"progressPercent\\": 100,\\n \\"fetchFields\\": [\\n \\"field1\\"\\n ],\\n \\"domain\\": {\\n \\"category\\": \\"-\\",\\n \\"name\\": \\"GENERAL\\",\\n \\"functions\\": {\\n \\"service\\": [\\n \\"suggest\\\\n\\\\n\\"\\n ],\\n \\"qp\\": [\\n \\"spellcheck\\"\\n ],\\n \\"algo\\": [\\n \\"pop\\"\\n ]\\n }\\n },\\n \\"schemas\\": [\\n {\\n \\"tables\\": {\\n \\"primaryTable\\": true,\\n \\"name\\": \\"main\\",\\n \\"fields\\": {\\n \\"id\\": {\\n \\"name\\": \\"id\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": true\\n },\\n \\"title\\": {\\n \\"name\\": \\"title\\",\\n \\"type\\": \\"TEXT\\",\\n \\"primaryKey\\": false\\n },\\n \\"buy\\": {\\n \\"name\\": \\"buy\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_id\\": {\\n \\"name\\": \\"cate_id\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_name\\": {\\n \\"name\\": \\"cate_name\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": false\\n }\\n }\\n },\\n \\"indexes\\": {\\n \\"filterFields\\": [\\n \\"field1\\"\\n ],\\n \\"searchFields\\": {\\n \\"fields\\": [\\n \\"title\\"\\n ],\\n \\"analyzer\\": \\"chn_standard\\"\\n }\\n },\\n \\"routeField\\": \\"field1\\\\n\\",\\n \\"routeFieldValues\\": [\\n \\"routeFieldValues\\"\\n ],\\n \\"secondRouteField\\": \\"field2\\",\\n \\"ttlField\\": {\\n \\"name\\": \\"fIeld1\\",\\n \\"ttl\\": 1000\\n },\\n \\"indexSortConfig\\": [\\n {\\n \\"field\\": \\"fIeld1\\",\\n \\"direction\\": \\"DESC\\"\\n }\\n ],\\n \\"name\\": \\"main\\"\\n }\\n ],\\n \\"firstRanks\\": [\\n {\\n \\"type\\": \\"STRING\\",\\n \\"name\\": \\"test\\",\\n \\"description\\": \\"描述\\",\\n \\"active\\": true,\\n \\"meta\\": \\"String :\\\\\\"random()*100+now()\\\\\\";\\\\nArray: [\\\\n {\\\\n \\\\\\"attribute\\\\\\": \\\\\\"static_bm25()\\\\\\",\\\\n \\\\\\"arg\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"weight\\\\\\": 10\\\\n }\\\\n ]\\"\\n }\\n ],\\n \\"secondRanks\\": [\\n {\\n \\"meta\\": \\"\\\\\\"cate_id > 0 and cate_id < 1000\\\\\\"\\\\n\\",\\n \\"name\\": \\"default\\\\n\\",\\n \\"description\\": \\"default\\\\n\\",\\n \\"active\\": true\\n }\\n ],\\n \\"dataSources\\": [\\n {\\n \\"tableName\\": \\"main\\",\\n \\"type\\": \\"rds\\",\\n \\"fields\\": [\\n {\\n \\"id\\": \\"id\\"\\n }\\n ],\\n \\"plugins\\": {\\n \\"name\\": \\"JsonKeyValueExtractor\\",\\n \\"parameters\\": {\\n \\"key\\": \\"my_field\\"\\n }\\n },\\n \\"keyField\\": \\"id\\",\\n \\"schemaName\\": \\"table_name\\",\\n \\"parameters\\": {\\n \\"instanceId\\": \\"rds-instance-id\\",\\n \\"dbName\\": \\"my_db\\",\\n \\"dbTableName\\": \\"my_table\\",\\n \\"dbUser\\": \\"my\\",\\n \\"dbPassword\\": \\"my_passwd\\",\\n \\"filter\\": \\"\\",\\n \\"autoSync\\": true\\n }\\n }\\n ],\\n \\"summaries\\": [\\n {\\n \\"name\\": \\"fefault\\",\\n \\"meta\\": [\\n {\\n \\"field\\": \\"field1\\",\\n \\"len\\": 50,\\n \\"element\\": \\"em\\",\\n \\"ellipsis\\": \\"...\\",\\n \\"snippet\\": \\"5\\"\\n }\\n ]\\n }\\n ],\\n \\"queryProcessors\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"category\\": \\"\\\\\\"\\\\\\"\\",\\n \\"processors\\": [\\n {\\n \\"name\\": \\"stop_word\\",\\n \\"useSystemDictionary\\": true,\\n \\"interventionDictionary\\": \\"my_dict\\",\\n \\"ignoreSpace\\": true\\n }\\n ],\\n \\"indexes\\": [\\n \\"id\\"\\n ],\\n \\"active\\": true\\n }\\n ],\\n \\"cluster\\": {\\n \\"maxTimeoutMS\\": 750,\\n \\"maxQueryClauseLength\\": 1024,\\n \\"textEmbeddingModel\\": \\"\\",\\n \\"textSparseEmbeddingModel\\": \\"\\",\\n \\"chunkModels\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"imageContentRecognizerModels\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"graphRag\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"vectorIndexConfigs\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n },\\n \\"prompts\\": [\\n {\\n \\"name\\": \\"prompt_name\\",\\n \\"isDefault\\": false,\\n \\"description\\": \\"描述\\",\\n \\"prompt\\": {\\n \\"parameters\\": [\\n {\\n \\"name\\": \\"docs\\",\\n \\"value\\": \\"doc内容的拼接方式,比如现在的 qwen的 \'\\\\n${doc}\\\\n\\\\n\\"\\n }\\n ],\\n \\"messages\\": [\\n {\\n \\"role\\": \\"role_name,这里是否需要限定只能是 system, user, assistant,还是可以让用户随意填写\\",\\n \\"content\\": \\"用户设置的prompt内容,里面可以使用 ${parameter_key} 来表示期望动态替换的内容,具体替换规则参考下面说明\\"\\n }\\n ]\\n }\\n }\\n ],\\n \\"quota\\": {\\n \\"qps\\": 5,\\n \\"computeResource\\": 20,\\n \\"docSize\\": 1,\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"usedQps\\": 100,\\n \\"usedDocSize\\": 1024,\\n \\"usedComputeResource\\": 100\\n },\\n \\"interpretations\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"configItems\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"updated\\": 0,\\n \\"created\\": 0,\\n \\"switchTime\\": 0\\n }\\n}","type":"json"}]',
'title' => 'CreateApp',
'description' => '- If a Standard Edition application with the same name already exists, a new version is created.'."\n"
."\n"
.'- The autoSwitch and realtimeShared parameters are required to create a new version.'."\n"
."\n"
.'- The quota for the new version is automatically inherited from the previous version.'."\n"
."\n"
.'- You cannot modify the quota when you create the new version.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ------------------ | ------- | -------- | --------------- | --------------------------------------------------------------------------------------------------------- |'."\n"
.'| type | String | Yes | "standard" | The application type.
- \\`standard\\`: Standard Edition
- \\`enhanced\\`: Premium Edition |'."\n"
.'| schema | Object | Yes | | The schema of the application version.
For more information, see [Schema](~~170003~~) |'."\n"
.'| fetchFields | Array | Yes | \\["id", "name"] | The default display fields. |'."\n"
.'| realtimeShared | Boolean | Yes | false | Specifies whether to share the real-time stream. |'."\n"
.'| autoSwitch | Boolean | Yes | false | Specifies whether to automatically set the version as the online version. |'."\n"
.'| description | String | No | "demo" | The description. |'."\n"
.'| quota | Object | No | | The quota of the application version.
For more information, see [Quota](~~170001~~) |'."\n"
.'| dataSources\\[] | Object | No | | The details of the data sources.
For more information, see [DataSource](~~170005~~) |'."\n"
.'| firstRanks\\[] | Object | No | | The details of the rough sort expressions.
For more information, see [FirstRank](~~170007~~) |'."\n"
.'| secondRanks\\[] | Object | No | | The details of the fine sort expressions.
For more information, see [SecondRank](~~170008~~) |'."\n"
.'| queryProcessors\\[] | Object | No | | The details of the intention recognition rules.
For more information, see [QueryProcessor](~~170014~~) |'."\n"
.'| summaries\\[] | Object | No | | The search result summary settings.
For more information, see [Summary](~~170016~~) |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'CreateAppGroup' => [
'summary' => 'Creates an OpenSearch application.',
'path' => '/v4/openapi/app-groups',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '55147',
'abilityTreeNodes' => ['FEATUREopensearch2ESE2N', 'FEATUREopensearchG9QGQK', 'FEATUREopensearchO36CPI'],
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'jmbon_analyzer'],
'chargeType' => [
'description' => 'The billing method. Valid values:'."\n"
."\n"
.'- POSTPAY: pay-as-you-go'."\n"
."\n"
.'- PREPAY: subscription',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'title' => '',
'example' => 'POSTPAY',
],
'type' => ['description' => 'The application type. Valid values:'."\n"
."\n"
.'- standard: Standard Edition'."\n"
."\n"
.'- enhanced: Premium Edition', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'enhanced'],
'resourceGroupId' => ['description' => 'The ID of the resource group to which the instance belongs.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'rg-acfm2ij6pwxsvua'],
'tags' => [
'description' => 'The tags.',
'type' => 'array',
'items' => [
'description' => 'The tag object.',
'type' => 'object',
'properties' => [
'key' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'a'],
'value' => ['description' => 'The tag value.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'quota' => [
'description' => 'The quota.',
'type' => 'object',
'properties' => [
'docSize' => ['description' => 'The storage capacity. Unit: GB.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'],
'computeResource' => ['description' => 'The computing resources. Unit: logical computing unit (LCU).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '20'],
'spec' => ['description' => 'The specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: basic'."\n"
."\n"
.'- opensearch.share.common: shared general-purpose'."\n"
."\n"
.'- opensearch.share.compute: shared compute-optimized'."\n"
."\n"
.'- opensearch.share.storage: shared storage-optimized'."\n"
."\n"
.'- opensearch.private.common: exclusive general-purpose'."\n"
."\n"
.'- opensearch.private.compute: exclusive compute-optimized'."\n"
."\n"
.'- opensearch.private.storage: exclusive storage-optimized', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'opensearch.share.common'],
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '766CF6DB-CA02-3E12-7CBA-6AC21FC978FD'],
'result' => [
'description' => 'This parameter is left empty.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp when the application was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1590139542'],
'currentVersion' => ['description' => 'The ID of the current online version.', 'type' => 'string', 'title' => '', 'example' => '100302903'],
'lockMode' => ['description' => 'The lock state. Valid values:'."\n"
."\n"
.'- Unlock: The instance is unlocked.'."\n"
."\n"
.'- LockByExpiration: The instance is automatically locked after it expires.'."\n"
."\n"
.'- ManualLock: The instance is manually locked.', 'type' => 'string', 'title' => '', 'example' => 'Unlock'],
'updated' => ['description' => 'The timestamp when the application was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1590978265'],
'id' => ['description' => 'The application ID.', 'type' => 'string', 'title' => '', 'example' => '100302881'],
'chargeType' => ['description' => 'The billing method. Valid values:'."\n"
."\n"
.'- POSTPAY: pay-as-you-go'."\n"
."\n"
.'- PREPAY: subscription', 'type' => 'string', 'title' => '', 'example' => 'POSTPAY'],
'hasPendingQuotaReviewTask' => ['description' => 'The approval status of the quota. Valid values:'."\n"
."\n"
.'- 0: The application is running as normal.'."\n"
."\n"
.'- 1: The quota change is under review.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'name' => ['description' => 'The name of the application.', 'type' => 'string', 'title' => '', 'example' => 'lsh_test_1'],
'instanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'title' => '', 'example' => '-'],
'chargingWay' => ['description' => 'The billing type. Valid values:'."\n"
."\n"
.'- 1: computing resources'."\n"
."\n"
.'- 2: queries per second (QPS)', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'type' => ['description' => 'The application type. Valid values:'."\n"
."\n"
.'- standard: Standard Edition'."\n"
."\n"
.'- advance: an old version of Premium Edition. You cannot create new applications of this type.'."\n"
."\n"
.'- enhanced: a new version of Premium Edition', 'type' => 'string', 'title' => '', 'example' => 'enhanced'],
'status' => ['description' => 'The application status. Valid values:'."\n"
."\n"
.'- producing: The application is being created.'."\n"
."\n"
.'- review\\_pending: The application is under review.'."\n"
."\n"
.'- config\\_pending: The application is pending configuration.'."\n"
."\n"
.'- normal: The application is running as normal.'."\n"
."\n"
.'- frozen: The application is frozen.', 'type' => 'string', 'title' => '', 'example' => 'normal'],
'projectId' => ['description' => 'The name of the A/B test project.', 'type' => 'string', 'title' => '', 'example' => '-'],
'switchedTime' => ['description' => 'The timestamp when the current online version was published.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1590486386'],
'commodityCode' => ['description' => 'The commodity code.', 'type' => 'string', 'title' => '', 'example' => 'opensearch'],
'expireOn' => ['description' => 'The expiration time.', 'type' => 'string', 'title' => '', 'example' => '-'],
'domain' => ['description' => 'The industry type. Valid values:'."\n"
."\n"
.'- GENERAL'."\n"
."\n"
.'- ECOMMERCE'."\n"
."\n"
.'- IT\\_CONTENT', 'type' => 'string', 'title' => '', 'example' => 'GENERAL'],
'description' => ['description' => 'The description of the application.', 'type' => 'string', 'title' => '', 'example' => '-'],
'produced' => ['description' => 'Indicates whether the application is created. Valid values:'."\n"
."\n"
.'- 0: The application is being created.'."\n"
."\n"
.'- 1: The application is created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'quota' => [
'description' => 'The quota information for the application.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: basic'."\n"
."\n"
.'- opensearch.share.common: shared general-purpose'."\n"
."\n"
.'- opensearch.share.compute: shared compute-optimized'."\n"
."\n"
.'- opensearch.share.storage: shared storage-optimized'."\n"
."\n"
.'- opensearch.private.common: exclusive general-purpose'."\n"
."\n"
.'- opensearch.private.compute: exclusive compute-optimized'."\n"
."\n"
.'- opensearch.private.storage: exclusive storage-optimized', 'type' => 'string', 'title' => '', 'example' => 'opensearch.share.common'],
'docSize' => ['description' => 'The storage capacity. Unit: GB.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'computeResource' => ['description' => 'The computing resources. Unit: LCU.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '20'],
],
'title' => '',
'example' => '',
],
'engineType' => ['description' => 'The engine type.', 'type' => 'string', 'title' => '', 'example' => 'ha3'],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateAppGroup',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ------------------ | ------- | -------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| name | String | Yes | "my_app" | The name of the application. |'."\n"
.'| type | String | Yes | "standard" | The application type.
Valid values:- standard: Standard Edition- enhanced: Premium Edition |'."\n"
.'| quota | Object | Yes | | The quota information for the application.
For more information, see [Quota](~~170001~~) |'."\n"
.'| chargeType | String | No | "POSTPAY" | The billing method.
Valid values:- POSTPAY: pay-as-you-go (default)- PREPAY: subscription |'."\n"
.'| order | Object | No | {"duration": 1,"pricingCycle": "Year"} | The subscription details. |'."\n"
.'| order.duration | Integer | \\-- | 1 | The subscription duration.
The minimum value is 0. |'."\n"
.'| order.pricingCycle | String | \\-- | "Year" | The unit of the subscription duration.
Valid values:- Year- Month |'."\n"
.'| order.autoRenew | Boolean | No | true | Specifies whether to enable auto-renewal. This parameter is valid only when the chargeType parameter is set to PREPAY. Valid values:* true: Auto-renewal is enabled.
* false: Auto-renewal is disabled. (Default) |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"766CF6DB-CA02-3E12-7CBA-6AC21FC978FD\\",\\n \\"result\\": {\\n \\"created\\": 1590139542,\\n \\"currentVersion\\": \\"100302903\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"updated\\": 1590978265,\\n \\"id\\": \\"100302881\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"hasPendingQuotaReviewTask\\": 0,\\n \\"name\\": \\"lsh_test_1\\",\\n \\"instanceId\\": \\"-\\",\\n \\"chargingWay\\": 1,\\n \\"type\\": \\"enhanced\\",\\n \\"status\\": \\"normal\\",\\n \\"projectId\\": \\"-\\",\\n \\"switchedTime\\": 1590486386,\\n \\"commodityCode\\": \\"opensearch\\",\\n \\"expireOn\\": \\"-\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"description\\": \\"-\\",\\n \\"produced\\": 1,\\n \\"quota\\": {\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n },\\n \\"engineType\\": \\"ha3\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateAppGroupCredentials' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/credentials',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '228583',
'abilityTreeNodes' => ['FEATUREopensearch1AJKH0'],
],
'parameters' => [
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. In a dry run, the system checks the request parameters but does not execute the operation.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body, which contains information such as the credential type.',
'type' => 'object',
'properties' => [
'type' => ['description' => 'The credential type, such as \\`api-key\\`, \\`account\\`, \\`invoke-key\\`, or \\`api-token\\`. To create an API key, set this parameter to \\`api-token\\`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'api-token'],
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The identity of the application group.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'app_group_123'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The structure of a successful response.',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '', 'description' => 'The unique ID of the request.', 'type' => 'string', 'example' => '1-2-3-4'],
'result' => [
'description' => 'The details of the operation result.',
'type' => 'object',
'properties' => [
'appGroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => 'app_group_123'],
'type' => ['description' => 'The credential type.', 'type' => 'string', 'title' => '', 'example' => 'api-token'],
'enabled' => ['description' => 'Indicates whether the credential is enabled.', 'type' => 'boolean', 'title' => '', 'example' => ''],
'token' => ['description' => 'The generated credential token.', 'type' => 'string', 'title' => '', 'example' => 'generated_token_string'],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'CreateAppGroupCredentials',
'summary' => 'Creates access credentials for a specified application group. This operation supports a dry run to preview the results.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteAppGroupCredential',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroupCredential', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:appGroup/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"1-2-3-4\\",\\n \\"result\\": {\\n \\"appGroupId\\": 0,\\n \\"type\\": \\"api-token\\",\\n \\"enabled\\": false,\\n \\"token\\": \\"generated_token_string\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateFirstRank' => [
'summary' => 'Creates a rough sort expression for a version of an OpenSearch application. If you set `dryRun` to true, this operation validates the specified rough sort expression. By default, the value of `dryRun` is `false`.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/first-ranks',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchH8SRT8'],
],
'parameters' => [
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '110157886', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body, which contains the information about the rough sort expression.', '$ref' => '#/components/schemas/FirstRank', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF', 'title' => ''],
'result' => [
'description' => 'The information about the rough sort expression.',
'type' => 'object',
'properties' => [
'active' => ['description' => 'Indicates whether the expression is the default one.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'name' => ['description' => 'The name of the expression.', 'type' => 'string', 'example' => 'default', 'title' => ''],
'meta' => [
'description' => 'The content of the expression.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'arg' => ['description' => 'The parameters that are used by a function in the expression.', 'type' => 'string', 'example' => '1', 'title' => ''],
'attribute' => ['description' => 'The attribute, feature functions, or field to be searched for.', 'type' => 'string', 'example' => 'static_bm25()', 'title' => ''],
'weight' => ['description' => 'The weight.'."\n"
.'Valid values: \\[-100000, 100000]. The value cannot be 0.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateFirstRank',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ----------- | --------------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| name | String | Yes | "test" | The name of the expression. |'."\n"
.'| type | String | Yes | "STRUCT" | The type of the expression. Valid values:
\\- STRUCT: The expression is a structure. This is the default value.
\\- STRING: The expression is a custom formula. |'."\n"
.'| meta | Array or String | Yes | | The content of the expression. |'."\n"
.'| description | String | No | "my_test" | The description of the expression. |'."\n"
.'| active | Boolean | No | true | Specifies whether the expression is the default one. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"active\\": true,\\n \\"name\\": \\"default\\",\\n \\"meta\\": [\\n {\\n \\"arg\\": \\"1\\",\\n \\"attribute\\": \\"static_bm25()\\",\\n \\"weight\\": 10\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateFunctionInstance' => [
'summary' => 'Creates an algorithm instance of a feature.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '100229',
'abilityTreeNodes' => ['FEATUREopensearch3QPM0K', 'FEATUREopensearchUIICM8', 'FEATUREopensearchZAE4HR'],
],
'parameters' => [
[
'name' => 'Body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'instanceName' => ['description' => 'The instance name. The name must be 1 to 30 characters in length and can contain letters, digits, and underscores (\\_). The name is case-sensitive and must start with a letter.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ctr_test'],
'modelType' => ['description' => 'The model type. The value varies based on the model.'."\n"
."\n"
.'- Click-through rate (CTR) model: tf\\_checkpoint'."\n"
."\n"
.'- Popularity model: pop'."\n"
."\n"
.'- Category model: offline\\_inference'."\n"
."\n"
.'- Hotword model: offline\\_inference'."\n"
."\n"
.'- Hint model: offline\\_inference'."\n"
."\n"
.'- Hotword model for real-time top searches: near\\_realtime'."\n"
."\n"
.'- Personalized hint model: near\\_realtime'."\n"
."\n"
.'- Drop-down suggestion model: offline\\_inference'."\n"
."\n"
.'- Tokenization model: text'."\n"
."\n"
.'- Term weight model: tf\\_checkpoint'."\n"
."\n"
.'- Synonym model: offline\\_inference', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'tf_checkpoint'],
'functionType' => ['description' => 'The feature type.'."\n"
."\n"
.'- Default value: PAAS. Training is required before you can use the feature.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'PAAS'],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'Test instance', 'title' => '', 'required' => false],
'createParameters' => [
'title' => '',
'description' => 'The parameters used to create the instance.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The parameter name.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'title_field'],
'value' => ['description' => 'The parameter value.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'title'],
],
'required' => false,
'example' => '{ "name": "title_field", "value": "title" }',
'title' => '',
],
'required' => false,
'example' => '[ { "name": "param1", "value": "val1" } ]',
],
'usageParameters' => [
'title' => '',
'description' => 'The parameters used to use the instance.',
'type' => 'array',
'items' => [
'description' => 'The parameters that are used online, such as the blacklist and whitelist.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The parameter name.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'allow_dict_id'],
'value' => ['description' => 'The parameter value.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '123'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'example' => '',
],
'cron' => ['description' => 'The CRON expression used to schedule periodic training, in the format of Minutes Hours DayofMonth Month DayofWeek. The default value is empty, which specifies that no periodic training is performed. A value of 0 for DayofWeek specifies Sunday.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '0 0 ? * 0,1,2,3,4,5,6'],
],
'required' => false,
'docRequired' => true,
'example' => '{ "instanceName": "ctr_test", "modelType": "tf_checkpoint", "createParameters": [ { "name": "title_field", "value": "title" }, { "name": "description_field", "value": "" }, { "name": "tags_field", "value": "" }, { "name": "id_field", "value": "item_id" }, { "name": "category_field", "value": "cate" } ], "description": "测试实例", }',
],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The feature name. Valid values:'."\n"
."\n"
.'- ctr: CTR model.'."\n"
."\n"
.'- pop: popularity model.'."\n"
."\n"
.'- category: category model.'."\n"
."\n"
.'- hot: hotword model.'."\n"
."\n"
.'- hint: hint model.'."\n"
."\n"
.'- suggest: drop-down suggestion model.'."\n"
."\n"
.'- analyzer: tokenization model.'."\n"
."\n"
.'- termweight: term weight model.'."\n"
."\n"
.'- synonym: synonym model.', 'type' => 'string', 'required' => true, 'example' => 'ctr', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '98724351-D6B2-5D8A-B089-7FFD1821A7E9', 'title' => ''],
'Message' => ['description' => 'The error message. If no error occurs, this parameter is left empty.', 'type' => 'string', 'example' => 'version not exist.', 'title' => ''],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Version.NotExist', 'title' => ''],
'Latency' => ['description' => 'The time consumed for the request, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
],
'example' => '{ "status" : "OK", "requestId" : "", "httpCode": 200, "code": "", "message": "", "latency" : 123, "result" : { } }',
'title' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"98724351-D6B2-5D8A-B089-7FFD1821A7E9\\",\\n \\"Message\\": \\"version not exist.\\",\\n \\"Code\\": \\"Version.NotExist\\",\\n \\"Latency\\": 123\\n}","type":"json"}]',
'title' => 'CreateFunctionInstance',
'description' => 'You can call the [GetFunctionCurrentVersion](~~421377~~) operation to query the latest version of a feature. The response of the operation includes the createParameters parameter that is used to create an algorithm instance, the usageParameters parameter, and the requirements for setting these parameters.',
'requestParamsDescription' => '### Sample requests (In this example, the functionName parameter is set to ctr.)'."\n"
."\n"
.'```'."\n"
.'POST /v4/openapi/app-groups/my-app/functions/ctr/instances'."\n"
.'{'."\n"
.' "instanceName": "my_ctr",'."\n"
.' "modelType": "tf_checkpoint",'."\n"
.' "functionType": "PAAS",'."\n"
.' "cron": "0 0 ? * 0,1,3,5",'."\n"
.' "description": "",'."\n"
.' "createParameters": ['."\n"
.' {'."\n"
.' "name": "id_field",'."\n"
.' "value": "id"'."\n"
.' },'."\n"
.' {'."\n"
.' "name": "title_field",'."\n"
.' "value": "title"'."\n"
.' }'."\n"
.' ],'."\n"
.' "usageParameters": []'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'### Sample requests (In this example, the functionName parameter is set to hot.)'."\n"
."\n"
.'```'."\n"
.'POST /v4/openapi/app-groups/my-app/functions/hot/instances'."\n"
.'{'."\n"
.' "instanceName":"my_hot",'."\n"
.' "modelType":"offline_inference",'."\n"
.' "functionType":"PAAS",'."\n"
.' "createParameters":['."\n"
.' {'."\n"
.' "name":"filter",'."\n"
.' "value":"biz_type != 1"'."\n"
.' }'."\n"
.' ],'."\n"
.' "usageParameters": ['."\n"
.' {'."\n"
.' "name":"allow_dict_id",'."\n"
.' "value":"123"'."\n"
.' },'."\n"
.' {'."\n"
.' "name":"deny_dict_id",'."\n"
.' "value":"456"'."\n"
.' }'."\n"
.' ],'."\n"
.' "cron":"12 4 ? * 1,2,3,4,5,6,0"'."\n"
.'}'."\n"
.'```',
'responseParamsDescription' => '### Sample success responses'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status" : "OK",'."\n"
.' "requestId" : "98724351-D6B2-5D8A-B089-7FFD1821A7E9",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency" : 123,'."\n"
.' "result" : {}'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunctionInstance'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'CreateFunctionResource' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The ID or name of the application group.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'rank'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'Data' => [
'description' => 'The resource data. Its structure depends on the \\`ResourceType\\` value.',
'type' => 'object',
'properties' => [
'Content' => ['description' => 'The file content. Use this for \\`raw\\_file\\` resources.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"abc"'],
'Generators' => [
'description' => 'A list of feature generators. Use this for \\`feature\\_generator\\` resources.',
'type' => 'array',
'items' => [
'description' => 'The details of the feature generator.',
'type' => 'object',
'properties' => [
'Generator' => [
'description' => 'The type of the feature generator.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['lookup' => 'lookup', 'sequence' => 'sequence', 'overlap' => 'overlap', 'raw' => 'raw', 'combo' => 'combo', 'id' => 'id'],
'title' => '',
'example' => 'id',
],
'Input' => [
'description' => 'The input.',
'type' => 'object',
'properties' => [
'Features' => [
'description' => 'The list of input features.',
'type' => 'array',
'items' => [
'description' => 'An input feature.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'system_item_id'],
'Type' => [
'description' => 'The type of the feature.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['item' => 'item', 'user' => 'user'],
'title' => '',
'example' => 'item',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'Output' => ['description' => 'The name of the output feature.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'item_id_feature'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description of the resource.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '""'],
'ResourceName' => ['description' => 'The name of the resource.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'fg_jsoon'],
'ResourceType' => [
'description' => 'The type of the resource.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['feature_generator' => 'feature\\_generator', 'raw_file' => 'raw\\_file'],
'title' => '',
'example' => 'feature_generator',
],
],
'required' => false,
'docRequired' => true,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.'."\n"
."\n"
.'- OK: The request was successful.'."\n"
."\n"
.'- FAIL: The request failed.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'A4D487A9-A456-5AA5-A9C6-B7BF2889CF74'],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => '""'],
'Code' => ['description' => 'The error code. This is empty if the request succeeds.', 'type' => 'string', 'title' => '', 'example' => '""'],
'Latency' => ['description' => 'The request processing time in milliseconds.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '123'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'CreateFunctionResource',
'summary' => 'Creates an algorithm resource for a specified feature.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunctionResource'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"A4D487A9-A456-5AA5-A9C6-B7BF2889CF74\\",\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Code\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateFunctionTask' => [
'summary' => 'Starts a training task.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}/tasks',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'example' => 'app_group_name', 'title' => ''],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'ctr', 'title' => ''],
],
[
'name' => 'instanceName',
'in' => 'path',
'schema' => ['description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'example' => 'ctr_test', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The request status.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '1638157990724', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Task.IsRunning', 'title' => ''],
'Latency' => ['description' => 'The time consumed for the request, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
],
'example' => '{ "status" : "OK", "requestId" : "", "httpCode": 200, "code": "", "message": "", "latency" : 123, "result" : {}, }',
'title' => '',
],
],
],
'title' => 'CreateFunctionTask',
'requestParamsDescription' => '### Examples'."\n"
."\n"
.'`POST /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test/task`',
'responseParamsDescription' => '### Sample responses'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status" : "OK",'."\n"
.' "requestId" : "",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency" : 123,'."\n"
.' "result" : {},'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunctionTask'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"1638157990724\\",\\n \\"Message\\": \\"success\\",\\n \\"Code\\": \\"Task.IsRunning\\",\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateInterventionDictionary' => [
'summary' => 'Creates an intervention dictionary.',
'path' => '/v4/openapi/intervention-dictionaries',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchNCXKUT', 'FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. The default value is false.'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- **true**: Validates the request parameters but does not create the intervention dictionary.'."\n"
."\n"
.'- **false**: Validates the request parameters and creates the intervention dictionary.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ner_dict_ec'],
'type' => ['description' => 'The type of the intervention dictionary. Valid values:'."\n"
."\n"
.'- stopword: an intervention dictionary for stop word filtering.'."\n"
."\n"
.'- synonym: an intervention dictionary for synonym configuration.'."\n"
."\n"
.'- correction: an intervention dictionary for spelling correction.'."\n"
."\n"
.'- category\\_prediction: an intervention dictionary for category prediction.'."\n"
."\n"
.'- ner: an intervention dictionary for Named Entity Recognition (NER).'."\n"
."\n"
.'- term\\_weighting: an intervention dictionary for term weight analysis.'."\n"
."\n"
.'- suggest\\_allowlist: a drop-down suggestion whitelist.'."\n"
."\n"
.'- suggest\\_denylist: a drop-down suggestion blacklist.'."\n"
."\n"
.'- hot\\_allowlist: a top search whitelist.'."\n"
."\n"
.'- hot\\_denylist: a top search blacklist.'."\n"
."\n"
.'- hint\\_allowlist: a hint whitelist.'."\n"
."\n"
.'- hint\\_denylist: a hint blacklist.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ner'],
'analyzerType' => ['description' => 'The type of the analyzer. Valid values:'."\n"
."\n"
.'- MODEL: a model-based custom analyzer.'."\n"
."\n"
.'- SYSTEM: a system analyzer.'."\n"
."\n"
.'- USER: a custom analyzer.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'SYSTEM'],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '80326EFE-485F-46E7-B291-5A1DD08D2198'],
'result' => [
'description' => 'The details of the intervention dictionary.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the dictionary was created.', 'type' => 'string', 'title' => '', 'example' => '1591086323'],
'analyzer' => ['description' => 'The custom analyzer.', 'type' => 'string', 'title' => '', 'example' => 'dianshang'],
'updated' => ['description' => 'The time when the intervention dictionary was last updated.', 'type' => 'string', 'title' => '', 'example' => '1591086323'],
'type' => ['description' => 'The type of the intervention dictionary. Valid values:'."\n"
."\n"
.'- stopword: an intervention dictionary for stop word filtering.'."\n"
."\n"
.'- synonym: an intervention dictionary for synonym configuration.'."\n"
."\n"
.'- correction: an intervention dictionary for spelling correction.'."\n"
."\n"
.'- category\\_prediction: an intervention dictionary for category prediction.'."\n"
."\n"
.'- ner: an intervention dictionary for Named Entity Recognition (NER).'."\n"
."\n"
.'- term\\_weighting: an intervention dictionary for term weight analysis.'."\n"
."\n"
.'- suggest\\_allowlist: a drop-down suggestion whitelist.'."\n"
."\n"
.'- suggest\\_denylist: a drop-down suggestion blacklist.'."\n"
."\n"
.'- hot\\_allowlist: a top search whitelist.'."\n"
."\n"
.'- hot\\_denylist: a top search blacklist.'."\n"
."\n"
.'- hint\\_allowlist: a hint whitelist.'."\n"
."\n"
.'- hint\\_denylist: a hint blacklist.', 'type' => 'string', 'title' => '', 'example' => 'ner'],
'name' => ['description' => 'The name of the dictionary.', 'type' => 'string', 'title' => '', 'example' => 'testb'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateInterventionDictionary',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ------------ | ------ | -------- | ------------- | ---------------------------------------------------------------------------------------------------- |'."\n"
.'| name | String | Yes | "my_dict" | The name of the intervention dictionary. |'."\n"
.'| type | String | Yes | "ner" | The type of the intervention dictionary. |'."\n"
.'| analyzer | String | No | "my_analyzer" | The name of the custom analyzer.
This parameter is required if you set the type parameter to ner. |'."\n"
.'| analyzerType | String | No | "SYSTEM" | The type of the analyzer. |'."\n"
."\n"
.'For more information, see [InterventionDictionary](~~173608~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"80326EFE-485F-46E7-B291-5A1DD08D2198\\",\\n \\"result\\": {\\n \\"created\\": \\"1591086323\\",\\n \\"analyzer\\": \\"dianshang\\",\\n \\"updated\\": \\"1591086323\\",\\n \\"type\\": \\"ner\\",\\n \\"name\\": \\"testb\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateQueryProcessor' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchNCXKUT', 'FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '110157886', 'title' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.'."\n", 'type' => 'any', 'required' => false, 'example' => '{}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF', 'title' => ''],
'result' => [
'description' => 'The information about the query analysis rule.'."\n",
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the query analysis rule was created.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1587398402', 'title' => ''],
'active' => ['description' => 'Indicates whether the query analysis rule is the default one.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'updated' => ['description' => 'The time when the query analysis rule was last modified.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1587398402', 'title' => ''],
'name' => ['description' => 'The name of the query analysis rule.'."\n", 'type' => 'string', 'example' => 'query_filter', 'title' => ''],
'domain' => ['description' => 'The type of the industry to which the query analysis rule was applied. Valid values:'."\n"
."\n"
.'* GENERAL: general.'."\n"
.'* ECOMMERCE: e-commerce.'."\n"
.'* IT_CONTENT: IT content.'."\n", 'type' => 'string', 'example' => 'GENERAL', 'title' => ''],
'indexes' => [
'description' => 'The indexes to which the query analysis rule was applied.'."\n",
'type' => 'array',
'items' => ['description' => 'The indexes to which the query analysis rule was applied.'."\n", 'type' => 'string', 'example' => '"default"', 'title' => ''],
'title' => '',
'example' => '',
],
'processors' => [
'description' => 'The features that are used in the query analysis rule.'."\n"
."\n"
.'For more information, see [QueryProcessor](~~170014~~).'."\n",
'type' => 'array',
'items' => ['description' => 'The features that are used in the query analysis rule.'."\n", 'type' => 'object', 'example' => '{}', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateQueryProcessor',
'summary' => 'Creates a query analysis rule. If you set dryRun to true, this operation checks the specified query analysis rule. By default, the value of dryRun is false if you do not set this parameter.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'|Parameter|Type|Required|Example|Description|'."\n"
.'|---|---|---|---|---|'."\n"
.'|name|String|Yes|"test"|The name of the query analysis rule.|'."\n"
.'|processors\\[\\]|Object|Yes|N/A|The query analysis rule.For more information, see [QueryProcessor](~~170014~~).|'."\n"
.'|domain|String|No|"GENERAL"|The type of the industry to which the query analysis rule applies. Valid values:GENERAL: general.ECOMMERCE: e-commerce.IT\\_CONTENT: IT content.|'."\n"
.'|indexes|Array|No|\\["default"\\]|The indexes to which the query analysis rule applies.|'."\n"
.'|active|Boolean|No|true|Specifies whether to enable the query analysis rule.|'."\n"
."\n\n"
.'For more information, see [QueryProcessor](~~170014~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"created\\": 1587398402,\\n \\"active\\": true,\\n \\"updated\\": 1587398402,\\n \\"name\\": \\"query_filter\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"indexes\\": [\\n \\"\\\\\\"default\\\\\\"\\"\\n ],\\n \\"processors\\": [\\n {}\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"0A6EB64B-B4C8-CF02-810F-E660812972FF\\n\\n query_filter\\n true\\n default\\n \\n synonym\\n true\\n \\n \\n stop_word\\n true\\n 980\\n \\n GENERAL\\n 1587398402\\n 1587398402\\n","errorExample":""}]',
],
'CreateScheduledTask' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scheduled-tasks',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.', 'required' => false, '$ref' => '#/components/schemas/ScheduledTask', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The information about the scheduled task. For more information, see [ScheduledTask](~~173610~~).', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateScheduledTask',
'summary' => 'Creates a scheduled task for an OpenSearch application.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ------------ | ------- | -------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |'."\n"
.'| type | String | Yes | "wipe" | The type of the scheduled task.
\\- wipe: data scrubbing
\\- fork: data import and reindexing
\\- reindex: reindexing
\\- clear: data clearing |'."\n"
.'| cron | String | Yes | "10 20 * * 1,2,3,4,5" | The configuration of the scheduled task.
For more information, see [cron field in ScheduledTask](~~173611~~) |'."\n"
.'| enabled | Boolean | Yes | true | Specifies whether to enable the scheduled task. |'."\n"
.'| appStrategy | String | No | delete-idle | The policy for creating a new version.
\\- delete-idle: If two versions exist, the inactive version is deleted before a new version is created.
\\- need-slot: If only one version exists, a new version is created. |'."\n"
.'| filter | Object | No | | The conditions that are used to clear data. |'."\n"
.'| filter.days | Integer | Yes | 7 | The number of days after which the data expires.
Valid values: [7, 180]. |'."\n"
.'| filter.unit | String | Yes | "s" | The unit of the expiration time.
\\- s: seconds
\\- ms: milliseconds |'."\n"
.'| filter.field | String | No | "cate_id" | The field that is used to determine data expiration. |'."\n"
.'| runNow | Boolean | No | false | Specifies whether to run the task immediately. Default value: false. |'."\n"
.'| permanent | Boolean | No | true | Specifies whether the task is permanent. Default value: true. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateSearchStrategy' => [
'summary' => 'Creates a search strategy.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/search-strategies',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchBNTDZX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"my_app"'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '1234'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The search strategy.', 'required' => false, '$ref' => '#/components/schemas/SearchStrategy', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '"abc123"'],
],
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateSearchStrategy',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\\\\\"abc123\\\\\\"\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateSecondRank' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/second-ranks',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchJUWEG4'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '110157886', 'title' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body. For more information, see [SecondRank](~~170008~~).', '$ref' => '#/components/schemas/SecondRank', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The information about the fine-sort expression.', 'type' => 'object', 'example' => '{}', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'ABCDEFGH', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateSecondRank',
'summary' => 'Creates a fine sort expression for a version of an OpenSearch application. If you set the dryRun parameter to true, this operation validates the specified fine sort expression. The default value of this parameter is false.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| ----------- | ------- | -------- | ---------- | ---------------------------------------------------- |'."\n"
.'| name | String | No | "test" | The name of the expression. |'."\n"
.'| meta | String | No | "random()" | The content of the expression. |'."\n"
.'| description | String | No | "my_test" | The description of the expression. |'."\n"
.'| active | Boolean | No | true | Specifies whether the expression is the default one. |'."\n"
."\n"
.'For more information, see [SecondRank](~~170008~~).
',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteSecondRank',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"RequestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateSortScript' => [
'summary' => 'Creates a sort script.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'search', 'title' => ''],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the report in the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1234567', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'scriptName' => ['description' => 'The name of the script.', 'type' => 'string', 'required' => false, 'example' => 'rank_cava_20230606_v7', 'title' => ''],
'type' => ['description' => 'The type of the script. Only cava\\_script is supported.', 'type' => 'string', 'required' => false, 'example' => 'cava_script'."\n", 'title' => ''],
'scope' => ['description' => 'The applicable scope of the script.', 'type' => 'string', 'required' => false, 'example' => 'second_rank', 'title' => ''],
'description' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'example' => 'ABCDEFGH', 'title' => ''],
'result' => [
'description' => 'The returned result.',
'type' => 'object',
'properties' => [
'scriptName' => ['description' => 'The name of the script.', 'type' => 'string', 'example' => 'rank_cava_20230606_v7'."\n", 'title' => ''],
'type' => ['description' => 'The type of the script.', 'type' => 'string', 'example' => 'cava_script', 'title' => ''],
'scope' => ['description' => 'The applicable scope of the script.', 'type' => 'string', 'example' => 'second_rank', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'CreateSortScript',
'requestParamsDescription' => '**Request parameters**'."\n"
."\n"
.'| Name | Type | Required | Description |'."\n"
.'| ------------ | ---- | -------- | ----------------------------------------- |'."\n"
.'| scriptParams | Map | Yes | The parameters of the script to register. |'."\n"
."\n"
.'**scriptParams**'."\n"
."\n"
.'| Name | Type | Required | Description |'."\n"
.'| ---------- | ------ | -------- | ------------------------------------------------------------------ |'."\n"
.'| scriptName | String | Yes | The name of the script. |'."\n"
.'| type | String | Yes | The type of the script. Only cava_script is supported. |'."\n"
.'| scope | String | Yes | The applicable scope of the script. Only second_rank is supported. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\",\\n \\"result\\": {\\n \\"scriptName\\": \\"rank_cava_20230606_v7\\\\n\\",\\n \\"type\\": \\"cava_script\\",\\n \\"scope\\": \\"second_rank\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'CreateUserAnalyzer' => [
'summary' => 'Creates a custom analyzer.',
'path' => '/v4/openapi/user-analyzers',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8', 'FEATUREopensearchNCXKUT'],
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'name' => ['title' => '', 'description' => 'The name of the analyzer.', 'type' => 'string', 'required' => false, 'example' => 'jmbon_analyzer'],
'business' => ['title' => '', 'description' => 'The name of the basic analyzer.', 'type' => 'string', 'example' => 'Chinese - general analysis', 'required' => false],
'businessType' => ['title' => '', 'description' => 'The type of the basic analyzer. Valid values: AUTO, MODEL, SYSTEM, and USER.', 'type' => 'string', 'required' => false, 'example' => 'AUTO'],
'type' => ['title' => '', 'description' => 'The engine type. Valid values: HA3 and ES.', 'type' => 'string', 'required' => false, 'example' => 'HA3'],
'businessAppGroupId' => ['description' => 'The application ID for the custom model-based analyzer.', 'type' => 'string', 'required' => false, 'example' => '110123123', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values:'."\n"
."\n"
.'- true: sends a check request without creating the analyzer. The system checks the AccessKey, RAM user authorization, and required parameters.'."\n"
."\n"
.'- false (default): sends a regular request to create the analyzer.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The returned result.', 'type' => 'object', 'example' => '{}', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '98724351-D6B2-5D8A-B089-7FFD1821A7E9', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"RequestId\\": \\"98724351-D6B2-5D8A-B089-7FFD1821A7E9\\"\\n}","type":"json"}]',
'title' => 'Create Custom Analyzer',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/*'],
],
],
],
],
'translator' => 'manual',
],
'DeleteABTestExperiment' => [
'summary' => 'Deletes an experiment.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments/{experimentId}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The ID of the scenario.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The ID of the group.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
[
'name' => 'experimentId',
'in' => 'path',
'schema' => ['description' => 'The ID of the experiment.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '12889'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The returned data.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DeleteABTestExperiment',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'DeleteABTestGroup' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The group ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The return result.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'title' => 'DeleteABTestGroup',
'summary' => 'Deletes an A/B test group.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'DeleteABTestScene' => [
'summary' => 'Deletes an A/B test scenario.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The test scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The returned results.', 'type' => 'object', 'title' => '', 'example' => '[]'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '5C1C1C45-C64A-AD30-565F-140871D57E5E'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DeleteABTestScene',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [],\\n \\"requestId\\": \\"5C1C1C45-C64A-AD30-565F-140871D57E5E\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'DeleteFunctionInstance' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch3QPM0K', 'FEATUREopensearchN8M8WS', 'FEATUREopensearchZAE4HR'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'example' => '“my_app_group_name”'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => '"ctr"'],
],
[
'name' => 'instanceName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'example' => '"ctr_test"'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The result of the request.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.'."\n"
."\n"
.'- OK: The request is successful.'."\n"
."\n"
.'- FAIL: The request fails.', 'type' => 'string', 'title' => '', 'example' => '"OK"'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '"1081EB05-473C-5BF4-95BE-6D7CAD5E2213"'],
'Message' => ['description' => 'The error message. This parameter is empty if the request is successful.', 'type' => 'string', 'title' => '', 'example' => '"instance not exist."'],
'Code' => ['description' => 'The error code. This parameter is empty if the request is successful.', 'type' => 'string', 'title' => '', 'example' => '"Instance.NotExist"'],
'Latency' => ['description' => 'The request latency, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '10'],
],
'example' => '{}',
'title' => '',
],
],
],
'title' => 'DeleteFunctionInstance',
'summary' => 'Deletes an algorithm instance. Before you delete an instance, ensure that it is not in use to prevent service interruptions.',
'requestParamsDescription' => '### Example'."\n"
."\n"
.'`DELETE /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test`',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionInstance'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Instance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"\\\\\\"OK\\\\\\"\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"\\\\\\"1081EB05-473C-5BF4-95BE-6D7CAD5E2213\\\\\\"\\",\\n \\"Message\\": \\"\\\\\\"instance not exist.\\\\\\"\\",\\n \\"Code\\": \\"\\\\\\"Instance.NotExist\\\\\\"\\",\\n \\"Latency\\": 10\\n}","type":"json"}]',
'translator' => 'manual',
],
'DeleteFunctionResource' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources/{resourceName}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '173355',
'abilityTreeNodes' => ['FEATUREopensearchBQB5UI'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The ID of the application.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'rank'],
],
[
'name' => 'resourceName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the resource.', 'type' => 'string', 'required' => true, 'example' => 'fg_json'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.'."\n"
."\n"
.'- OK: The request is successful.'."\n"
."\n"
.'- FAIL: The request failed.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'A4D487A9-A456-5AA5-A9C6-B7BF2889CF74'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => '""'],
'Code' => ['description' => 'The error code. This parameter is empty if no error occurred.', 'type' => 'string', 'title' => '', 'example' => '""'],
'Latency' => ['description' => 'The request latency. Unit: milliseconds.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '123'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'DeleteFunctionResource',
'summary' => 'Deletes a specified algorithm resource.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionResource'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"A4D487A9-A456-5AA5-A9C6-B7BF2889CF74\\",\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Code\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'DeleteFunctionTask' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}/tasks/{generation}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'ctr'],
],
[
'name' => 'instanceName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'example' => 'ctr_test'],
],
[
'name' => 'generation',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The number of iterations.', 'type' => 'string', 'required' => true, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The schema of the response.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '"1081EB05-473C-5BF4-95BE-6D7CAD5E2213"'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'operation success'],
'Code' => ['description' => 'The error code. If no error occurs, this parameter is left empty.', 'type' => 'string', 'title' => '', 'example' => 'Task.UnableDelete'],
'Latency' => ['description' => 'The time consumed for the request, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '123'],
],
'title' => '',
'example' => '',
],
],
],
'title' => 'DeleteFunctionTask',
'summary' => 'Deletes a training record. A training record that is in progress cannot be deleted.',
'responseParamsDescription' => '### Sample success responses'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency": 123,'."\n"
.' "result": {}'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionTask'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"\\\\\\"1081EB05-473C-5BF4-95BE-6D7CAD5E2213\\\\\\"\\",\\n \\"Message\\": \\"operation success\\",\\n \\"Code\\": \\"Task.UnableDelete\\",\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'DeleteSortScript' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'search'],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The name of the script.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'cava'],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '1234567'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DeleteSortScript',
'summary' => 'Deletes a sort script.',
'responseParamsDescription' => '```'."\n"
.'Error response'."\n"
.'{'."\n"
.' "requestId" : "ABCDEFGH"'."\n"
.' "code":"InvalidAppStatus",'."\n"
.' "message":"invalid app status.",'."\n"
.' "httpCode":400'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'DeleteSortScriptFile' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/files/src/{fileName}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'search'],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The version ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '1234567'],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The script name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'cava'],
],
[
'name' => 'fileName',
'in' => 'path',
'schema' => ['description' => 'The name of the script file to delete.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'cavafile'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DeleteSortScriptFile',
'summary' => 'Deletes a script file.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeABTestExperiment' => [
'summary' => 'Retrieves the details of an experiment.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments/{experimentId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The group ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
[
'name' => 'experimentId',
'in' => 'path',
'schema' => ['description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '12889'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The details of the experiment.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the experiment was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588842080'],
'traffic' => ['description' => 'The percentage of traffic for the experiment bucketing.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '30'],
'online' => ['description' => 'The status of the experiment.'."\n"
."\n"
.'- true: The experiment is online.'."\n"
."\n"
.'- false: The experiment is offline.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'name' => ['description' => 'The alias of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'test1'],
'updated' => ['description' => 'The time when the experiment was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588842080'],
'id' => ['description' => 'The experiment ID.', 'type' => 'string', 'title' => '', 'example' => '12888'],
'params' => [
'description' => 'The experiment parameters.',
'type' => 'object',
'properties' => [
'first_formula_name' => ['description' => 'The name of the coarse-grained ranking policy.', 'type' => 'string', 'title' => '', 'example' => 'default'],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeABTestExperiment',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 1588842080,\\n \\"traffic\\": 30,\\n \\"online\\": true,\\n \\"name\\": \\"test1\\",\\n \\"updated\\": 1588842080,\\n \\"id\\": \\"12888\\",\\n \\"params\\": {\\n \\"first_formula_name\\": \\"default\\"\\n }\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeABTestGroup' => [
'summary' => 'Retrieves the details of an A/B test group.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The ID of the scene.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The ID of the group.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The A/B test group.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the group was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'status' => ['description' => 'The status of the group.'."\n"
."\n"
.'- 0: Inactive'."\n"
."\n"
.'- 1: Active', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'updated' => ['description' => 'The time when the group was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'name' => ['description' => 'The alias of the group.', 'type' => 'string', 'title' => '', 'example' => 'Group_2020-5-7_15:23:3'],
'id' => ['description' => 'The ID of the group.', 'type' => 'string', 'title' => '', 'example' => '13466'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeABTestGroup',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 1588839490,\\n \\"status\\": 1,\\n \\"updated\\": 1588839490,\\n \\"name\\": \\"Group_2020-5-7_15:23:3\\",\\n \\"id\\": \\"13466\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeABTestScene' => [
'summary' => 'Query an A/B test scenario.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The ID of the test scenario.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'example' => '20404', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014', 'title' => ''],
'result' => [
'description' => 'The details of the test scenario.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the test scenario was created.', 'type' => 'integer', 'format' => 'int32', 'example' => '1596527691', 'title' => ''],
'status' => ['description' => 'The status of the test scenario. Valid values:'."\n"
."\n"
.'- 0: The test is stopped.'."\n"
."\n"
.'- 1: The test is running.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'updated' => ['description' => 'The time when the test was last modified.', 'type' => 'integer', 'format' => 'int32', 'example' => '1596527691', 'title' => ''],
'name' => ['description' => 'The alias of the test scenario.', 'type' => 'string', 'example' => '"test"', 'title' => ''],
'id' => ['description' => 'The ID of the test scenario.', 'type' => 'string', 'example' => '20614', 'title' => ''],
'values' => [
'description' => 'The identifiers of the test scenario.',
'type' => 'array',
'items' => ['description' => 'An identifier for the test scenario.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeABTestScene',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 1596527691,\\n \\"status\\": 0,\\n \\"updated\\": 1596527691,\\n \\"name\\": \\"\\\\\\"test\\\\\\"\\",\\n \\"id\\": \\"20614\\",\\n \\"values\\": [\\n \\"test\\"\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeApp' => [
'summary' => 'Queries the information about a version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55168',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '110116134', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '33477D76-C380-1D84-A4AD-043F52876CB1', 'title' => ''],
'result' => [
'description' => 'The version information.',
'type' => 'object',
'properties' => [
'id' => ['description' => 'The version ID.', 'type' => 'string', 'example' => '100303063', 'title' => ''],
'isCurrent' => ['description' => 'Indices whether the version is an online version.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
'clusterName' => ['description' => 'The cluster name.', 'type' => 'string', 'example' => '-', 'title' => ''],
'autoSwitch' => ['description' => 'Indicates whether the version is automatically switched to an online version.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'type' => ['description' => 'The edition type. Valid values:'."\n"
."\n"
.'- standard: a standard edition application.'."\n"
."\n"
.'- advance: an advanced edition application of an old version. New versions are not supported for this edition.'."\n"
."\n"
.'- enhanced: an advanced edition application of a new version.', 'type' => 'string', 'example' => 'enhanced', 'title' => ''],
'description' => ['description' => 'The description of the version.', 'type' => 'string', 'example' => '-', 'title' => ''],
'status' => ['description' => 'The status of the version. Valid values:'."\n"
."\n"
.'- ok: The version is normal.'."\n"
."\n"
.'- stopped: The version is suspended.'."\n"
."\n"
.'- frozen: The version is frozen.'."\n"
."\n"
.'- initializing: The version is being initialized.'."\n"
."\n"
.'- unavailable: The version is invalid.'."\n"
."\n"
.'- data\\_waiting: Data is to be initialized.'."\n"
."\n"
.'- data\\_preparing: Data is being initialized.', 'type' => 'string', 'example' => 'ok', 'title' => ''],
'schema' => [
'description' => 'The schema of the application.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'example' => '{'."\n"
.' "primaryTable": true,'."\n"
.' "name": "main",'."\n"
.' "fields": {'."\n"
.' "id": {'."\n"
.' "name": "id",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": true'."\n"
.' },'."\n"
.' "title": {'."\n"
.' "name": "title",'."\n"
.' "type": "TEXT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "buy": {'."\n"
.' "name": "buy",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_id": {'."\n"
.' "name": "cate_id",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_name": {'."\n"
.' "name": "cate_name",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": false'."\n"
.' }'."\n"
.' }'."\n"
.'}', 'title' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'example' => 'id', 'title' => ''],
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'example' => '{'."\n"
.' "fields": ["title"],'."\n"
.' "analyzer": "chn_standard"'."\n"
.'}', 'title' => ''],
],
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The name of the level-1 routing field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'routeFieldValues' => [
'description' => 'The hot values of the level-1 routing field.',
'type' => 'array',
'items' => ['description' => 'The hot value of the level-1 routing field.', 'type' => 'string', 'example' => 'routeFieldValues', 'title' => ''],
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The name of the level-2 routing field. This parameter takes effect only when the routeFieldValues parameter is configured. By default, the wide-table primary key field is used as the level-2 routing field.', 'type' => 'string', 'example' => 'field2'."\n", 'title' => ''],
'ttlField' => [
'description' => 'The document clearing configurations.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document time field.', 'type' => 'string', 'example' => 'text1'."\n", 'title' => ''],
'ttl' => ['description' => 'The TTL. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The sort configurations.',
'type' => 'array',
'items' => [
'description' => 'The sort configurations.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'direction' => ['description' => 'The sort method. Valid values:'."\n"
."\n"
.'- ASC'."\n"
."\n"
.'- DESC', 'type' => 'string', 'example' => 'DESC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'test', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'progressPercent' => ['description' => 'The progress of data import, in percentage. For example, a value of 83 indicates 83%.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
'fetchFields' => [
'description' => 'The default display fields.',
'type' => 'array',
'items' => ['description' => 'The default display fields.', 'type' => 'string', 'example' => '{}', 'title' => ''],
'example' => '[]',
'title' => '',
],
'quota' => [
'description' => 'The quota information.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: basic'."\n"
."\n"
.'- opensearch.share.common: shared general-purpose'."\n"
."\n"
.'- opensearch.share.compute: shared computing'."\n"
."\n"
.'- opensearch.share.storage: shared storage'."\n"
."\n"
.'- opensearch.private.common: exclusive general-purpose'."\n"
."\n"
.'- opensearch.private.compute: exclusive computing'."\n"
."\n"
.'- opensearch.private.storage: exclusive storage', 'type' => 'string', 'example' => 'opensearch.share.common', 'title' => ''],
'qps' => ['description' => 'The number of search requests per second. You are charged based on the number of search requests per second in the earlier billing model.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'docSize' => ['description' => 'The storage capacity. Unit: GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'computeResource' => ['description' => 'The computing resources. Unit: logical computing unit (LCU).', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'domain' => [
'description' => 'The industry type. Valid values:'."\n"
."\n"
.'- GENERAL'."\n"
."\n"
.'- ECOMMERCE'."\n"
."\n"
.'- IT\\_CONTENT',
'type' => 'object',
'properties' => [
'category' => ['description' => 'The type of the edition. Valid values: standard, advance, and enhanced. A value of standard indicates a standard edition. A value of advance indicates an advanced edition which is of an old version. New version is not supported for this edition. A value of enhanced indicates an advanced edition which is of a new version.', 'type' => 'string', 'example' => '-', 'title' => ''],
'name' => ['description' => 'The name (in English).', 'type' => 'string', 'example' => 'test', 'title' => ''],
'functions' => [
'description' => 'The search results.',
'type' => 'object',
'properties' => [
'service' => [
'description' => 'The description of each feature.',
'type' => 'array',
'items' => ['description' => 'Feature 1.', 'type' => 'string', 'example' => '-', 'title' => ''],
'example' => '[]',
'title' => '',
],
'qp' => [
'description' => 'The information about the layout.',
'type' => 'array',
'items' => ['description' => 'Information 1.', 'type' => 'string', 'example' => '-', 'title' => ''],
'example' => '[]',
'title' => '',
],
'algo' => [
'description' => 'The structure of the algorithm.',
'type' => 'array',
'items' => ['description' => 'Structure 1.', 'type' => 'string', 'example' => '-', 'title' => ''],
'example' => '[]',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'example' => 'GENERAL',
'title' => '',
],
'schemas' => [
'description' => 'The multi-table schema.',
'type' => 'array',
'items' => [
'description' => 'The single-table schema.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'example' => '{'."\n"
.' "primaryTable": true,'."\n"
.' "name": "main",'."\n"
.' "fields": {'."\n"
.' "id": {'."\n"
.' "name": "id",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": true'."\n"
.' },'."\n"
.' "title": {'."\n"
.' "name": "title",'."\n"
.' "type": "TEXT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "buy": {'."\n"
.' "name": "buy",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_id": {'."\n"
.' "name": "cate_id",'."\n"
.' "type": "INT",'."\n"
.' "primaryKey": false'."\n"
.' },'."\n"
.' "cate_name": {'."\n"
.' "name": "cate_name",'."\n"
.' "type": "LITERAL",'."\n"
.' "primaryKey": false'."\n"
.' }'."\n"
.' }'."\n"
.'}', 'title' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'example' => '{'."\n"
.' "fields": ["title"],'."\n"
.' "analyzer": "chn_standard"'."\n"
.'}'."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The name of the level-1 routing field.', 'type' => 'string', 'example' => 'field1'."\n", 'title' => ''],
'routeFieldValues' => [
'description' => 'The hot values of the level-1 routing field.',
'type' => 'array',
'items' => ['description' => 'The hot value of the level-1 routing field.', 'type' => 'string', 'example' => 'routeFieldValues', 'title' => ''],
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The name of the level-2 routing field. This parameter takes effect only when the routeFieldValues parameter is configured. By default, the wide-table primary key field is used as the level-2 routing field.', 'type' => 'string', 'example' => 'field2', 'title' => ''],
'ttlField' => [
'description' => 'The document clearing configurations.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document time field.', 'type' => 'string', 'example' => 'fIeld1', 'title' => ''],
'ttl' => ['description' => 'The TTL. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The sort configurations.',
'type' => 'array',
'items' => [
'description' => 'The sort configurations.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'example' => 'fIeld1', 'title' => ''],
'direction' => ['description' => 'The sort method. Valid values:'."\n"
."\n"
.'- ASC'."\n"
."\n"
.'- DESC', 'type' => 'string', 'example' => 'DESC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'main', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'firstRanks' => [
'description' => 'The configurations of rough sort.',
'type' => 'array',
'items' => [
'description' => 'The configurations of rough sort.',
'type' => 'object',
'properties' => [
'type' => ['description' => 'The expression type. Valid values:'."\n"
."\n"
.'STRUCT: The content of the expression is a structure. STRING (default): custom formula.', 'type' => 'string', 'example' => 'STRING', 'title' => ''],
'name' => ['description' => 'The name of the rough sort expression.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'Description', 'title' => ''],
'active' => ['description' => 'Indicates whether the expression is the default one.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
'meta' => ['description' => 'The information about the expression. The information can be of the array or string type.', 'type' => 'any', 'example' => 'String :"random()*100+now()";'."\n"
.'Array: ['."\n"
.' {'."\n"
.' "attribute": "static_bm25()",'."\n"
.' "arg": "",'."\n"
.' "weight": 10'."\n"
.' }'."\n"
.' ]', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'secondRanks' => [
'description' => 'The configurations of fine sort.',
'type' => 'array',
'items' => [
'description' => 'The configurations of fine sort.',
'type' => 'object',
'properties' => [
'meta' => ['description' => 'The fine sort expression. You can define an expression that contains fields, feature functions, and mathematical functions to implement complex sort logic.', 'type' => 'any', 'example' => '"cate_id > 0 and cate_id < 1000"'."\n", 'title' => ''],
'name' => ['description' => 'The name of the fine sort expression.', 'type' => 'string', 'example' => 'default'."\n", 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => '描述', 'title' => ''],
'active' => ['description' => 'Indicates whether the expression is the default one.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'dataSources' => [
'description' => 'The configurations of the data sources.',
'type' => 'array',
'items' => [
'description' => 'The configurations of the data source.',
'type' => 'object',
'properties' => [
'tableName' => ['description' => 'The name of the table in the application.', 'type' => 'string', 'example' => 'main', 'title' => ''],
'type' => ['description' => 'The type of the data source. Valid values:'."\n"
."\n"
.'- rds'."\n"
."\n"
.'- odps'."\n"
."\n"
.'- opensearch'."\n"
."\n"
.'- polardb', 'type' => 'string', 'example' => 'rds', 'title' => ''],
'fields' => [
'description' => 'The information about field mappings.',
'type' => 'array',
'items' => ['description' => 'The information about field mappings.', 'type' => 'object', 'example' => '{'."\n"
.' "id": "id"'."\n"
.' }'."\n", 'title' => ''],
'title' => '',
'example' => '',
],
'plugins' => ['description' => 'The plug-ins that are used for data processing.'."\n"
."\n"
.'name:'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover'."\n"
."\n"
.'parameters:'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover', 'type' => 'object', 'example' => '{'."\n"
.' "name": "JsonKeyValueExtractor",'."\n"
.' "parameters": {'."\n"
.' "key": "my_field"'."\n"
.'}'."\n"
.'}', 'title' => ''],
'keyField' => ['description' => 'The primary key.', 'type' => 'string', 'example' => 'id', 'title' => ''],
'schemaName' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'name', 'title' => ''],
'parameters' => ['description' => 'The information about the data source.', 'type' => 'object', 'example' => '{'."\n"
.' "instanceId": "rds-instance-id",'."\n"
.' "dbName": "my_db",'."\n"
.' "dbTableName": "my_table",'."\n"
.' "dbUser": "my",'."\n"
.' "dbPassword": "my_passwd",'."\n"
.' "filter":"",'."\n"
.' "autoSync": true'."\n"
.'}'."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'summaries' => [
'description' => 'The summary configurations of search results.',
'type' => 'array',
'items' => [
'description' => 'The summary configurations of search results.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The group name.', 'type' => 'string', 'example' => 'default', 'title' => ''],
'meta' => [
'description' => 'The summary configurations.',
'type' => 'array',
'items' => [
'description' => 'The summary configurations.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'len' => ['description' => 'The length of the segment. Valid values: 1 to 300.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'element' => ['description' => 'The element that is used for highlighting.', 'type' => 'string', 'example' => 'em', 'title' => ''],
'ellipsis' => ['description' => 'The connector that is used to connect segments.', 'type' => 'string', 'example' => '...', 'title' => ''],
'snippet' => ['description' => 'The number of segments. Valid values: 1 to 5.', 'type' => 'string', 'example' => '5', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'queryProcessors' => [
'description' => 'The query intent understanding configurations.',
'type' => 'array',
'items' => [
'description' => 'The query intent understanding configurations.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The rule name.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'domain' => ['description' => 'The industry type. Valid values:'."\n"
."\n"
.'- GENERAL'."\n"
."\n"
.'- ECOMMERCE'."\n"
."\n"
.'- IT\\_CONTENT', 'type' => 'string', 'example' => 'GENERAL', 'title' => ''],
'category' => ['description' => 'The industry category.', 'type' => 'string', 'example' => '""', 'title' => ''],
'processors' => [
'description' => 'The features.',
'type' => 'array',
'items' => ['description' => 'The features.', 'type' => 'object', 'example' => '{'."\n"
.'"name": "stop_word", "useSystemDictionary": true,'."\n"
.'"interventionDictionary": "my_dict",'."\n"
.' "ignoreSpace": true'."\n"
.'}', 'title' => ''],
'title' => '',
'example' => '',
],
'indexes' => [
'description' => 'Then index range.',
'type' => 'array',
'items' => ['description' => 'The index.', 'type' => 'string', 'example' => 'default', 'title' => ''],
'title' => '',
'example' => '',
],
'active' => ['description' => 'Indicates whether the rule is the default one.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'cluster' => [
'description' => 'The capability opening configurations.',
'type' => 'object',
'properties' => [
'maxTimeoutMS' => ['description' => 'The timeout period. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '750', 'title' => ''],
'maxQueryClauseLength' => ['description' => 'The maximum length of the query clause.', 'type' => 'integer', 'format' => 'int32', 'example' => '1024', 'title' => ''],
],
'title' => '',
'example' => '',
],
'interpretations' => ['description' => 'The industry model module.', 'type' => 'object', 'example' => '['."\n"
.' {'."\n"
.' "table": "table1",'."\n"
.' "fields": ['."\n"
.' {'."\n"
.' "name": "field1",'."\n"
.' "interpretation": " title"'."\n"
.' },'."\n"
.' {'."\n"
.' "name": "field2",'."\n"
.' "interpretation": " ID"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.']', 'title' => ''],
'prompts' => [
'description' => 'The prompt configurations.',
'type' => 'array',
'items' => ['description' => 'The prompt configurations.', 'type' => 'object', 'example' => '{'."\n"
.' "parameters" : ['."\n"
.' {'."\n"
.' "name" : "docs",'."\n"
.' "value" : "doc内容的拼接方式,比如现在的 qwen的 \'\\n${doc}\\n\\n"'."\n"
.' }'."\n"
.' ],'."\n"
.' "messages":['."\n"
.' {'."\n"
.' "role" : "role_name,这里是否需要限定只能是 system, user, assistant,还是可以让用户随意填写",'."\n"
.' "content" : "用户设置的prompt内容,里面可以使用 ${parameter_key} 来表示期望动态替换的内容,具体替换规则参考下面说明"'."\n"
.' }'."\n"
.' ]'."\n"
.' }', 'title' => ''],
'title' => '',
'example' => '{'."\n"
.' "parameters" : ['."\n"
.' {'."\n"
.' "name" : "docs",'."\n"
.' "value" : "The concatenation method for doc content. For example, the current qwen format: \'\\n${doc}\\n\\n"'."\n"
.' }'."\n"
.' ],'."\n"
.' "messages":['."\n"
.' {'."\n"
.' "role" : "role_name. Whether this should be limited to system, user, or assistant, or allow custom values",'."\n"
.' "content" : "User-defined prompt content. Use ${parameter_key} to indicate dynamically replaced content. See the rules below for details"'."\n"
.' }'."\n"
.' ]'."\n"
.' }',
],
],
'example' => '{}',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"33477D76-C380-1D84-A4AD-043F52876CB1\\",\\n \\"result\\": {\\n \\"id\\": \\"100303063\\",\\n \\"isCurrent\\": true,\\n \\"clusterName\\": \\"-\\",\\n \\"autoSwitch\\": true,\\n \\"type\\": \\"enhanced\\",\\n \\"description\\": \\"-\\",\\n \\"status\\": \\"ok\\",\\n \\"schema\\": {\\n \\"tables\\": {\\n \\"primaryTable\\": true,\\n \\"name\\": \\"main\\",\\n \\"fields\\": {\\n \\"id\\": {\\n \\"name\\": \\"id\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": true\\n },\\n \\"title\\": {\\n \\"name\\": \\"title\\",\\n \\"type\\": \\"TEXT\\",\\n \\"primaryKey\\": false\\n },\\n \\"buy\\": {\\n \\"name\\": \\"buy\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_id\\": {\\n \\"name\\": \\"cate_id\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_name\\": {\\n \\"name\\": \\"cate_name\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": false\\n }\\n }\\n },\\n \\"indexes\\": {\\n \\"filterFields\\": [\\n \\"id\\"\\n ],\\n \\"searchFields\\": {\\n \\"fields\\": [\\n \\"title\\"\\n ],\\n \\"analyzer\\": \\"chn_standard\\"\\n }\\n },\\n \\"routeField\\": \\"field1\\",\\n \\"routeFieldValues\\": [\\n \\"routeFieldValues\\"\\n ],\\n \\"secondRouteField\\": \\"field2\\\\n\\",\\n \\"ttlField\\": {\\n \\"name\\": \\"text1\\\\n\\",\\n \\"ttl\\": 1000\\n },\\n \\"indexSortConfig\\": [\\n {\\n \\"field\\": \\"field1\\",\\n \\"direction\\": \\"DESC\\"\\n }\\n ],\\n \\"name\\": \\"test\\"\\n },\\n \\"progressPercent\\": 100,\\n \\"fetchFields\\": [\\n \\"{}\\"\\n ],\\n \\"quota\\": {\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"qps\\": 5,\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n },\\n \\"domain\\": {\\n \\"category\\": \\"-\\",\\n \\"name\\": \\"test\\",\\n \\"functions\\": {\\n \\"service\\": [\\n \\"-\\"\\n ],\\n \\"qp\\": [\\n \\"-\\"\\n ],\\n \\"algo\\": [\\n \\"-\\"\\n ]\\n }\\n },\\n \\"schemas\\": [\\n {\\n \\"tables\\": {\\n \\"primaryTable\\": true,\\n \\"name\\": \\"main\\",\\n \\"fields\\": {\\n \\"id\\": {\\n \\"name\\": \\"id\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": true\\n },\\n \\"title\\": {\\n \\"name\\": \\"title\\",\\n \\"type\\": \\"TEXT\\",\\n \\"primaryKey\\": false\\n },\\n \\"buy\\": {\\n \\"name\\": \\"buy\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_id\\": {\\n \\"name\\": \\"cate_id\\",\\n \\"type\\": \\"INT\\",\\n \\"primaryKey\\": false\\n },\\n \\"cate_name\\": {\\n \\"name\\": \\"cate_name\\",\\n \\"type\\": \\"LITERAL\\",\\n \\"primaryKey\\": false\\n }\\n }\\n },\\n \\"indexes\\": {\\n \\"filterFields\\": [\\n \\"field1\\"\\n ],\\n \\"searchFields\\": {\\n \\"fields\\": [\\n \\"title\\"\\n ],\\n \\"analyzer\\": \\"chn_standard\\"\\n }\\n },\\n \\"routeField\\": \\"field1\\\\n\\",\\n \\"routeFieldValues\\": [\\n \\"routeFieldValues\\"\\n ],\\n \\"secondRouteField\\": \\"field2\\",\\n \\"ttlField\\": {\\n \\"name\\": \\"fIeld1\\",\\n \\"ttl\\": 1000\\n },\\n \\"indexSortConfig\\": [\\n {\\n \\"field\\": \\"fIeld1\\",\\n \\"direction\\": \\"DESC\\"\\n }\\n ],\\n \\"name\\": \\"main\\"\\n }\\n ],\\n \\"firstRanks\\": [\\n {\\n \\"type\\": \\"STRING\\",\\n \\"name\\": \\"test\\",\\n \\"description\\": \\"Description\\",\\n \\"active\\": true,\\n \\"meta\\": \\"String :\\\\\\"random()*100+now()\\\\\\";\\\\nArray: [\\\\n {\\\\n \\\\\\"attribute\\\\\\": \\\\\\"static_bm25()\\\\\\",\\\\n \\\\\\"arg\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"weight\\\\\\": 10\\\\n }\\\\n ]\\"\\n }\\n ],\\n \\"secondRanks\\": [\\n {\\n \\"meta\\": \\"\\\\\\"cate_id > 0 and cate_id < 1000\\\\\\"\\\\n\\",\\n \\"name\\": \\"default\\\\n\\",\\n \\"description\\": \\"描述\\",\\n \\"active\\": true\\n }\\n ],\\n \\"dataSources\\": [\\n {\\n \\"tableName\\": \\"main\\",\\n \\"type\\": \\"rds\\",\\n \\"fields\\": [\\n {\\n \\"id\\": \\"id\\"\\n }\\n ],\\n \\"plugins\\": {\\n \\"name\\": \\"JsonKeyValueExtractor\\",\\n \\"parameters\\": {\\n \\"key\\": \\"my_field\\"\\n }\\n },\\n \\"keyField\\": \\"id\\",\\n \\"schemaName\\": \\"name\\",\\n \\"parameters\\": {\\n \\"instanceId\\": \\"rds-instance-id\\",\\n \\"dbName\\": \\"my_db\\",\\n \\"dbTableName\\": \\"my_table\\",\\n \\"dbUser\\": \\"my\\",\\n \\"dbPassword\\": \\"my_passwd\\",\\n \\"filter\\": \\"\\",\\n \\"autoSync\\": true\\n }\\n }\\n ],\\n \\"summaries\\": [\\n {\\n \\"name\\": \\"default\\",\\n \\"meta\\": [\\n {\\n \\"field\\": \\"field1\\",\\n \\"len\\": 50,\\n \\"element\\": \\"em\\",\\n \\"ellipsis\\": \\"...\\",\\n \\"snippet\\": \\"5\\"\\n }\\n ]\\n }\\n ],\\n \\"queryProcessors\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"category\\": \\"\\\\\\"\\\\\\"\\",\\n \\"processors\\": [\\n {\\n \\"name\\": \\"stop_word\\",\\n \\"useSystemDictionary\\": true,\\n \\"interventionDictionary\\": \\"my_dict\\",\\n \\"ignoreSpace\\": true\\n }\\n ],\\n \\"indexes\\": [\\n \\"default\\"\\n ],\\n \\"active\\": true\\n }\\n ],\\n \\"cluster\\": {\\n \\"maxTimeoutMS\\": 750,\\n \\"maxQueryClauseLength\\": 1024\\n },\\n \\"interpretations\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"prompts\\": [\\n {\\n \\"parameters\\": [\\n {\\n \\"name\\": \\"docs\\",\\n \\"value\\": \\"doc内容的拼接方式,比如现在的 qwen的 \'\\\\n${doc}\\\\n\\\\n\\"\\n }\\n ],\\n \\"messages\\": [\\n {\\n \\"role\\": \\"role_name,这里是否需要限定只能是 system, user, assistant,还是可以让用户随意填写\\",\\n \\"content\\": \\"用户设置的prompt内容,里面可以使用 ${parameter_key} 来表示期望动态替换的内容,具体替换规则参考下面说明\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'DescribeApp',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'DescribeAppGroup' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '55169',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF', 'title' => ''],
'result' => [
'description' => 'The information about the application.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp when the application was created.', 'type' => 'integer', 'format' => 'int32', 'example' => '1575442875', 'title' => ''],
'currentVersion' => ['description' => 'The ID of the current online version.', 'type' => 'string', 'example' => '110116134', 'title' => ''],
'pendingSecondRankAlgoDeploymentId' => ['description' => 'The ID of the fine sort expression that is being created.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'lockMode' => ['description' => 'The lock state. Valid values:'."\n"
."\n"
.'- Unlock: The instance is unlocked.'."\n"
."\n"
.'- LockByExpiration: The instance is automatically locked after it expires.'."\n"
."\n"
.'- ManualLock: The instance is manually locked.', 'type' => 'string', 'example' => 'Unlock', 'title' => ''],
'updated' => ['description' => 'The timestamp when the application was last updated.', 'type' => 'integer', 'format' => 'int32', 'example' => '1578916076', 'title' => ''],
'id' => ['description' => 'The application ID.', 'type' => 'string', 'example' => '110116134', 'title' => ''],
'chargeType' => ['description' => 'The billing method. Valid values:'."\n"
."\n"
.'- POSTPAY: pay-as-you-go.'."\n"
."\n"
.'- PREPAY: subscription.', 'type' => 'string', 'example' => 'POSTPAY', 'title' => ''],
'hasPendingQuotaReviewTask' => ['description' => 'The approval state of the quotas. Valid values:'."\n"
."\n"
.'- 0: The application is in service.'."\n"
."\n"
.'- 1: The quotas are being reviewed.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'secondRankAlgoDeploymentId' => ['description' => 'The ID of the created fine sort expression.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'name' => ['description' => 'The application name.', 'type' => 'string', 'example' => 'os_function_test_v1', 'title' => ''],
'instanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => '-', 'title' => ''],
'processingOrderId' => ['description' => 'The ID of the order that is not complete.', 'type' => 'string', 'example' => '-', 'title' => ''],
'chargingWay' => ['description' => 'The billable item. Valid values:'."\n"
."\n"
.'- 1: computing resources.'."\n"
."\n"
.'- 2: queries per second (QPS).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'type' => ['description' => 'The type of the application. Valid values:'."\n"
."\n"
.'- standard: a High-performance Search Edition application.'."\n"
."\n"
.'- enhanced: an Industry Algorithm Edition application.', 'type' => 'string', 'example' => 'enhanced', 'title' => ''],
'status' => ['description' => 'The state of the application. Valid values:'."\n"
."\n"
.'- producing: The application is being created.'."\n"
."\n"
.'- review\\_pending: The application is being reviewed.'."\n"
."\n"
.'- config\\_pending: The application is to be configured.'."\n"
."\n"
.'- normal: The application is in service.'."\n"
."\n"
.'- frozen: The application is frozen.', 'type' => 'string', 'example' => 'normal', 'title' => ''],
'projectId' => ['description' => 'The name of the A/B test group.', 'type' => 'string', 'example' => '-', 'title' => ''],
'switchedTime' => ['description' => 'The timestamp when the current online version was published.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'commodityCode' => ['description' => 'The commodity code.', 'type' => 'string', 'example' => 'opensearch', 'title' => ''],
'expireOn' => ['description' => 'The expiration time.', 'type' => 'string', 'example' => '-', 'title' => ''],
'domain' => ['description' => 'The industry of the application.', 'type' => 'string', 'example' => 'ecommerce', 'title' => ''],
'description' => ['description' => 'The description of the application.', 'type' => 'string', 'example' => '-', 'title' => ''],
'firstRankAlgoDeploymentId' => ['description' => 'The ID of the created rough sort expression.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'produced' => ['description' => 'Indicates whether the application is created. Valid values:'."\n"
."\n"
.'- 0: The application is being created.'."\n"
."\n"
.'- 1: The application is created.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'lockedByExpiration' => ['description' => 'Indicates whether the instance is automatically locked after it expires.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'quota' => [
'description' => 'The information about the quotas of the application.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: basic.'."\n"
."\n"
.'- opensearch.share.common: shared general-purpose.'."\n"
."\n"
.'- opensearch.share.compute: shared computing.'."\n"
."\n"
.'- opensearch.share.storage: shared storage.'."\n"
."\n"
.'- opensearch.private.common: exclusive general-purpose.'."\n"
."\n"
.'- opensearch.private.compute: exclusive computing.'."\n"
."\n"
.'- opensearch.private.storage: exclusive storage.', 'type' => 'string', 'example' => 'opensearch.share.common', 'title' => ''],
'docSize' => ['description' => 'The storage capacity. Unit: GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'computeResource' => ['description' => 'The computing resources. Unit: logical computing unit (LCU).', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'title' => '',
'example' => '',
],
'tags' => [
'description' => 'The application tags.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'key' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'foo', 'title' => ''],
'value' => ['description' => 'The tag value', 'type' => 'string', 'example' => 'bar', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'resourceGroupId' => ['description' => 'The ID of the resource group to which the network instance belongs.', 'type' => 'string', 'example' => 'rg-acfmoiyerh6nzly', 'title' => ''],
'engineType' => ['description' => 'The engine type.', 'type' => 'string', 'example' => 'ha3', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeAppGroup',
'summary' => 'Query an OpenSearch application.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"created\\": 1575442875,\\n \\"currentVersion\\": \\"110116134\\",\\n \\"pendingSecondRankAlgoDeploymentId\\": 0,\\n \\"lockMode\\": \\"Unlock\\",\\n \\"updated\\": 1578916076,\\n \\"id\\": \\"110116134\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"hasPendingQuotaReviewTask\\": 0,\\n \\"secondRankAlgoDeploymentId\\": 0,\\n \\"name\\": \\"os_function_test_v1\\",\\n \\"instanceId\\": \\"-\\",\\n \\"processingOrderId\\": \\"-\\",\\n \\"chargingWay\\": 1,\\n \\"type\\": \\"enhanced\\",\\n \\"status\\": \\"normal\\",\\n \\"projectId\\": \\"-\\",\\n \\"switchedTime\\": 0,\\n \\"commodityCode\\": \\"opensearch\\",\\n \\"expireOn\\": \\"-\\",\\n \\"domain\\": \\"ecommerce\\",\\n \\"description\\": \\"-\\",\\n \\"firstRankAlgoDeploymentId\\": 0,\\n \\"produced\\": 1,\\n \\"lockedByExpiration\\": 0,\\n \\"quota\\": {\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n },\\n \\"tags\\": [\\n {\\n \\"key\\": \\"foo\\",\\n \\"value\\": \\"bar\\"\\n }\\n ],\\n \\"resourceGroupId\\": \\"rg-acfmoiyerh6nzly\\",\\n \\"engineType\\": \\"ha3\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeAppStatistics' => [
'summary' => 'Queries the statistics about a version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/statistics',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearchXLGC1X'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '110157886', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The statistics.'."\n", 'type' => 'object', 'example' => '{}', 'title' => ''],
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '76FC45F1-4167-D3CD-6737-4F97BA503FA0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeAppStatistics',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '**Statistical results**'."\n"
."\n"
.'|Parameter|Type|Description|'."\n"
.'|---|---|---|'."\n"
.'|result.pv|Integer|The number of requests.|'."\n"
.'|result.docCount|Integer|The number of documents.|'."\n"
.'|result.docLastUpdated|String|The timestamp when the document was last updated.|'."\n"
.'|result.quota|Object|The statistics about the quotas.|'."\n"
.'|result.quota.instance|Object|The statistics about the instance.|'."\n"
.'|result.quota.instance.used|Float|The used quota. Unit: LCUs.|'."\n"
.'|result.quota.instance.quota|Integer|The quota capacity. Unit:GB.|'."\n"
.'|result.quota.instance.outOfLimit|Boolean|Indicates whether the quotas are exceeded.|'."\n"
.'|result.quota.instance.tables|Object|The statistics used by each data table. The key name is the name of the table, and the value is the used capacity.|'."\n"
.'|result.quota.qps|Object|The statistics about the quota of queries per second (QPS).|'."\n"
.'|result.quota.qps.used|Float|The used quota of QPS.|'."\n"
.'|result.quota.qps.quota|Integer|The total quota of QPS.|'."\n"
.'|result.quota.qps.outOfLimit|Boolean|Indicates whether the quotas are exceeded.|'."\n"
.'|result.quota.qps.tables|Array|\\--|'."\n"
.'|result.quota.computeResource|Object|The statistics about the quota of computing resources.|'."\n"
.'|result.quota.computeResource.used|Float|The used computing resources. Unit: LCUs.|'."\n"
.'|result.quota.computeResource.quota|Integer|The quota of computing resources. Unit: GB.|'."\n"
.'|result.quota.computeResource.outOfLimit|Boolean|Indicates whether the quotas are exceeded.|'."\n"
.'|result.quota.computeResource.dailyPeak|Float|The maximum amount of computing resources used. Unit: LCUs.|'."\n"
.'|result.quota.spec|String|The specifications of the application. Valid values:opensearch.share.junior: basicopensearch.share.common: shared general-purposeopensearch.share.compute: shared computingopensearch.share.storage: shared storageopensearch.private.common: exclusive general-purposeopensearch.private.compute: exclusive computingopensearch.private.storage: exclusive storage|'."\n"
.'|result.quota.docCount|Object|The statistics of the document number. The key indicates the name of the table. The value indicates the used quotas.|'."\n"
.'|result.quota.mainTable|String|The name of the primary table.|',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeAppStatistics',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"76FC45F1-4167-D3CD-6737-4F97BA503FA0\\"\\n}","errorExample":""},{"type":"xml","example":"76FC45F1-4167-D3CD-6737-4F97BA503FA0\\n\\n 5002\\n 168\\n 1582522280\\n \\n \\n 0.000002\\n 1\\n false\\n \\n 2222\\n \\n \\n \\n 0\\n 0\\n false\\n \\n \\n 0\\n 20\\n false\\n 1.0306227624786388\\n \\n opensearch.share.common\\n \\n 168\\n \\n main\\n \\n","errorExample":""}]',
],
'DescribeApps' => [
'summary' => 'Queries the versions of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55172',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '77CAA411-0010-4DB9-82E2-1C384E590AFF', 'title' => ''],
'result' => [
'description' => 'The response parameters.',
'type' => 'array',
'items' => [
'description' => 'The version information. For more information, see [App](~~170002~~).',
'type' => 'object',
'properties' => [
'id' => ['description' => 'The ID of the application.', 'type' => 'string', 'example' => '100302881', 'title' => ''],
'isCurrent' => ['description' => 'Indicates whether the version is an online version.', 'type' => 'boolean', 'example' => '12333', 'title' => ''],
'clusterName' => ['description' => 'The name of the cluster.', 'type' => 'string', 'example' => 'vpc_sh_domain_1', 'title' => ''],
'autoSwitch' => ['description' => 'Indicates whether automatic switchover is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'type' => ['description' => 'The type of the application. Valid values:'."\n"
."\n"
.'- standard: a Standard Edition application.'."\n"
."\n"
.'- advance: an Advanced Edition application of an old version. This edition is not supported for new applications.'."\n"
."\n"
.'- enhanced: a new version of Advanced Edition.', 'type' => 'string', 'example' => 'enhanced', 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => '""', 'title' => ''],
'status' => ['description' => 'The status of the version. Valid values:'."\n"
."\n"
.'- ok: The version is normal.'."\n"
."\n"
.'- stopped: The version is paused.'."\n"
."\n"
.'- frozen: The version is frozen.'."\n"
."\n"
.'- initializing: The version is being initialized.'."\n"
."\n"
.'- unavailable: The version is invalid.'."\n"
."\n"
.'- data\\_waiting: Data is pending initialization.'."\n"
."\n"
.'- data\\_preparing: Data is being initialized.', 'type' => 'string', 'example' => 'normal', 'title' => ''],
'schema' => [
'description' => 'The application schema.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'title' => '', 'example' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'example' => 'id', 'title' => ''],
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'title' => '', 'example' => ''],
],
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The level-1 routing field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'routeFieldValues' => [
'description' => 'The hot data values of the level-1 routing field.',
'type' => 'array',
'items' => ['description' => 'The hot data value of the level-1 routing field.', 'type' => 'string', 'example' => 'routeFieldValues', 'title' => ''],
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The level-2 routing field. This parameter takes effect only if the routeFieldValues parameter is configured. By default, the primary key of the wide table is used as the level-2 routing field.', 'type' => 'string', 'example' => 'field2'."\n", 'title' => ''],
'ttlField' => [
'description' => 'The document time-to-live (TTL) settings.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document TTL field.', 'type' => 'string', 'example' => 'text1'."\n", 'title' => ''],
'ttl' => ['description' => 'The time to live (TTL). Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The index sorting settings.',
'type' => 'array',
'items' => [
'description' => 'The index sorting settings.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'direction' => ['description' => 'The sort order. Valid values:'."\n"
."\n"
.'- ASC'."\n"
."\n"
.'- DESC', 'type' => 'string', 'example' => 'DESC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'test', 'title' => ''],
],
'title' => '',
'example' => '',
],
'progressPercent' => ['description' => 'The progress of data import in percentage. For example, a value of 83 indicates 83%.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
'fetchFields' => [
'description' => 'The default display fields.',
'type' => 'array',
'items' => ['description' => 'The default display field.', 'type' => 'string', 'example' => '{}', 'title' => ''],
'title' => '',
'example' => '',
],
'quota' => [
'description' => 'The quota information.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: Basic'."\n"
."\n"
.'- opensearch.share.common: Shared general-purpose'."\n"
."\n"
.'- opensearch.share.compute: Shared compute-optimized'."\n"
."\n"
.'- opensearch.share.storage: Shared storage-optimized'."\n"
."\n"
.'- opensearch.private.common: Dedicated general-purpose'."\n"
."\n"
.'- opensearch.private.compute: Dedicated compute-optimized'."\n"
."\n"
.'- opensearch.private.storage: Dedicated storage-optimized', 'type' => 'string', 'example' => 'opensearch.share.common', 'title' => ''],
'qps' => ['description' => 'The number of queries per second (QPS). This parameter is used in an earlier billing model.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'docSize' => ['description' => 'The storage capacity. Unit: GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'computeResource' => ['description' => 'The computing resources. Unit: logical compute unit (LCU).', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'title' => '',
'example' => '',
],
'domain' => [
'description' => 'The industry. Valid values:'."\n"
."\n"
.'- GENERAL'."\n"
."\n"
.'- ECOMMERCE'."\n"
."\n"
.'- IT\\_CONTENT',
'type' => 'object',
'properties' => [
'category' => ['description' => 'The edition of the application. Valid values: standard (Standard Edition), advance (the legacy Premium Edition, which is not available for new applications), and enhanced (the new Premium Edition).', 'type' => 'string', 'example' => '-', 'title' => ''],
'name' => ['description' => 'The name in English.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'functions' => [
'description' => 'The search features.',
'type' => 'object',
'properties' => [
'service' => [
'description' => 'The service features.',
'type' => 'array',
'items' => ['description' => 'The service feature.', 'type' => 'string', 'example' => '-', 'title' => ''],
'title' => '',
'example' => '',
],
'qp' => [
'description' => 'The query processing features.',
'type' => 'array',
'items' => ['description' => 'Information about the query processor.', 'type' => 'string', 'example' => 'spellcheck', 'title' => ''],
'title' => '',
'example' => '',
],
'algo' => [
'description' => 'Structure 1',
'type' => 'array',
'items' => ['description' => 'Structure 1', 'type' => 'string', 'example' => 'pop', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'schemas' => [
'description' => 'The schema of a non-partitioned table.',
'type' => 'array',
'items' => [
'description' => 'The schema of a non-partitioned table.',
'type' => 'object',
'properties' => [
'tables' => ['description' => 'The table schema.', 'type' => 'object', 'title' => '', 'example' => ''],
'indexes' => [
'description' => 'The index schema.',
'type' => 'object',
'properties' => [
'filterFields' => [
'description' => 'The attribute fields.',
'type' => 'array',
'items' => ['description' => 'The attribute field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'title' => '',
'example' => '',
],
'searchFields' => ['description' => 'The index fields.', 'type' => 'object', 'title' => '', 'example' => ''],
],
'title' => '',
'example' => '',
],
'routeField' => ['description' => 'The level-1 routing field.', 'type' => 'string', 'example' => 'field1'."\n", 'title' => ''],
'routeFieldValues' => [
'description' => 'The hot data values of the level-1 routing field.',
'type' => 'array',
'items' => ['description' => 'The hot data value of the level-1 routing field.', 'type' => 'string', 'example' => 'routeFieldValues', 'title' => ''],
'title' => '',
'example' => '',
],
'secondRouteField' => ['description' => 'The level-2 routing field. This parameter takes effect only if the routeFieldValues parameter is configured. By default, the primary key of the wide table is used as the level-2 routing field.', 'type' => 'string', 'example' => 'field2', 'title' => ''],
'ttlField' => [
'description' => 'The document TTL settings.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The document TTL field.', 'type' => 'string', 'example' => 'fIeld1', 'title' => ''],
'ttl' => ['description' => 'The time to live (TTL). Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'indexSortConfig' => [
'description' => 'The index sorting settings.',
'type' => 'array',
'items' => [
'description' => 'The index sorting settings.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The sort field.', 'type' => 'string', 'example' => 'fIeld1', 'title' => ''],
'direction' => ['description' => 'The sort order. Valid values:'."\n"
."\n"
.'- ASC'."\n"
."\n"
.'- DESC', 'type' => 'string', 'example' => 'DESC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'name' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'main', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'firstRanks' => [
'description' => 'The coarse-grained sorting settings.',
'type' => 'array',
'items' => [
'description' => 'The coarse-grained sorting settings.',
'type' => 'object',
'properties' => [
'type' => ['description' => 'The expression type. Valid values: STRUCT: a structured expression. STRING (default): a custom formula.'."\n"
."\n"
.'STRUCT: The content of the expression is a structure. STRING (default): You can configure a custom formula.', 'type' => 'string', 'example' => 'STRING', 'title' => ''],
'name' => ['description' => 'The name of the coarse-grained sorting expression.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'Description', 'title' => ''],
'active' => ['description' => 'Indicates whether this is the default expression.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
'meta' => ['description' => 'The expression, which can be an array or a string.', 'type' => 'any', 'example' => 'String :"random()*100+now()";'."\n"
.'Array: ['."\n"
.' {'."\n"
.' "attribute": "static_bm25()",'."\n"
.' "arg": "",'."\n"
.' "weight": 10'."\n"
.' }'."\n"
.' ]', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'secondRanks' => [
'description' => 'The fine-grained sorting settings.',
'type' => 'array',
'items' => [
'description' => 'The fine-grained sorting settings.',
'type' => 'object',
'properties' => [
'meta' => ['description' => 'The fine-grained sorting expression. You can define an expression that consists of fields, feature functions, and mathematical functions to implement complex sorting logic.', 'type' => 'any', 'example' => '"cate_id > 0 and cate_id < 1000"'."\n", 'title' => ''],
'name' => ['description' => 'The name of the fine-grained sorting expression.', 'type' => 'string', 'example' => 'default'."\n", 'title' => ''],
'description' => ['description' => 'The description.', 'type' => 'string', 'example' => '描述', 'title' => ''],
'active' => ['description' => 'Indicates whether this is the default expression.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'dataSources' => [
'description' => 'The data source settings.',
'type' => 'array',
'items' => [
'description' => 'The data source settings.',
'type' => 'object',
'properties' => [
'tableName' => ['description' => 'The name of the table in the application.', 'type' => 'string', 'example' => 'main', 'title' => ''],
'type' => ['description' => 'The type of the data source. Valid values:'."\n"
."\n"
.'- rds'."\n"
."\n"
.'- odps'."\n"
."\n"
.'- opensearch'."\n"
."\n"
.'- polardb', 'type' => 'string', 'example' => 'rds', 'title' => ''],
'fields' => [
'description' => 'The field mappings.',
'type' => 'array',
'items' => ['description' => 'The field mappings.', 'type' => 'object', 'title' => '', 'example' => ''],
'title' => '',
'example' => '',
],
'plugins' => ['description' => 'The data processing plug-ins for fields.'."\n"
."\n"
.'Plug-in name (name)'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover'."\n"
."\n"
.'Plug-in parameters (parameters):'."\n"
."\n"
.'- JsonKeyValueExtractor'."\n"
."\n"
.'- MultiValueSpliter'."\n"
."\n"
.'- KeyValueExtractor'."\n"
."\n"
.'- StringCatenateExtractor'."\n"
."\n"
.'- HTMLTagRemover', 'type' => 'object', 'title' => '', 'example' => ''],
'keyField' => ['description' => 'The primary key.', 'type' => 'string', 'example' => 'id', 'title' => ''],
'schemaName' => ['description' => 'The name of the wide table.', 'type' => 'string', 'example' => 'name', 'title' => ''],
'parameters' => ['description' => 'The data source parameters.', 'type' => 'object', 'title' => '', 'example' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'summaries' => [
'description' => 'The search result summary settings.',
'type' => 'array',
'items' => [
'description' => 'The search result summary settings.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The name of the summary group.', 'type' => 'string', 'example' => 'fefault', 'title' => ''],
'meta' => [
'description' => 'The summary settings.',
'type' => 'array',
'items' => [
'description' => 'The summary settings.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The field.', 'type' => 'string', 'example' => 'field1', 'title' => ''],
'len' => ['description' => 'The length of the segment. Valid values: 1 to 300.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'element' => ['description' => 'The HTML tag for highlighting.', 'type' => 'string', 'example' => 'em', 'title' => ''],
'ellipsis' => ['description' => 'The connector that is used to connect segments.', 'type' => 'string', 'example' => '...', 'title' => ''],
'snippet' => ['description' => 'The number of segments. Valid values: 1 to 5.', 'type' => 'string', 'example' => '5', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'queryProcessors' => [
'description' => 'The query analysis settings.',
'type' => 'array',
'items' => [
'description' => 'The query analysis settings.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The name of the query analysis rule.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'domain' => ['description' => 'The industry. Valid values:'."\n"
."\n"
.'- GENERAL'."\n"
."\n"
.'- ECOMMERCE'."\n"
."\n"
.'- IT\\_CONTENT', 'type' => 'string', 'example' => 'GENERAL', 'title' => ''],
'category' => ['description' => 'The industry category.', 'type' => 'string', 'example' => '""', 'title' => ''],
'processors' => [
'description' => 'The features.',
'type' => 'array',
'items' => ['description' => 'The feature.', 'type' => 'object', 'title' => '', 'example' => ''],
'title' => '',
'example' => '',
],
'indexes' => [
'description' => 'The indexes.',
'type' => 'array',
'items' => ['description' => 'The index.', 'type' => 'string', 'example' => 'default', 'title' => ''],
'title' => '',
'example' => '',
],
'active' => ['description' => 'Indicates whether this is the default rule.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'cluster' => [
'description' => 'The cluster settings.',
'type' => 'object',
'properties' => [
'maxTimeoutMS' => ['description' => 'The timeout period for the cluster. Unit: ms.', 'type' => 'integer', 'format' => 'int32', 'example' => '750', 'title' => ''],
'maxQueryClauseLength' => ['description' => 'The maximum length of the query clause.', 'type' => 'integer', 'format' => 'int32', 'example' => '1024', 'title' => ''],
],
'title' => '',
'example' => '',
],
'interpretations' => ['description' => 'The Large Language Model (LLM) settings for fields.', 'type' => 'object', 'title' => '', 'example' => ''],
'prompts' => [
'description' => 'The prompt settings.',
'type' => 'array',
'items' => ['description' => 'The prompt settings.', 'type' => 'object', 'title' => '', 'example' => ''],
'title' => '',
'example' => '',
],
],
'example' => '{}',
'title' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"77CAA411-0010-4DB9-82E2-1C384E590AFF\\",\\n \\"result\\": [\\n {\\n \\"id\\": \\"100302881\\",\\n \\"isCurrent\\": true,\\n \\"clusterName\\": \\"vpc_sh_domain_1\\",\\n \\"autoSwitch\\": true,\\n \\"type\\": \\"enhanced\\",\\n \\"description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"status\\": \\"normal\\",\\n \\"schema\\": {\\n \\"tables\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"indexes\\": {\\n \\"filterFields\\": [\\n \\"id\\"\\n ],\\n \\"searchFields\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"routeField\\": \\"field1\\",\\n \\"routeFieldValues\\": [\\n \\"routeFieldValues\\"\\n ],\\n \\"secondRouteField\\": \\"field2\\\\n\\",\\n \\"ttlField\\": {\\n \\"name\\": \\"text1\\\\n\\",\\n \\"ttl\\": 1000\\n },\\n \\"indexSortConfig\\": [\\n {\\n \\"field\\": \\"field1\\",\\n \\"direction\\": \\"DESC\\"\\n }\\n ],\\n \\"name\\": \\"test\\"\\n },\\n \\"progressPercent\\": 100,\\n \\"fetchFields\\": [\\n \\"{}\\"\\n ],\\n \\"quota\\": {\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"qps\\": 5,\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n },\\n \\"domain\\": {\\n \\"category\\": \\"-\\",\\n \\"name\\": \\"test\\",\\n \\"functions\\": {\\n \\"service\\": [\\n \\"-\\"\\n ],\\n \\"qp\\": [\\n \\"spellcheck\\"\\n ],\\n \\"algo\\": [\\n \\"pop\\"\\n ]\\n }\\n },\\n \\"schemas\\": [\\n {\\n \\"tables\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"indexes\\": {\\n \\"filterFields\\": [\\n \\"field1\\"\\n ],\\n \\"searchFields\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"routeField\\": \\"field1\\\\n\\",\\n \\"routeFieldValues\\": [\\n \\"routeFieldValues\\"\\n ],\\n \\"secondRouteField\\": \\"field2\\",\\n \\"ttlField\\": {\\n \\"name\\": \\"fIeld1\\",\\n \\"ttl\\": 1000\\n },\\n \\"indexSortConfig\\": [\\n {\\n \\"field\\": \\"fIeld1\\",\\n \\"direction\\": \\"DESC\\"\\n }\\n ],\\n \\"name\\": \\"main\\"\\n }\\n ],\\n \\"firstRanks\\": [\\n {\\n \\"type\\": \\"STRING\\",\\n \\"name\\": \\"test\\",\\n \\"description\\": \\"Description\\",\\n \\"active\\": true,\\n \\"meta\\": \\"String :\\\\\\"random()*100+now()\\\\\\";\\\\nArray: [\\\\n {\\\\n \\\\\\"attribute\\\\\\": \\\\\\"static_bm25()\\\\\\",\\\\n \\\\\\"arg\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"weight\\\\\\": 10\\\\n }\\\\n ]\\"\\n }\\n ],\\n \\"secondRanks\\": [\\n {\\n \\"meta\\": \\"\\\\\\"cate_id > 0 and cate_id < 1000\\\\\\"\\\\n\\",\\n \\"name\\": \\"default\\\\n\\",\\n \\"description\\": \\"描述\\",\\n \\"active\\": true\\n }\\n ],\\n \\"dataSources\\": [\\n {\\n \\"tableName\\": \\"main\\",\\n \\"type\\": \\"rds\\",\\n \\"fields\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"plugins\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"keyField\\": \\"id\\",\\n \\"schemaName\\": \\"name\\",\\n \\"parameters\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"summaries\\": [\\n {\\n \\"name\\": \\"fefault\\",\\n \\"meta\\": [\\n {\\n \\"field\\": \\"field1\\",\\n \\"len\\": 50,\\n \\"element\\": \\"em\\",\\n \\"ellipsis\\": \\"...\\",\\n \\"snippet\\": \\"5\\"\\n }\\n ]\\n }\\n ],\\n \\"queryProcessors\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"category\\": \\"\\\\\\"\\\\\\"\\",\\n \\"processors\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"indexes\\": [\\n \\"default\\"\\n ],\\n \\"active\\": true\\n }\\n ],\\n \\"cluster\\": {\\n \\"maxTimeoutMS\\": 750,\\n \\"maxQueryClauseLength\\": 1024\\n },\\n \\"interpretations\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"prompts\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
'title' => 'DescribeApps',
'description' => '- If a Standard Edition application with the same name exists, a new version is created.'."\n"
."\n"
.'- When you create a new version, the autoSwitch and realtimeShared parameters are required.'."\n"
."\n"
.'- When you create a new version, the quota is inherited from the previous version.'."\n"
."\n"
.'- When you create a new version, modifications to the quota do not take effect.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'DescribeDataCollction' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/data-collections/{dataCollectionIdentity}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '55174',
'abilityTreeNodes' => ['FEATUREopensearch4M1CGO'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'dataCollectionIdentity',
'in' => 'path',
'schema' => ['description' => 'The ID of the data collection.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '286'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '72FAD77B-83F9-F393-BA8E-5834E2427BF8'],
'result' => [
'description' => 'The data collection information.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the data collection was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1581065837'],
'dataCollectionType' => ['description' => 'The type of the data collection.'."\n"
."\n"
.'- behavior: User behavior data.'."\n"
."\n"
.'- item\\_info: Item information.'."\n"
."\n"
.'- industry\\_specific: Industry-specific attributes.', 'type' => 'string', 'title' => '', 'example' => 'BEHAVIOR'],
'type' => ['description' => 'The type of the data collection client.'."\n"
."\n"
.'- server'."\n"
."\n"
.'- web'."\n"
."\n"
.'- app'."\n"
.' Only server is supported.', 'type' => 'string', 'title' => '', 'example' => 'server'],
'industryName' => ['description' => 'The name of the industry.'."\n"
."\n"
.'- general: General'."\n"
."\n"
.'- ecommerce: E-commerce', 'type' => 'string', 'title' => '', 'example' => 'GENERAL'],
'status' => ['description' => 'The status.'."\n"
."\n"
.'- 0: The data collection is not enabled.'."\n"
."\n"
.'- 1: The data collection is being enabled.'."\n"
."\n"
.'- 2: The data collection is enabled.'."\n"
."\n"
.'- 3: The data collection failed to be enabled.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'],
'updated' => ['description' => 'The time when the data collection was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1581065904'],
'name' => ['description' => 'The name of the data collection.', 'type' => 'string', 'title' => '', 'example' => 'os_function_test_v1'],
'sundialId' => ['description' => 'The ID of the sundial.', 'type' => 'string', 'title' => '', 'example' => '1755'],
'id' => ['description' => 'The ID of the data collection.', 'type' => 'string', 'title' => '', 'example' => '286'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeDataCollction',
'summary' => 'Retrieves the details of a data collection for a specified application.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeDataCollection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'DataCollection', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"72FAD77B-83F9-F393-BA8E-5834E2427BF8\\",\\n \\"result\\": {\\n \\"created\\": 1581065837,\\n \\"dataCollectionType\\": \\"BEHAVIOR\\",\\n \\"type\\": \\"server\\",\\n \\"industryName\\": \\"GENERAL\\",\\n \\"status\\": 2,\\n \\"updated\\": 1581065904,\\n \\"name\\": \\"os_function_test_v1\\",\\n \\"sundialId\\": \\"1755\\",\\n \\"id\\": \\"286\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeFirstRank' => [
'summary' => 'Queries the rough sort expression configured for an OpenSearch application version.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/first-ranks/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchH8SRT8'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the rough sort expression.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The information about the rough sort expression.',
'type' => 'object',
'properties' => [
'description' => ['description' => 'The description of the expression.', 'type' => 'string', 'title' => '', 'example' => '-'],
'active' => ['description' => 'Indicates whether the expression is the default one.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
'name' => ['description' => 'The name of the expression.', 'type' => 'string', 'title' => '', 'example' => 'ar_wear_edit_time'],
'meta' => [
'description' => 'The information about the expression.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'arg' => ['description' => 'The parameters that are used by a function in the expression.', 'type' => 'string', 'title' => '', 'example' => 'ar_edit_time'],
'attribute' => ['description' => 'The attribute, scoring feature, or search field.', 'type' => 'string', 'title' => '', 'example' => 'timeliness_ms()'],
'weight' => ['description' => 'The weight. Valid values: -100000 to 100000. The value cannot be 0.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '1'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeFirstRank',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"description\\": \\"-\\",\\n \\"active\\": false,\\n \\"name\\": \\"ar_wear_edit_time\\",\\n \\"meta\\": [\\n {\\n \\"arg\\": \\"ar_edit_time\\",\\n \\"attribute\\": \\"timeliness_ms()\\",\\n \\"weight\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeInterventionDictionary' => [
'summary' => 'Retrieves the details of an intervention dictionary.',
'path' => '/v4/openapi/intervention-dictionaries/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchNCXKUT', 'FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_dict'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D7CCF454-472A-030E-F254-604520B028AA'],
'result' => [
'description' => 'The details of the intervention dictionary.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the intervention dictionary was created.', 'type' => 'string', 'title' => '', 'example' => '1536233287'],
'analyzer' => ['description' => 'The custom analyzer.', 'type' => 'string', 'title' => '', 'example' => '-'],
'updated' => ['description' => 'The time when the intervention dictionary was updated.', 'type' => 'string', 'title' => '', 'example' => '1536233287'],
'type' => ['description' => 'The type of the intervention dictionary.'."\n"
."\n"
.'- stopword: an intervention dictionary for stop word filtering.'."\n"
."\n"
.'- synonym: an intervention dictionary for synonym configuration.'."\n"
."\n"
.'- correction: an intervention dictionary for spelling correction.'."\n"
."\n"
.'- category\\_prediction: an intervention dictionary for category prediction.'."\n"
."\n"
.'- ner: an intervention dictionary for Named Entity Recognition (NER).'."\n"
."\n"
.'- term\\_weighting: an intervention dictionary for term weight analysis.', 'type' => 'string', 'title' => '', 'example' => 'category_prediction'],
'name' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'title' => '', 'example' => 'test'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeInterventionDictionary',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D7CCF454-472A-030E-F254-604520B028AA\\",\\n \\"result\\": {\\n \\"created\\": \\"1536233287\\",\\n \\"analyzer\\": \\"-\\",\\n \\"updated\\": \\"1536233287\\",\\n \\"type\\": \\"category_prediction\\",\\n \\"name\\": \\"test\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeQueryProcessor' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The information about the query analysis rule.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the rule was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1587398402'],
'active' => ['description' => 'Indicates whether the rule is the default rule.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'updated' => ['description' => 'The time when the rule was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1587398402'],
'name' => ['description' => 'The name of the rule.', 'type' => 'string', 'title' => '', 'example' => 'test'],
'domain' => ['description' => 'The industry type.'."\n"
."\n"
.'- GENERAL: General'."\n"
."\n"
.'- ECOMMERCE: E-commerce'."\n"
."\n"
.'- IT\\_CONTENT: IT content', 'type' => 'string', 'title' => '', 'example' => 'GENERAL'],
'indexes' => [
'type' => 'array',
'items' => ['description' => 'The index of the application.', 'type' => 'string', 'title' => '', 'example' => 'default'],
'description' => 'The indexes to which the query analysis rule applies.'."\n",
'title' => '',
'example' => '',
],
'processors' => [
'type' => 'array',
'items' => ['description' => 'The features included in the processor.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'description' => 'The features that are used in the query analysis rule.'."\n",
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeQueryProcessor',
'summary' => 'Describes a query analysis rule for a version of an OpenSearch application.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'opensearch:DescribeQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"created\\": 1587398402,\\n \\"active\\": true,\\n \\"updated\\": 1587398402,\\n \\"name\\": \\"test\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"indexes\\": [\\n \\"default\\"\\n ],\\n \\"processors\\": [\\n {}\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeRegions' => [
'path' => '/v4/openapi/regions',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '55180',
'abilityTreeNodes' => ['FEATUREopensearch447AAX'],
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3B7E42BD-1D63-2F6B-C8E0-41BACEA76EEB', 'title' => ''],
'result' => [
'description' => 'The result.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'endpoint' => ['description' => 'The endpoint.', 'type' => 'string', 'example' => 'opensearch.cn-hangzhou.aliyuncs.com', 'title' => ''],
'regionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'localName' => ['description' => 'The region name.', 'type' => 'string', 'example' => '华东1(杭州)', 'title' => ''],
'consoleUrl' => ['description' => 'The console URL.', 'type' => 'string', 'example' => 'https://opensearch-cn-hangzhou.console.aliyun.com', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeRegions',
'summary' => 'Retrieves the endpoints for all regions.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3B7E42BD-1D63-2F6B-C8E0-41BACEA76EEB\\",\\n \\"result\\": [\\n {\\n \\"endpoint\\": \\"opensearch.cn-hangzhou.aliyuncs.com\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"localName\\": \\"华东1(杭州)\\",\\n \\"consoleUrl\\": \\"https://opensearch-cn-hangzhou.console.aliyun.com\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeScheduledTask' => [
'summary' => 'Query a scheduled task for an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scheduled-tasks/{taskId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'taskId',
'in' => 'path',
'schema' => ['description' => 'The ID of the task.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2f12c585-5873-11ea-974a-7cd30ad3e268', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The details of the scheduled task.', 'type' => 'object', 'example' => '{}', 'title' => ''],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '922DC0D9-31B5-45F9-47B7-37DC678D61A8', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeScheduledTask',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"922DC0D9-31B5-45F9-47B7-37DC678D61A8\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeSecondRank' => [
'summary' => 'Queries the fine sort expression for a version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/second-ranks/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchJUWEG4'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The API version.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the second-rank expression.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The details of the second-rank expression.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the expression was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1587052801'],
'active' => ['description' => 'Indicates whether the expression is active.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'isDefault' => ['description' => 'Indicates whether the expression is the default one. This parameter is returned only in the response.'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'title' => '', 'example' => 'true'],
'isSys' => ['description' => 'Indicates whether the expression is a system expression. This parameter is returned only in the response.'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'title' => '', 'example' => 'false'],
'description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => '-'],
'updated' => ['description' => 'The time when the expression was updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1587052801'],
'name' => ['description' => 'The name of the expression.', 'type' => 'string', 'title' => '', 'example' => 'tests'],
'meta' => ['description' => 'The second-rank expression. You can write an expression that contains fields, feature functions, and mathematical functions to implement complex sort logic.', 'type' => 'string', 'title' => '', 'example' => 'random()+now()'],
'id' => ['description' => 'The ID of the expression. This parameter is returned only in the response.', 'type' => 'string', 'title' => '', 'example' => '89047'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeSecondRank',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"created\\": 1587052801,\\n \\"active\\": true,\\n \\"isDefault\\": \\"true\\",\\n \\"isSys\\": \\"false\\",\\n \\"description\\": \\"-\\",\\n \\"updated\\": 1587052801,\\n \\"name\\": \\"tests\\",\\n \\"meta\\": \\"random()+now()\\",\\n \\"id\\": \\"89047\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeSlowQueryStatus' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/optimizers/slow-query',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchA0YLTY', 'FEATUREopensearch9TYTPZ'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '5C1C1C45-C64A-AD30-565F-140871D57E5E'],
'result' => [
'description' => 'The result.',
'type' => 'object',
'properties' => [
'region' => ['description' => 'The region.'."\n"
."\n"
.'- outer: Public network'."\n"
."\n"
.'- internal: Internal network', 'type' => 'string', 'title' => '', 'example' => 'internal'],
'status' => ['description' => 'The activation status.'."\n"
."\n"
.'- enabled: Enabled'."\n"
."\n"
.'- disabled: Disabled'."\n"
."\n"
.'- n/a: Unknown', 'type' => 'string', 'title' => '', 'example' => 'disabled'],
'appGroupId' => ['description' => 'The application ID.', 'type' => 'string', 'title' => '', 'example' => '100298370'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeSlowQueryStatus',
'summary' => 'Queries the status of the slow query feature.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeSlowQueryStatus',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"5C1C1C45-C64A-AD30-565F-140871D57E5E\\",\\n \\"result\\": {\\n \\"region\\": \\"internal\\",\\n \\"status\\": \\"disabled\\",\\n \\"appGroupId\\": \\"100298370\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'DescribeUserAnalyzer' => [
'summary' => 'Retrieves the details of a custom analyzer.',
'path' => '/v4/openapi/user-analyzers/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the analyzer.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'kevin_test'],
],
[
'name' => 'with',
'in' => 'query',
'schema' => ['description' => 'Specifies related information to return. The properties are returned based on the specified level.'."\n"
."\n"
.'- all: Returns information about the associated application.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'all'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The details of the custom analyzer. For more information, see [UserAnalyzer](~~178934~~).', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'FFAEF396-10EF-53C7-1F51-518853880729'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DescribeUserAnalyzer',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"FFAEF396-10EF-53C7-1F51-518853880729\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'DisableSlowQuery' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/optimizers/slow-query/actions/disable',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchA0YLTY', 'FEATUREopensearch9TYTPZ'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The returned data.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '728E89C6-8673-D39B-39A1-5BA2B56D448F'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'DisableSlowQuery',
'summary' => 'Disables the slow query service for Search Diagnoser.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DisableSlowQuery',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"728E89C6-8673-D39B-39A1-5BA2B56D448F\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'EnableSlowQuery' => [
'summary' => 'Enables the slow query service for the optimizer.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/optimizers/slow-query/actions/enable',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchA0YLTY', 'FEATUREopensearch9TYTPZ'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The returned result.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '728E89C6-8673-D39B-39A1-5BA2B56D448F'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'EnableSlowQuery',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:EnableSlowQuery',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"728E89C6-8673-D39B-39A1-5BA2B56D448F\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'GenerateMergedTable' => [
'path' => '/v4/openapi/assist/schema/actions/merge',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'spec',
'in' => 'query',
'schema' => ['description' => 'The specifications of the OpenSearch instance. This parameter is used to check whether the OpenSearch instance meets the special limits on an exclusive instance.'."\n"
."\n"
.'Default value: opensearch.share.common.'."\n"
."\n"
.'For more information, see the description of the spec field in the Quota topic.'."\n", 'type' => 'string', 'required' => false, 'example' => '"opensearch.share.common"', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body parameters.'."\n", 'required' => false, '$ref' => '#/components/schemas/Schema', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'ABCDEFGH', 'title' => ''],
'result' => [
'description' => 'The response parameters.'."\n",
'type' => 'object',
'properties' => [
'primaryKey' => ['description' => 'The primary key.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'mergeTable' => ['description' => 'The wide table that is generated after the JOIN operation is performed on multiple tables.'."\n", 'type' => 'object', 'example' => '-', 'title' => ''],
'fromTable' => ['description' => 'The tables on which the JOIN operation is performed.'."\n", 'type' => 'object', 'example' => '-', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'GenerateMergedTable',
'summary' => 'Queries the information about a wide table that is generated after a JOIN operation is performed on multiple tables.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'|Parameter|Type|Required|Example|Description|'."\n"
.'|---|---|---|---|---|'."\n"
.'|tables|Object|Yes||The table schema.|'."\n"
.'|indexes|Object|No||The index schema.|',
'responseParamsDescription' => '**Response parameters**'."\n"
."\n"
.'|Parameter|Type|Description|'."\n"
.'|---|---|---|'."\n"
.'|requestId|String|The request ID.|'."\n"
.'|result.mergeTable|Object|The wide table that is generated after the JOIN operation is performed on multiple tables. The key is the field name and the value is the field content.|'."\n"
.'|result.fromTable|Object|The information about the tables on which the JOIN operation is performed.|'."\n"
.'|result.fromTable.tables|Object|The information about the tables. The key is the table name and the value is the information about the table schema.|'."\n"
.'|result.fromTable.tables.\\*|Object|The key is the field name and the value is the field content.|'."\n"
.'|result.fromTable.master|String|The primary table.|'."\n"
.'|result.fromTable.level|Object|The information about table levels. The table level starts from 0.The key is the table name and the value is the table level.|'."\n"
.'|result.fromTable.joinMap|Object|The information about the external table. The key is the table name and the value is the information about the external table.|'."\n"
.'|result.fromTable.joinMap.\\*|Object|The information about the fields of the external table. The key is the field name and the value is the field content.|'."\n"
.'|result.primaryKey|String|The primary key field.|'."\n"
."\n\n"
.'**TableFields**'."\n"
."\n"
.'|Parameter|Type|Description|'."\n"
.'|---|---|---|'."\n"
.'|name|String|The name of the field.|'."\n"
.'|type|String|The type of the field. For more information, see [Fields in a data table](~~179404~~).|'."\n"
.'|isPk|String|Indicates whether the field is the primary key field. Valid values:0: The field is not the primary key field.1: The field is the primary key field.|'."\n"
.'|isMulti|Integer|Indicates whether the field is a multi-value field. Valid values:0: The field is not a multi-value field.1: The field is a multi-value field.|'."\n"
.'|isAttribute|Integer|Indicates whether the field is an attribute field. Valid values:0: The field is not an attribute field.1: The field is an attribute field.|'."\n"
."\n\n"
.'**JoinMapFields**'."\n"
."\n"
.'|Parameter|Type|Description|'."\n"
.'|---|---|---|'."\n"
.'|table|String|The name of the external table.|'."\n"
.'|key|String|The name of the primary key of the external table.|'."\n"
.'|join|Object|The extended fields of the external table.|',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenerateMergedTable'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:GenerateMergedTable',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\",\\n \\"result\\": {\\n \\"primaryKey\\": \\"-\\",\\n \\"mergeTable\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"fromTable\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"8EF9C2DF-34C3-EDCF-6DEA-0445EE53DA20\\n\\n \\n \\n id\\n INT\\n 1\\n 0\\n 0\\n \\n \\n classid\\n INT\\n 0\\n 0\\n 0\\n \\n \\n title\\n TEXT\\n 0\\n 0\\n 0\\n \\n \\n js\\n TEXT\\n 0\\n 0\\n 0\\n \\n \\n classid_1\\n INT\\n 0\\n 0\\n 0\\n \\n \\n infotags\\n TEXT\\n 0\\n 0\\n 0\\n \\n \\n \\n \\n \\n \\n id\\n INT\\n 1\\n 0\\n \\n \\n classid\\n INT\\n 0\\n 0\\n \\n \\n title\\n TEXT\\n 0\\n 0\\n \\n \\n js\\n TEXT\\n 0\\n 0\\n \\n \\n \\n \\n id_1\\n INT\\n 1\\n 0\\n \\n \\n classid_1\\n INT\\n 0\\n 0\\n \\n \\n infotags\\n TEXT\\n 0\\n 0\\n \\n \\n \\n phome_ecms_tuzhi\\n \\n 0\\n 1\\n \\n \\n \\n \\n \\n id_1\\n \\n classid_1\\n infotags\\n \\n \\n \\n \\n \\n id\\n","errorExample":""}]',
],
'GetDomain' => [
'path' => '/v4/openapi/domains/{domainName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domainName',
'in' => 'path',
'schema' => ['description' => 'The industry type.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'ecommerce'],
],
[
'name' => 'appGroupIdentity',
'in' => 'query',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The returned result.', 'type' => 'object', 'title' => '', 'example' => '-'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '271D5762-32B7-5F0D-B97D-463EB67F1F3B'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'GetDomain',
'summary' => 'Retrieves the industry type.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:GetDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"requestId\\": \\"271D5762-32B7-5F0D-B97D-463EB67F1F3B\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetFunctionCurrentVersion' => [
'summary' => 'Retrieves the version information of the feature that is used to create an instance.',
'path' => '/v4/openapi/functions/{functionName}/current-version',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature. Valid values:'."\n"
."\n"
.'- ctr: Click-through rate (CTR) model'."\n"
."\n"
.'- pop: Popularity model'."\n"
."\n"
.'- category: Category model'."\n"
."\n"
.'- hot: Hotword model'."\n"
."\n"
.'- hint: Hint model'."\n"
."\n"
.'- suggest: Drop-down suggestion model'."\n"
."\n"
.'- analyzer: Word segmentation model'."\n"
."\n"
.'- termweight: Term weighting model', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ctr'],
],
[
'name' => 'modelType',
'in' => 'query',
'schema' => [
'description' => 'The model type. Different features correspond to different model types:'."\n"
."\n"
.'- CTR model: tf\\_checkpoint'."\n"
."\n"
.'- Popularity model: pop'."\n"
."\n"
.'- Category model: offline\\_inference'."\n"
."\n"
.'- Hotword model: offline\\_inference'."\n"
."\n"
.'- Hint model: offline\\_inference'."\n"
."\n"
.'- Drop-down suggestion model: offline\\_inference'."\n"
."\n"
.'- Word segmentation model: text'."\n"
."\n"
.'- Term weighting model: tf\\_checkpoint',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['pop' => 'Popularity model', 'offline_inference' => 'Models for hotwords, hints, and category prediction.', 'tf_checkpoint' => 'Models for CTR and custom term weighting.', 'text' => 'Custom tokenization.'],
'title' => '',
'example' => 'tf_checkpoint',
],
],
[
'name' => 'functionType',
'in' => 'query',
'schema' => ['description' => 'The type of the feature. Valid values:'."\n"
."\n"
.'- PAAS (default)'."\n"
."\n"
.'- SAAS', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'PAAS'],
],
[
'name' => 'domain',
'in' => 'query',
'schema' => [
'description' => 'The industry. The default value is empty, which indicates the General-purpose Edition.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['education' => 'Education', 'ecommerce' => 'E-commerce', 'community' => 'Content community'],
'title' => '',
'example' => 'ecommerce',
],
],
[
'name' => 'category',
'in' => 'query',
'schema' => [
'description' => 'The category. The default value is empty.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['general' => 'General', 'question' => 'Question-answering search for the education industry.', 'it' => 'IT content'],
'title' => '',
'example' => 'general',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '1638157479281'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'version not exist.'],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'Version.NotExist'],
'Result' => [
'description' => 'The returned result.',
'type' => 'object',
'properties' => [
'FunctionName' => ['description' => 'The name of the feature.', 'type' => 'string', 'title' => '', 'example' => 'ctr'],
'FunctionType' => ['description' => 'The type of the feature. Valid values:'."\n"
."\n"
.'- PAAS'."\n"
."\n"
.'- SAAS', 'type' => 'string', 'title' => '', 'example' => 'PAAS'],
'ModelType' => ['description' => 'The model type.', 'type' => 'string', 'title' => '', 'example' => 'tf_checkpoint'],
'VersionConfig' => [
'description' => 'The configuration.',
'type' => 'object',
'properties' => [
'CreateParameters' => [
'description' => 'The parameters used to create an instance.',
'type' => 'array',
'items' => [
'description' => 'The parameter object.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'title' => '', 'example' => 'params1'],
'Required' => ['description' => 'Specifies whether the parameter is required.', 'type' => 'string', 'title' => '', 'example' => 'true'],
],
'example' => '{ "name": "params1", "required": "true", "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}", "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}" }',
'title' => '',
],
'example' => '[ { "name": "params1", "required": "true", "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}", "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}" } ]',
'title' => '',
],
'Depends' => [
'description' => 'A list of instance dependencies.',
'type' => 'array',
'items' => [
'description' => 'The parameter object.',
'type' => 'object',
'properties' => [
'Condition' => ['description' => 'The condition.', 'type' => 'string', 'title' => '', 'example' => '""'],
'Dependency' => ['description' => 'The dependency.', 'type' => 'string', 'title' => '', 'example' => '""'],
'Description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => '""'],
],
'example' => '{ "dependency": "依赖项", "condition": "条件", "description": "" }',
'title' => '',
],
'example' => '[ { "dependency": "依赖项", "condition": "条件", "description": "" } ]',
'title' => '',
],
'UsageParameters' => [
'description' => 'The parameters for using the instance online.',
'type' => 'array',
'items' => [
'description' => 'The parameter object.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'title' => '', 'example' => '""'],
'Required' => ['description' => 'Specifies whether the parameter is required.', 'type' => 'string', 'title' => '', 'example' => '""'],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
],
'example' => '{ "createParameters": [ { "name": "params1", "required": "true", "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}", "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}" } ], "depends": [ { "dependency": "依赖项", "condition": "条件", "description": "" } ], "usageParameters": [] }',
'title' => '',
],
'VersionId' => ['description' => 'The version ID.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '101'],
'VersionName' => ['description' => 'The version name.', 'type' => 'string', 'title' => '', 'example' => 'v1'],
],
'example' => '{ "versionName": "v1", "versionId": 101, "functionName": "ctr", "modelType": "tf_checkpoint", "functionType": "PAAS", "versionConfig": { "createParameters": [ { "name": "params1", "required": "true", "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}", "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}" } ], "depends": [ { "dependency": "依赖项", "condition": "条件", "description": "" } ], "usageParameters": [] } }',
'title' => '',
],
'Latency' => ['description' => 'The request latency in milliseconds (ms).', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '123'],
],
'example' => '{ "status": "OK", "requestId": "", "httpCode": 200, "code": "", "message": "", "latency": 123, "result": { "versionName": "v1", "versionId": 101, "functionName": "ctr", "modelType": "tf_checkpoint", "functionType": "PAAS", "versionConfig": { "createParameters": [ { "name": "params1", "required": "true", "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}", "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}" } ], "depends": [ { "dependency": "依赖项", "condition": "条件", "description": "" } ], "usageParameters": [] } } }',
'title' => '',
],
],
],
'title' => 'GetFunctionCurrentVersion',
'requestParamsDescription' => '### Sample request'."\n"
."\n"
.'`GET /v4/openapi/functions/ctr/current-version?modelType=_checkpoint&functionType=PAAS&domain=ecommerce&category=general`',
'responseParamsDescription' => '### Sample success response (hotword model)'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "165890826219877085621759",'."\n"
.' "latency": 0.049,'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "result": {'."\n"
.' "versionId": 37,'."\n"
.' "versionName": "v2",'."\n"
.' "description": "",'."\n"
.' "status": "available",'."\n"
.' "functionName": "hot",'."\n"
.' "modelType": "offline_inference",'."\n"
.' "functionType": "PAAS",'."\n"
.' "versionConfig": {'."\n"
.' "createParameters": ['."\n"
.' {'."\n"
.' "name": "filter",'."\n"
.' "required": "false",'."\n"
.' "validations": "[{\\"preprocess\\": {\\"pattern\\": \\"(\\\\\\\\w+)\\\\\\\\s*(>=|<=|>|<|=|!=)\\\\\\\\s*(\\\\\\\\w+)\\", \\"type\\": \\"regex\\", \\"group\\": 1}, \\"params\\": {\\"data\\": [\\"user_id\\", \\"biz_type\\"], \\"type\\": \\"trival\\"}, \\"class\\": \\"EnumerateRule\\"}]",'."\n"
.' "value": "{\\"component\\":\\"Input\\",\\"attributes\\":{\\"defaultValue\\":\\"\\",\\"dataSource\\":\\"\\"}}",'."\n"
.' "valueSplit": ","'."\n"
.' }'."\n"
.' ],'."\n"
.' "usageParameters": ['."\n"
.' {'."\n"
.' "name": "allow_dict_id",'."\n"
.' "required": "false",'."\n"
.' "validations": "[{\\"params\\": {\\"restrictions\\": \\"type=hot_allowlist\\", \\"type\\": \\"passthrough\\", \\"dataSource\\": \\"dicts\\"}, \\"class\\": \\"EnumerateRule\\"}]",'."\n"
.' "value": "{\\"component\\":\\"Select\\",\\"attributes\\":{\\"defaultValue\\":\\"\\",\\"dataSource\\":\\"\\"}}"'."\n"
.' },'."\n"
.' {'."\n"
.' "name": "deny_dict_id",'."\n"
.' "required": "false",'."\n"
.' "validations": "[{\\"params\\": {\\"restrictions\\": \\"type=hot_denylist\\", \\"type\\": \\"passthrough\\", \\"dataSource\\": \\"dicts\\"}, \\"class\\": \\"EnumerateRule\\"}]",'."\n"
.' "value": "{\\"component\\":\\"Select\\",\\"attributes\\":{\\"defaultValue\\":\\"\\",\\"dataSource\\":\\"\\"}}"'."\n"
.' }'."\n"
.' ],'."\n"
.' "depends": ['."\n"
.' {'."\n"
.' "condition": "integrity_level >= 1",'."\n"
.' "dependency": "integrity_level",'."\n"
.' "description": "The data integrity level must be L1 or higher."'."\n"
.' }'."\n"
.' ],'."\n"
.' "deployment": "",'."\n"
.' "dagTemplate": "opensearch_hot_train"'."\n"
.' }'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionCurrentVersion'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"1638157479281\\",\\n \\"Message\\": \\"version not exist.\\",\\n \\"Code\\": \\"Version.NotExist\\",\\n \\"Result\\": {\\n \\"FunctionName\\": \\"ctr\\",\\n \\"FunctionType\\": \\"PAAS\\",\\n \\"ModelType\\": \\"tf_checkpoint\\",\\n \\"VersionConfig\\": {\\n \\"CreateParameters\\": [\\n {\\n \\"Name\\": \\"params1\\",\\n \\"Required\\": \\"true\\"\\n }\\n ],\\n \\"Depends\\": [\\n {\\n \\"Condition\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Dependency\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Description\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n ],\\n \\"UsageParameters\\": [\\n {\\n \\"Name\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Required\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n ]\\n },\\n \\"VersionId\\": 101,\\n \\"VersionName\\": \\"v1\\"\\n },\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetFunctionDefaultInstance' => [
'summary' => 'Queries the default algorithm instance for an application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/default-instance',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchZAE4HR'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ctr'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The request status.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '062BA91F-A568-5779-8A5B-9E62C9BB3DC1'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'default instance not set.'],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'DefaultInstance.NotExist'],
'Result' => [
'description' => 'The result.',
'type' => 'object',
'properties' => [
'InstanceName' => ['description' => 'The default instance name.', 'type' => 'string', 'title' => '', 'example' => 'model1'],
],
'example' => '{\'Pagination\': {\'TotalCount\': 0, \'PageNumber\': 1, \'PageSize\': 10}, \'AntConsortiums\': []}',
'title' => '',
],
'Latency' => ['description' => 'The default runtime.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '123'],
'InstanceName' => ['title' => '', 'description' => 'The name of the instance.', 'type' => 'string', 'readOnly' => false, 'example' => 'sh-bp1oi31w1jn4ctdyv'],
'FunctionName' => ['title' => '', 'description' => 'The name of the feature.', 'type' => 'string', 'readOnly' => true, 'example' => 'cdn_waf'],
],
'title' => '',
'example' => '',
],
],
],
'title' => 'GetFunctionDefaultInstance',
'requestParamsDescription' => '### Sample request'."\n"
."\n"
.'`GET /v4/openapi/app-groups/my-app/functions/pop/default-instances`',
'responseParamsDescription' => '### Sample responses'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency": 123,'."\n"
.' "result": {'."\n"
.' "instanceName": "pop_test"'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionDefaultInstance'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionDefaultInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"062BA91F-A568-5779-8A5B-9E62C9BB3DC1\\",\\n \\"Message\\": \\"default instance not set.\\",\\n \\"Code\\": \\"DefaultInstance.NotExist\\",\\n \\"Result\\": {\\n \\"InstanceName\\": \\"model1\\"\\n },\\n \\"Latency\\": 123,\\n \\"InstanceName\\": \\"sh-bp1oi31w1jn4ctdyv\\",\\n \\"FunctionName\\": \\"cdn_waf\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetFunctionInstance' => [
'summary' => 'Query an algorithm instance by instance name.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch3QPM0K', 'FEATUREopensearchN8M8WS', 'FEATUREopensearchZAE4HR'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'example' => '150057101', 'title' => ''],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'ctr', 'title' => ''],
],
[
'name' => 'instanceName',
'in' => 'path',
'schema' => ['description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'example' => 'ctr_test', 'title' => ''],
],
[
'name' => 'output',
'in' => 'query',
'schema' => ['description' => 'Specifies the richness of returned information. Valid values:'."\n"
."\n"
.'- simple: displays only the basic information.'."\n"
."\n"
.'- normal: displays information such as createParameters and cron. This is the default value.'."\n"
."\n"
.'- detail: returns the details of the training task.', 'type' => 'string', 'required' => false, 'example' => 'detail', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '68ED4E1B-92B8-5821-A886-9C90686139EB', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'instance not exist.', 'title' => ''],
'Code' => ['description' => 'The error code. If no error occurs, this parameter is left empty.', 'type' => 'string', 'example' => 'Instance.NotExist', 'title' => ''],
'Result' => [
'description' => 'The details of the instance.',
'type' => 'object',
'properties' => [
'Belongs' => [
'description' => 'The information about the instance.',
'type' => 'object',
'properties' => [
'Category' => ['description' => 'The category.', 'type' => 'string', 'example' => 'general', 'title' => ''],
'Domain' => ['description' => 'The industry.', 'type' => 'string', 'example' => 'ecommerce', 'title' => ''],
'Language' => ['description' => 'The abbreviation of the language that applies.', 'type' => 'string', 'example' => 'zh', 'title' => ''],
],
'title' => '',
'example' => '',
],
'CreateParameters' => [
'description' => 'The parameters that are used to create the instance.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'example' => 'param1', 'title' => ''],
'Value' => ['description' => 'The value of the parameter.', 'type' => 'string', 'example' => 'value1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'UsageParameters' => [
'description' => 'The parameters that are used.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'example' => 'use_param1', 'title' => ''],
'Value' => ['description' => 'The value of the parameter.', 'type' => 'string', 'example' => 'value1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'CreateTime' => ['description' => 'The time when the task was created. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1234', 'title' => ''],
'Cron' => ['description' => 'The cron expression used to schedule training, in the format of (Minutes Hours DayofMonth Month DayofWeek). If the value is empty, it indicates that no periodic training is performed.', 'type' => 'string', 'example' => '0 3 ? * 0,1,3,5 (at 3 a.m. on Sunday, Monday, Wednesday, and Friday)', 'title' => ''],
'Description' => ['description' => 'The description of the instance.', 'type' => 'string', 'example' => 'instance descriptions', 'title' => ''],
'ExtendInfo' => ['description' => 'The extended information, which is a JSON string.', 'type' => 'string', 'example' => '{\\"dataReport\\":{},\\"errors\\":{}}', 'title' => ''],
'FunctionName' => ['description' => 'The name of the feature.', 'type' => 'string', 'example' => 'ctr', 'title' => ''],
'FunctionType' => ['description' => 'The type of the feature.', 'type' => 'string', 'example' => 'PAAS', 'title' => ''],
'InstanceName' => ['description' => 'The name of the instance.', 'type' => 'string', 'example' => 'ctr_test', 'title' => ''],
'ModelType' => ['description' => 'The type of the model.', 'type' => 'string', 'example' => 'tf_checkpoint', 'title' => ''],
'Source' => ['description' => 'How the instance is created. Valid values:'."\n"
."\n"
.'- user: The instance is created by user.'."\n"
."\n"
.'- builtin: The instance is created by the system.', 'type' => 'string', 'example' => 'user', 'title' => ''],
'Status' => ['description' => 'The status of the instance. Valid values:'."\n"
."\n"
.'1. unavailable: No model is available. Models must be trained before you can use them.'."\n"
."\n"
.'2. available: Models can be used.', 'type' => 'string', 'example' => 'available', 'title' => ''],
'Task' => [
'description' => 'The information about the training task. This parameter is not displayed if no task is available.',
'type' => 'object',
'properties' => [
'DagStatus' => ['description' => 'The status of the task. Valid values:'."\n"
."\n"
.'- success: succeeded'."\n"
."\n"
.'- failed: failed'."\n"
."\n"
.'- untrained: to be trained'."\n"
."\n"
.'- pending: being scheduled'."\n"
."\n"
.'- running: being trained', 'type' => 'string', 'example' => 'success', 'title' => ''],
'LastRunTime' => ['description' => 'The time consumed for the most recent run, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1234', 'title' => ''],
],
'title' => '',
'example' => '',
],
'VersionId' => ['description' => 'The ID of the version.', 'type' => 'integer', 'format' => 'int64', 'example' => '101', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'Latency' => ['description' => 'The time consumed for the request, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"68ED4E1B-92B8-5821-A886-9C90686139EB\\",\\n \\"Message\\": \\"instance not exist.\\",\\n \\"Code\\": \\"Instance.NotExist\\",\\n \\"Result\\": {\\n \\"Belongs\\": {\\n \\"Category\\": \\"general\\",\\n \\"Domain\\": \\"ecommerce\\",\\n \\"Language\\": \\"zh\\"\\n },\\n \\"CreateParameters\\": [\\n {\\n \\"Name\\": \\"param1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ],\\n \\"UsageParameters\\": [\\n {\\n \\"Name\\": \\"use_param1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ],\\n \\"CreateTime\\": 1234,\\n \\"Cron\\": \\"0 3 ? * 0,1,3,5 (at 3 a.m. on Sunday, Monday, Wednesday, and Friday)\\",\\n \\"Description\\": \\"instance descriptions\\",\\n \\"ExtendInfo\\": \\"{\\\\\\\\\\\\\\"dataReport\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"errors\\\\\\\\\\\\\\":{}}\\",\\n \\"FunctionName\\": \\"ctr\\",\\n \\"FunctionType\\": \\"PAAS\\",\\n \\"InstanceName\\": \\"ctr_test\\",\\n \\"ModelType\\": \\"tf_checkpoint\\",\\n \\"Source\\": \\"user\\",\\n \\"Status\\": \\"available\\",\\n \\"Task\\": {\\n \\"DagStatus\\": \\"success\\",\\n \\"LastRunTime\\": 1234\\n },\\n \\"VersionId\\": 101\\n },\\n \\"Latency\\": 123\\n}","type":"json"}]',
'title' => 'GetFunctionInstance',
'requestParamsDescription' => '### Sample requests'."\n"
."\n"
.'`GET /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test?output=detail`',
'responseParamsDescription' => '### Sample success responses'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency": 123,'."\n"
.' "result": {'."\n"
.' "versionId": 100,'."\n"
.' "instanceName": "ctr_test",'."\n"
.' "functionName": "ctr",'."\n"
.' "functionType": "PAAS",'."\n"
.' "modelType": "tf_checkpoint",'."\n"
.' "Description": "test",'."\n"
.' "status": "available",'."\n"
.' "belongs": {'."\n"
.' "domain": "ecommerce",'."\n"
.' "category": "general",'."\n"
.' "language": "zh"'."\n"
.' },'."\n"
.' "createTime": 100010,'."\n"
.' "createParameters": ['."\n"
.' {'."\n"
.' "name": "param1",'."\n"
.' "value": "val1"'."\n"
.' }'."\n"
.' ],'."\n"
.' "usageParameters": ['."\n"
.' {'."\n"
.' "name": "use_param1",'."\n"
.' "value": "val1"'."\n"
.' }'."\n"
.' ],'."\n"
.' "extendInfo": "{\\"error\\":{},\\"dataReport\\":{}}",'."\n"
.' "cron": "",'."\n"
.' "task": {'."\n"
.' "dagStatus": "running",'."\n"
.' "progress": 30,'."\n"
.' "lastRunTime": 200020'."\n"
.' }'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionInstance'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'GetFunctionResource' => [
'summary' => 'Retrieves the specified algorithm resource.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources/{resourceName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '173353',
'abilityTreeNodes' => ['FEATUREopensearchZAE4HR'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The application ID.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The feature name.', 'type' => 'string', 'required' => true, 'example' => 'rank'],
],
[
'name' => 'resourceName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The instance name.', 'type' => 'string', 'required' => true, 'example' => 'fg_json'],
],
[
'name' => 'output',
'in' => 'query',
'schema' => [
'title' => '',
'description' => 'The output level.',
'type' => 'string',
'required' => false,
'enum' => ['simple', 'normal', 'detail'],
'example' => 'detail',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status code.'."\n"
."\n"
.'- OK: The request was successful.'."\n"
."\n"
.'- FAIL: The request failed.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E215C843-0795-5293-AC9A-14FE0723E890'],
'Message' => ['description' => 'The returned error message.', 'type' => 'string', 'title' => '', 'example' => 'Resource not exist.'],
'Code' => ['description' => 'The returned error code. This is empty if no error occurred.', 'type' => 'string', 'title' => '', 'example' => 'Resource.NotExist'],
'Result' => [
'description' => 'The returned result.',
'type' => 'object',
'properties' => [
'CreateTime' => ['description' => 'The time when the resource was created. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1234'],
'Data' => [
'description' => 'The resource data. The structure of the data varies based on the resourceType.',
'type' => 'object',
'properties' => [
'Content' => ['description' => 'The content of the file for a resource of the raw\\_file type.', 'type' => 'string', 'title' => '', 'example' => 'abc'],
'Generators' => [
'description' => 'The list of feature generators for a resource of the feature\\_generator type.',
'type' => 'array',
'items' => [
'description' => 'The description of the feature generator.',
'type' => 'object',
'properties' => [
'Generator' => ['description' => 'The type of the feature generator.', 'type' => 'string', 'title' => '', 'example' => 'id'],
'Input' => [
'description' => 'The input.',
'type' => 'object',
'properties' => [
'Features' => [
'description' => 'The list of input features.',
'type' => 'array',
'items' => [
'description' => 'The input feature.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The feature name.', 'type' => 'string', 'title' => '', 'example' => 'system_item_id'],
'Type' => ['description' => 'The feature type.', 'type' => 'string', 'title' => '', 'example' => 'item'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Output' => ['description' => 'The name of the output feature.', 'type' => 'string', 'title' => '', 'example' => 'output_feature_name'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description of the resource.', 'type' => 'string', 'title' => '', 'example' => '""'],
'FunctionName' => ['description' => 'The feature name.', 'type' => 'string', 'title' => '', 'example' => 'rank'],
'ModifyTime' => ['description' => 'The time when the resource was last modified. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1234'],
'ReferencedInstances' => [
'description' => 'The list of referenced algorithm instance names.',
'type' => 'array',
'items' => ['description' => 'The instance name.', 'type' => 'string', 'title' => '', 'example' => 'instance1'],
'title' => '',
'example' => '',
],
'ResourceName' => ['description' => 'The resource name.', 'type' => 'string', 'title' => '', 'example' => 'fg_json'],
'ResourceType' => ['description' => 'The resource type.', 'type' => 'string', 'title' => '', 'example' => 'raw_file'],
],
'title' => '',
'example' => '',
],
'Latency' => ['description' => 'The time consumed by the API request. Unit: milliseconds.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '123'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'GetFunctionResource',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionResource'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"E215C843-0795-5293-AC9A-14FE0723E890\\",\\n \\"Message\\": \\"Resource not exist.\\",\\n \\"Code\\": \\"Resource.NotExist\\",\\n \\"Result\\": {\\n \\"CreateTime\\": 1234,\\n \\"Data\\": {\\n \\"Content\\": \\"abc\\",\\n \\"Generators\\": [\\n {\\n \\"Generator\\": \\"id\\",\\n \\"Input\\": {\\n \\"Features\\": [\\n {\\n \\"Name\\": \\"system_item_id\\",\\n \\"Type\\": \\"item\\"\\n }\\n ]\\n },\\n \\"Output\\": \\"output_feature_name\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"FunctionName\\": \\"rank\\",\\n \\"ModifyTime\\": 1234,\\n \\"ReferencedInstances\\": [\\n \\"instance1\\"\\n ],\\n \\"ResourceName\\": \\"fg_json\\",\\n \\"ResourceType\\": \\"raw_file\\"\\n },\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetFunctionTask' => [
'summary' => 'Queries the details of a training task.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}/tasks/{generation}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'ctr'],
],
[
'name' => 'instanceName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'example' => 'test_model_2'],
],
[
'name' => 'generation',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The number of iterations.', 'type' => 'string', 'required' => true, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The schema of the response.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The request status.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'A4D487A9-A456-5AA5-A9C6-B7BF2889CF74'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'operation success'],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'Task.NotExist'],
'Result' => [
'description' => 'The result of the request.',
'type' => 'object',
'properties' => [
'EndTime' => ['description' => 'The timestamp that indicates the end time of the task. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1647213406267'],
'ExtendInfo' => ['description' => 'The extended information, which is a JSON string.', 'type' => 'string', 'title' => '', 'example' => '{\\"recall\\":91,\\"errors\\":[]}'],
'FunctionName' => ['description' => 'The name of the feature.', 'type' => 'string', 'title' => '', 'example' => 'ctr'],
'Generation' => ['description' => 'The number of iterations.', 'type' => 'string', 'title' => '', 'example' => '1'],
'Progress' => ['description' => 'The progress. 90 indicates 90%.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '90'],
'RunId' => ['description' => 'The ID of the task.', 'type' => 'string', 'title' => '', 'example' => 'trigger__2021-03-05T12:18:41'],
'StartTime' => ['description' => 'The timestamp that indicates the start time of the task. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1647212220000'],
'Status' => ['description' => 'The status of the task. Valid values:'."\n"
."\n"
.'- success'."\n"
."\n"
.'- failed'."\n"
."\n"
.'- running', 'type' => 'string', 'title' => '', 'example' => 'success'],
],
'title' => '',
'example' => '',
],
'Latency' => ['description' => 'The time consumed for the request, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '123'],
],
'title' => '',
'example' => '',
],
],
],
'title' => 'GetFunctionTask',
'requestParamsDescription' => '### Sample requests'."\n"
."\n"
.'`GET /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test/tasks/3`',
'responseParamsDescription' => '### Sample success responses'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency": 123,'."\n"
.' "result": {'."\n"
.' "functionName": "ctr",'."\n"
.' "progress": 100,'."\n"
.' "status": "success",'."\n"
.' "startTime": 100010,'."\n"
.' "endTime": 200020,'."\n"
.' "extendInfo": "{\\"recall\\":91,\\"errors\\":[]}",'."\n"
.' "runId": "trigger__2021-03-05T12:18:41",'."\n"
.' "generation": "3"'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionTask'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"A4D487A9-A456-5AA5-A9C6-B7BF2889CF74\\",\\n \\"Message\\": \\"operation success\\",\\n \\"Code\\": \\"Task.NotExist\\",\\n \\"Result\\": {\\n \\"EndTime\\": 1647213406267,\\n \\"ExtendInfo\\": \\"{\\\\\\\\\\\\\\"recall\\\\\\\\\\\\\\":91,\\\\\\\\\\\\\\"errors\\\\\\\\\\\\\\":[]}\\",\\n \\"FunctionName\\": \\"ctr\\",\\n \\"Generation\\": \\"1\\",\\n \\"Progress\\": 90,\\n \\"RunId\\": \\"trigger__2021-03-05T12:18:41\\",\\n \\"StartTime\\": 1647212220000,\\n \\"Status\\": \\"success\\"\\n },\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetFunctionVersion' => [
'path' => '/v4/openapi/functions/{functionName}/versions/{versionId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'ctr', 'title' => ''],
],
[
'name' => 'versionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the version.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '100', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The request status.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1638157479281', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'version not exist.', 'title' => ''],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Version.NotExist', 'title' => ''],
'Result' => [
'description' => 'The result body.',
'type' => 'object',
'properties' => [
'FunctionName' => ['description' => 'The name of the feature.', 'type' => 'string', 'example' => 'ctr', 'title' => ''],
'FunctionType' => ['description' => 'The type of the feature. Valid values:'."\n"
."\n"
.'- PAAS'."\n"
."\n"
.'- SAAS', 'type' => 'string', 'example' => 'PAAS', 'title' => ''],
'ModelType' => ['description' => 'The type of the model.', 'type' => 'string', 'example' => 'tf_checkpoint', 'title' => ''],
'VersionConfig' => [
'description' => 'The version configuration.',
'type' => 'object',
'properties' => [
'CreateParameters' => [
'description' => 'The parameters that are used to create the instance.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'example' => 'params1', 'title' => ''],
'Required' => ['description' => 'Indicates whether the parameter is required.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'example' => '[ { "name": "params1", "required": "true", "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}", "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}" } ]',
'title' => '',
],
'Depends' => [
'description' => 'The dependencies of the instance.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Condition' => ['description' => 'The condition.', 'type' => 'string', 'example' => '""', 'title' => ''],
'Dependency' => ['description' => 'The dependency.', 'type' => 'string', 'example' => '""', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '""', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'example' => '[ { "dependency": "依赖项", "condition": "条件", "description": "" } ]',
'title' => '',
],
'UsageParameters' => [
'description' => 'The parameters that are used during online use of the instance.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'example' => '""', 'title' => ''],
'Required' => ['description' => 'Indicates whether the parameter is required.', 'type' => 'string', 'example' => '""', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
],
'example' => '{ "createParameters": [ { "name": "params1", "required": "true", "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}", "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}" } ], "depends": [ { "dependency": "依赖项", "condition": "条件", "description": "" } ], "usageParameters": [] }',
'title' => '',
],
'VersionId' => ['description' => 'The ID of the version.', 'type' => 'integer', 'format' => 'int64', 'example' => '101', 'title' => ''],
'VersionName' => ['description' => 'The name of the version.', 'type' => 'string', 'example' => 'v1', 'title' => ''],
],
'example' => '[]',
'title' => '',
],
'Latency' => ['description' => 'The request latency.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
],
],
'title' => 'GetFunctionVersion',
'summary' => 'Queries the information about a function version.',
'requestParamsDescription' => '### Sample request'."\n"
."\n"
.'`GET /v4/openapi/functions/ctr/version/101`',
'responseParamsDescription' => '### Sample success response'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency": 123,'."\n"
.' "result": {'."\n"
.' "versionName": "v1",'."\n"
.' "versionId": 101,'."\n"
.' "functionName": "ctr",'."\n"
.' "modelType": "tf_checkpoint",'."\n"
.' "functionType": "PAAS",'."\n"
.' "versionConfig": {'."\n"
.' "createParameters": ['."\n"
.' {'."\n"
.' "name": "params1",'."\n"
.' "required": "true",'."\n"
.' "formItemProps": "{\\"required\\": true, \\"pattern?\\": \\"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\\"}",'."\n"
.' "componentProps": "{\\"component\\": \\"Input\\", \\"attributes\\": {\\"defaultValue\\": \\"value1\\"}}"'."\n"
.' }'."\n"
.' ],'."\n"
.' "depends": ['."\n"
.' {'."\n"
.' "dependency": "the dependency",'."\n"
.' "condition": "the condition",'."\n"
.' "description": ""'."\n"
.' }'."\n"
.' ],'."\n"
.' "usageParameters": []'."\n"
.' }'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionVersion'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"1638157479281\\",\\n \\"Message\\": \\"version not exist.\\",\\n \\"Code\\": \\"Version.NotExist\\",\\n \\"Result\\": {\\n \\"FunctionName\\": \\"ctr\\",\\n \\"FunctionType\\": \\"PAAS\\",\\n \\"ModelType\\": \\"tf_checkpoint\\",\\n \\"VersionConfig\\": {\\n \\"CreateParameters\\": [\\n {\\n \\"Name\\": \\"params1\\",\\n \\"Required\\": \\"true\\"\\n }\\n ],\\n \\"Depends\\": [\\n {\\n \\"Condition\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Dependency\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Description\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n ],\\n \\"UsageParameters\\": [\\n {\\n \\"Name\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Required\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n ]\\n },\\n \\"VersionId\\": 101,\\n \\"VersionName\\": \\"v1\\"\\n },\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetScriptFileNames' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/file-names',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app'],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '123456'],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The name of the script.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'file_names'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The unique identifier of the request.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
'result' => [
'description' => 'The list of scripts.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'createTime' => ['description' => 'The time when the script was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-02 20:21:14'],
'fileName' => ['description' => 'The name of the script file.', 'type' => 'string', 'title' => '', 'example' => 'my_cava_script.cava'],
'modifyTime' => ['description' => 'The time when the script was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-02 21:21:14'],
'pathName' => ['description' => 'The path of the script.', 'type' => 'string', 'title' => '', 'example' => 'src'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'GetScriptFileNames',
'summary' => 'Retrieves the names of all files in a specified script for a specific application version.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '```'."\n"
.'Error response'."\n"
.'{'."\n"
.' "requestId" : "ABCDEFGH",'."\n"
.' "code":"ResourceNotFound",'."\n"
.' "message":"The specified script not found.",'."\n"
.' "httpCode":404'."\n"
.'}'."\n"
.'```',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SortScript', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\",\\n \\"result\\": [\\n {\\n \\"createTime\\": \\"2020-04-02 20:21:14\\",\\n \\"fileName\\": \\"my_cava_script.cava\\",\\n \\"modifyTime\\": \\"2020-04-02 21:21:14\\",\\n \\"pathName\\": \\"src\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetSearchStrategy' => [
'summary' => 'Retrieves the details of a query policy.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/search-strategies/{strategyName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchBNTDZX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'strategyName',
'in' => 'path',
'schema' => ['description' => 'The policy name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'default'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '5C1C1C45-C64A-AD30-565F-140871D57E5E'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'GetSearchStrategy',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"5C1C1C45-C64A-AD30-565F-140871D57E5E\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetSortScript' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => [
'description' => 'The name or ID of the application.',
'enumValueTitles' => [],
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'my_app',
'title' => '',
],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => [
'description' => 'The name of the script.',
'enumValueTitles' => [],
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'script1',
'title' => '',
],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => [
'description' => 'The ID of the application version.',
'enumValueTitles' => [],
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => '160051478',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => [
'description' => 'The unique ID of the request.',
'enumValueTitles' => [],
'type' => 'string',
'example' => 'ABCDEFGH',
'title' => '',
],
'result' => [
'description' => 'The details of the script.',
'type' => 'object',
'properties' => [
'scope' => ['description' => 'The applicable scope of the script.', 'type' => 'string', 'example' => 'second_rank', 'title' => ''],
'createTime' => ['description' => 'The time when the script was created.', 'type' => 'string', 'example' => '2020-04-02 20:21:14', 'title' => ''],
'status' => ['description' => 'The status of the script. For more information, see the list of script statuses.', 'type' => 'string', 'example' => 'released', 'title' => ''],
'modifyTime' => ['description' => 'The time when the script was last modified.', 'type' => 'string', 'example' => '2020-04-02 21:21:14', 'title' => ''],
'type' => [
'description' => 'The type of the script.',
'enumValueTitles' => [],
'type' => 'string',
'example' => 'cava_script',
'title' => '',
],
'scriptName' => ['description' => 'The name of the script.', 'type' => 'string', 'example' => 'rank_cava_20230606_v7'."\n", 'title' => ''],
'description' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'title' => '',
'example' => '',
],
],
'enumValueTitles' => [],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'GetSortScript',
'summary' => 'Retrieves the details of a sort script.',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId" : "ABCDEFGH",'."\n"
.' "code":"ResourceNotFound",'."\n"
.' "message":"The specified script not found.",'."\n"
.' "httpCode":404'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\",\\n \\"result\\": {\\n \\"scope\\": \\"second_rank\\",\\n \\"createTime\\": \\"2020-04-02 20:21:14\\",\\n \\"status\\": \\"released\\",\\n \\"modifyTime\\": \\"2020-04-02 21:21:14\\",\\n \\"type\\": \\"cava_script\\",\\n \\"scriptName\\": \\"rank_cava_20230606_v7\\\\n\\",\\n \\"description\\": \\"\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'GetSortScriptFile' => [
'summary' => 'Retrieves the content of a sort script.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/files/src/{fileName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app'],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The name of the script.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'UserScorer.cava'],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '123456'],
],
[
'name' => 'fileName',
'in' => 'path',
'schema' => ['description' => 'The name of the script file.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'script1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
'result' => [
'description' => 'The content of the sort script.',
'type' => 'object',
'properties' => [
'content' => ['description' => 'The content of the script, Base64-encoded.', 'type' => 'string', 'title' => '', 'example' => 'YWJjZGVmZw=='],
'createTime' => ['description' => 'The time when the script file was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-02 20:21:14'],
'modifyTime' => ['description' => 'The time when the script file was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-02 21:21:14'],
'version' => ['description' => 'The version of the script content.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '123456'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'GetSortScriptFile',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '```'."\n"
.'Error response'."\n"
.'{'."\n"
.' "requestId" : "ABCDEFGH",'."\n"
.' "code":"ResourceNotFound",'."\n"
.' "message":"The specified script not found.",'."\n"
.' "httpCode":404'."\n"
.'}'."\n"
.'```',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SortScript', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\",\\n \\"result\\": {\\n \\"content\\": \\"YWJjZGVmZw==\\",\\n \\"createTime\\": \\"2020-04-02 20:21:14\\",\\n \\"modifyTime\\": \\"2020-04-02 21:21:14\\",\\n \\"version\\": 123456\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListABTestExperiments' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '“my_app_group_name”', 'title' => ''],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'example' => '13467', 'title' => ''],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The group ID.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'example' => '20404', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014', 'title' => ''],
'result' => [
'description' => 'The experiment details.\\'."\n"
.'For more information, see [ABTestExperiment](~~173617~~).'."\n",
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the experiment was created.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1588842080', 'title' => ''],
'params' => ['description' => 'The experiment parameters.'."\n", 'type' => 'object', 'example' => '1', 'title' => ''],
'traffic' => ['description' => 'The percentage of traffic that is routed to the experiment.'."\n"
."\n"
.'Valid values: \\[0,100]'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
'online' => ['description' => 'Indicates whether the experiment is in effect. Valid values:'."\n"
."\n"
.'* true'."\n"
.'* false'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'name' => ['description' => 'The group alias.'."\n", 'type' => 'string', 'example' => 'test1', 'title' => ''],
'updated' => ['description' => 'The time when the experiment was last modified.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1588842080', 'title' => ''],
'id' => ['description' => 'The experiment ID.'."\n", 'type' => 'string', 'example' => '12888', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListABTestExperiments',
'summary' => 'Queries a list of experiments.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1588842080,\\n \\"params\\": 1,\\n \\"traffic\\": 30,\\n \\"online\\": true,\\n \\"name\\": \\"test1\\",\\n \\"updated\\": 1588842080,\\n \\"id\\": \\"12888\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"D77D0DAF-790D-F5F5-A9C0-133738165014\\n\\n 12888\\n test1\\n \\n default\\n \\n 1588842080\\n 1588842080\\n true\\n 30\\n","errorExample":""}]',
],
'ListABTestFixedFlowDividers' => [
'summary' => 'Lists whitelists.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments/{experimentId}/fixed-flow-dividers',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '“my_app_group_name”', 'title' => ''],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'example' => '12889', 'title' => ''],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The group ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'example' => '13467', 'title' => ''],
],
[
'name' => 'experimentId',
'in' => 'path',
'schema' => ['description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'example' => '20404', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014', 'title' => ''],
'result' => [
'type' => 'array',
'items' => ['description' => 'The whitelist.', 'type' => 'string', 'example' => '[ "D77D0DAF", "133738165014" ]', 'title' => ''],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListABTestFixedFlowDividers',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n \\"[ \\\\\\"D77D0DAF\\\\\\", \\\\\\"133738165014\\\\\\" ]\\"\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListABTestGroups' => [
'summary' => 'Retrieves a list of test groups.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => ' “my_app_group_name”'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The test groups.'."\n"
."\n"
.'For more information, see [ABTestGroup](~~178935~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the test group was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'status' => ['description' => 'The status of the test group. Valid values:'."\n"
."\n"
.'- 0: Not in effect'."\n"
."\n"
.'- 1: In effect', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'updated' => ['description' => 'The time when the test group was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'name' => ['description' => 'The name of the test group.', 'type' => 'string', 'title' => '', 'example' => 'Group_2020-5-7_15:23:3'],
'id' => ['description' => 'The ID of the test group.', 'type' => 'string', 'title' => '', 'example' => '13466'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListABTestGroups',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1588839490,\\n \\"status\\": 1,\\n \\"updated\\": 1588839490,\\n \\"name\\": \\"Group_2020-5-7_15:23:3\\",\\n \\"id\\": \\"13466\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListABTestScenes' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014', 'title' => ''],
'result' => [
'description' => 'The details of the test scenario.'."\n"
."\n"
.'For more information, see [ABTestScene](~~173618~~).'."\n",
'type' => 'array',
'items' => [
'description' => 'The returned data.'."\n",
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the test group was created.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1588836130', 'title' => ''],
'status' => ['description' => 'The status of the test group. Valid values:'."\n"
."\n"
.'* 0: not in effect'."\n"
.'* 1: in effect'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'updated' => ['description' => 'The time when the test group was last updated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1588836129', 'title' => ''],
'name' => ['description' => 'The alias of the test group.'."\n", 'type' => 'string', 'example' => 'kevintest_2020-5-7_15:21:482', 'title' => ''],
'id' => ['description' => 'The ID of the test group.'."\n", 'type' => 'string', 'example' => '20404', 'title' => ''],
'values' => [
'description' => 'The name of the test scenario.'."\n",
'type' => 'array',
'items' => ['description' => 'The list of scenarios.'."\n", 'type' => 'string', 'example' => '["kevintest2"]', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListABTestScenes',
'summary' => 'Queries test scenarios.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1588836130,\\n \\"status\\": 1,\\n \\"updated\\": 1588836129,\\n \\"name\\": \\"kevintest_2020-5-7_15:21:482\\",\\n \\"id\\": \\"20404\\",\\n \\"values\\": [\\n \\"[\\\\\\"kevintest2\\\\\\"]\\"\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"D77D0DAF-790D-F5F5-A9C0-133738165014\\n\\n 20404\\n kevintest_2020-5-7_15:21:482\\n 1\\n 1588836130\\n 1588836129\\n kevintest2\\n","errorExample":""}]',
],
'ListAppGroups' => [
'summary' => 'Queries a list of OpenSearch applications.',
'path' => '/v4/openapi/app-groups',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55205',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'],
],
[
'name' => 'instanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the instance. An exact match is performed.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ops-cn-xxxx'],
],
[
'name' => 'name',
'in' => 'query',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'my_name'],
],
[
'name' => 'type',
'in' => 'query',
'schema' => ['description' => 'The type of the application. Valid values:'."\n"
."\n"
.'- standard: a Standard Edition application.'."\n"
."\n"
.'- enhanced: a Premium Edition application.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'standard'],
],
[
'name' => 'sortBy',
'in' => 'query',
'schema' => ['description' => 'The sort order. Valid values:'."\n"
."\n"
.'- 0: Sorts applications by creation time in descending order.'."\n"
."\n"
.'- 1: Sorts applications by modification time in descending order.'."\n"
."\n"
.'Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '0'],
],
[
'name' => 'resourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"110123123"'],
],
[
'name' => 'tags',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => 'A list of tags.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'key' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'foo'],
'value' => ['description' => 'The tag value.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'bar'],
],
'required' => false,
'description' => 'The tag dictionary. ',
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The applications.'."\n"
."\n"
.'For more information, see [AppGroup](~~170000~~).',
'type' => 'array',
'items' => [
'description' => 'The results.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp that indicates when the application was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1575442875'],
'currentVersion' => ['description' => 'The ID of the current online version.', 'type' => 'string', 'title' => '', 'example' => '110116134'],
'lockMode' => ['description' => 'The lock status. Valid values:'."\n"
."\n"
.'- Unlock: The instance is not locked.'."\n"
."\n"
.'- LockByExpiration: The instance is automatically locked after it expires.'."\n"
."\n"
.'- ManualLock: The instance is manually locked.', 'type' => 'string', 'title' => '', 'example' => 'Unlock'],
'updated' => ['description' => 'The timestamp that indicates when the application was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1578916076'],
'id' => ['description' => 'The application ID.', 'type' => 'string', 'title' => '', 'example' => '110116134'],
'chargeType' => ['description' => 'The billing method. Valid values:'."\n"
."\n"
.'- POSTPAY: pay-as-you-go.'."\n"
."\n"
.'- PREPAY: subscription.', 'type' => 'string', 'title' => '', 'example' => 'POSTPAY'],
'hasPendingQuotaReviewTask' => ['description' => 'The quota approval status. Valid values:'."\n"
."\n"
.'- 0: Normal'."\n"
."\n"
.'- 1: Pending approval', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'name' => ['description' => 'The application name.', 'type' => 'string', 'title' => '', 'example' => 'os_function_test_v1'],
'instanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'title' => '', 'example' => '"xxx"'],
'chargingWay' => ['description' => 'The billing method. Valid values:'."\n"
."\n"
.'- 1: computing resources'."\n"
."\n"
.'- 2: queries per second (QPS)', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'type' => ['description' => 'The type of the application. Valid values:'."\n"
."\n"
.'- standard: a Standard Edition application.'."\n"
."\n"
.'- enhanced: a Premium Edition application.', 'type' => 'string', 'title' => '', 'example' => 'enhanced'],
'status' => ['description' => 'The status of the application. Valid values:'."\n"
."\n"
.'- producing: The application is being created.'."\n"
."\n"
.'- review\\_pending: The application is pending approval.'."\n"
."\n"
.'- config\\_pending: The application is pending configuration.'."\n"
."\n"
.'- normal: The application is running as normal.'."\n"
."\n"
.'- frozen: The application is frozen.', 'type' => 'string', 'title' => '', 'example' => 'normal'],
'projectId' => ['description' => 'The name of the A/B test project.', 'type' => 'string', 'title' => '', 'example' => '"xxx"'],
'switchedTime' => ['description' => 'The timestamp that indicates when the current online version was published.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'commodityCode' => ['description' => 'The commodity code.', 'type' => 'string', 'title' => '', 'example' => 'opensearch'],
'expireOn' => ['description' => 'The time when the application expires.', 'type' => 'string', 'title' => '', 'example' => '"xxx"'],
'domain' => ['description' => 'The domain of the application group.', 'type' => 'string', 'title' => '', 'example' => '""'],
'description' => ['description' => 'The description of the application.', 'type' => 'string', 'title' => '', 'example' => '"xxx"'],
'produced' => ['description' => 'Indicates whether the application is created. Valid values:'."\n"
."\n"
.'- 0: The application is being created.'."\n"
."\n"
.'- 1: The application is created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'lockedByExpiration' => ['description' => 'Indicates whether the instance is automatically locked after it expires.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'quota' => [
'description' => 'The quota information of the application.'."\n"
.'For more information, see [Quota](~~170001~~).',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: Basic'."\n"
."\n"
.'- opensearch.share.common: Shared General-purpose'."\n"
."\n"
.'- opensearch.share.compute: Shared Compute-optimized'."\n"
."\n"
.'- opensearch.share.storage: Shared Storage-optimized'."\n"
."\n"
.'- opensearch.private.common: Exclusive General-purpose'."\n"
."\n"
.'- opensearch.private.compute: Exclusive Compute-optimized'."\n"
."\n"
.'- opensearch.private.storage: Exclusive Storage-optimized', 'type' => 'string', 'title' => '', 'example' => 'opensearch.share.common'],
'docSize' => ['description' => 'The storage capacity in GB.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'computeResource' => ['description' => 'The computing resources in logical compute units (LCUs).', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '20'],
],
'example' => '{}',
'title' => '',
],
'tags' => [
'description' => 'The tags of the application.',
'type' => 'array',
'items' => [
'description' => 'The tag.',
'type' => 'object',
'properties' => [
'key' => ['description' => 'The tag key.', 'type' => 'string', 'title' => '', 'example' => 'foo'],
'value' => ['description' => 'The tag value.', 'type' => 'string', 'title' => '', 'example' => 'bar'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'engineType' => ['description' => 'The engine type.', 'type' => 'string', 'title' => '', 'example' => 'ha3'],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListAppGroups',
'description' => '- Filters applications by name, instance ID, and type.'."\n"
."\n"
.'- Sorts applications by their creation time.'."\n"
."\n"
.'- Supports paging.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 1,\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1575442875,\\n \\"currentVersion\\": \\"110116134\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"updated\\": 1578916076,\\n \\"id\\": \\"110116134\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"hasPendingQuotaReviewTask\\": 0,\\n \\"name\\": \\"os_function_test_v1\\",\\n \\"instanceId\\": \\"\\\\\\"xxx\\\\\\"\\",\\n \\"chargingWay\\": 1,\\n \\"type\\": \\"enhanced\\",\\n \\"status\\": \\"normal\\",\\n \\"projectId\\": \\"\\\\\\"xxx\\\\\\"\\",\\n \\"switchedTime\\": 0,\\n \\"commodityCode\\": \\"opensearch\\",\\n \\"expireOn\\": \\"\\\\\\"xxx\\\\\\"\\",\\n \\"domain\\": \\"\\\\\\"\\\\\\"\\",\\n \\"description\\": \\"\\\\\\"xxx\\\\\\"\\",\\n \\"produced\\": 1,\\n \\"lockedByExpiration\\": 0,\\n \\"quota\\": {\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n },\\n \\"tags\\": [\\n {\\n \\"key\\": \\"foo\\",\\n \\"value\\": \\"bar\\"\\n }\\n ],\\n \\"engineType\\": \\"ha3\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListDataCollections' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/data-collections',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '959D8782-B130-95EB-86CC-1F6ED447981F'],
'result' => [
'description' => 'The data collection information.'."\n"
."\n"
.'For more information, see [DataCollection](~~173605~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the data collection was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1581065837'],
'dataCollectionType' => ['description' => 'The type of data collection.'."\n"
."\n"
.'- behavior: User behavior data.'."\n"
."\n"
.'- item\\_info: Item information.'."\n"
."\n"
.'- industry\\_specific: Industry-specific attributes.', 'type' => 'string', 'title' => '', 'example' => 'BEHAVIOR'],
'type' => ['description' => 'The type of the data collection client.'."\n"
."\n"
.'- server'."\n"
."\n"
.'- web'."\n"
."\n"
.'- app'."\n"
."\n"
.'Note: Only server is supported.', 'type' => 'string', 'title' => '', 'example' => 'server'],
'industryName' => ['description' => 'The name of the industry.'."\n"
."\n"
.'- general: General.'."\n"
."\n"
.'- ecommerce: E-commerce.', 'type' => 'string', 'title' => '', 'example' => 'GENERAL'],
'status' => ['description' => 'The status.'."\n"
."\n"
.'- 0: Disabled.'."\n"
."\n"
.'- 1: Enabling.'."\n"
."\n"
.'- 2: Enabled.'."\n"
."\n"
.'- 3: Failed.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'],
'updated' => ['description' => 'The time when the data collection was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1581065904'],
'name' => ['description' => 'The name of the data collection.', 'type' => 'string', 'title' => '', 'example' => 'os_function_test_v1'],
'sundialId' => ['description' => 'The ID of the sundial.', 'type' => 'string', 'title' => '', 'example' => '1755'],
'id' => ['description' => 'The ID of the data collection.', 'type' => 'string', 'title' => '', 'example' => '286'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListDataCollections',
'summary' => 'Lists the data collections for an OpenSearch application.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListDataCollections',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'DataCollection', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 1,\\n \\"requestId\\": \\"959D8782-B130-95EB-86CC-1F6ED447981F\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1581065837,\\n \\"dataCollectionType\\": \\"BEHAVIOR\\",\\n \\"type\\": \\"server\\",\\n \\"industryName\\": \\"GENERAL\\",\\n \\"status\\": 2,\\n \\"updated\\": 1581065904,\\n \\"name\\": \\"os_function_test_v1\\",\\n \\"sundialId\\": \\"1755\\",\\n \\"id\\": \\"286\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListDataSourceTableFields' => [
'path' => '/v4/openapi/assist/data-sources/{dataSourceType}/fields',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'dataSourceType',
'in' => 'path',
'schema' => [
'description' => 'The type of the data source.'."\n"
."\n"
.'- rds'."\n"
."\n"
.'- polardb'."\n"
."\n"
.'- odps'."\n"
."\n"
.'- mysql'."\n"
."\n"
.'- drds',
'type' => 'string',
'required' => true,
'docRequired' => true,
'enumValueTitles' => ['rds' => 'rds', 'mysql' => 'mysql', 'odps' => 'odps', 'saro' => 'saro', 'polardb' => 'polardb'],
'title' => '',
'example' => 'rds',
],
],
[
'name' => 'params',
'in' => 'query',
'schema' => ['description' => 'The parameters for the data source. The value must be a URL-encoded JSON string.'."\n"
."\n"
.'The parameters vary based on the data source type. For more information, see:'."\n"
."\n"
.'- [rds](~~170005~~)'."\n"
."\n"
.'- [polardb](~~170005~~)'."\n"
."\n"
.'- [odps](~~170005~~)'."\n"
."\n"
.'- [mysql](~~173627~~)'."\n"
."\n"
.'- [drds](~~173627~~)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '{}'],
],
[
'name' => 'rawType',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return the original field types of the data source.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'result' => ['description' => 'The collection of fields from the data table.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListDataSourceTableFields',
'summary' => 'This internal API retrieves all fields from a specified data table.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListDataSourceTableFields',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListDataSourceTables' => [
'path' => '/v4/openapi/assist/data-sources/{dataSourceType}/tables',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'dataSourceType',
'in' => 'path',
'schema' => ['description' => 'The data source type.'."\n"
."\n"
.'- rds'."\n"
."\n"
.'- polardb'."\n"
."\n"
.'- odps'."\n"
."\n"
.'- mysql'."\n"
."\n"
.'- drds', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'rds'],
],
[
'name' => 'params',
'in' => 'query',
'schema' => ['description' => 'The parameters for the data source. The value must be a URL-encoded JSON string.'."\n"
."\n"
.'The parameters vary based on the data source type. For more information, see:'."\n"
."\n"
.'- [rds](~~170005~~)'."\n"
."\n"
.'- [polardb](~~170005~~)'."\n"
."\n"
.'- [odps](~~170005~~)'."\n"
."\n"
.'- [mysql](~~173627~~)'."\n"
."\n"
.'- [drds](~~173627~~)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '-'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'type' => 'array',
'items' => ['description' => 'A collection of data source tables.', 'type' => 'string', 'title' => '', 'example' => '{}'],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListDataSourceTables',
'summary' => 'Retrieves all data from a specified data source.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListDataSourceTables',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n \\"{}\\"\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListFirstRanks' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/first-ranks',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchH8SRT8'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '110157886', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The rsponse body.'."\n",
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF', 'title' => ''],
'result' => [
'description' => 'The information about the rough sort expression.'."\n"
."\n"
.'For more information, see [FirstRank](~~170007~~).'."\n",
'type' => 'array',
'items' => [
'description' => 'The result body.'."\n",
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the expression was created.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'active' => ['description' => 'Specifies whether to set the fine sort expression as the default sort expression.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'description' => ['description' => 'Description'."\n", 'type' => 'string', 'example' => '""', 'title' => ''],
'updated' => ['description' => 'The time when the expression was updated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'name' => ['description' => 'The name.'."\n", 'type' => 'string', 'example' => 'default', 'title' => ''],
'meta' => [
'description' => 'The information about the expression.'."\n",
'type' => 'array',
'items' => [
'description' => 'The message body'."\n",
'type' => 'object',
'properties' => [
'arg' => ['description' => 'The parameters that are used by a function in the expression.'."\n"
."\n"
.'For more information, see [Rough sort functions](~~180765~~).'."\n", 'type' => 'string', 'example' => '""', 'title' => ''],
'attribute' => ['description' => 'The attribute, feature function, or field to be searched for.'."\n"
."\n"
.'For more information about supported feature functions, see [Rough sort functions](~~180765~~).'."\n", 'type' => 'string', 'example' => 'static_bm25()', 'title' => ''],
'weight' => ['description' => 'The weight. Valid values: -100000 to 100000. The value cannot be 0.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'example' => '[]',
'title' => '',
],
'example' => '[]',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListFirstRanks',
'summary' => 'Queries the rough sort expressions that are configured for a version of an OpenSearch application.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n {\\n \\"created\\": 0,\\n \\"active\\": true,\\n \\"description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"updated\\": 0,\\n \\"name\\": \\"default\\",\\n \\"meta\\": [\\n {\\n \\"arg\\": \\"\\\\\\"\\\\\\"\\",\\n \\"attribute\\": \\"static_bm25()\\",\\n \\"weight\\": 1\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"0A6EB64B-B4C8-CF02-810F-E660812972FF\\n\\n default\\n \\n true\\n STRUCT\\n \\n static_bm25()\\n \\n 1\\n \\n 0\\n 0\\n","errorExample":""}]',
],
'ListFunctionInstances' => [
'summary' => 'Lists all instances that match the specified conditions.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch3QPM0K', 'FEATUREopensearchN8M8WS', 'FEATUREopensearchZAE4HR'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ctr'],
],
[
'name' => 'modelType',
'in' => 'query',
'schema' => ['description' => 'The type of the model.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'tf_checkpoint'],
],
[
'name' => 'functionType',
'in' => 'query',
'schema' => ['description' => 'The type of the feature.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"PAAS"'],
],
[
'name' => 'source',
'in' => 'query',
'schema' => ['description' => 'The source of the instance. Valid values:'."\n"
."\n"
.'- builtin: The instance is created by the system.'."\n"
."\n"
.'- user: The instance is created by the user. This is the default value.'."\n"
."\n"
.'- all: All instances.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'user'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '10'],
],
[
'name' => 'output',
'in' => 'query',
'schema' => [
'description' => 'The level of detail for the returned information. Valid values:'."\n"
."\n"
.'- normal: Displays information such as createParameters and cron. This is the default value.'."\n"
."\n"
.'- simple: Displays only basic information.'."\n"
."\n"
.'- detail: Returns the details of the training task.',
'enumValueTitles' => [],
'type' => 'string',
'title' => '',
'required' => false,
'example' => 'normal',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.', 'type' => 'string', 'example' => '"OK"', 'title' => ''],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'A4D487A9-A456-5AA5-A9C6-B7BF2889CF74', 'title' => ''],
'Message' => ['description' => 'The error message. This parameter is empty if the request is successful.', 'type' => 'string', 'example' => 'instance not exist.', 'title' => ''],
'Code' => ['description' => 'The error code. This parameter is empty if the request is successful.', 'type' => 'string', 'example' => 'Instance.NotExist', 'title' => ''],
'Result' => [
'description' => 'The list of instances.',
'type' => 'array',
'items' => [
'description' => 'The information about the instance.',
'type' => 'object',
'properties' => [
'Belongs' => [
'description' => 'The ownership information of the instance.',
'type' => 'object',
'properties' => [
'Category' => ['description' => 'The category.', 'type' => 'string', 'example' => '"general"', 'title' => ''],
'Domain' => ['description' => 'The industry.', 'type' => 'string', 'example' => '"ecommerce"', 'title' => ''],
'Language' => ['description' => 'The language code.', 'type' => 'string', 'example' => '"zh" ', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'CreateParameters' => [
'description' => 'The list of parameters for the instance.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'example' => '"param1"', 'title' => ''],
'Value' => ['description' => 'The value of the parameter.', 'type' => 'string', 'example' => '"value1"', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
'UsageParameters' => [
'description' => 'The list of parameters in use.',
'type' => 'array',
'items' => [
'description' => 'The parameter body.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'example' => 'use_param1', 'title' => ''],
'Value' => ['description' => 'The value of the parameter.', 'type' => 'string', 'example' => 'value1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'CreateTime' => ['description' => 'The time when the instance was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1234', 'title' => ''],
'Cron' => ['description' => 'The training schedule. This is a cron expression in the format of Minutes Hours DayofMonth Month DayofWeek. If this parameter is empty, periodic training is not performed.', 'type' => 'string', 'example' => '0 3 ? * 0,1,3,5 (周日,周一,周三,周五凌晨3点)', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '" "', 'title' => ''],
'ExtendInfo' => ['description' => 'The extended information. This is a JSON string that contains information such as model evaluation results and error messages.', 'type' => 'string', 'example' => '"{\\"dataReport\\":{},\\"errors\\":{}}"', 'title' => ''],
'FunctionName' => ['description' => 'The name of the feature.', 'type' => 'string', 'example' => '"ctr"', 'title' => ''],
'FunctionType' => ['description' => 'The type of the feature.', 'type' => 'string', 'example' => '"PAAS"', 'title' => ''],
'InstanceName' => ['description' => 'The name of the instance.', 'type' => 'string', 'example' => '"ctr_test"', 'title' => ''],
'ModelType' => ['description' => 'The type of the model.', 'type' => 'string', 'example' => '"tf_checkpoint"', 'title' => ''],
'Source' => ['description' => 'The source of the instance. Valid values:'."\n"
."\n"
.'- user: The instance is created by the user.'."\n"
."\n"
.'- builtin: The instance is created by the system.', 'type' => 'string', 'example' => '"user"', 'title' => ''],
'Status' => ['description' => 'The status of the instance. Valid values:'."\n"
."\n"
.'1. unavailable: No model is available. You must train a model before you can use the instance.'."\n"
."\n"
.'2. available: The instance is available.', 'type' => 'string', 'example' => 'available', 'title' => ''],
'VersionId' => ['description' => 'The version ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
'Latency' => ['description' => 'The request latency, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'title' => 'ListFunctionInstances',
'requestParamsDescription' => '### Examples'."\n"
."\n"
.'`GET /v4/openapi/app-groups/my-app/functions/ctr/instances?source=all&output=simple`',
'responseParamsDescription' => '### Sample success responses'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "A4D487A9-A456-5AA5-A9C6-B7BF2889CF74",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency": 123,'."\n"
.' "totalCount": 2,'."\n"
.' "result": ['."\n"
.' {'."\n"
.' "versionId": 100,'."\n"
.' "instanceName": "instance_1",'."\n"
.' "functionName": "hot",'."\n"
.' "functionType": "PAAS",'."\n"
.' "modelType": "offline_inference",'."\n"
.' "description": "",'."\n"
.' "status": "available",'."\n"
.' "belongs": {'."\n"
.' "domain": "ecommerce",'."\n"
.' "category": "general",'."\n"
.' "language": "zh"'."\n"
.' },'."\n"
.' "createTime": 100010,'."\n"
.' "source": "user"'."\n"
.' },'."\n"
.' {'."\n"
.' "versionId": 100,'."\n"
.' "instanceName": "instance_2",'."\n"
.' "functionName": "hot",'."\n"
.' "functionType": "PAAS",'."\n"
.' "modelType": "offline_inference",'."\n"
.' "description": "",'."\n"
.' "status": "available",'."\n"
.' "belongs": {'."\n"
.' "domain": "ecommerce",'."\n"
.' "category": "general",'."\n"
.' "language": "zh"'."\n"
.' },'."\n"
.' "createTime": 200020,'."\n"
.' "source": "user",'."\n"
.' "default": true'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionInstances'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"\\\\\\"OK\\\\\\"\\",\\n \\"HttpCode\\": 200,\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"A4D487A9-A456-5AA5-A9C6-B7BF2889CF74\\",\\n \\"Message\\": \\"instance not exist.\\",\\n \\"Code\\": \\"Instance.NotExist\\",\\n \\"Result\\": [\\n {\\n \\"Belongs\\": {\\n \\"Category\\": \\"\\\\\\"general\\\\\\"\\",\\n \\"Domain\\": \\"\\\\\\"ecommerce\\\\\\"\\",\\n \\"Language\\": \\"\\\\\\"zh\\\\\\"\\\\t\\"\\n },\\n \\"CreateParameters\\": [\\n {\\n \\"Name\\": \\"\\\\\\"param1\\\\\\"\\",\\n \\"Value\\": \\"\\\\\\"value1\\\\\\"\\"\\n }\\n ],\\n \\"UsageParameters\\": [\\n {\\n \\"Name\\": \\"use_param1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ],\\n \\"CreateTime\\": 1234,\\n \\"Cron\\": \\"0 3 ? * 0,1,3,5 (周日,周一,周三,周五凌晨3点)\\",\\n \\"Description\\": \\"\\\\\\" \\\\\\"\\",\\n \\"ExtendInfo\\": \\"\\\\\\"{\\\\\\\\\\\\\\"dataReport\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"errors\\\\\\\\\\\\\\":{}}\\\\\\"\\",\\n \\"FunctionName\\": \\"\\\\\\"ctr\\\\\\"\\",\\n \\"FunctionType\\": \\"\\\\\\"PAAS\\\\\\"\\",\\n \\"InstanceName\\": \\"\\\\\\"ctr_test\\\\\\"\\",\\n \\"ModelType\\": \\"\\\\\\"tf_checkpoint\\\\\\"\\",\\n \\"Source\\": \\"\\\\\\"user\\\\\\"\\",\\n \\"Status\\": \\"available\\",\\n \\"VersionId\\": 123\\n }\\n ],\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListFunctionResources' => [
'summary' => 'Lists the algorithm resources.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'abilityTreeCode' => '173357',
'abilityTreeNodes' => ['FEATUREopensearch447AAX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The application ID.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'rank'],
],
[
'name' => 'resourceType',
'in' => 'query',
'schema' => [
'title' => '',
'description' => 'The resource type.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['feature_generator' => 'feature\\_generator', 'raw_file' => 'raw\\_file'],
'example' => 'feature_generator',
],
],
[
'name' => 'output',
'in' => 'query',
'schema' => [
'title' => '',
'description' => 'The output level.',
'type' => 'string',
'required' => false,
'enum' => ['simple', 'normal', 'detail'],
'example' => 'detail',
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '10', 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The request status. Valid values: OK and FAIL.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'TotalCount' => ['description' => 'The total number of records that meet the requirements.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '2'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '"3A809095-C554-5CF5-8FCE-BE19D4673790"'],
'Message' => ['description' => 'The returned error message.', 'type' => 'string', 'title' => '', 'example' => 'Invalid resource name.'],
'Code' => ['description' => 'The returned error code. This parameter is empty if no error occurs.', 'type' => 'string', 'title' => '', 'example' => 'Resource.InvalidResourceName'],
'Result' => [
'description' => 'The result.',
'type' => 'array',
'items' => [
'description' => 'The result body.',
'type' => 'object',
'properties' => [
'CreateTime' => ['description' => 'The time when the resource was created. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1234'],
'Data' => [
'description' => 'The resource data. The structure of the data varies based on the resourceType.',
'type' => 'object',
'properties' => [
'Content' => ['description' => 'The content of the file that corresponds to the raw\\_file resource.', 'type' => 'string', 'title' => '', 'example' => '"abc"'],
'Generators' => [
'description' => 'The list of feature generators that correspond to the feature\\_generator resource.',
'type' => 'array',
'items' => [
'description' => 'The description of the feature generator.',
'type' => 'object',
'properties' => [
'Generator' => ['description' => 'The type of the feature generator.', 'type' => 'string', 'title' => '', 'example' => 'combo'],
'Input' => [
'description' => 'The input.',
'type' => 'object',
'properties' => [
'Features' => [
'description' => 'The list of input features.',
'type' => 'array',
'items' => [
'description' => 'The input feature.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The feature name.', 'type' => 'string', 'title' => '', 'example' => 'system_item_id'],
'Type' => [
'description' => 'The feature type.',
'type' => 'string',
'enumValueTitles' => ['item' => 'item', 'user' => 'user'],
'title' => '',
'example' => 'item',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Output' => ['description' => 'The name of the output feature.', 'type' => 'string', 'title' => '', 'example' => 'feature1'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description of the resource.', 'type' => 'string', 'title' => '', 'example' => 'resource description'],
'FunctionName' => ['description' => 'The function name.', 'type' => 'string', 'title' => '', 'example' => 'rank'],
'ModifyTime' => ['description' => 'The time when the resource was last modified. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1234'],
'ReferencedInstances' => [
'description' => 'The names of the referenced algorithm instances.',
'type' => 'array',
'items' => ['description' => 'The instance name.', 'type' => 'string', 'title' => '', 'example' => 'rank_model1'],
'title' => '',
'example' => '',
],
'ResourceName' => ['description' => 'The resource name.', 'type' => 'string', 'title' => '', 'example' => 'fg_json'],
'ResourceType' => ['description' => 'The resource type.', 'type' => 'string', 'title' => '', 'example' => 'feature_generator'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Latency' => ['description' => 'The request latency. Unit: milliseconds.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '123'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'ListFunctionResources',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionResources'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"\\\\\\"3A809095-C554-5CF5-8FCE-BE19D4673790\\\\\\"\\",\\n \\"Message\\": \\"Invalid resource name.\\",\\n \\"Code\\": \\"Resource.InvalidResourceName\\",\\n \\"Result\\": [\\n {\\n \\"CreateTime\\": 1234,\\n \\"Data\\": {\\n \\"Content\\": \\"\\\\\\"abc\\\\\\"\\",\\n \\"Generators\\": [\\n {\\n \\"Generator\\": \\"combo\\",\\n \\"Input\\": {\\n \\"Features\\": [\\n {\\n \\"Name\\": \\"system_item_id\\",\\n \\"Type\\": \\"item\\"\\n }\\n ]\\n },\\n \\"Output\\": \\"feature1\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"resource description\\",\\n \\"FunctionName\\": \\"rank\\",\\n \\"ModifyTime\\": 1234,\\n \\"ReferencedInstances\\": [\\n \\"rank_model1\\"\\n ],\\n \\"ResourceName\\": \\"fg_json\\",\\n \\"ResourceType\\": \\"feature_generator\\"\\n }\\n ],\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListFunctionTasks' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}/tasks',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ctr'],
],
[
'name' => 'instanceName',
'in' => 'path',
'schema' => ['description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'test_model_2'],
],
[
'name' => 'status',
'in' => 'query',
'schema' => ['description' => 'The status of the task. Valid values:'."\n"
."\n"
.'- success'."\n"
."\n"
.'- failed'."\n"
."\n"
.'- running', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'success'],
],
[
'name' => 'startTime',
'in' => 'query',
'schema' => ['description' => 'Returns tasks that started after the specified time. The time is a UNIX timestamp in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => '1582214400'],
],
[
'name' => 'endTime',
'in' => 'query',
'schema' => ['description' => 'Returns tasks that ended before the specified time. The time is a UNIX timestamp in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => '1582646399'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.', 'type' => 'string', 'title' => '', 'example' => '200'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'TotalCount' => ['description' => 'The total number of records that meet the requirements.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '2'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '1638157479281'],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'fail'],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'],
'Result' => [
'description' => 'The returned result.',
'type' => 'array',
'items' => [
'description' => 'The result body.',
'type' => 'object',
'properties' => [
'EndTime' => ['description' => 'The time when the task ended. This is a UNIX timestamp in milliseconds. A value of 0 indicates that the task has not ended.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '100010'],
'ExtendInfo' => ['description' => 'A JSON string that contains information such as model evaluation results and training errors.', 'type' => 'string', 'title' => '', 'example' => '{\\"recall\\":91,\\"errors\\":[]}'],
'FunctionName' => ['description' => 'The name of the feature.', 'type' => 'string', 'title' => '', 'example' => 'ctr'],
'Progress' => ['description' => 'The progress of the task. For example, a value of 90 indicates that the task is 90% complete.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '90'],
'RunId' => ['description' => 'The ID of the task.', 'type' => 'string', 'title' => '', 'example' => 'trigger__2021-03-05T12:18:41'],
'StartTime' => ['description' => 'The time when the task started. This is a UNIX timestamp in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '100010'],
'Status' => ['description' => 'The status of the task.'."\n"
."\n"
.'- success'."\n"
."\n"
.'- failed'."\n"
."\n"
.'- running', 'type' => 'string', 'title' => '', 'example' => 'success'],
'Generation' => ['description' => 'The iteration number.', 'type' => 'string', 'title' => '', 'example' => '2'],
],
'example' => '{ "functionName": "ctr", "progress": 100, "status": "success", "startTime": 100010, "endTime": 200020, "extendInfo": "{\\"recall\\":91,\\"errors\\":[]}", "runId": "trigger__2021-03-05T12:18:41" }',
'title' => '',
],
'example' => '[ { "functionName": "ctr", "progress": 100, "status": "success", "startTime": 100010, "endTime": 200020, "extendInfo": "{\\"recall\\":91,\\"errors\\":[]}", "runId": "trigger__2021-03-05T12:18:41" } ]',
'title' => '',
],
'Latency' => ['description' => 'The time consumed by the request, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '123'],
],
'example' => '{ "status": "OK", "requestId": "", "httpCode": 200, "code": "", "message": "", "latency": 123, "totalCount": 1, "result": [ { "functionName": "ctr", "progress": 100, "status": "success", "startTime": 100010, "endTime": 200020, "extendInfo": "{\\"recall\\":91,\\"errors\\":[]}", "runId": "trigger__2021-03-05T12:18:41" } ] }',
'title' => '',
],
],
],
'title' => 'ListFunctionTasks',
'summary' => 'Queries the training tasks. The results are sorted in descending order by start time.',
'requestParamsDescription' => '### Sample request'."\n"
."\n"
.'`GET /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test/tasks`',
'responseParamsDescription' => '### Sample success response'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "status": "OK",'."\n"
.' "requestId": "",'."\n"
.' "httpCode": 200,'."\n"
.' "code": "",'."\n"
.' "message": "",'."\n"
.' "latency": 123,'."\n"
.' "totalCount": 1,'."\n"
.' "result": ['."\n"
.' {'."\n"
.' "functionName": "ctr",'."\n"
.' "progress": 100,'."\n"
.' "status": "success",'."\n"
.' "startTime": 100010,'."\n"
.' "endTime": 200020,'."\n"
.' "extendInfo": "{\\"recall\\":91,\\"errors\\":[]}",'."\n"
.' "runId": "trigger__2021-03-05T12:18:41",'."\n"
.' "generation": "3"'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionTasks'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"200\\",\\n \\"HttpCode\\": 200,\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"1638157479281\\",\\n \\"Message\\": \\"fail\\",\\n \\"Code\\": \\"200\\",\\n \\"Result\\": [\\n {\\n \\"EndTime\\": 100010,\\n \\"ExtendInfo\\": \\"{\\\\\\\\\\\\\\"recall\\\\\\\\\\\\\\":91,\\\\\\\\\\\\\\"errors\\\\\\\\\\\\\\":[]}\\",\\n \\"FunctionName\\": \\"ctr\\",\\n \\"Progress\\": 90,\\n \\"RunId\\": \\"trigger__2021-03-05T12:18:41\\",\\n \\"StartTime\\": 100010,\\n \\"Status\\": \\"success\\",\\n \\"Generation\\": \\"2\\"\\n }\\n ],\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListInterventionDictionaries' => [
'summary' => 'Retrieves a list of intervention dictionaries.',
'path' => '/v4/openapi/intervention-dictionaries',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8', 'FEATUREopensearchNCXKUT'],
],
'parameters' => [
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number to return. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'],
],
[
'name' => 'types',
'in' => 'query',
'schema' => ['description' => 'The types of the intervention dictionaries. Format: urlencode(\\["synonym", "stopword"])'."\n"
."\n"
.'- stopword: an intervention dictionary for stop word filtering'."\n"
."\n"
.'- synonym: an intervention dictionary for synonym configuration'."\n"
."\n"
.'- correction: an intervention dictionary for spelling correction'."\n"
."\n"
.'- category\\_prediction: an intervention dictionary for category prediction'."\n"
."\n"
.'- ner: an intervention dictionary for Named Entity Recognition (NER)'."\n"
."\n"
.'- term\\_weighting: an intervention dictionary for term weight analysis', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '["synonym"]'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The information about each intervention dictionary.'."\n"
."\n"
.'For more information, see [InterventionDictionary](~~173608~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the intervention dictionary was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1539158325'],
'type' => ['description' => 'The type of the intervention dictionary. Valid values:'."\n"
."\n"
.'- stopword: an intervention dictionary for stop word filtering'."\n"
."\n"
.'- synonym: an intervention dictionary for synonym configuration'."\n"
."\n"
.'- correction: an intervention dictionary for spelling correction'."\n"
."\n"
.'- category\\_prediction: an intervention dictionary for category prediction'."\n"
."\n"
.'- ner: an intervention dictionary for Named Entity Recognition (NER)'."\n"
."\n"
.'- term\\_weighting: an intervention dictionary for term weight analysis', 'type' => 'string', 'title' => '', 'example' => 'synonym'],
'analyzer' => ['description' => 'The custom analyzer.', 'type' => 'string', 'title' => '', 'example' => '""'],
'name' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'title' => '', 'example' => 'tongyici'],
'updated' => ['description' => 'The time when the intervention dictionary was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1539158313'],
'id' => ['description' => 'The ID of the intervention dictionary.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListInterventionDictionaries',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListInterventionDictionaries',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 2,\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1539158325,\\n \\"type\\": \\"synonym\\",\\n \\"analyzer\\": \\"\\\\\\"\\\\\\"\\",\\n \\"name\\": \\"tongyici\\",\\n \\"updated\\": 1539158313,\\n \\"id\\": 1\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListInterventionDictionaryEntries' => [
'summary' => 'Queries the intervention entries in an intervention dictionary.',
'path' => '/v4/openapi/intervention-dictionaries/{name}/entries',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch2ESE2N'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_dict', 'title' => ''],
],
[
'name' => 'word',
'in' => 'query',
'schema' => ['description' => 'The intervention entry.', 'type' => 'string', 'example' => 'Test', 'required' => false, 'title' => ''],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries returned per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '516A02B7-2167-8D92-12D0-B639A2A0F3C5', 'title' => ''],
'result' => [
'description' => 'The information about intervention entries.'."\n"
."\n"
.'For more information, see [InterventionDictionaryEntry](~~173606~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'cmd' => ['description' => 'The command. Valid values:'."\n"
."\n"
.'- add'."\n"
."\n"
.'- delete', 'type' => 'string', 'example' => 'add', 'title' => ''],
'created' => ['description' => 'The timestamp when the intervention entry was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1536690285', 'title' => ''],
'word' => ['description' => 'The intervention entry.', 'type' => 'string', 'example' => '\\u8fc7\\u513f', 'title' => ''],
'relevance' => ['description' => 'The content of an intervention entry for category prediction. The field value consists of key-value pairs. The key in a key-value pair indicates the ID of the category. The value in a key-value pair indicates the relevance to the category. A value of 0 indicates irrelevant. A value of 1 indicates slightly relevant. A value of 2 indicates relevant. Example: {"2":1, "100":0}', 'type' => 'object', 'example' => ' { "100": "0", "200": "2" }', 'title' => ''],
'status' => ['description' => 'The status of the intervention entry. Valid value:'."\n"
."\n"
.'- ACTIVE: The intervention entry takes effect.', 'type' => 'string', 'example' => 'ACTIVE', 'title' => ''],
'updated' => ['description' => 'The timestamp when the intervention entry was last updated.', 'type' => 'integer', 'format' => 'int64', 'example' => '1537348987', 'title' => ''],
'tokens' => [
'description' => 'The content of the intervention entry for term weight analysis.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'tag' => ['description' => 'The internal name of the identified entity type. Valid values:'."\n"
."\n"
.'- brand'."\n"
."\n"
.'- category'."\n"
."\n"
.'- material'."\n"
."\n"
.'- element'."\n"
."\n"
.'- style'."\n"
."\n"
.'- color'."\n"
."\n"
.'- function'."\n"
."\n"
.'- scenario'."\n"
."\n"
.'- people'."\n"
."\n"
.'- season'."\n"
."\n"
.'- model'."\n"
."\n"
.'- region'."\n"
."\n"
.'- name'."\n"
."\n"
.'- adjective'."\n"
."\n"
.'- category-modifier'."\n"
."\n"
.'- size'."\n"
."\n"
.'- quality'."\n"
."\n"
.'- suit'."\n"
."\n"
.'- new-release'."\n"
."\n"
.'- series'."\n"
."\n"
.'- marketing'."\n"
."\n"
.'- entertainment'."\n"
."\n"
.'- organization'."\n"
."\n"
.'- movie'."\n"
."\n"
.'- game'."\n"
."\n"
.'- number'."\n"
."\n"
.'- unit'."\n"
."\n"
.'- common'."\n"
."\n"
.'- new-word'."\n"
."\n"
.'- proper-noun'."\n"
."\n"
.'- symbol'."\n"
."\n"
.'- prefix'."\n"
."\n"
.'- suffix'."\n"
."\n"
.'- gift'."\n"
."\n"
.'- negative'."\n"
."\n"
.'- agent', 'type' => 'string', 'example' => 'category', 'title' => ''],
'token' => ['description' => 'The entity.', 'type' => 'string', 'example' => '本', 'title' => ''],
'order' => ['description' => 'The sequence number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'tagLabel' => ['description' => 'The description of the internal name of the identified entity type.', 'type' => 'string', 'example' => '品类', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 8,\\n \\"requestId\\": \\"516A02B7-2167-8D92-12D0-B639A2A0F3C5\\",\\n \\"result\\": [\\n {\\n \\"cmd\\": \\"add\\",\\n \\"created\\": 1536690285,\\n \\"word\\": \\"\\\\\\\\u8fc7\\\\\\\\u513f\\",\\n \\"relevance\\": {\\n \\"100\\": \\"0\\",\\n \\"200\\": \\"2\\"\\n },\\n \\"status\\": \\"ACTIVE\\",\\n \\"updated\\": 1537348987,\\n \\"tokens\\": [\\n {\\n \\"tag\\": \\"category\\",\\n \\"token\\": \\"本\\",\\n \\"order\\": 1,\\n \\"tagLabel\\": \\"品类\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
'title' => 'ListInterventionDictionaryEntries',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
],
'translator' => 'manual',
],
'ListInterventionDictionaryNerResults' => [
'summary' => 'Retrieves the Named Entity Recognition (NER) results.',
'path' => '/v4/openapi/intervention-dictionaries/{name}/ner-results',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_dict', 'title' => ''],
],
[
'name' => 'query',
'in' => 'query',
'schema' => ['description' => 'The keyword to search for.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'soy milk', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '8F780CA8-D4D4-2FFE-B8AC-42040822C554', 'title' => ''],
'result' => [
'description' => 'The NER results.'."\n"
."\n"
.'For more information, see [Named Entity Recognition (NER)](~~173606~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'tag' => ['description' => 'The tag of the detected entity.'."\n"
."\n"
.'- brand: Brand'."\n"
."\n"
.'- category: Category'."\n"
."\n"
.'- material: Material'."\n"
."\n"
.'- element: Element'."\n"
."\n"
.'- style: Style'."\n"
."\n"
.'- color: Color'."\n"
."\n"
.'- function: Function'."\n"
."\n"
.'- scenario: Scenario'."\n"
."\n"
.'- people: People'."\n"
."\n"
.'- season: Season'."\n"
."\n"
.'- model: Model'."\n"
."\n"
.'- region: Region'."\n"
."\n"
.'- name: Name'."\n"
."\n"
.'- adjective: Adjective'."\n"
."\n"
.'- category-modifier: Category modifier'."\n"
."\n"
.'- size: Size'."\n"
."\n"
.'- quality: Quality'."\n"
."\n"
.'- suit: Suit'."\n"
."\n"
.'- new-release: New release'."\n"
."\n"
.'- series: Series'."\n"
."\n"
.'- marketing: Marketing'."\n"
."\n"
.'- entertainment: Entertainment'."\n"
."\n"
.'- organization: Organization'."\n"
."\n"
.'- movie: Movie'."\n"
."\n"
.'- game: Game'."\n"
."\n"
.'- number: Number'."\n"
."\n"
.'- unit: Unit'."\n"
."\n"
.'- common: Common word'."\n"
."\n"
.'- new-word: New word'."\n"
."\n"
.'- proper-noun: Proper noun'."\n"
."\n"
.'- symbol: Symbol'."\n"
."\n"
.'- prefix: Prefix'."\n"
."\n"
.'- suffix: Suffix'."\n"
."\n"
.'- gift: Gift'."\n"
."\n"
.'- negative: Negative'."\n"
."\n"
.'- agent: Agent', 'type' => 'string', 'example' => 'category', 'title' => ''],
'token' => ['description' => 'The detected entity.', 'type' => 'string', 'example' => 'milk', 'title' => ''],
'order' => ['description' => 'The ordinal number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'tagLabel' => ['description' => 'The label of the tag.', 'type' => 'string', 'example' => '品类', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListInterventionDictionaryNerResults',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '3', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInterventionDictionaryNerResults'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8F780CA8-D4D4-2FFE-B8AC-42040822C554\\",\\n \\"result\\": [\\n {\\n \\"tag\\": \\"category\\",\\n \\"token\\": \\"milk\\",\\n \\"order\\": 1,\\n \\"tagLabel\\": \\"品类\\"\\n }\\n ]\\n}","type":"json"}]',
'extraInfo' => ' ',
'translator' => 'manual',
],
'ListInterventionDictionaryRelatedEntities' => [
'summary' => 'Queries the list of resources associated with an intervention dictionary. If a query processor (QP) references the dictionary, the operation returns all associated applications and information about the QP.',
'path' => '/v4/openapi/intervention-dictionaries/{name}/related',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_dict'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'type' => 'array',
'items' => ['description' => 'The information about the applications and query processors. This parameter is empty if no results are returned.', 'type' => 'object', 'title' => '', 'example' => '[]'],
'description' => 'The returned results.',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListInterventionDictionaryRelatedEntities',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '| Parameter | Type | Description |'."\n"
.'| ----------------------- | ------ | ---------------------------------------------------------------------------------------------------- |'."\n"
.'| result[].appGroup | String | The name of the application. |'."\n"
.'| result[].queryProcessor | Object | The information about the query processor.
For more information, see [QueryProcessor](~~170014~~) |',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n []\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListProceedings' => [
'summary' => 'Lists the current proceedings.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/proceedings',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '120677456'],
],
[
'name' => 'filterFinished',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return only completed proceedings.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response schema.',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => 'F5099063-6B86-F398-D843-905F9EFB683A'],
],
'example' => '{}',
],
],
],
'title' => 'ListProceedings',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListProceedings',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F5099063-6B86-F398-D843-905F9EFB683A\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListQueryProcessorAnalyzerResults' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors/{name}/analyze',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8', 'FEATUREopensearchNCXKUT'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"110157886"'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"test"'],
],
[
'name' => 'text',
'in' => 'query',
'schema' => ['description' => 'The text to test.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"abcde"'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'result' => ['description' => 'The result of the request.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '98724351-D6B2-5D8A-B089-7FFD1821A7E9'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListQueryProcessorAnalyzerResults',
'summary' => 'Tests the results of query analysis. This operation can be called only for existing applications of the Open Source-compatible Edition.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"RequestId\\": \\"98724351-D6B2-5D8A-B089-7FFD1821A7E9\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListQueryProcessorNers' => [
'summary' => 'Queries the recommended priority settings for entity types in Named Entity Recognition (NER).',
'path' => '/v4/openapi/query-processor/ner/default-priorities',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8', 'FEATUREopensearchNCXKUT'],
],
'parameters' => [
[
'name' => 'domain',
'in' => 'query',
'schema' => ['description' => 'The industry type.'."\n"
."\n"
.'- ECOMMERCE: The e-commerce industry.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'ECOMMERCE', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF', 'title' => ''],
'result' => [
'description' => 'The priority settings of entity types.'."\n"
."\n"
.'For more information, see [Priority settings of entity types](~~173616~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'tag' => ['description' => 'The internal name of the entity type.', 'type' => 'string', 'example' => 'brand', 'title' => ''],
'order' => ['description' => 'The sort order within the same priority level. A smaller value indicates a higher priority. The default value is 0.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'priority' => ['description' => 'The priority level of the entity type. Valid values:'."\n"
."\n"
.'- HIGH'."\n"
."\n"
.'- MIDDLE'."\n"
."\n"
.'- LOW', 'type' => 'string', 'example' => 'HIGH', 'title' => ''],
'label' => ['description' => 'The name of the entity type.', 'type' => 'string', 'example' => 'brand', 'title' => ''],
],
'description' => 'The result'."\n",
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n {\\n \\"tag\\": \\"brand\\",\\n \\"order\\": 1,\\n \\"priority\\": \\"HIGH\\",\\n \\"label\\": \\"brand\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => 'ListQueryProcessorNers',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListQueryProcessorNers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/*'],
],
],
],
],
'translator' => 'manual',
],
'ListQueryProcessors' => [
'summary' => 'Queries a list of query analysis rules configured for a specific version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchNCXKUT', 'FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The application version number.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'isActive',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return default rules. The default value is 0. Valid values:'."\n"
."\n"
.'- 0: Returns all query analysis rules.'."\n"
."\n"
.'- 1: Returns only default query analysis rules.'."\n"
."\n"
.'- 2: Returns only non-default query analysis rules.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '0'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The information about the query analysis rules.'."\n"
."\n"
.'For more information, see [QueryProcessor](~~170014~~).',
'type' => 'array',
'items' => [
'description' => 'The returned results.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the query analysis rule was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1587398402'],
'active' => ['description' => 'Indicates whether the query analysis rule is a default rule.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'updated' => ['description' => 'The time when the query analysis rule was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1587398402'],
'name' => ['description' => 'The name of the query analysis rule.', 'type' => 'string', 'title' => '', 'example' => 'ner'],
'domain' => ['description' => 'The industry to which the query analysis rule applies. Valid values:'."\n"
."\n"
.'- GENERAL: General'."\n"
."\n"
.'- ECOMMERCE: E-commerce'."\n"
."\n"
.'- IT\\_CONTENT: IT content', 'type' => 'string', 'title' => '', 'example' => 'GENERAL'],
'indexes' => [
'description' => 'The indexes to which the query analysis rule is applied.',
'type' => 'array',
'items' => ['description' => 'The indexes to which the query analysis rule is applied.', 'type' => 'string', 'title' => '', 'example' => '[ "default" ]'],
'title' => '',
'example' => '',
],
'processors' => [
'description' => 'The features that are used in the query analysis rule.',
'type' => 'array',
'items' => ['description' => 'The features that are used in the query analysis rule.'."\n"
."\n"
.'For more information, see [Processor](~~170014~~).', 'type' => 'object', 'title' => '', 'example' => '[]'],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListQueryProcessors',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1587398402,\\n \\"active\\": true,\\n \\"updated\\": 1587398402,\\n \\"name\\": \\"ner\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"indexes\\": [\\n \\"[ \\\\\\"default\\\\\\" ]\\"\\n ],\\n \\"processors\\": [\\n []\\n ]\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListQuotaReviewTasks' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/quota-review-tasks',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"my_app_name"'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response object.',
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '500'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '"3351A21F-705B-508C-9450-DA65A681547F"'],
'result' => [
'description' => 'The information about the approval tickets. For more information, see [QuotaReviewTask](~~173609~~).',
'type' => 'array',
'items' => [
'description' => 'The result object.',
'type' => 'object',
'properties' => [
'oldDocSize' => ['description' => 'The original storage capacity.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '900'],
'pending' => ['description' => 'Indicates whether the task is pending.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
'memo' => ['description' => 'The remarks.', 'type' => 'string', 'title' => '', 'example' => 'null'],
'approved' => ['description' => 'Indicates whether the task is approved.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'oldSpec' => ['description' => 'The original specifications of the application.', 'type' => 'string', 'title' => '', 'example' => '"opensearch.private.common"'],
'oldComputeResource' => ['description' => 'The original computing resource.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '500'],
'appGroupType' => ['description' => 'The application type.', 'type' => 'string', 'title' => '', 'example' => '"standard"'],
'available' => ['description' => 'Indicates whether the resource is active.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'gmtCreate' => ['description' => 'The time when the task was created.', 'type' => 'string', 'title' => '', 'example' => '"2020-04-08T08:29:45+0000"'],
'newSocSize' => ['description' => 'The target storage capacity.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1100'],
'id' => ['description' => 'The ticket ID.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '142'],
'appGroupId' => ['description' => 'The application ID.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '120123456'],
'newComputeResource' => ['description' => 'The target computing resource.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '6000'],
'appGroupName' => ['description' => 'The application name.', 'type' => 'string', 'title' => '', 'example' => '"td_test_os"'],
'gmtModified' => ['description' => 'The time of the last modification.', 'type' => 'string', 'title' => '', 'example' => '"2020-04-08T08:36:36+0000"'],
'newSpec' => ['description' => 'The new application specifications.', 'type' => 'string', 'title' => '', 'example' => '"opensearch.private.common"'],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
],
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListQuotaReviewTasks',
'summary' => 'Lists the quota approval tickets for a specified OpenSearch application.',
'requestParamsDescription' => 'Sample request:'."\n"
."\n"
.'```'."\n"
.'GET /v4/openapi/app-groups/demo/quota-review-tasks'."\n"
.'```',
'responseParamsDescription' => 'Sample response:'."\n"
."\n"
.'```json'."\n"
.'{'."\n"
.' "id": 142,'."\n"
.' "appGroupId": 120577535,'."\n"
.' "appGroupName": "td_trade_order_os",'."\n"
.' "appGroupType": "standard",'."\n"
.' "oldSpec": "opensearch.private.common",'."\n"
.' "oldComputeResource": 500,'."\n"
.' "oldDocSize": 900,'."\n"
.' "newSpec": "opensearch.private.common",'."\n"
.' "newComputeResource": 6000,'."\n"
.' "newSocSize": 1100,'."\n"
.' "memo": null,'."\n"
.' "available": true,'."\n"
.' "pending": false,'."\n"
.' "approved": true,'."\n"
.' "gmtCreate": "2020-04-08T08:29:45+0000",'."\n"
.' "gmtModified": "2020-04-08T08:36:36+0000"'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 500,\\n \\"requestId\\": \\"\\\\\\"3351A21F-705B-508C-9450-DA65A681547F\\\\\\"\\",\\n \\"result\\": [\\n {\\n \\"oldDocSize\\": 900,\\n \\"pending\\": false,\\n \\"memo\\": \\"null\\",\\n \\"approved\\": true,\\n \\"oldSpec\\": \\"\\\\\\"opensearch.private.common\\\\\\"\\",\\n \\"oldComputeResource\\": 500,\\n \\"appGroupType\\": \\"\\\\\\"standard\\\\\\"\\",\\n \\"available\\": true,\\n \\"gmtCreate\\": \\"\\\\\\"2020-04-08T08:29:45+0000\\\\\\"\\",\\n \\"newSocSize\\": 1100,\\n \\"id\\": 142,\\n \\"appGroupId\\": 120123456,\\n \\"newComputeResource\\": 6000,\\n \\"appGroupName\\": \\"\\\\\\"td_test_os\\\\\\"\\",\\n \\"gmtModified\\": \\"\\\\\\"2020-04-08T08:36:36+0000\\\\\\"\\",\\n \\"newSpec\\": \\"\\\\\\"opensearch.private.common\\\\\\"\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListScheduledTasks' => [
'summary' => 'Queries a list of scheduled tasks for an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scheduled-tasks',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'type',
'in' => 'query',
'schema' => ['description' => 'The type of the scheduled task. Valid values:'."\n"
."\n"
.'- wipe: data cleaning'."\n"
."\n"
.'- fork: reindexing'."\n"
."\n"
.'- check-status: application status check'."\n"
."\n"
.'- index: reindexing', 'type' => 'string', 'required' => false, 'example' => 'wipe', 'title' => ''],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF', 'title' => ''],
'result' => [
'type' => 'array',
'items' => ['description' => 'The information about the scheduled task.'."\n"
."\n"
.'For more information, see [ScheduledTask](~~173610~~).', 'type' => 'object', 'example' => '[]', 'title' => ''],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListScheduledTasks',
'requestParamsDescription' => '**Query parameters**'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| ------- | ------- | -------- | -------------------------------------- | ------------------------------------------------------- |'."\n"
.'| id | String | No | "2f12c585-5873-11ea-974a-7cd30ad3e268" | The task ID. |'."\n"
.'| enabled | Boolean | No | true | Specifies whether the scheduled task is enabled. |'."\n"
.'| updated | Integer | No | 1582706232 | The timestamp when the scheduled task was last updated. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 1,\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n []\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListSearchStrategies' => [
'summary' => 'Retrieves the details of query policies.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/search-strategies',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchBNTDZX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"my_app"'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"110123456"'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The returned object.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '9C6351F5-2E2E-5249-888B-88A74E1B8A65'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListSearchStrategies',
'responseParamsDescription' => 'The following is a sample result object:'."\n"
."\n"
.'```json'."\n"
.'{'."\n"
.' "name": "test",'."\n"
.' "status": 1,'."\n"
.' "description": "",'."\n"
.' "updated": 12455,'."\n"
.' "searchConfigs": ['."\n"
.' {'."\n"
.' "queryType": "vector",'."\n"
.' "firstRankName": "",'."\n"
.' "secondRankName": "",'."\n"
.' "mergeProportion": 30'."\n"
.' },'."\n"
.' {'."\n"
.' "queryType": "keyword",'."\n"
.' "firstRankName": "",'."\n"
.' "secondName": "",'."\n"
.' "mergeProportion": 70'."\n"
.' }'."\n"
.' ],'."\n"
.' "mergeConfig": {'."\n"
.' "rankName": "",'."\n"
.' "docCount": 5000'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9C6351F5-2E2E-5249-888B-88A74E1B8A65\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListSecondRanks' => [
'summary' => 'Lists the fine sort expressions for a specific version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/second-ranks',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchJUWEG4'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'A list of fine-sort expressions.'."\n"
."\n"
.'For more information, see [SecondRank](~~170008~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the expression was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'active' => ['description' => 'Indicates whether the expression is active.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
'isDefault' => ['description' => 'Indicates whether the expression is the default one. This parameter is displayed only in the response.'."\n"
."\n"
.'- true: The expression is the default one.'."\n"
."\n"
.'- false: The expression is not the default one.', 'type' => 'string', 'title' => '', 'example' => 'false'],
'isSys' => ['description' => 'Indicates whether the expression is a system expression. This parameter is displayed only in the response.'."\n"
."\n"
.'- true: The expression is a system expression.'."\n"
."\n"
.'- false: The expression is not a system expression.', 'type' => 'string', 'title' => '', 'example' => 'true'],
'description' => ['description' => 'The description of the expression.', 'type' => 'string', 'title' => '', 'example' => '""'],
'updated' => ['description' => 'The time when the expression was updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1587052801'],
'name' => ['description' => 'The name of the expression.', 'type' => 'string', 'title' => '', 'example' => 'tests'],
'meta' => ['description' => 'The content of the fine-sort expression. You can define an expression that consists of fields, feature functions, and mathematical functions to implement complex sort logic.', 'type' => 'string', 'title' => '', 'example' => 'random()+now()'],
'id' => ['description' => 'The ID of the expression. This parameter is displayed only in the response.', 'type' => 'string', 'title' => '', 'example' => '890473'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListSecondRanks',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 1,\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n {\\n \\"created\\": 0,\\n \\"active\\": false,\\n \\"isDefault\\": \\"false\\",\\n \\"isSys\\": \\"true\\",\\n \\"description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"updated\\": 1587052801,\\n \\"name\\": \\"tests\\",\\n \\"meta\\": \\"random()+now()\\",\\n \\"id\\": \\"890473\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListSlowQueryCategories' => [
'summary' => 'Lists the optimization suggestions for slow queries from Search Diagnosis.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/optimizers/slow-query/categories',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchA0YLTY', 'FEATUREopensearch9TYTPZ'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '4406F40B-A0A2-9D5D-531F-3B6936567584'],
'result' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'start' => ['description' => 'The start timestamp.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1589986800'],
'analyzeStatus' => ['description' => 'The analysis status.'."\n"
."\n"
.'- PENDING: The analysis is being prepared.'."\n"
."\n"
.'- SUCCESS: The analysis is successful.'."\n"
."\n"
.'- RUNNING: The analysis is in progress.'."\n"
."\n"
.'- FAILED: The analysis failed.'."\n"
."\n"
.'- N/A: The analysis status is unknown.', 'type' => 'string', 'title' => '', 'example' => '"PENDING"'],
'end' => ['description' => 'The end timestamp.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1589990340'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListSlowQueryCategories',
'requestParamsDescription' => '**Request example**'."\n"
."\n"
.'`GET /v4/openapi/app-groups/kevintest2/optimizers/slow-query/categories?end=1589990340&sort=max&start=1589986800`'."\n"
."\n"
.'**Query parameters**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| --------- | ------- | -------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| start | Integer | Yes | 1589986800 | The start of the time range to query. This is a UNIX timestamp and is accurate to the second. |'."\n"
.'| end | Integer | Yes | 1589990340 | The end of the time range to query. This is a UNIX timestamp and is accurate to the second. |'."\n"
.'| sort | String | No | "max" | The sorting method.Valid values:
\\- max: the maximum value
\\- avg: the average value
\\- sum: the total value
\\- queryProportion: the query proportion |',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListSlowQueryCategories',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4406F40B-A0A2-9D5D-531F-3B6936567584\\",\\n \\"result\\": {\\n \\"start\\": 1589986800,\\n \\"analyzeStatus\\": \\"\\\\\\"PENDING\\\\\\"\\",\\n \\"end\\": 1589990340\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListSlowQueryQueries' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/optimizers/slow-query/categories/{categoryIndex}/queries',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchA0YLTY', 'FEATUREopensearch9TYTPZ'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'categoryIndex',
'in' => 'path',
'schema' => ['description' => 'The ID of the optimization suggestion.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '0'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'EB250CA0-ACFD-C5DE-17CD-01445BFE8AE5'],
'result' => [
'description' => 'The result of the request.',
'type' => 'object',
'properties' => [
'index' => ['description' => 'The ID of the optimization suggestion.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'appQuery' => ['description' => 'The information about the optimization suggestion.', 'type' => 'string', 'title' => '', 'example' => 'no data'],
'start' => ['description' => 'The start timestamp.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1589986800'],
'end' => ['description' => 'The end timestamp.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1589990340'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListSlowQueryQueries',
'summary' => 'Lists the slow queries from the Query Optimizer.',
'requestParamsDescription' => '**Query parameters**'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| ----- | ------- | -------- | ---------- | ---------------------------------------- |'."\n"
.'| start | Integer | Yes | 1589986800 | The start UNIX timestamp. Unit: seconds. |'."\n"
.'| end | Integer | Yes | 1589990340 | The end UNIX timestamp. Unit: seconds. |'."\n"
.'| size | Integer | No | 10 | The number of entries to return. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListSlowQueryQueries',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"EB250CA0-ACFD-C5DE-17CD-01445BFE8AE5\\",\\n \\"result\\": {\\n \\"index\\": 0,\\n \\"appQuery\\": \\"no data\\",\\n \\"start\\": 1589986800,\\n \\"end\\": 1589990340\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListSortExpressions' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/sort-expressions',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55229',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '1', 'title' => '', 'example' => '110116134'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The information about the rough sort or fine sort expressions.'."\n"
."\n"
.'For more information, see [FirstRank](~~170007~~) and [SecondRank](~~170008~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp when the sort expression was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1655793690'],
'active' => ['description' => 'Indicates whether the expression is the default one.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'description' => ['description' => 'The description of the sort expression.', 'type' => 'string', 'title' => '', 'example' => '""'],
'updated' => ['description' => 'The timestamp when the sort expression was updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1655793690'],
'name' => ['description' => 'The name of the sort expression.', 'type' => 'string', 'title' => '', 'example' => 'default'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListSortExpressions',
'summary' => 'Lists the sort expressions that are configured for a version of an OpenSearch application.',
'requestParamsDescription' => '**Query parameters**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ---------- | ------- | -------- | ------- | ---------------------------------------------------------------------- |'."\n"
.'| pageNumber | Integer | No | 1 | The page number. The default value is 1. |'."\n"
.'| pageSize | Integer | No | 10 | The number of entries to return on each page. The default value is 10. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListSortExpression',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1655793690,\\n \\"active\\": true,\\n \\"description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"updated\\": 1655793690,\\n \\"name\\": \\"default\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListSortScripts' => [
'summary' => 'Lists all sort scripts for a specified application version.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app'],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110142366'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
'result' => [
'description' => 'The list of scripts.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'type' => ['description' => 'The type of the script.', 'type' => 'string', 'title' => '', 'example' => 'cava_script'],
'scope' => ['description' => 'The applicable scope of the script.', 'type' => 'string', 'title' => '', 'example' => 'second_rank'],
'createTime' => ['description' => 'The time when the script was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-02 20:21:14'],
'status' => ['description' => 'The status of the script:'."\n"
."\n"
.'- configurable: The script is created, but no file has been uploaded.'."\n"
."\n"
.'- not compiled: The script has not been compiled.'."\n"
."\n"
.'- compile failed: The script failed to be compiled.'."\n"
."\n"
.'- compile successful: The script is compiled.'."\n"
."\n"
.'- released: The script is published.', 'type' => 'string', 'title' => '', 'example' => 'released'],
'modifyTime' => ['description' => 'The time when the script was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-02 21:21:14'],
'scriptName' => ['description' => 'The name of the script.', 'type' => 'string', 'title' => '', 'example' => 'test'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListSortScripts',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '```'."\n"
.'Error response'."\n"
.'{'."\n"
.' "requestId" : "ABCDEFGH",'."\n"
.' "code":"InvalidAppSpec",'."\n"
.' "message":"The cava scripts only support the private spec app.",'."\n"
.' "httpCode":400'."\n"
.'}'."\n"
.'```',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\",\\n \\"result\\": [\\n {\\n \\"type\\": \\"cava_script\\",\\n \\"scope\\": \\"second_rank\\",\\n \\"createTime\\": \\"2020-04-02 20:21:14\\",\\n \\"status\\": \\"released\\",\\n \\"modifyTime\\": \\"2020-04-02 21:21:14\\",\\n \\"scriptName\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListStatisticLogs' => [
'summary' => 'Queries log statistics, such as application error logs, hotword rankings, and slow query logs.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/statistic-logs/{moduleName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'app_group_name', 'title' => ''],
],
[
'name' => 'moduleName',
'in' => 'path',
'schema' => ['description' => 'The module name. This is an enumeration.'."\n"
."\n"
.'- hot: hotword rankings'."\n"
."\n"
.'- error: application error logs'."\n"
."\n"
.'- slow-log: slow query logs'."\n"
."\n"
.'Currently, only hot is supported.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hot', 'title' => ''],
],
[
'name' => 'startTime',
'in' => 'query',
'schema' => ['description' => 'The start of the time range to query. The value must be a UNIX timestamp. The default value is the UNIX timestamp for 00:00:00 on the current day.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '9999999999', 'minimum' => '0', 'example' => '1582214400', 'title' => ''],
],
[
'name' => 'stopTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query. The value must be a UNIX timestamp. The default value is the UNIX timestamp for 24:00:00 on the current day.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '9999999999', 'minimum' => '0', 'example' => '1682222400', 'title' => ''],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1', 'example' => '1', 'title' => ''],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '10000', 'minimum' => '1', 'example' => '10', 'title' => ''],
],
[
'name' => 'query',
'in' => 'query',
'schema' => ['description' => 'The content of the query clause.', 'type' => 'string', 'required' => false, 'example' => '"default:\'OpenSearch\'"', 'title' => ''],
],
[
'name' => 'sortBy',
'in' => 'query',
'schema' => ['description' => 'The content of the sort clause.', 'type' => 'string', 'required' => false, 'example' => '"-id"', 'title' => ''],
],
[
'name' => 'distinct',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to use the distinct clause.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'columns',
'in' => 'query',
'schema' => ['description' => 'The fields to query. Format: columns=wordsTopPv.'."\n"
."\n"
.'For more information, see [Metrics for query analysis](~~187665~~).', 'type' => 'string', 'required' => false, 'example' => 'wordsTopPv', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F76ACE3D-E510-EE2C-B7B1-39B3136A61EE', 'title' => ''],
'result' => [
'description' => 'The returned data. For more information, see:'."\n"
."\n"
.'- [Hotword rankings](~~421248~~)',
'type' => 'array',
'items' => ['description' => 'The returned data. For more information, see:'."\n"
."\n"
.'- [Hotword rankings](~~187660~~)', 'type' => 'object', 'example' => '[ { "rawQuery":"淘宝", "pv":100 } ]', 'title' => ''],
'example' => '[]',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListStatisticLogs',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '**hot: Hotword rankings**'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| --------- | ------- | ------------------------------- |'."\n"
.'| rawQuery | String | The hotword. |'."\n"
.'| pv | Integer | The number of page views (PVs). |',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListStatisticLogs',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 1,\\n \\"requestId\\": \\"F76ACE3D-E510-EE2C-B7B1-39B3136A61EE\\",\\n \\"result\\": [\\n [\\n {\\n \\"rawQuery\\": \\"淘宝\\",\\n \\"pv\\": 100\\n }\\n ]\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListStatisticReport' => [
'summary' => 'Queries statistical reports, such as application, drop-down suggestion, top search hint, A/B test, and data quality reports.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/statistic-report/{moduleName}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchA9FOU5', 'FEATUREopensearchAKNSFD'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'app_group_name'],
],
[
'name' => 'moduleName',
'in' => 'path',
'schema' => ['description' => 'The name of the module. This is an enumeration. Valid values:'."\n"
."\n"
.'- app: Operations report.'."\n"
."\n"
.'- app-query: Operations report > Query analysis metrics.'."\n"
."\n"
.'- abtest: A/B test report.'."\n"
."\n"
.'- suggest: Drop-down suggestion report.'."\n"
."\n"
.'- hot: Top search report.'."\n"
."\n"
.'- hint: Hint report.'."\n"
."\n"
.'- data-quality: Behavioral data. Paging parameters are not supported.'."\n"
."\n"
.'- es: Report for an open source-compatible instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'suggest'],
],
[
'name' => 'startTime',
'in' => 'query',
'schema' => ['description' => 'The start timestamp, in seconds.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '9999999999', 'minimum' => '0', 'title' => '', 'example' => '1582214400'],
],
[
'name' => 'endTime',
'in' => 'query',
'schema' => ['description' => 'The end timestamp, in seconds. The default value is the current timestamp.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '9999999999', 'minimum' => '0', 'title' => '', 'example' => '1582646399'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'title' => '', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '10000', 'minimum' => '1', 'title' => '', 'example' => '10'],
],
[
'name' => 'columns',
'in' => 'query',
'schema' => ['description' => 'The fields to query. Specify the fields in the columns="pv,uv,ipv" format. For more information, see [Metrics of statistical reports](~~187665~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'pv,uv'],
],
[
'name' => 'query',
'in' => 'query',
'schema' => ['description' => 'The query conditions, in the k1:v1,k2:v2 format. Valid values:'."\n"
."\n"
.'- experimentSerialNumber: the globally unique serial number of the experiment.'."\n"
."\n"
.'- sceneTag: the tag of the scenario.'."\n"
."\n"
.'- bizType: the business identity.'."\n"
."\n"
.'- modelId: the ID of the algorithm model.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'bizType:test,sceneTag:myTag'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '43'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'F65C8BB2-C14F-5983-888B-41C4E082D3BC'],
'result' => [
'description' => 'The statistical reports.'."\n"
."\n"
.'- For \\`data-quality\\` reports, see the "Upload behavioral data" section in [Data collection 2.0](~~131547~~).'."\n"
."\n"
.'- For \\`app\\` and \\`abtest\\` reports, see the "Core metrics" section in [Metrics of statistical reports](~~187665~~).'."\n"
."\n"
.'- For \\`app-query\\` reports, see the "Query analysis metrics" section in [Metrics of statistical reports](~~187665~~).',
'type' => 'array',
'items' => ['description' => 'The result body.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'example' => '[]',
'title' => '',
],
],
'example' => '[]',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListStatisticReport',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListStatisticReport',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 43,\\n \\"requestId\\": \\"F65C8BB2-C14F-5983-888B-41C4E082D3BC\\",\\n \\"result\\": [\\n {}\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListTagResources' => [
'summary' => 'Queries the tags of specified resources.',
'path' => '/v4/openapi/resource-tags',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '152935',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'resourceType',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The resource type.', 'type' => 'string', 'required' => true, 'example' => 'BIGDATA'],
],
[
'name' => 'resourceId',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'The resource IDs. You can specify a maximum of 50 resource IDs.',
'type' => 'array',
'items' => ['description' => 'A list of resource IDs to query. You must specify this parameter or the \\`tag\\` parameter.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'i-bp185wwblwfvh1a1y1me'],
'required' => false,
'example' => '',
],
],
[
'name' => 'tag',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'The tags to query. The list can contain a maximum of 20 tags.',
'type' => 'array',
'items' => [
'description' => 'The internal English representation of the entity type.',
'type' => 'object',
'properties' => [
'key' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'bm'],
'value' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => 'Uefi'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'example' => '',
],
],
[
'name' => 'nextToken',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The token to start the next query.', 'type' => 'string', 'required' => false, 'example' => '60'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'nextToken' => ['title' => '', 'description' => 'The token to start the next query.', 'type' => 'string', 'example' => '20'],
'result' => [
'title' => '',
'description' => 'The list of resources.',
'type' => 'array',
'items' => [
'description' => 'The returned result.',
'type' => 'object',
'properties' => [
'tagKey' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'example' => 'GENIE_FUNCTION'],
'tagValue' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'example' => 'ALLOW'],
'resourceId' => ['title' => '', 'description' => 'The resource ID.', 'type' => 'string', 'example' => '54041'],
'resourceType' => ['title' => '', 'description' => 'The resource type.', 'type' => 'string', 'example' => 'hostGroup'],
],
'title' => '',
'example' => '',
],
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListTagResources',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:instance/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"nextToken\\": \\"20\\",\\n \\"result\\": [\\n {\\n \\"tagKey\\": \\"GENIE_FUNCTION\\",\\n \\"tagValue\\": \\"ALLOW\\",\\n \\"resourceId\\": \\"54041\\",\\n \\"resourceType\\": \\"hostGroup\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListUserAnalyzerEntries' => [
'summary' => 'Queries the entries of a custom analyzer.',
'path' => '/v4/openapi/user-analyzers/{name}/entries',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the analyzer.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"kevin_test"'],
],
[
'name' => 'word',
'in' => 'query',
'schema' => ['description' => 'The entry key.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"kevintest"'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The entries of the custom analyzer. For more information, see UserAnalyzerEntry.', 'type' => 'object', 'title' => '', 'example' => '['."\n"
.'{'."\n"
.' "cmd": "add",'."\n"
.' "key": "kevintest",'."\n"
.' "value": "kevin test",'."\n"
.' "created": 1536690285,'."\n"
.' "updated": 1537348987,'."\n"
.' "status": "ACTIVE",'."\n"
.' "splitEnabled": true'."\n"
.'}'."\n"
.']'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '516A02B7-2167-8D92-12D0-B639A2A0F3C5'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListUserAnalyzerEntries',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"cmd\\": \\"add\\",\\n \\"key\\": \\"kevintest\\",\\n \\"value\\": \\"kevin test\\",\\n \\"created\\": 1536690285,\\n \\"updated\\": 1537348987,\\n \\"status\\": \\"ACTIVE\\",\\n \\"splitEnabled\\": true\\n }\\n ],\\n \\"RequestId\\": \\"516A02B7-2167-8D92-12D0-B639A2A0F3C5\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ListUserAnalyzers' => [
'summary' => 'Retrieves a list of custom analyzers for your account.',
'path' => '/v4/openapi/user-analyzers',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8', 'FEATUREopensearchNCXKUT'],
],
'parameters' => [
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'totalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The list of custom analyzers.'."\n"
."\n"
.'For more information, see [UserAnalyzer](~~178934~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp when the analyzer was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588054131'],
'available' => ['description' => 'Indicates whether the analyzer is available.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
'name' => ['description' => 'The name of the custom analyzer.', 'type' => 'string', 'title' => '', 'example' => 'kevin_test2'],
'updated' => ['description' => 'The timestamp when the analyzer was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588054131'],
'id' => ['description' => 'The ID of the custom analyzer.', 'type' => 'string', 'title' => '', 'example' => '1234'],
'business' => ['description' => 'The basic analyzer. Valid values:'."\n"
."\n"
.'- chn\\_standard: [A general-purpose analyzer for Chinese](~~179424~~).'."\n"
."\n"
.'- chn\\_scene\\_name: An analyzer for Chinese person names.'."\n"
."\n"
.'- chn\\_ecommerce: [An analyzer for e-commerce in Chinese](~~179424~~).'."\n"
."\n"
.'- chn\\_it\\_content: [An analyzer for IT content in Chinese](~~179424~~).'."\n"
."\n"
.'- en\\_min: A fine-grained analyzer for English.'."\n"
."\n"
.'- th\\_standard: A general-purpose analyzer for Thai.'."\n"
."\n"
.'- th\\_ecommerce: An analyzer for e-commerce in Thai.'."\n"
."\n"
.'- vn\\_standard: A general-purpose analyzer for Vietnamese.'."\n"
."\n"
.'- chn\\_community\\_it: An analyzer for IT community content in Chinese.'."\n"
."\n"
.'- chn\\_ecommerce\\_general: A general-purpose analyzer for the e-commerce industry in Chinese.'."\n"
."\n"
.'- chn\\_esports\\_general: A general-purpose analyzer for the gaming industry in Chinese.'."\n"
."\n"
.'- chn\\_edu\\_question: An analyzer for question-answering search in the education industry in Chinese.', 'type' => 'string', 'title' => '', 'example' => 'chn_standard'],
'dicts' => [
'description' => 'The dictionaries that the custom analyzer uses.'."\n"
."\n"
.'For more information, see [UserDict](~~178933~~).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp when the dictionary was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588054131'],
'entriesCount' => ['description' => 'The number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '-1'],
'type' => ['description' => 'The type of the dictionary. Valid value:'."\n"
."\n"
.'- segment: A dictionary for word segmentation.', 'type' => 'string', 'title' => '', 'example' => 'segment'],
'entriesLimit' => ['description' => 'The maximum number of entries in the dictionary.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '4'],
'available' => ['description' => 'Indicates whether the dictionary is available.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
'updated' => ['description' => 'The timestamp when the dictionary was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588054131'],
'id' => ['description' => 'The ID of the dictionary.', 'type' => 'string', 'title' => '', 'example' => '123'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ListUserAnalyzers',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListUserAnalyzers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCount\\": 1,\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n {\\n \\"created\\": 1588054131,\\n \\"available\\": false,\\n \\"name\\": \\"kevin_test2\\",\\n \\"updated\\": 1588054131,\\n \\"id\\": \\"1234\\",\\n \\"business\\": \\"chn_standard\\",\\n \\"dicts\\": [\\n {\\n \\"created\\": 1588054131,\\n \\"entriesCount\\": -1,\\n \\"type\\": \\"segment\\",\\n \\"entriesLimit\\": 4,\\n \\"available\\": false,\\n \\"updated\\": 1588054131,\\n \\"id\\": \\"123\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'ModifyAppGroup' => [
'summary' => 'Modifies the properties of an OpenSearch application or sets its online version.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55236',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'description' => ['description' => 'The description of the application group.', 'type' => 'string', 'example' => '" instance description"', 'required' => false, 'title' => ''],
'currentVersion' => ['description' => 'The online version of the application.', 'type' => 'string', 'required' => false, 'example' => '1223232', 'title' => ''],
'domain' => ['description' => 'The industry. Valid values:'."\n"
."\n"
.'- general: general.'."\n"
."\n"
.'- ecommerce: e-commerce.'."\n"
."\n"
.'- education: education.'."\n"
."\n"
.'- esports: gaming.'."\n"
."\n"
.'- community: content community.', 'type' => 'string', 'required' => false, 'example' => '"ecommerce"', 'title' => ''],
'resourceGroupId' => ['description' => 'The ID of the resource group to which the instance belongs.', 'type' => 'string', 'required' => false, 'example' => 'rg-****', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values: true and false.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014', 'title' => ''],
'result' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The UNIX timestamp when the application was created.', 'type' => 'integer', 'format' => 'int32', 'example' => '159013954', 'title' => ''],
'currentVersion' => ['description' => 'The ID of the current online version.', 'type' => 'string', 'example' => '100302903', 'title' => ''],
'lockMode' => ['description' => 'The lock mode of the instance. Valid values:'."\n"
."\n"
.'- Unlock: The instance is not locked.'."\n"
."\n"
.'- LockByExpiration: The instance is automatically locked after it expires.'."\n"
."\n"
.'- ManualLock: The instance is manually locked.', 'type' => 'string', 'example' => 'Unlock', 'title' => ''],
'updated' => ['description' => 'The UNIX timestamp when the application was last modified.', 'type' => 'integer', 'format' => 'int32', 'example' => '1590978265', 'title' => ''],
'id' => ['description' => 'The application ID.', 'type' => 'string', 'example' => '100302881', 'title' => ''],
'chargeType' => ['description' => 'The billing method. Valid values:'."\n"
."\n"
.'- POSTPAY: pay-as-you-go.'."\n"
."\n"
.'- PREPAY: subscription.', 'type' => 'string', 'example' => 'POSTPAY', 'title' => ''],
'hasPendingQuotaReviewTask' => ['description' => 'The approval status of the quota. Valid values:'."\n"
."\n"
.'- 0: normal.'."\n"
."\n"
.'- 1: being approved.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'name' => ['description' => 'The name of the application.', 'type' => 'string', 'example' => 'lsh_test_1', 'title' => ''],
'instanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => '10030288', 'title' => ''],
'chargingWay' => ['description' => 'The billable item. Valid values:'."\n"
."\n"
.'- 1: computing resources.'."\n"
."\n"
.'- 2: QPS.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'type' => ['description' => 'The type of the application. Valid values:'."\n"
."\n"
.'- standard: a Standard Edition application.'."\n"
."\n"
.'- advance: an Advanced Edition application of an old version. New applications do not support this type.'."\n"
."\n"
.'- enhanced: an Enhanced Edition application.', 'type' => 'string', 'example' => 'enhanced', 'title' => ''],
'status' => ['description' => 'The status of the application. Valid values:'."\n"
."\n"
.'- producing: The application is being created.'."\n"
."\n"
.'- review\\_pending: The application is under review.'."\n"
."\n"
.'- config\\_pending: The application requires configuration.'."\n"
."\n"
.'- normal: The application is running.'."\n"
."\n"
.'- frozen: The application is frozen.', 'type' => 'string', 'example' => 'normal', 'title' => ''],
'projectId' => ['description' => 'The name of the A/B test project.', 'type' => 'string', 'example' => '1', 'title' => ''],
'switchedTime' => ['description' => 'The UNIX timestamp when the current online version was published.', 'type' => 'integer', 'format' => 'int32', 'example' => '1590486386', 'title' => ''],
'commodityCode' => ['description' => 'The commodity code.', 'type' => 'string', 'example' => 'opensearch', 'title' => ''],
'expireOn' => ['description' => 'The expiration time.', 'type' => 'string', 'example' => '1', 'title' => ''],
'domain' => ['description' => 'The industry. Valid values:'."\n"
."\n"
.'- GENERAL: general.'."\n"
."\n"
.'- ECOMMERCE: e-commerce.'."\n"
."\n"
.'- IT\\_CONTENT: IT content.', 'type' => 'string', 'example' => 'GENERAL', 'title' => ''],
'description' => ['description' => 'The description of the application.', 'type' => 'string', 'example' => '1', 'title' => ''],
'produced' => ['description' => 'Indicates whether the application is created. Valid values:'."\n"
."\n"
.'- 0: The application is being created.'."\n"
."\n"
.'- 1: The application is created.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'quota' => [
'description' => 'The quota information of the application.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications. Valid values:'."\n"
."\n"
.'- opensearch.share.junior: Basic'."\n"
."\n"
.'- opensearch.share.common: Shared General-purpose'."\n"
."\n"
.'- opensearch.share.compute: Shared Compute-optimized'."\n"
."\n"
.'- opensearch.share.storage: Shared Storage-optimized'."\n"
."\n"
.'- opensearch.private.common: Exclusive General-purpose'."\n"
."\n"
.'- opensearch.private.compute: Exclusive Compute-optimized'."\n"
."\n"
.'- opensearch.private.storage: Exclusive Storage-optimized', 'type' => 'string', 'example' => 'opensearch.share.common', 'title' => ''],
'docSize' => ['description' => 'The storage capacity in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'computeResource' => ['description' => 'The computing resources in logical compute units (LCUs).', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
'engineType' => ['description' => 'The engine type.', 'type' => 'string', 'example' => 'ha3', 'title' => ''],
'resourceGroupId' => ['description' => 'The ID of the resource group to which the instance belongs.', 'type' => 'string', 'example' => 'rg-acfmoiyerh6nzly', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 159013954,\\n \\"currentVersion\\": \\"100302903\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"updated\\": 1590978265,\\n \\"id\\": \\"100302881\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"hasPendingQuotaReviewTask\\": 0,\\n \\"name\\": \\"lsh_test_1\\",\\n \\"instanceId\\": \\"10030288\\",\\n \\"chargingWay\\": 1,\\n \\"type\\": \\"enhanced\\",\\n \\"status\\": \\"normal\\",\\n \\"projectId\\": \\"1\\",\\n \\"switchedTime\\": 1590486386,\\n \\"commodityCode\\": \\"opensearch\\",\\n \\"expireOn\\": \\"1\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"description\\": \\"1\\",\\n \\"produced\\": 1,\\n \\"quota\\": {\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n },\\n \\"engineType\\": \\"ha3\\",\\n \\"resourceGroupId\\": \\"rg-acfmoiyerh6nzly\\"\\n }\\n}","type":"json"}]',
'title' => 'ModifyAppGroup',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| -------------- | ------- | -------- | ---------------- | ------------------------------------------------------------------------------------- |'."\n"
.'| chargingWay | Integer | No | 1 | The billing model.
- 1: computing resources.
- 2: queries per second (QPS).
|'."\n"
.'| description | String | No | "my\\_first\\_app" | The description of the application. |'."\n"
.'| currentVersion | Integer | No | 12345678 | The ID of the application version. |'."\n"
."\n"
.'Note: This operation prioritizes setting the online version of the application. If you include the \\`currentVersion\\` parameter in the request, other parameters are ignored.
',
'responseParamsDescription' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'ModifyAppGroupQuota' => [
'summary' => 'Modifies the quota of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/quota',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55237',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'clientToken',
'in' => 'query',
'schema' => ['description' => 'A client token that is used to ensure the idempotence of the request. The client generates this value to make sure that it is unique among different requests. The value can be up to 64 ASCII characters in length.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '74db41d8cd3c784209093aa76afbe89e'],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. Default value: false.'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- **true**: Validates the request parameters without creating the attribution configuration.'."\n"
."\n"
.'- **false**: Validates the request parameters and creates the attribution configuration.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.', '$ref' => '#/components/schemas/Quota', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF', 'title' => ''],
'result' => [
'description' => 'The information about the application.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp when the application was created.', 'type' => 'integer', 'format' => 'int32', 'example' => '1590139542', 'title' => ''],
'currentVersion' => ['description' => 'The current online version.', 'type' => 'string', 'example' => '100302903', 'title' => ''],
'type' => ['description' => 'The type of the application.'."\n"
."\n"
.'- standard: Standard Edition'."\n"
."\n"
.'- advance: an earlier version of Premium Edition. This type is not supported for new applications.'."\n"
."\n"
.'- enhanced: a new version of Premium Edition.', 'type' => 'string', 'example' => 'enhanced', 'title' => ''],
'chargingWay' => ['description' => 'The billing model.'."\n"
."\n"
.'- 1: by compute resources'."\n"
."\n"
.'- 2: by queries per second (QPS)', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'lockMode' => ['description' => 'The lock status.'."\n"
."\n"
.'- Unlock: The application is not locked.'."\n"
."\n"
.'- LockByExpiration: The application is automatically locked upon expiration.'."\n"
."\n"
.'- ManualLock: The application is manually locked.', 'type' => 'string', 'example' => 'Unlock', 'title' => ''],
'status' => ['description' => 'The status of the application.'."\n"
."\n"
.'- producing: The application is being provisioned.'."\n"
."\n"
.'- review\\_pending: The application is pending for review.'."\n"
."\n"
.'- config\\_pending: The application is pending for configuration.'."\n"
."\n"
.'- normal: The application is running as normal.'."\n"
."\n"
.'- frozen: The application is frozen.', 'type' => 'string', 'example' => 'normal', 'title' => ''],
'updated' => ['description' => 'The timestamp when the application was last updated.', 'type' => 'integer', 'format' => 'int32', 'example' => '1590978265', 'title' => ''],
'chargeType' => ['description' => 'The billing method.'."\n"
."\n"
.'- POSTPAY: pay-as-you-go'."\n"
."\n"
.'- PREPAY: subscription', 'type' => 'string', 'example' => 'POSTPAY', 'title' => ''],
'id' => ['description' => 'The ID of the application.', 'type' => 'string', 'example' => '100302881', 'title' => ''],
'hasPendingQuotaReviewTask' => ['description' => 'Indicates whether a quota is pending for approval.'."\n"
."\n"
.'- 0: No quota is pending for approval.'."\n"
."\n"
.'- 1: A quota is pending for approval.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'projectId' => ['description' => 'The name of the A/B test project.', 'type' => 'string', 'example' => '1000', 'title' => ''],
'commodityCode' => ['description' => 'The commodity code.', 'type' => 'string', 'example' => 'opensearch', 'title' => ''],
'switchedTime' => ['description' => 'The timestamp when the online version was switched.', 'type' => 'integer', 'format' => 'int32', 'example' => '1590486386', 'title' => ''],
'expireOn' => ['description' => 'The expiration time.', 'type' => 'string', 'example' => ' 1', 'title' => ''],
'description' => ['description' => 'The description of the application.', 'type' => 'string', 'example' => ' 1', 'title' => ''],
'produced' => ['description' => 'Indicates whether the application is provisioned.'."\n"
."\n"
.'- 0: The application is being provisioned.'."\n"
."\n"
.'- 1: The application is provisioned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'name' => ['description' => 'The name of the application.', 'type' => 'string', 'example' => 'lsh_test_1', 'title' => ''],
'instanceId' => ['description' => 'The ID of the instance.', 'type' => 'string', 'example' => '1', 'title' => ''],
'quota' => [
'description' => 'The quota information of the application.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications.'."\n"
."\n"
.'- opensearch.share.junior: Entry-level'."\n"
."\n"
.'- opensearch.share.common: Shared General-purpose'."\n"
."\n"
.'- opensearch.share.compute: Shared Compute-optimized'."\n"
."\n"
.'- opensearch.share.storage: Shared Storage-optimized'."\n"
."\n"
.'- opensearch.private.common: Dedicated General-purpose'."\n"
."\n"
.'- opensearch.private.compute: Dedicated Compute-optimized'."\n"
."\n"
.'- opensearch.private.storage: Dedicated Storage-optimized', 'type' => 'string', 'example' => 'opensearch.share.common', 'title' => ''],
'docSize' => ['description' => 'The storage capacity in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'computeResource' => ['description' => 'The compute resources in LCU.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'title' => '',
'example' => '',
],
'engineType' => [
'description' => 'The engine type.',
'enumValueTitles' => ['ha3' => 'ha3'],
'type' => 'string',
'example' => 'ha3',
'title' => '',
],
'resourceGroupId' => ['description' => 'The ID of the resource group to which the instance belongs.', 'type' => 'string', 'example' => 'rg-acfmoiyerh6nzly', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"created\\": 1590139542,\\n \\"currentVersion\\": \\"100302903\\",\\n \\"type\\": \\"enhanced\\",\\n \\"chargingWay\\": 1,\\n \\"lockMode\\": \\"Unlock\\",\\n \\"status\\": \\"normal\\",\\n \\"updated\\": 1590978265,\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"id\\": \\"100302881\\",\\n \\"hasPendingQuotaReviewTask\\": 0,\\n \\"projectId\\": \\"1000\\",\\n \\"commodityCode\\": \\"opensearch\\",\\n \\"switchedTime\\": 1590486386,\\n \\"expireOn\\": \\" 1\\",\\n \\"description\\": \\" 1\\",\\n \\"produced\\": 1,\\n \\"name\\": \\"lsh_test_1\\",\\n \\"instanceId\\": \\"1\\",\\n \\"quota\\": {\\n \\"spec\\": \\"opensearch.share.common\\",\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n },\\n \\"engineType\\": \\"ha3\\",\\n \\"resourceGroupId\\": \\"rg-acfmoiyerh6nzly\\"\\n }\\n}","type":"json"}]',
'title' => 'ModifyAppGroupQuota',
'requestParamsDescription' => '**Request body**
'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| --------------- | ------- | -------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| docSize | Integer | Yes | 1 | The storage capacity in GB. For shared general-purpose instances, the value ranges from 1 to 300. |'."\n"
.'| computeResource | Integer | Yes | 20 | The compute resources in LCU. For shared general-purpose instances, the value ranges from 20 to 5,000. |'."\n"
.'| spec | String | Yes | "opensearch.share.common" | The specifications. |'."\n"
.'| orderType | String | No | "UPGRADE" | The type of the configuration change.
\\- UPGRADE: upgrades the specifications.
\\- DOWNGRADE: downgrades the specifications. |'."\n"
."\n"
.'For more information, see [Quota](~~170001~~).
',
'responseParamsDescription' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'ModifyFirstRank' => [
'summary' => 'Modifies the rough sort expression for an OpenSearch application version. If you set the dryRun parameter to true, this operation validates the modified rough sort expression. The default value of this parameter is false.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/first-ranks/{name}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchH8SRT8'],
],
'parameters' => [
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the rough sort expression.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.', 'required' => false, '$ref' => '#/components/schemas/FirstRank', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'Details about the rough sort expression.',
'type' => 'object',
'properties' => [
'description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => '1'],
'active' => ['description' => 'Indicates whether the expression is the default one.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'name' => ['description' => 'The name of the resource.', 'type' => 'string', 'title' => '', 'example' => 'default'],
'meta' => [
'description' => 'Details about the expression.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'arg' => ['description' => 'The parameters for a function in the expression.', 'type' => 'string', 'title' => '', 'example' => '“1 ”'],
'attribute' => ['description' => 'The attribute, feature function, or search field.', 'type' => 'string', 'title' => '', 'example' => 'static_bm25()'],
'weight' => ['description' => 'The weight. Valid values: -100000 to 100000. The value cannot be 0.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '10'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ModifyFirstRank',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| ----------- | --------------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| type | String | Yes | "STRUCT" | The type of the expression. Valid values:
\\- STRUCT: The expression is a structure. This is the default value.
\\- STRING: The expression is a custom formula. |'."\n"
.'| meta | Array or String | Yes | | Details about the expression. |'."\n"
.'| description | String | No | "my_test" | A description of the rough sort expression. |'."\n"
.'| active | Boolean | No | true | Specifies whether the expression is the default one. |'."\n"
."\n"
.'For more information, see [FirstRank](~~170007~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": {\\n \\"description\\": \\"1\\",\\n \\"active\\": true,\\n \\"name\\": \\"default\\",\\n \\"meta\\": [\\n {\\n \\"arg\\": \\"“1 ”\\",\\n \\"attribute\\": \\"static_bm25()\\",\\n \\"weight\\": 10\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'ModifyQueryProcessor' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors/{name}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8', 'FEATUREopensearchNCXKUT'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“test”'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.', 'type' => 'any', 'required' => false, 'title' => '', 'example' => '{'."\n"
.' "domain": "GENERAL",'."\n"
.' "category": "",'."\n"
.' "processors": ['."\n"
.' {'."\n"
.' "name": "synonym",'."\n"
.' "useSystemDictionary": true'."\n"
.' },'."\n"
.' {'."\n"
.' "name": "stop_word",'."\n"
.' "useSystemDictionary": true'."\n"
.' }'."\n"
.' ]'."\n"
.'}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The information about the rule.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the rule was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '0'],
'active' => ['description' => 'Indicates whether the rule is a default rule.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'updated' => ['description' => 'The time when the rule was updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'name' => ['description' => 'The name of the rule.', 'type' => 'string', 'title' => '', 'example' => 'synonym'],
'domain' => ['description' => 'The industry to which the query analysis rule applies. Valid values:'."\n"
."\n"
.'- GENERAL: General'."\n"
."\n"
.'- ECOMMERCE: E-commerce'."\n"
."\n"
.'- IT\\_CONTENT: IT content', 'type' => 'string', 'title' => '', 'example' => 'GENERAL'],
'indexes' => [
'description' => 'The indexes to which the query analysis rule applies.',
'type' => 'array',
'items' => ['description' => 'The indexes to which the query analysis rule applies.', 'type' => 'string', 'title' => '', 'example' => '[ "default" ]'],
'example' => '["default"]',
'title' => '',
],
'processors' => [
'description' => 'The analysis rule.',
'type' => 'array',
'items' => ['description' => 'The data returned in the response.', 'type' => 'object', 'title' => '', 'example' => '[ "default" ]'],
'example' => '[]',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ModifyQueryProcessor',
'summary' => 'Modifies a query analysis rule for a specific application version. If you set the dryRun parameter to true, this operation checks the specified query analysis rule. If you do not specify the dryRun parameter, the default value is false.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ------------ | ------- | -------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| domain | String | No | "GENERAL" | The industry to which the query analysis rule applies.Valid values:
\\- GENERAL: General
\\- ECOMMERCE: E-commerce
\\- IT_CONTENT: IT content |'."\n"
.'| indexes | Array | No | \\["default"] | The indexes to which the query analysis rule applies. |'."\n"
.'| processors[] | Object | No | | The analysis rule.
For more information, see [Processor](~~170014~~) |'."\n"
.'| active | Boolean | No | true | Specifies whether to set the rule to active. |'."\n"
."\n"
.'For more information, see [QueryProcessor](~~170014~~).
',
'responseParamsDescription' => '**Response parameters**'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| --------- | ------ | ----------------------------------------------------------------------------------------- |'."\n"
.'| requestId | String | The request ID. |'."\n"
.'| result | Object | The information about the rule.
For more information, see [QueryProcessor](~~170014~~) |',
'extraInfo' => "\n",
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 0,\\n \\"active\\": true,\\n \\"updated\\": 1,\\n \\"name\\": \\"synonym\\",\\n \\"domain\\": \\"GENERAL\\",\\n \\"indexes\\": [\\n \\"[ \\\\\\"default\\\\\\" ]\\"\\n ],\\n \\"processors\\": [\\n [\\n \\"default\\"\\n ]\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'ModifyScheduledTask' => [
'summary' => 'Modifies a scheduled task.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scheduled-tasks/{taskId}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch0AT3OG'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '121414148'],
],
[
'name' => 'taskId',
'in' => 'path',
'schema' => ['description' => 'The task ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '56e9c2e7-5a4d-481a-9f1b-b07da6909450'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request parameters.', 'type' => 'any', 'required' => false, 'title' => '', 'example' => '{'."\n"
.' "cron": "0 0 * * 1,2,3,4,5,6,7",'."\n"
.' "enabled": true,'."\n"
.' "filter": {'."\n"
.' "field": "cat_id",'."\n"
.' "days": 30,'."\n"
.' "unit": "s"'."\n"
.' }'."\n"
.'}'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The information about the scheduled task.', 'type' => 'object', 'title' => '', 'example' => 'Array'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ModifyScheduledTask',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:ModifyScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ModifySecondRank' => [
'summary' => 'Modifies a fine sort expression for an OpenSearch application version. If you set `dryRun` to `true`, the modified fine sort expression is validated. The `dryRun` parameter is `false` by default.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/second-ranks/{name}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchJUWEG4'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the fine sort expression.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'true'],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body, which contains the fine sort information.', 'required' => false, '$ref' => '#/components/schemas/SecondRank', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'C5E2F73C-8241-81F8-3A62-65478C5A3111'],
'result' => [
'description' => 'The information about the fine sort expression.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the expression was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'active' => ['description' => 'Indicates whether the expression is the default one.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'isDefault' => ['description' => 'Indicates whether the expression is the default expression. This parameter is returned only in the response.'."\n"
."\n"
.'- true: The expression is the default expression.'."\n"
."\n"
.'- false: The expression is not the default expression.', 'type' => 'string', 'title' => '', 'example' => 'true'],
'isSys' => ['description' => 'Indicates whether the expression is a system expression. This parameter is returned only in the response.'."\n"
."\n"
.'- true: The expression is a system expression.'."\n"
."\n"
.'- false: The expression is not a system expression.', 'type' => 'string', 'title' => '', 'example' => 'false'],
'description' => ['description' => 'The description of the expression.', 'type' => 'string', 'title' => '', 'example' => '"11"'],
'updated' => ['description' => 'The time when the expression was updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'name' => ['description' => 'The name of the expression.', 'type' => 'string', 'title' => '', 'example' => 'lsh_second_1'],
'meta' => ['description' => 'The fine sort expression. You can create an expression that contains fields, scoring features, and mathematical functions to implement complex sorting logic.', 'type' => 'string', 'title' => '', 'example' => 'cate_id > 0 and cate_id < 1000'],
'id' => ['description' => 'The ID of the expression. This parameter is returned only in the response.', 'type' => 'string', 'title' => '', 'example' => '890473'],
],
'example' => '{}',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ModifySecondRank',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| ----------- | ------- | -------- | ---------------------- | ----------------------------------------------------------- |'."\n"
.'| meta | String | No | "text_relevance(name)" | The content of the expression. |'."\n"
.'| description | String | No | "my_test" | The description of the expression. |'."\n"
.'| active | Boolean | No | true | Specifies whether the expression is the default expression. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C5E2F73C-8241-81F8-3A62-65478C5A3111\\",\\n \\"result\\": {\\n \\"created\\": 1,\\n \\"active\\": true,\\n \\"isDefault\\": \\"true\\",\\n \\"isSys\\": \\"false\\",\\n \\"description\\": \\"\\\\\\"11\\\\\\"\\",\\n \\"updated\\": 1,\\n \\"name\\": \\"lsh_second_1\\",\\n \\"meta\\": \\"cate_id > 0 and cate_id < 1000\\",\\n \\"id\\": \\"890473\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'PushInterventionDictionaryEntries' => [
'path' => '/v4/openapi/intervention-dictionaries/{name}/entries/actions/bulk',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchNCXKUT', 'FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_dict', 'title' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to validate the request parameters without creating the attribution configuration. The default value is false.'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- **true**: Validates the request parameters only.'."\n"
."\n"
.'- **false**: Validates the request parameters and creates the attribution configuration.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'array',
'items' => ['description' => 'The request body.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "cmd": "add",'."\n"
.' "word": "搜索",'."\n"
.' "created": 1536661485,'."\n"
.' "updated": 1537320187,'."\n"
.' "status": "ACTIVE",'."\n"
.' "relevance": {'."\n"
.' "100": "0",'."\n"
.' "200": "2"'."\n"
.' }'."\n"
.'}', 'title' => ''],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014', 'title' => ''],
'result' => [
'description' => 'The returned results.',
'type' => 'array',
'items' => ['description' => 'The returned result.', 'type' => 'string', 'example' => '[]', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'PushInterventionDictionaryEntries',
'summary' => 'Applies changes to intervention dictionary entries.',
'requestParamsDescription' => 'Common **request body** parameters'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| -------- | ------ | -------- | --------------- | ------------------------------------------------------------------------------------------------- |'."\n"
.'| \\[] | Object | Yes | | The information about the intervention entry. |'."\n"
.'| \\[].cmd | String | Yes | "add" | The command to perform. Valid values:
- add: adds an entry.
- delete: deletes an entry.
|'."\n"
.'| \\[].word | String | Yes | "Alibaba Cloud" | The intervention entry. |'."\n"
."\n"
.'For more information about specific parameters, see the following documents:'."\n"
."\n"
.'- [Stop words](~~173606~~)'."\n"
."\n"
.'- [Synonyms](~~173606~~)'."\n"
."\n"
.'- [Spelling correction](~~173606~~)'."\n"
."\n"
.'- [Term weights](~~173606~~)'."\n"
."\n"
.'- [Category prediction](~~173606~~)'."\n"
."\n"
.'- [Named Entity Recognition (NER)](~~173606~~)'."\n"
."\n"
.'- [Drop-down suggestion whitelist](~~173606~~)'."\n"
."\n"
.'- [Drop-down suggestion blacklist](~~173606~~)'."\n"
."\n"
.'- [Top search whitelist](~~173606~~)'."\n"
."\n"
.'- [Top search blacklist](~~173606~~)'."\n"
."\n"
.'- [Hint whitelist](~~173606~~)'."\n"
."\n"
.'- [Hint blacklist](~~173606~~)',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n \\"[]\\"\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'PushUserAnalyzerEntries' => [
'path' => '/v4/openapi/user-analyzers/{name}/entries/actions/bulk',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the analyzer.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“kevin_test”'],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. This parameter is only used to check whether the data source is valid. Valid values: true and false.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'entries' => [
'description' => 'The entries of the custom analyzer.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'cmd' => ['description' => 'The operation to perform on the entries.'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- add'."\n"
."\n"
.'- delete', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"add"'],
'key' => ['description' => 'The key to be used to query entries.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"testvalue"'],
'value' => ['description' => 'The analysis result.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"test value"'],
'splitEnabled' => ['description' => 'Specifies whether to enable fine-grained splitting.'."\n"
."\n"
.'Default: true', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The result returned.', 'type' => 'object', 'title' => '', 'example' => '[]'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'PushUserAnalyzerEntries',
'summary' => 'Applies changes to the entries of a custom analyzer.',
'requestParamsDescription' => 'Note: Use lowercase letters for intervention entries.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [],\\n \\"RequestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ReleaseSortScript' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/actions/release',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '\'\'1234\'\'', 'title' => ''],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The name of the script.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '\'\'test\'\'', 'title' => ''],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '\'\'12345\'\'', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'example' => 'ABCDEFGH', 'title' => ''],
'result' => [
'type' => 'object',
'properties' => [
'version' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ReleaseSortScript',
'summary' => 'Releases a sort script.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => '**错误返回**'."\n"
."\n"
.'{'."\n"
.' "requestId" : "ABCDEFGH"'."\n"
.' "code":"InvalidAppStatus",'."\n"
.' "message":"invalid app status.",'."\n"
.' "httpCode":400'."\n"
.'}',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\",\\n \\"result\\": {\\n \\"version\\": 0\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveApp' => [
'summary' => 'Deletes a version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55248',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110116134'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '33477D76-C380-2D84-A4AD-043F52876CB1'],
'result' => [
'description' => '—',
'type' => 'array',
'items' => ['description' => '—', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '[]'],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveApp',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:RemoveApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"33477D76-C380-2D84-A4AD-043F52876CB1\\",\\n \\"result\\": [\\n 0\\n ]\\n}","type":"json"}]',
'translator' => 'machine',
],
'RemoveAppGroup' => [
'summary' => 'Deletes an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '121001650'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '3AA29D02-54F3-8569-F71A-90E1B7BE4E7E'],
'result' => [
'description' => 'The returned results.',
'type' => 'array',
'items' => ['description' => 'The returned result.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '[]'],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveAppGroup',
'description' => 'You can only delete pay-as-you-go applications. Subscription applications cannot be deleted.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:RemoveAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3AA29D02-54F3-8569-F71A-90E1B7BE4E7E\\",\\n \\"result\\": [\\n 0\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveDataCollection' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/data-collections/{dataCollectionIdentity}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '55250',
'abilityTreeNodes' => ['FEATUREopensearchAROC40'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The application name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'dataCollectionIdentity',
'in' => 'path',
'schema' => ['description' => 'The data collection ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '286'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => '—', 'type' => 'string', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveDataCollection',
'summary' => 'Disables data collection.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteDataCollection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'DataCollection', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": \\"{}\\",\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveFirstRank' => [
'summary' => 'Deletes the rough sort configuration of an OpenSearch application version.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/first-ranks/{name}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchH8SRT8'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'Specifies the version number.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the rough sort expression.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“test”'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF'],
'result' => [
'description' => 'The details of the rough sort expression.',
'type' => 'object',
'properties' => [
'description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => '""'],
'active' => ['description' => 'Indicates whether this is the default expression.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'name' => ['description' => 'The name of the resource.', 'type' => 'string', 'title' => '', 'example' => 'default'],
'meta' => [
'description' => 'The details of the expression.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'arg' => ['description' => 'The parameters of the function in the expression. For more information, see [Rough sort](~~170007~~).', 'type' => 'string', 'title' => '', 'example' => '""'],
'attribute' => ['description' => 'The attribute. This can be a scoring feature or a search field. For information about available scoring features, see [Rough sort](~~170007~~).', 'type' => 'string', 'title' => '', 'example' => 'static_bm25()'],
'weight' => ['description' => 'The weight. Valid values: -100000 to 100000. The value cannot be 0.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '10'],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveFirstRank',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF\\",\\n \\"result\\": {\\n \\"description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"active\\": true,\\n \\"name\\": \\"default\\",\\n \\"meta\\": [\\n {\\n \\"arg\\": \\"\\\\\\"\\\\\\"\\",\\n \\"attribute\\": \\"static_bm25()\\",\\n \\"weight\\": 10\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveInterventionDictionary' => [
'summary' => 'Deletes an intervention dictionary.',
'path' => '/v4/openapi/intervention-dictionaries/{name}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchNCXKUT', 'FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the intervention dictionary.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '“my_dict”'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '06BBD41A-5F72-34E4-2DAF-E43B0526051D'],
'result' => [
'description' => 'The details of the intervention dictionary.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the intervention dictionary was created.', 'type' => 'string', 'title' => '', 'example' => '1539158313'],
'analyzer' => ['description' => 'The custom analyzer.', 'type' => 'string', 'title' => '', 'example' => '""'],
'updated' => ['description' => 'The time when the intervention dictionary was updated.', 'type' => 'string', 'title' => '', 'example' => '1539158313'],
'type' => ['description' => 'The type of the dictionary. Valid values:'."\n"
."\n"
.'- stopword: An intervention dictionary for stop words.'."\n"
."\n"
.'- synonym: An intervention dictionary for synonyms.'."\n"
."\n"
.'- correction: An intervention dictionary for spelling correction.'."\n"
."\n"
.'- category\\_prediction: An intervention dictionary for category prediction.'."\n"
."\n"
.'- ner: An intervention dictionary for Named Entity Recognition (NER).'."\n"
."\n"
.'- term\\_weighting: An intervention dictionary for term weights.', 'type' => 'string', 'title' => '', 'example' => 'synonym'],
'name' => ['description' => 'The name of the dictionary.', 'type' => 'string', 'title' => '', 'example' => 'tongyici'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveInterventionDictionary',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"06BBD41A-5F72-34E4-2DAF-E43B0526051D\\",\\n \\"result\\": {\\n \\"created\\": \\"1539158313\\",\\n \\"analyzer\\": \\"\\\\\\"\\\\\\"\\",\\n \\"updated\\": \\"1539158313\\",\\n \\"type\\": \\"synonym\\",\\n \\"name\\": \\"tongyici\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveQueryProcessor' => [
'summary' => 'Removes a query analysis rule from an OpenSearch application version.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors/{name}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchNCXKUT', 'FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“test”'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => '\\--', 'type' => 'string', 'title' => '', 'example' => '[]'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveQueryProcessor',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteQueryProqcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": \\"[]\\",\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveScheduledTask' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scheduled-tasks/{taskId}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'taskId',
'in' => 'path',
'schema' => ['description' => 'The task ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“2f12c585-5873-11ea-974a-7cd30ad3e268”'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
'result' => [
'description' => 'The returned results.',
'type' => 'array',
'items' => ['description' => 'The list of results. This parameter is not returned on a successful request.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveScheduledTask',
'summary' => 'Deletes a scheduled task from an OpenSearch application.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\",\\n \\"result\\": [\\n 1\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveSearchStrategy' => [
'summary' => 'Deletes a search strategy.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/search-strategies/{strategyName}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchBNTDZX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'strategyName',
'in' => 'path',
'schema' => ['description' => 'The name of the strategy.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'default'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'F5099063-6B86-F398-D843-905F9EFB683A'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveSearchStrategy',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F5099063-6B86-F398-D843-905F9EFB683A\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveSecondRank' => [
'summary' => 'Deletes a fine sort expression from a version of an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/second-ranks/{name}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS', 'FEATUREopensearchJUWEG4'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the fine sort expression.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“tests”'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => '—', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveSecondRank',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'RemoveUserAnalyzer' => [
'summary' => 'Deletes a custom analyzer.',
'path' => '/v4/openapi/user-analyzers/{name}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the analyzer'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '“kevin_test”', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The result set. This parameter is not returned if the request is successful.'."\n", 'type' => 'object', 'example' => '[]', 'title' => ''],
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RemoveUserAnalyzer',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [],\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\"\\n}","errorExample":""},{"type":"xml","example":"D77D0DAF-790D-F5F5-A9C0-133738165014","errorExample":""}]',
],
'RenewAppGroup' => [
'summary' => 'Renews an application. This API operation is unavailable. To renew an application, use the OpenSearch console.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/actions/renew',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATUREopensearch447AAX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app'],
],
[
'name' => 'clientToken',
'in' => 'query',
'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '74db41d8cd3c784209093aa76afbe89e'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The renewal request body.', 'required' => false, '$ref' => '#/components/schemas/PrepayOrderInfo', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => ['description' => 'Indicates whether the application was renewed.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'RenewAppGroup',
'requestParamsDescription' => '**Optional parameters**'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ------------ | ------- | ------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| duration | Integer | The renewal duration. The default value is 1.
Valid values:
\\- 1 to 2 (unit: year)
\\- 1 to 9 (unit: month) |'."\n"
.'| pricingCycle | String | The unit of the renewal duration.
Valid values:
\\- Year
\\- Month |'."\n"
.'| autoRenew | boolean | Specifies whether to enable auto-renewal. The default value is false.
Valid values:
\\- false
\\- true |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": true\\n}","type":"json"}]',
'translator' => 'manual',
],
'ReplaceAppGroupCommodityCode' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/actions/to-instance-typed',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '55260',
'abilityTreeNodes' => ['FEATUREopensearch3UFA61'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.'."\n",
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'AC5F78BA-66B9-545B-9CF1-8F542E682E1F', 'title' => ''],
'result' => [
'description' => 'The returned result.'."\n",
'type' => 'object',
'properties' => [
'created' => ['description' => 'The timestamp when the application was created.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1588054131', 'title' => ''],
'currentVersion' => ['description' => 'The ID of the current online version.'."\n", 'type' => 'string', 'example' => '100302903', 'title' => ''],
'pendingSecondRankAlgoDeploymentId' => ['description' => 'The ID of the fine sort expression that is being created.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'type' => ['description' => 'The type of the application.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'chargingWay' => ['description' => 'The billing type. Valid values:'."\n"
."\n"
.'* 1: computing resources.'."\n"
.'* 2: queries per second (QPS).'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'lockMode' => ['description' => 'The lock state. Valid values:'."\n"
."\n"
.'* Unlock: The instance is unlocked.'."\n"
.'* LockByExpiration: The instance is automatically locked after it expires.'."\n"
.'* ManualLock: The instance is manually locked.'."\n", 'type' => 'string', 'example' => 'Unlock', 'title' => ''],
'status' => ['description' => 'The status of the application.'."\n", 'type' => 'string', 'example' => 'normal', 'title' => ''],
'updated' => ['description' => 'The timestamp when the application was updated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1581065904', 'title' => ''],
'chargeType' => ['description' => 'The billing method. Valid values:'."\n"
."\n"
.'* POSTPAY: pay-as-you-go.'."\n"
.'* PREPAY: subscription.'."\n", 'type' => 'string', 'example' => 'POSTPAY', 'title' => ''],
'id' => ['description' => 'The application ID.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'hasPendingQuotaReviewTask' => ['description' => 'The approval state of the quotas. Valid values:'."\n"
."\n"
.'* 0: The approval status is normal.'."\n"
.'* 1: The quotas are being approved.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'projectId' => ['description' => 'The name of the A/B test group.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'secondRankAlgoDeploymentId' => ['description' => 'The ID of the fine sort expression.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'commodityCode' => ['description' => 'The code of the commodity.'."\n", 'type' => 'string', 'example' => 'opensearch', 'title' => ''],
'switchedTime' => ['description' => 'The timestamp when the current online version was published.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1590486386', 'title' => ''],
'expireOn' => ['description' => 'The expiration time.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'description' => ['description' => 'The description of the application.'."\n", 'type' => 'string', 'example' => '""', 'title' => ''],
'firstRankAlgoDeploymentId' => ['description' => 'The ID of the rough sort expression.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'lockedByExpiration' => ['description' => 'Indicates whether the instance is automatically locked after it expires. Valid values:'."\n"
."\n"
.'* 0: The instance is not automatically locked after it expires.'."\n"
.'* 1: The instance is automatically locked after it expires.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'produced' => ['description' => 'Indicates whether the order is produced.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'name' => ['description' => 'The name of the order.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'processingOrderId' => ['description' => 'The ID of the order that is in progress.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'instanceId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'versions' => [
'description' => 'The versions.'."\n",
'type' => 'array',
'items' => ['description' => 'The version.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'title' => '',
'example' => '',
],
'quota' => [
'description' => 'The configuration information.'."\n",
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The specifications configured.'."\n", 'type' => 'string', 'example' => '-', 'title' => ''],
'docSize' => ['description' => 'The storage capacity.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'computeResource' => ['description' => 'The number of computing resources configured.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'ReplaceAppGroupCommodityCode',
'summary' => 'Converts a service-based application to an instance-based application.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#appGroupIdentity}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AC5F78BA-66B9-545B-9CF1-8F542E682E1F\\",\\n \\"result\\": {\\n \\"created\\": 1588054131,\\n \\"currentVersion\\": \\"100302903\\",\\n \\"pendingSecondRankAlgoDeploymentId\\": 0,\\n \\"type\\": \\"-\\",\\n \\"chargingWay\\": 1,\\n \\"lockMode\\": \\"Unlock\\",\\n \\"status\\": \\"normal\\",\\n \\"updated\\": 1581065904,\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"id\\": \\"-\\",\\n \\"hasPendingQuotaReviewTask\\": 0,\\n \\"projectId\\": \\"-\\",\\n \\"secondRankAlgoDeploymentId\\": 0,\\n \\"commodityCode\\": \\"opensearch\\",\\n \\"switchedTime\\": 1590486386,\\n \\"expireOn\\": \\"-\\",\\n \\"description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"firstRankAlgoDeploymentId\\": 0,\\n \\"lockedByExpiration\\": 0,\\n \\"produced\\": 0,\\n \\"name\\": \\"-\\",\\n \\"processingOrderId\\": \\"-\\",\\n \\"instanceId\\": \\"-\\",\\n \\"versions\\": [\\n \\"-\\"\\n ],\\n \\"quota\\": {\\n \\"spec\\": \\"-\\",\\n \\"docSize\\": 1,\\n \\"computeResource\\": 20\\n }\\n }\\n}","type":"json"}]',
],
'SaveSortScriptFile' => [
'summary' => 'Uploads a sort script.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/files/src/{fileName}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '\'\'110123411\'\'', 'title' => ''],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The name of the script whose content you want to update.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '\'\'test1\'\'', 'title' => ''],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '\'\'110123111\'\'', 'title' => ''],
],
[
'name' => 'fileName',
'in' => 'path',
'schema' => ['description' => 'The file name.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '\'\'file01\'\'', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The information about the script content.'."\n",
'type' => 'object',
'properties' => [
'content' => ['description' => 'The script content that is encoded in the Base64 format.'."\n", 'type' => 'string', 'required' => false, 'example' => '4769#0: *28194492991 a client request body is buffered to a temporary file /usr/local/webserver/openresty/nginx/client_body_temp/0000624474,', 'title' => ''],
'version' => ['description' => 'The version number of the script content.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2022-12-01', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response parameters.'."\n",
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'ABCDEFGH', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'SaveSortScriptFile',
'requestParamsDescription' => '## scriptContent'."\n"
."\n"
.'|Parameter|Type|Required|Description|'."\n"
.'|---|---|---|---|'."\n"
.'|content|String|Yes|The script content that is encoded in the Base64 format.|'."\n"
.'|version|Integer|No|The version number of the script content. This version number is used to ensure that the script content is updated in order when the script content is concurrently updated by multiple users. Default value: the current time.|',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","errorExample":""},{"type":"xml","example":"ABCDEFGH","errorExample":""}]',
],
'StartSlowQueryAnalyzer' => [
'summary' => 'Starts a slow query analysis task.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/optimizers/slow-query/actions/run',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchA0YLTY', 'FEATUREopensearch9TYTPZ'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => '\\-', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'StartSlowQueryAnalyzer',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:StartSlowQueryAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'TagResources' => [
'path' => '/v4/openapi/resource-tags',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '152937',
'abilityTreeNodes' => ['FEATUREopensearch447AAX'],
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request parameters.',
'type' => 'object',
'properties' => [
'resourceType' => ['title' => '', 'description' => 'The resource type.', 'type' => 'string', 'required' => true, 'example' => 'ProductVersion'],
'resourceId' => [
'title' => '',
'description' => 'The IDs of the resources. You can specify up to 50 resource IDs.',
'type' => 'array',
'items' => ['description' => 'The ID of the resource.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '68968'],
'required' => true,
'example' => '',
],
'tag' => [
'title' => '',
'description' => 'The tags to add to the resources. You can add up to 20 tags.',
'type' => 'array',
'items' => [
'description' => 'The internal English representation of the entity type.',
'type' => 'object',
'properties' => [
'key' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'cloud_manage'],
'value' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => '31261301'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'ABCDEFGH'],
],
'title' => '',
'example' => '',
],
],
],
'title' => 'TagResources',
'summary' => 'Adds tags to resources.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:TagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:instance/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'UnbindESUserAnalyzer' => [
'summary' => 'Detaches a custom analyzer from an Elasticsearch instance.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/es/{esInstanceId}/actions/unbind-analyzer',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch447AAX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'my_app_group_name'],
],
[
'name' => 'esInstanceId',
'in' => 'path',
'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'es-cn-zvp2ff3iq000myzv7'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body.', 'type' => 'any', 'required' => false, 'title' => '', 'example' => '{'."\n"
.' "name": "kevintest-analyzer"'."\n"
.'}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'result' => ['description' => 'The custom analyzer.', 'type' => 'object', 'title' => '', 'example' => '[]'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UnbindESUserAnalyzer',
'description' => 'Use this operation to detach a custom analyzer from an Elasticsearch instance.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [],\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'UnbindEsInstance' => [
'summary' => 'Unbinds an Elasticsearch instance from an OpenSearch application.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/actions/unbind-es-instance',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55264',
'abilityTreeNodes' => ['FEATUREopensearchQZGKV9'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"my_app_group_name"'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'The data returned.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0A6EB64B-B4C8-CF02-810F-E660812972FF'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UnbindEsInstance',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:UnBindEsInstance',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {},\\n \\"requestId\\": \\"0A6EB64B-B4C8-CF02-810F-E660812972FF\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'UntagResources' => [
'path' => '/v4/openapi/resource-tags',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '152938',
'abilityTreeNodes' => ['FEATUREopensearch447AAX'],
],
'parameters' => [
[
'name' => 'resourceType',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The resource type.', 'type' => 'string', 'required' => true, 'example' => 'ProductVersion'],
],
[
'name' => 'resourceId',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'The IDs of the resources. You can specify a maximum of 50 resource IDs.',
'type' => 'array',
'items' => ['description' => 'A list of resource IDs. You must specify at least one of \\`resourceId\\` or \\`tagKey\\`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '55111'],
'required' => true,
'example' => '',
],
],
[
'name' => 'tagKey',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'A list of tag keys. You can specify a maximum of 20 tag keys.',
'type' => 'array',
'items' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'GENIE_FUNCTION'],
'required' => false,
'example' => '',
],
],
[
'name' => 'all',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Specifies whether to remove all tags from the resources. This parameter takes effect only if you do not specify \\`tagKey\\`. Valid values: \\`true\\` and \\`false\\`. Default value: \\`false\\`.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'tequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '1-B-2-V'],
],
'title' => '',
'example' => '',
],
],
],
'title' => 'UntagResources',
'summary' => 'Removes tags from resources.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:UntagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:instance/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"tequestId\\": \\"1-B-2-V\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateABTestExperiment' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments/{experimentId}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The ID of the scene.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The ID of the group.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
[
'name' => 'experimentId',
'in' => 'path',
'schema' => ['description' => 'The ID of the experiment.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '12889'],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values:'."\n"
."\n"
.'- true: Performs a dry run. The system checks if your AccessKey is valid, if the Resource Access Management (RAM) user is authorized, and if all required parameters are specified. The request is not sent.'."\n"
."\n"
.'- false (default): Sends the request to update the experiment.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body. For more information, see [ABTestExperiment](~~173617~~).', 'required' => false, '$ref' => '#/components/schemas/ABTestExperiment', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The details of the experiment.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the experiment was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588842080'],
'params' => ['description' => 'The parameters of the experiment.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'traffic' => ['description' => 'The percentage of traffic allocated to the experiment. Valid values: 0 to 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '30'],
'online' => ['description' => 'The status of the experiment.'."\n"
."\n"
.'- true: The experiment is online.'."\n"
."\n"
.'- false: The experiment is offline.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'test1'],
'updated' => ['description' => 'The time when the experiment was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588842080'],
'id' => ['description' => 'The ID of the experiment.', 'type' => 'string', 'title' => '', 'example' => '12888'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateABTestExperiment',
'summary' => 'Updates the parameters of an A/B test experiment.',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| ------- | ------- | -------- | ------------------------------- | ------------------------------------------------------ |'."\n"
.'| name | String | No | "my_test" | The name of the experiment. |'."\n"
.'| traffic | Integer | No | 30 | The percentage of traffic allocated to the experiment. |'."\n"
.'| online | Boolean | No | true | Specifies whether the experiment is online. |'."\n"
.'| params | Object | No | {"firstFormulaName": "default"} | The parameters for the experiment. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 1588842080,\\n \\"params\\": {},\\n \\"traffic\\": 30,\\n \\"online\\": true,\\n \\"name\\": \\"test1\\",\\n \\"updated\\": 1588842080,\\n \\"id\\": \\"12888\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateABTestFixedFlowDividers' => [
'summary' => 'Updates the whitelist data.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments/{experimentId}/fixed-flow-dividers',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The ID of the group.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
[
'name' => 'experimentId',
'in' => 'path',
'schema' => ['description' => 'The ID of the experiment.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '12889'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'array',
'items' => ['description' => 'Whitelist data.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"D77D0DAF" '],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The returned results.',
'type' => 'array',
'items' => ['description' => 'The whitelist.', 'type' => 'string', 'title' => '', 'example' => '[ "D77D0DAF", "133738165014" ]'],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateABTestFixedFlowDividers',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| --------- | ------ | -------- | ---------- | --------------- |'."\n"
.'| \\[] | String | Yes | "D77D0DAF" | Whitelist data. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": [\\n \\"[ \\\\\\"D77D0DAF\\\\\\", \\\\\\"133738165014\\\\\\" ]\\"\\n ]\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateABTestGroup' => [
'summary' => 'Modifies a test group.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55268',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The scenario ID.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'groupId',
'in' => 'path',
'schema' => ['description' => 'The ID of the test group.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '13467'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request body. For more information, see [ABTestGroup](~~178935~~).', 'required' => false, '$ref' => '#/components/schemas/ABTestGroup', 'title' => '', 'example' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values:'."\n"
."\n"
.'- true: Performs a dry run. The system checks if the AccessKey is valid, if the RAM user is authorized, and if all required parameters are specified. The test group is not updated.'."\n"
."\n"
.'- false (default): Sends the request to update the test group.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '\'\'1111\'\''],
'result' => [
'description' => 'The details of the test group.',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the test group was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'status' => ['description' => 'The status of the test group. Valid values:'."\n"
."\n"
.'- 0: inactive'."\n"
."\n"
.'- 1: active', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'updated' => ['description' => 'The time when the test group was last updated.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1588839490'],
'name' => ['description' => 'The name of the test group.', 'type' => 'string', 'title' => '', 'example' => 'Group_2020-5-7_15:23:3'],
'id' => ['description' => 'The ID of the test group.', 'type' => 'string', 'title' => '', 'example' => '13466'],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateABTestGroup',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| --------- | ------ | -------- | ------------ | --------------------------- |'."\n"
.'| name | String | Yes | "kevintest3" | The name of the test group. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\'\'1111\'\'\\",\\n \\"result\\": {\\n \\"created\\": 1588839490,\\n \\"status\\": 1,\\n \\"updated\\": 1588839490,\\n \\"name\\": \\"Group_2020-5-7_15:23:3\\",\\n \\"id\\": \\"13466\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateABTestScene' => [
'summary' => 'Modifies an experiment scenario.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchE07IML'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'sceneId',
'in' => 'path',
'schema' => ['description' => 'The ID of the scenario.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '999999999', 'minimum' => '-1', 'title' => '', 'example' => '20404'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The A/B test scenario.', 'required' => false, '$ref' => '#/components/schemas/ABTestScene', 'title' => '', 'example' => ''],
],
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to perform a dry run. This parameter is used only to check whether the data source is valid. Valid values: true and false.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
'result' => [
'description' => 'The details of the A/B test scenario.'."\n"
.'For more information, see [ABTestScene](~~173618~~).',
'type' => 'object',
'properties' => [
'created' => ['description' => 'The time when the scenario was created.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1596527691'],
'params' => ['description' => 'The parameters of the experiment.', 'type' => 'object', 'title' => '', 'example' => '{}'],
'traffic' => ['description' => 'The percentage of traffic that is allocated to the A/B test. Valid values: 0 to 100.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '111'],
'online' => ['description' => 'The status of the test.'."\n"
."\n"
.'- true: The test is started.'."\n"
."\n"
.'- false: The test is stopped.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'name' => ['description' => 'The alias of the scenario.', 'type' => 'string', 'title' => '', 'example' => 'kevintest22'],
'updated' => ['description' => 'The time when the scenario was last modified.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1596527691'],
'id' => ['description' => 'The ID of the scenario.', 'type' => 'string', 'title' => '', 'example' => '20614'],
],
'example' => '{}',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateABTestScene',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Parameter | Type | Required | Example | Description |'."\n"
.'| --------- | ------ | -------- | ------------- | ----------------------------- |'."\n"
.'| name | String | Yes | "kevintest22" | The alias of the scenario. |'."\n"
.'| values[] | String | Yes | "kevintest22" | The identity of the scenario. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\",\\n \\"result\\": {\\n \\"created\\": 1596527691,\\n \\"params\\": {},\\n \\"traffic\\": 111,\\n \\"online\\": true,\\n \\"name\\": \\"kevintest22\\",\\n \\"updated\\": 1596527691,\\n \\"id\\": \\"20614\\"\\n }\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateAppGroupDeleteProtection' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/delete-protection',
'methods' => ['put'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchGVH0IN', 'FEATUREopensearch447AAX', 'FEATUREopensearch5OZOSP'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application group.', 'type' => 'string', 'required' => false, 'example' => 'my_app_group_name', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The request body.', 'type' => 'object', 'required' => false, 'example' => '{'."\n"
.' "deleteProtection": "on"'."\n"
.'}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '80326EFE-485F-46E7-B291-5A1DD08D2198'],
'result' => [
'type' => 'object',
'properties' => [
'instanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'ops-cn-m7r1ywo2h1b', 'title' => ''],
],
'description' => 'The result.',
'title' => '',
'example' => '',
],
],
'title' => '',
'description' => 'The response object.',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'UpdateAppGroupDeleteProtection',
'summary' => 'Updates the delete protection status for an application group.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateAppGroupDeleteProtection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"80326EFE-485F-46E7-B291-5A1DD08D2198\\",\\n \\"result\\": {\\n \\"instanceId\\": \\"ops-cn-m7r1ywo2h1b\\"\\n }\\n}","type":"json"}]',
'translator' => 'machine',
],
'UpdateFetchFields' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/fetch-fields',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchYVAV9H', 'FEATUREopensearchBZ8NMO'],
],
'parameters' => [
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether the request is a dry run.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '“my_app_group_name”'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '110157886'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'array',
'items' => ['description' => 'The field array.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '\'["id", "name", "title"]\''],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'Indicates whether the operation was successful.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D77D0DAF-790D-F5F5-A9C0-133738165014'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateFetchFields',
'summary' => 'This operation supports dry runs.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"D77D0DAF-790D-F5F5-A9C0-133738165014\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateFunctionDefaultInstance' => [
'summary' => 'Sets the default algorithm instance for the specified application. The new algorithm instance automatically overwrites the previously set default instance. If no instance is specified, the default instance is canceled.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/default-instance',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchZAE4HR'],
],
'parameters' => [
[
'name' => 'Body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'instanceName' => ['description' => 'The name of the instance.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '"pop_test"'],
],
'required' => false,
'docRequired' => true,
'example' => '{}',
],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'example' => '"app_group_name"', 'title' => ''],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'pop', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The request status.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'A4D487A9-A456-5AA5-A9C6-B7BF2889CF74', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'DefaultInstance.SetFail', 'title' => ''],
'Latency' => ['description' => 'The time consumed for the request, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateFunctionDefaultInstance',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunctionDefaultInstance'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"A4D487A9-A456-5AA5-A9C6-B7BF2889CF74\\",\\n \\"Message\\": \\"success\\",\\n \\"Code\\": \\"DefaultInstance.SetFail\\",\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateFunctionInstance' => [
'summary' => 'Updates the configuration of a function instance.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearch3QPM0K', 'FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'Body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'cron' => ['description' => 'The schedule for periodic training. The value must be a cron expression in the format of Minutes Hours DayofMonth Month DayofWeek. If you leave this parameter empty, periodic training is disabled by default. For DayofWeek, 0 indicates Sunday.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '"0 3 ? * 0,1,3,5"'],
'createParameters' => [
'title' => '',
'description' => 'The list of creation parameters.',
'type' => 'array',
'items' => [
'description' => 'The parameter details.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'title_field'],
'value' => ['description' => 'The value of the parameter.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'title'],
],
'required' => false,
'example' => '{}',
'title' => '',
],
'required' => false,
'example' => '{ "name": "title_field", "value": "title" }',
],
'usageParameters' => [
'title' => '',
'description' => 'The list of usage parameters.',
'type' => 'array',
'items' => [
'description' => 'The parameter details.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The name of the parameter.', 'type' => 'string', 'required' => false, 'example' => 'allow_dict_id', 'title' => ''],
'value' => ['description' => 'The value of the parameter.', 'type' => 'string', 'required' => false, 'example' => '123', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'example' => '',
],
'description' => ['description' => 'The description of the instance.', 'type' => 'string', 'example' => 'Test instance', 'title' => '', 'required' => false],
],
'required' => false,
'example' => '{}',
],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the OpenSearch application.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '"app_group_name"'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '"ctr"'],
],
[
'name' => 'instanceName',
'in' => 'path',
'schema' => ['description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '"ctr_test"'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The request status.'."\n"
."\n"
.'- ```'."\n"
.' OK: The request is successful.'."\n"
.' ```'."\n"
.'- ```'."\n"
.' FAIL: The request failed.'."\n"
.' ```', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '"3A809095-C554-5CF5-8FCE-BE19D4673790"', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => '"instance not exist."'],
'Code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '"Instance.NotExist"'],
'Latency' => ['description' => 'The time consumed by the request. Unit: milliseconds (ms).', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '10'],
],
'example' => '{}',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"\\\\\\"3A809095-C554-5CF5-8FCE-BE19D4673790\\\\\\"\\",\\n \\"Message\\": \\"\\\\\\"instance not exist.\\\\\\"\\",\\n \\"Code\\": \\"\\\\\\"Instance.NotExist\\\\\\"\\",\\n \\"Latency\\": 10\\n}","type":"json"}]',
'title' => 'UpdateFunctionInstance',
'requestParamsDescription' => '### Example: Update only createParameters and cron'."\n"
."\n"
.'`PUT /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test`'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "createParameters": ['."\n"
.' {'."\n"
.' "name": "param1",'."\n"
.' "value": "new value"'."\n"
.' }'."\n"
.' ],'."\n"
.' "cron": ""'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunctionInstance'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'translator' => 'manual',
],
'UpdateFunctionResource' => [
'summary' => 'Updates an algorithm resource.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources/{resourceName}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '173356',
'abilityTreeNodes' => ['FEATUREopensearchUIICM8'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The ID of the application.', 'type' => 'string', 'required' => true, 'example' => 'my_app_group_name'],
],
[
'name' => 'functionName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the feature.', 'type' => 'string', 'required' => true, 'example' => 'rank'],
],
[
'name' => 'resourceName',
'in' => 'path',
'schema' => ['title' => '', 'description' => 'The name of the resource.', 'type' => 'string', 'required' => true, 'example' => 'fg_json'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'Data' => [
'description' => 'The data of the resource. The structure of this parameter varies based on the value of resourceType.',
'type' => 'object',
'properties' => [
'Content' => ['description' => 'The content of the file. This parameter is used for resources of the raw\\_file type.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'abc'],
'Generators' => [
'description' => 'The list of feature generators. This parameter is used for resources of the feature\\_generator type.',
'type' => 'array',
'items' => [
'description' => 'A description of the feature generator.',
'type' => 'object',
'properties' => [
'Generator' => ['description' => 'The type of the feature generator.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'combo'],
'Input' => [
'description' => 'The input.',
'type' => 'object',
'properties' => [
'Features' => [
'description' => 'A list of input features.',
'type' => 'array',
'items' => [
'description' => 'An input feature.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the feature.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'system_item_id'],
'Type' => ['description' => 'The type of the feature.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'item'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'Output' => ['description' => 'The name of the output feature.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'feature1'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description of the resource.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'updated description'],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the request.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'HttpCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '7E375703-5B12-5466-8B48-C4D01AE1291A'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'Invalid request.'],
'Code' => ['description' => 'The error code. This parameter is empty if the request is successful.', 'type' => 'string', 'title' => '', 'example' => 'InvalidRequest'],
'Latency' => ['description' => 'The request latency. Unit: milliseconds.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '123'],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'UpdateFunctionResource',
'description' => 'Updates the information of a resource specified by its name. You can modify only the data and description of the resource.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunctionResource'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"OK\\",\\n \\"HttpCode\\": 200,\\n \\"RequestId\\": \\"7E375703-5B12-5466-8B48-C4D01AE1291A\\",\\n \\"Message\\": \\"Invalid request.\\",\\n \\"Code\\": \\"InvalidRequest\\",\\n \\"Latency\\": 123\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateSearchStrategy' => [
'summary' => 'This operation supports dry runs.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/search-strategies/{strategyName}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchBNTDZX'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'group_name'],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '"110157886"'],
],
[
'name' => 'strategyName',
'in' => 'path',
'schema' => ['description' => 'The name of the policy.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'default'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The search policy. For more information, see [SearchStrategy](~~2400242~~).', 'required' => false, '$ref' => '#/components/schemas/SearchStrategy', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'ABCDEFGH'],
],
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateSearchStrategy',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ABCDEFGH\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateSortScript' => [
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREopensearchN8M8WS'],
],
'parameters' => [
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name or ID of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my_app', 'title' => ''],
],
[
'name' => 'appVersionId',
'in' => 'path',
'schema' => ['description' => 'The ID of the application version.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'scriptName',
'in' => 'path',
'schema' => ['description' => 'The name of the script.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_cava', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'type' => 'object',
'properties' => [
'description' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '9F165784-5507-5342-ABF3-545293F9808A', 'title' => ''],
],
'example' => '[]',
'title' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateSortScript',
'summary' => 'Modifies the description of a sort script.',
'description' => 'Modifies the description of a sort script.',
'responseParamsDescription' => '**Examples**'."\n"
."\n"
.'Sample request'."\n"
."\n"
.'```'."\n"
.'PUT /v4/openapi/app-groups/my_app/apps/123456/sort-scripts/test_cava'."\n"
.'{'."\n"
.' "description" : "just for test"'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'Sample response'."\n"
."\n"
.'XML format'."\n"
."\n"
.'```'."\n"
.'ABCDEFGH'."\n"
.'```'."\n"
."\n"
.'JSON format'."\n"
."\n"
.'```'."\n"
.'{"requestId":"ABCDEFGH"}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9F165784-5507-5342-ABF3-545293F9808A\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'UpdateSummaries' => [
'summary' => 'This operation supports dry runs.',
'path' => '/v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/summaries',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '55273',
'abilityTreeNodes' => ['FEATUREopensearchYVAV9H', 'FEATUREopensearchBZ8NMO'],
],
'parameters' => [
[
'name' => 'dryRun',
'in' => 'query',
'schema' => ['description' => 'Specifies whether the request is a dry run.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'appGroupIdentity',
'in' => 'path',
'schema' => ['description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '“my_app_group_name”', 'title' => ''],
],
[
'name' => 'appId',
'in' => 'path',
'schema' => ['description' => 'The version number of the application.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '10157886', 'title' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => 'The request body.',
'type' => 'array',
'items' => [
'description' => 'The request body.',
'type' => 'object',
'properties' => [
'field' => ['description' => 'The field.', 'type' => 'string', 'required' => false, 'example' => '"title"', 'title' => ''],
'len' => ['description' => 'The length of a segment.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''],
'element' => ['description' => 'The HTML tag that is used to highlight terms in red.', 'type' => 'string', 'required' => false, 'example' => '"em" ', 'title' => ''],
'ellipsis' => ['description' => 'The connector that is used to connect segments.', 'type' => 'string', 'required' => false, 'example' => '"..."', 'title' => ''],
'snippet' => ['description' => 'The number of segments.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'result' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7A389E09-7964-5A2B-FE9D-F6CFA7162852', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'5XX' => [
'schema' => [
'type' => 'object',
'properties' => [
'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'title' => 'UpdateSummaries',
'requestParamsDescription' => '**Request body**'."\n"
."\n"
.'| Field | Type | Required | Example | Description |'."\n"
.'| ------------ | ------- | -------- | ------- | ------------------------------------------------------------------------- |'."\n"
.'| \\[] | Object | Yes | | The summary settings.
For more information, see [Summary](~~170016~~). |'."\n"
.'| \\[].field | String | Yes | "title" | The field. |'."\n"
.'| \\[].len | Integer | Yes | 50 | The length of a segment. |'."\n"
.'| \\[].element | String | Yes | "em" | The HTML tag that is used to highlight terms. |'."\n"
.'| \\[].ellipsis | String | Yes | "..." | The connector that is used to connect segments. |'."\n"
.'| \\[].snippet | Integer | Yes | 1 | The number of segments. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSummary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"7A389E09-7964-5A2B-FE9D-F6CFA7162852\\"\\n}","type":"json"}]',
'translator' => 'manual',
],
'ValidateDataSources' => [
'summary' => 'Validates data sources.',
'path' => '/v4/openapi/assist/data-sources/validations',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The request parameters. For more information, see [DataSource](~~170005~~).', '$ref' => '#/components/schemas/DataSource', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8FA2B338-AFDC-46B4-A132-B5487820C2BF'],
'result' => [
'description' => 'The request results.',
'type' => 'array',
'items' => [
'description' => 'The result body.',
'type' => 'object',
'properties' => [
'code' => ['description' => 'The status code.', 'type' => 'string', 'example' => 'SUCCEED', 'title' => ''],
'message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'Validate succeeded', 'title' => ''],
'dataSource' => [
'description' => 'The data source.',
'type' => 'object',
'properties' => [
'tableName' => ['description' => 'The table name.', 'type' => 'string', 'example' => 'user_activity_decision', 'title' => ''],
'type' => ['description' => 'The data source type.', 'type' => 'string', 'example' => 'rds', 'title' => ''],
'parameters' => ['description' => 'The parameter body.', 'type' => 'object', 'example' => '{}', 'title' => ''],
],
'example' => '{}',
'title' => '',
],
],
'example' => '{}',
'title' => '',
],
'example' => '[]',
'title' => '',
],
],
'example' => '{}',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8FA2B338-AFDC-46B4-A132-B5487820C2BF\\",\\n \\"result\\": [\\n {\\n \\"code\\": \\"SUCCEED\\",\\n \\"message\\": \\"Validate succeeded\\",\\n \\"dataSource\\": {\\n \\"tableName\\": \\"user_activity_decision\\",\\n \\"type\\": \\"rds\\",\\n \\"parameters\\": {}\\n }\\n }\\n ]\\n}","type":"json"}]',
'title' => 'ValidateDataSources',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateDataSources'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ValidateDataSources',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'translator' => 'manual',
],
],
'endpoints' => [
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.ap-southeast-1.aliyuncs.com', 'endpoint' => 'opensearch.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.cn-beijing.aliyuncs.com', 'endpoint' => 'opensearch.cn-beijing.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.cn-hangzhou.aliyuncs.com', 'endpoint' => 'opensearch.cn-hangzhou.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.cn-hongkong.aliyuncs.com', 'endpoint' => 'opensearch.cn-hongkong.aliyuncs.com', 'vpc' => 'opensearch-vpc.cn-hongkong.aliyuncs.com'],
['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.cn-qingdao.aliyuncs.com', 'endpoint' => 'opensearch.cn-qingdao.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.cn-shanghai.aliyuncs.com', 'endpoint' => 'opensearch.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.cn-shenzhen.aliyuncs.com', 'endpoint' => 'opensearch.cn-shenzhen.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'opensearch.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'opensearch.cn-zhangjiakou.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'opensearch.us-east-1.aliyuncs.com', 'endpoint' => 'opensearch.us-east-1.aliyuncs.com', 'vpc' => 'opensearch-vpc.us-east-1.aliyuncs.com'],
['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'opensearch.eu-central-1.aliyuncs.com', 'endpoint' => 'opensearch.eu-central-1.aliyuncs.com', 'vpc' => 'opensearch-vpc.eu-central-1.aliyuncs.com'],
['regionId' => 'cn-north-2-gov-1', 'regionName' => 'Beijing Government Cloud', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'opensearch.cn-north-2-gov-1.aliyuncs.com', 'endpoint' => 'opensearch.cn-north-2-gov-1.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionTask'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionResource'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunctionInstance'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateDataSources'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunctionDefaultInstance'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunctionTask'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionInstance'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunctionResource'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionVersion'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionInstance'],
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenerateMergedTable'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunctionInstance'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunctionResource'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionResource'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionTask'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionCurrentVersion'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionResources'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionTasks'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionDefaultInstance'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionInstances'],
['threshold' => '3', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInterventionDictionaryNerResults'],
],
],
'ram' => [
'productCode' => 'OpenSearch',
'productName' => 'Open Search',
'ramCodes' => ['opensearch'],
'ramLevel' => 'SERVICE',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'GetFunctionTask',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ModifyAppGroupQuota',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListFunctionTasks',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteFunctionResource',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateABTestFixedFlowDividers',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'StartSlowQueryAnalyzer',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:StartSlowQueryAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ModifySecondRank',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateABTestExperiment',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListSecondRanks',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeABTestGroup',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListProceedings',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListProceedings',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListFunctionInstances',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListQueryProcessorAnalyzerResults',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListSortExpressions',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListSortExpression',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateSearchStrategy',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateQueryProcessor',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListInterventionDictionaryEntries',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
[
'apiName' => 'CreateSortScript',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListSlowQueryQueries',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListSlowQueryQueries',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeApps',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeABTestScene',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListInterventionDictionaryNerResults',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
[
'apiName' => 'RemoveDataCollection',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteDataCollection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'DataCollection', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateABTestScene',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ABTestScenes', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups{#AppGroupId}'],
],
],
],
[
'apiName' => 'RemoveUserAnalyzer',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
[
'apiName' => 'DescribeInterventionDictionary',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
[
'apiName' => 'ReleaseSortScript',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeAppStatistics',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeAppStatistics',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeSecondRank',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UnbindESUserAnalyzer',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'RemoveScheduledTask',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateABTestGroup',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListABTestScenes',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'BindEsInstance',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:BindEsInstance',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListScheduledTasks',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateFetchFields',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppId}'],
],
],
],
[
'apiName' => 'RenewAppGroup',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetDomain',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:GetDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'PushInterventionDictionaryEntries',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
[
'apiName' => 'UpdateABTestScene',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateSecondRank',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteSecondRank',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListDataCollections',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListDataCollections',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'DataCollection', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetScriptFileNames',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SortScript', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeABTestExperiment',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'PushUserAnalyzerEntries',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
[
'apiName' => 'DescribeFirstRank',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeSlowQueryStatus',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeSlowQueryStatus',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteFunctionInstance',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Instance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateSummaries',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSummary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppId}'],
],
],
],
[
'apiName' => 'BindESUserAnalyzer',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateABTestExperiment',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteFunctionTask',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateFunctionTask',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListQueryProcessorNers',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListQueryProcessorNers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/*'],
],
],
],
[
'apiName' => 'ListQuotaReviewTasks',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UntagResources',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:UntagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:instance/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ModifyQueryProcessor',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeUserAnalyzer',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
[
'apiName' => 'ListSortScripts',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'RemoveQueryProcessor',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteQueryProqcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeDataCollction',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeDataCollection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'DataCollection', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GenerateMergedTable',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:GenerateMergedTable',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListFunctionResources',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'SaveSortScriptFile',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteSortScriptFile',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateSearchStrategy',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ModifyAppGroup',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:ModifyAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DisableSlowQuery',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DisableSlowQuery',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateFunctionResource',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ModifyFirstRank',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteABTestExperiment',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteSortScript',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'EnableSlowQuery',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:EnableSlowQuery',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateApp',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateFirstRank',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateFunctionInstance',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CompileSortScript',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetSortScriptFile',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SortScript', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListStatisticLogs',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListStatisticLogs',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListTagResources',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:instance/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListStatisticReport',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListStatisticReport',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeScheduledTask',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteABTestScene',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DeleteABTestGroup',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'TagResources',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:TagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:instance/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListSlowQueryCategories',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListSlowQueryCategories',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetFunctionInstance',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateInterventionDictionary',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/*'],
],
],
],
[
'apiName' => 'ListSearchStrategies',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListABTestGroups',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetFunctionCurrentVersion',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListABTestExperiments',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListABTestFixedFlowDividers',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:ListApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateScheduledTask',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ReplaceAppGroupCommodityCode',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:UpdateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#appGroupIdentity}'],
],
],
],
[
'apiName' => 'ListUserAnalyzerEntries',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:DescribeUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
],
],
],
[
'apiName' => 'UpdateAppGroupDeleteProtection',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:UpdateAppGroupDeleteProtection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListDataSourceTables',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListDataSourceTables',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateABTestGroup',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'RemoveApp',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:RemoveApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeApp',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListDataSourceTableFields',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ListDataSourceTableFields',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeAppGroup',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ValidateDataSources',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:ValidateDataSources',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetFunctionResource',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListInterventionDictionaries',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListInterventionDictionaries',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/*'],
],
],
],
[
'apiName' => 'CreateUserAnalyzer',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateUserAnalyzer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/*'],
],
],
],
[
'apiName' => 'RemoveInterventionDictionary',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
[
'apiName' => 'ListInterventionDictionaryRelatedEntities',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:DescribeInterventionDictionary',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
],
],
],
[
'apiName' => 'ListQueryProcessors',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListUserAnalyzers',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListUserAnalyzers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/*'],
],
],
],
[
'apiName' => 'CreateFunctionInstance',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UnbindEsInstance',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'opensearch:UnBindEsInstance',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetFunctionVersion',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListFirstRanks',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateAppGroup',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:CreateAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/*'],
],
],
],
[
'apiName' => 'UpdateFunctionResource',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetSearchStrategy',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'DescribeQueryProcessor',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'opensearch:DescribeQueryProcessor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ModifyScheduledTask',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:ModifyScheduledTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateFunctionDefaultInstance',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetFunctionDefaultInstance',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeFunction',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FunctionDefaultInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'RemoveAppGroup',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:RemoveAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
],
],
],
[
'apiName' => 'RemoveFirstRank',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteFirstRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'CreateAppGroupCredentials',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'opensearch:WriteAppGroupCredential',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroupCredential', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:appGroup/{#AppGroupId}'],
],
],
],
[
'apiName' => 'RemoveSearchStrategy',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteSearchStrategy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'GetSortScript',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'opensearch:DescribeSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'ListAppGroups',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'opensearch:ListAppGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/*'],
],
],
],
[
'apiName' => 'RemoveSecondRank',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'opensearch:WriteSecondRank',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
[
'apiName' => 'UpdateSortScript',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'opensearch:WriteSortScript',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'OpenSearch', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'FunctionTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'FunctionResource', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'AbTestExperiment', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'SecondRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'AbTestGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'FirstRank', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'SearchStrategy', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}'],
['validationType' => 'always', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'DataCollection', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'ABTestScenes', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/{#AnalyzerId}'],
['validationType' => 'always', 'resourceType' => 'ScheduledTask', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'App', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppId}'],
['validationType' => 'always', 'resourceType' => 'AbTestScene', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'SortScript', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'QueryProcessor', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/*'],
['validationType' => 'always', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:instance/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'InterventionDictionary', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/*'],
['validationType' => 'always', 'resourceType' => 'FunctionInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:functions/*'],
['validationType' => 'always', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#appGroupIdentity}'],
['validationType' => 'always', 'resourceType' => 'Analyzer', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:user-analyzers/*'],
['validationType' => 'always', 'resourceType' => 'AppGroup', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:app-groups/*'],
['validationType' => 'always', 'resourceType' => 'FunctionDefaultInstance', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:apps/{#AppGroupId}'],
['validationType' => 'always', 'resourceType' => 'AppGroupCredential', 'arn' => 'acs:opensearch:{#regionId}:{#accountId}:appGroup/{#AppGroupId}'],
],
],
];