API overview

Updated at:

API standards and multilingual preset SDKs

The OpenAPI of this product (OpenSearch/2017-12-25) uses the ROA signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.

Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.

Custom signature scenarios

If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.

Account and security preparation

Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.

Application instances

API

Title

Description

Application management Application management
DescribeAppGroup View application instance details Queries the details of an OpenSearch application.
RenewAppGroup RenewAppGroup Renews an application. This API operation is unavailable. To renew an application, use the OpenSearch console.
CreateAppGroup Create an application Creates an OpenSearch application.
ModifyAppGroup ModifyAppGroup Modifies the properties of an OpenSearch application or sets its online version.
ModifyAppGroupQuota Modify application quota Modifies the quota of an OpenSearch application.
UpdateAppGroupDeleteProtection UpdateAppGroupDeleteProtection Updates the delete protection status for an application group.
RemoveAppGroup RemoveAppGroup Deletes an OpenSearch application.
ListAppGroups Retrieve application list Retrieves the list of OpenSearch applications.
Application versions Application versions
CreateApp Create an application version Creates a version for an OpenSearch application.
RemoveApp RemoveApp Deletes a version of an OpenSearch application.
DescribeApps Retrieve the version list of an application Retrieves the version list of an OpenSearch application.
DescribeApp View application version details Queries the details of a specific OpenSearch application version.
DescribeAppStatistics DescribeAppStatistics Queries the statistics about a version of an OpenSearch application.

Instance-related features

API

Title

Description

Time-based elastic scaling Time-based elastic scaling
CreateElasticPlan Create an elastic plan Creates an elastic plan.
RemoveElasticPlan Delete an elastic plan Retrieves the details of an elastic plan.
ModifyElasticPlan Update an elastic plan Updates an elastic plan.
ListElasticPlans Retrieve a list of elastic plans Retrieves a list of elastic plans.
DescribeElasticPlan Retrieve elastic plan details Retrieves the details of an elastic plan.
Custom analyzers Custom analyzers
ListUserAnalyzers Retrieve the list of custom tokenizers for a user Retrieves the list of custom tokenizers for a user.
CreateUserAnalyzer Create Custom Analyzer Creates a custom analyzer.
DescribeUserAnalyzer DescribeUserAnalyzer Retrieves the details of a custom analyzer.
RemoveUserAnalyzer RemoveUserAnalyzer Deletes a custom analyzer.
ListUserAnalyzerEntries ListUserAnalyzerEntries Queries the entries of a custom analyzer.
PushUserAnalyzerEntries PushUserAnalyzerEntries Applies changes to the entries of a custom analyzer.
ABTest ABTest
Experiment scenarios Experiment scenarios
ListABTestScenes ListABTestScenes Queries test scenarios.
CreateABTestScene Create an aBTest experiment scene Creates an ABTest experiment scene.
DescribeABTestScene DescribeABTestScene Query an A/B test scenario.
UpdateABTestScene Modify an experiment scene Modifies an ABTest experiment scene.
DeleteABTestScene Delete an aBTest experiment scenario Deletes an ABTest experiment scenario.
Experiment groups Experiment groups
ListABTestGroups ListABTestGroups Retrieves a list of test groups.
CreateABTestGroup CreateABTestGroup Creates an experiment group.
DeleteABTestGroup Delete an aBTest experiment group Deletes an ABTest experiment group.
DescribeABTestGroup DescribeABTestGroup Retrieves the details of an A/B test group.
UpdateABTestGroup UpdateABTestGroup Modifies a test group.
Experiments Experiments
ListABTestExperiments List aBTest experiments Lists ABTest experiments.
CreateABTestExperiment Create an aBTest experiment Creates an experiment.
DescribeABTestExperiment DescribeABTestExperiment Retrieves the details of an experiment.
UpdateABTestExperiment UpdateABTestExperiment Updates the parameters of an A/B test experiment.
DeleteABTestExperiment Delete an aBTest experiment Deletes an ABTest experiment.
Whitelists Whitelists
ListABTestFixedFlowDividers ListABTestFixedFlowDividers Lists whitelists.
UpdateABTestFixedFlowDividers UpdateABTestFixedFlowDividers Updates the whitelist data.
Rough sort expressions Rough sort expressions
ListFirstRanks Retrieve rough sort configuration list for a specified application version Retrieves the rough sort configuration list for a specified OpenSearch application version.
CreateFirstRank Create a rough sort expression configuration for an application version Creates a rough sort expression configuration for an OpenSearch application version. When dryRun=true, the rough sort expression is validated. By default, dryRun is not passed and defaults to false.
DescribeFirstRank DescribeFirstRank Queries the rough sort expression configured for an OpenSearch application version.
RemoveFirstRank Delete rough sort rule Deletes the rough sort configuration of a specified OpenSearch application version.
ModifyFirstRank ModifyFirstRank 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.
Fine sort expressions Fine sort expressions
ListSecondRanks ListSecondRanks Lists the fine sort expressions for a specific version of an OpenSearch application.
CreateSecondRank Create a fine sort expression configuration for an application version Creates a fine sort expression configuration for an application version. When dryRun is set to true, the fine sort expression is validated only. By default, dryRun is set to false if not specified.
DescribeSecondRank View fine sort expression configuration of an application version Queries the fine sort expression configuration of an OpenSearch application version.
ModifySecondRank ModifySecondRank 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.
RemoveSecondRank RemoveSecondRank Deletes a fine sort expression from a version of an OpenSearch application.
Query analyzers Query analyzers
ListQueryProcessors ListQueryProcessors Queries a list of query analysis rules configured for a specific version of an OpenSearch application.
CreateQueryProcessor Create a query analysis rule Creates a query analysis rule. When dryRun=true, the system validates the query analysis rule. By default, dryRun is not specified and defaults to false.
ModifyQueryProcessor ModifyQueryProcessor 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.
RemoveQueryProcessor Delete a query analysis rule for a specified application version Deletes a query analysis rule for a specified OpenSearch application version.
DescribeQueryProcessor DescribeQueryProcessor Describes a query analysis rule for a version of an OpenSearch application.
ListQueryProcessorNers Retrieve recommended entity type importance settings Retrieves the recommended importance settings for Named Entity Recognition entity types.
ListQueryProcessorAnalyzerResults ListQueryProcessorAnalyzerResults Tests the results of query analysis. This operation can be called only for existing applications of the Open Source-compatible Edition.
Intervention dictionaries Intervention dictionaries
ListInterventionDictionaries ListInterventionDictionaries Retrieves a list of intervention dictionaries.
CreateInterventionDictionary Create an intervention dictionary Creates an intervention dictionary.
DescribeInterventionDictionary DescribeInterventionDictionary Retrieves the details of an intervention dictionary.
RemoveInterventionDictionary Delete an intervention dictionary Deletes an intervention dictionary.
ListInterventionDictionaryEntries ListInterventionDictionaryEntries Queries the intervention entries in an intervention dictionary.
PushInterventionDictionaryEntries Accept intervention entry changes Accepts intervention entry changes.
ListInterventionDictionaryRelatedEntities ListInterventionDictionaryRelatedEntities 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.
ListInterventionDictionaryNerResults ListInterventionDictionaryNerResults Retrieves the Named Entity Recognition (NER) results.
Optimization wizard Optimization wizard
EnableSlowQuery EnableSlowQuery Enables the slow query service for the optimizer.
DisableSlowQuery DisableSlowQuery Disables the slow query service for Search Diagnoser.
DescribeSlowQueryStatus DescribeSlowQueryStatus Queries the status of the slow query feature.
StartSlowQueryAnalyzer StartSlowQueryAnalyzer Starts a slow query analysis task.
ListSlowQueryQueries List slow query statements Lists the slow query statements from the optimization advisor.
ListSlowQueryCategories List slow query optimization suggestions from the optimization advisor Lists the slow query optimization suggestions from the optimization advisor.
Quota approval Quota approval
ListQuotaReviewTasks ListQuotaReviewTasks Lists the quota approval tickets for a specified OpenSearch application.
Scheduled tasks Scheduled tasks
ListScheduledTasks ListScheduledTasks Queries a list of scheduled tasks for an OpenSearch application.
CreateScheduledTask Create a scheduled task for an application Creates a scheduled task for an OpenSearch application.
DescribeScheduledTask DescribeScheduledTask Query a scheduled task for an OpenSearch application.
ModifyScheduledTask ModifyScheduledTask Modifies a scheduled task.
RemoveScheduledTask RemoveScheduledTask Deletes a scheduled task from an OpenSearch application.
Search strategies Search strategies
ListSortExpressions Retrieve sort expression list for an application version Retrieves the list of sort expressions for an application version.
Elasticsearch engine instances Elasticsearch engine instances
UnbindEsInstance UnbindEsInstance Unbinds an Elasticsearch instance from an OpenSearch application.
BindEsInstance BindEsInstance Binds an Elasticsearch instance as a dependency.
BindESUserAnalyzer Associate a custom analyzer with an elasticsearch instance Associates a custom analyzer with an Elasticsearch instance.
UnbindESUserAnalyzer Unbind a custom analyzer from an elasticsearch instance Unbinds a custom analyzer from an Elasticsearch instance.
Current processing flows Current processing flows
ListProceedings List ongoing offline import tasks for the application group Retrieves the current processing flow.
Statistics Statistics
ListStatisticLogs ListStatisticLogs Queries log statistics, such as application error logs, hotword rankings, and slow query logs.
ListStatisticReport ListStatisticReport Queries statistical reports, such as application, drop-down suggestion, top search hint, A/B test, and data quality reports.
Cava scripts Cava scripts
ListSortScripts ListSortScripts Lists all sort scripts for a specified application version.
UpdateSortScript Modify sort script description Modifies the description of a sort script.
SaveSortScriptFile SaveSortScriptFile Uploads a sort script.
ReleaseSortScript ReleaseSortScript Releases a sort script.
GetSortScriptFile Retrieve sort script content Retrieves the content of a sort script.
GetSortScript Retrieve sort script details Retrieves the details of a sort script.
GetScriptFileNames GetScriptFileNames Retrieves the names of all files in a specified script for a specific application version.
DeleteSortScriptFile DeleteSortScriptFile Deletes a script file.
DeleteSortScript DeleteSortScript Deletes a sort script.
CreateSortScript Create a sort script Creates a sort script.
CompileSortScript Compile a sort script Compiles a sort script.
Query policies Query policies
UpdateSearchStrategy UpdateSearchStrategy This operation supports dry runs.
RemoveSearchStrategy Delete a query analysis policy Deletes a query analysis policy.
ListSearchStrategies ListSearchStrategies Retrieves the details of query policies.
GetSearchStrategy GetSearchStrategy Retrieves the details of a query policy.
CreateSearchStrategy Create a query analysis policy Creates a query analysis policy.

Version-related features

API

Title

Description

Default display fields Default display fields
UpdateFetchFields UpdateFetchFields This operation supports dry runs.
Search result summaries Search result summaries
UpdateSummaries UpdateSummaries This operation supports dry runs.

Algorithm-related features

API

Title

Description

CreateFunctionResource Create an algorithm resource Creates an algorithm resource under a specified feature.
GetFunctionCurrentVersion GetFunctionCurrentVersion Retrieves the version information of the feature that is used to create an instance.
GetFunctionVersion GetFunctionVersion Queries the information about a function version.
GetFunctionDefaultInstance Get default instance Retrieves the default algorithm instance used by an application.
UpdateFunctionDefaultInstance UpdateFunctionDefaultInstance 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.
ListFunctionTasks Retrieve training records Retrieves training records. Results are sorted by start time in descending order.
GetFunctionTask Retrieve training details Retrieves training details.
DeleteFunctionTask DeleteFunctionTask Deletes a training record. A training record that is in progress cannot be deleted.
CreateFunctionTask Start algorithm training Starts a training task.
ListFunctionInstances Get instance list Retrieves all instances that meet the specified conditions under the current user.
GetFunctionInstance GetFunctionInstance Query an algorithm instance by instance name.
DeleteFunctionInstance Delete an algorithm instance Deletes an algorithm instance. Before deleting, ensure that the instance is not in use to avoid affecting online services.
UpdateFunctionInstance Update an algorithm instance Updates the instance information based on the instance name.
GetFunctionResource GetFunctionResource Retrieves the specified algorithm resource.
ListFunctionResources ListFunctionResources Lists the algorithm resources.
DeleteFunctionResource DeleteFunctionResource Deletes a specified algorithm resource.
UpdateFunctionResource Update an algorithm resource Updates an algorithm resource.
CreateFunctionInstance Create an algorithm instance Creates an algorithm instance for a specified feature.

Other documents (not listed in this directory)

API

Title

Description

ValidateDataSources ValidateDataSources Validates data sources.
ReplaceAppGroupCommodityCode ReplaceAppGroupCommodityCode Converts a service-based application to an instance-based application.
ListDataSourceTables Retrieve the data source list of a specified instance Retrieves all data from a specified data source.
ListDataSourceTableFields Retrieve all fields of a specified data table Retrieves all fields of a specified data table. This is an internal operation.
GetDomain GetDomain Retrieves the industry type.
GenerateMergedTable GenerateMergedTable Queries the information about a wide table that is generated after a JOIN operation is performed on multiple tables.
DescribeRegions DescribeRegions Retrieves the endpoints for all regions.

Others

API

Title

Description

DescribeDataCollction DescribeDataCollction Retrieves the details of a data collection for a specified application.
ListDataCollections ListDataCollections Retrieves the data collection checklist of an OpenSearch application.
RemoveDataCollection RemoveDataCollection Disables data collection.
UntagResources UntagResources Removes tags from resources.
ListTagResources ListTagResources Queries the tags of specified resources.
TagResources TagResources Adds tags to resources.
CreateAppGroupCredentials Create application group credential Creates an access credential for a specified application group on demand. Supports dryRun mode to preview the operation.