API overview

Updated at:

This topic describes the API operations for Alibaba Cloud Elasticsearch, Kibana, Logstash, and Beats. To use an API operation that is not listed, contact an Alibaba Cloud technical support engineer.

Elasticsearch

Category

API

Description

Instance management

createInstance

Creates an Elasticsearch instance.

ListInstance

Lists the details of all or specified instances.

DescribeInstance

Queries the details of a specified instance.

EstimatedRestartTime

Obtains the estimated time required to restart an instance.

RestartInstance

Restarts a specified instance.

UpdateInstanceChargeType

Converts a pay-as-you-go instance to a subscription instance.

UpdateDescription

Updates the name of a specified instance.

DeleteInstance

Releases a specified pay-as-you-go instance. After the instance is released, its physical resources are reclaimed. All data is lost and cannot be recovered. The disks attached to the instance nodes and their snapshots are also released.

CancelDeletion

Recovers a released instance that is in the frozen state.

RenewInstance

Renews a subscription instance.

ActivateZones

Recovers nodes in an offline zone. This operation is valid only for multi-zone instances.

DeactivateZones

Takes some zones offline when multiple zones are available. The nodes in the offline zones are migrated to other zones.

DescribeRegions

Obtains the region information of Alibaba Cloud Elasticsearch.

UpdateReadWritePolicy

Enables or disables the write high availability (HA) feature for a cluster. This feature is supported only for instances in the China (Beijing) region.

InterruptElasticsearchTask

Interrupts a configuration change on an instance. This operation is valid only for instances that are in the activating state. After the interruption, the instance enters the suspended state.

ResumeElasticsearchTask

Resumes an interrupted configuration change on an instance.

ListAllNode

Obtains the information of all nodes in a cluster.

DescribeElasticsearchHealth

Obtains the health status of a specified instance.

GetElastictask

Obtains the auto scaling rules of a cluster. You can call this API operation only after you purchase elastic nodes when you create an instance.

ModifyElastictask

Updates the auto scaling rules of a cluster.

ListInstanceIndices

Obtains the index list of a cluster.

Note

The ListInstanceIndices API operation applies only to ES instances that have indexing service enabled. To query index information, use the ES API. For more information, see the cat indices API.

MigrateToOtherZone

Migrates nodes from the current zone to a destination zone.

MoveResourceGroup

Migrates an instance to a specified resource group.

ModifyInstanceMaintainTime

Changes and enables the maintenance window for an instance.

GetRegionConfiguration

Obtains the configuration information of the current region. The return value provides full data for reference only. The actual configurations are subject to what is displayed on the console and the buy page.

ListShardRecoveries

Obtains a list of ongoing and completed shard recoveries. By default, the information of ongoing shard recoveries is returned.

CapacityPlan

Recommends the optimal cluster configuration for capacity planning based on the business scenario, queries per second (QPS), and log generation volume.

GetOpenStoreUsage

Collects statistics on the storage capacity and usage of an OpenStore instance.

CreateComponentIndex

Creates an Elasticsearch component template.

ListComponentIndices

Obtains a list of Elasticsearch component templates.

DescribeComponentIndex

Views the details of an Elasticsearch component template.

UpdateComponentIndex

Updates an Elasticsearch component template.

DeleteComponentIndex

Deletes an Elasticsearch component template.

ListDeprecatedTemplates

Views a list of legacy index templates.

DescribeDeprecatedTemplate

Views the details of a legacy index template.

DeleteDeprecatedTemplate

Deletes a legacy index template.

Tag management

ListTags

Queries all visible user tags.

ListTagResources

Queries visible resource-tag relations.

TagResources

Creates resource-tag relations.

UntagResources

Deletes user resource-tag relations.

Data migration

GetTransferableNodes

Specifies a node type and the number of nodes to obtain the nodes that can be used for data migration.

ValidateTransferableNodes

Checks whether data on specific nodes of a specified instance can be migrated.

TransferNode

Executes a data migration task.

ListDataTasks

Obtains the information of a data migration task.

GetClusterDataInformation

Obtains the data information of a cluster.

DeleteDataTask

Deletes an index migration task.

CancelTask

Cancels a data migration task.

Instance upgrade or downgrade

GetSuggestShrinkableNodes

Specifies a node type and the number of nodes to obtain the nodes that can be scaled in.

ValidateShrinkNodes

Checks whether specific nodes of a specified instance can be scaled in.

ShrinkNode

Performs a scale-in operation on cluster nodes.

UpgradeEngineVersion

Upgrades the version or kernel patch version of an Elasticsearch instance. You can upgrade an instance from version 5.5.3 to 5.6.16, from 5.6.16 to 6.3.2, or from 6.3.2 to 6.7.0. Upgrades between other versions are not supported. For more information, see Upgrade versions.

UpdateInstance

Changes the configuration of a cluster (upgrade or downgrade).

Cluster configuration

UpdateInstanceSettings

Updates the YML parameter settings of a specified instance.

UpdateHotIkDicts

Updates the IK hot-word dictionary of a specified instance.

UpdateSynonymsDicts

Updates the synonym dictionary of a specified instance.

UpdateDict

Updates the user dictionary of a specified instance.

UpdateAliwsDict

Updates the dictionary file of the AliNLP analysis plug-in (analysis-aliws) for a specified instance. You can configure a custom dictionary.

ListDictInformation

Obtains and verifies the details of your dictionary file stored in OSS when you add the file.

UpdateAdvancedSetting

Changes the Garbage Collector configuration of a specified instance.

DescribeTemplates

Obtains the scenario-specific template configuration of a specified instance.

UpdateExtendConfig

Modifies the scenario-specific configuration template of a cluster.

UpdateTemplate

Modifies the content of a scenario-specific template for a cluster.

RecommendTemplates

Obtains recommended cluster configurations.

ListDicts

Obtains the details of a specified type of dictionary and a signed public URL for download.

Plugin management

ListPlugins

Obtains the plug-in list of a specified instance.

InstallSystemPlugin

Installs a preset system plug-in.

UninstallPlugin

Uninstalls an installed preset plug-in.

InstallUserPlugins

Installs a custom plug-in that has been uploaded to the Elasticsearch console.

Cluster monitoring

GetEmonMonitorData

Queries the Grafana metric monitoring data of an instance.

GetEmonGrafanaDashboards

Obtains a list of Grafana dashboards.

GetEmonGrafanaAlerts

Obtains a list of Grafana alerts.

PostEmonTryAlarmRule

Sends a test alert message.

Log query

ListSearchLog

Views instance logs.

Security settings

TriggerNetwork

Enables or disables public or internal-facing access to Elasticsearch and Kibana.

UpdatePrivateNetworkWhiteIps

Updates the VPC internal-facing access whitelist of a specified instance.

UpdatePublicWhiteIps

Updates the public endpoint access whitelist of a specified instance.

UpdatePublicNetwork

Enables or disables the public endpoint of a specified instance.

UpdateWhiteIps

Updates the VPC internal-facing access whitelist of a specified instance.

ModifyWhiteIps

Updates the access whitelist of a specified instance.

UpdateAdminPassword

Updates the password of the elastic account for a specified instance.

OpenHttps

Enables the HTTPS protocol. Before you enable this protocol, make sure that you have purchased client nodes. This requirement does not apply to instances of version 8.5, 7.16, or 7.10 in some regions.

CloseHttps

Disables the HTTPS protocol.

AddConnectableCluster

Configures network interconnection for an instance.

DeleteConnectedCluster

Removes an interconnected instance.

DescribeConnectableClusters

Obtains a list of instances that can be interconnected with the current instance. Instances that are already interconnected are not included.

ListConnectedClusters

Obtains a list of instances that are interconnected with the current instance.

CreateVpcEndpoint

Creates an endpoint in the service account VPC to connect to the endpoint service in your VPC. This establishes a one-way network connection.

DeleteVpcEndpoint

Deletes an endpoint in a service VPC.

ListVpcEndpoints

Views the status of an endpoint in a service VPC.

Data backup

CreateSnapshot

Manually creates a snapshot backup for a cluster.

DescribeSnapshotSetting

Obtains the data backup settings of a cluster.

UpdateSnapshotSetting

Updates the data backup settings of a specified instance.

ListSnapshotReposByInstanceId

Obtains a list of cross-cluster OSS repository settings for the current instance.

ListAlternativeSnapshotRepos

Obtains the OSS reference repositories that can be added to the current instance.

AddSnapshotRepo

Creates a reference repository when you configure a cross-cluster OSS repository.

DeleteSnapshotRepo

Deletes a cross-cluster OSS reference repository.

Artificial intelligence for IT operations

OpenDiagnosis

Enables the AIOps feature for an instance.

CloseDiagnosis

Disables the AIOps feature for an instance.

DiagnoseInstance

Immediately diagnoses an instance.

ListDiagnoseReport

Obtains historical AIOps reports.

ListDiagnoseReportIds

Obtains the IDs of historical AIOps reports.

ListDiagnoseIndices

Obtains the diagnostic indexes for the health diagnosis feature in the AIOps module of a specified instance.

DescribeDiagnoseReport

Views a historical AIOps report.

DescribeDiagnosisSettings

Obtains the scenario settings for AIOps.

UpdateDiagnosisSettings

Updates the AIOps scenario settings for an instance.

Index management

CreateIndexTemplate

Creates a cluster index template. This can be used for component-based settings of index templates.

DeleteIndexTemplate

Deletes an index template.

UpdateIndexTemplate

Updates the component-based settings of an index template.

DescribeIndexTemplate

Views the details of a component index template, including the index lifecycle.

ListIndexTemplates

Queries a list of index templates.

DescribeILMPolicy

Queries the details of a specified index lifecycle.

ListILMPolicies

Queries a list of existing index lifecycle management (ILM) policies.

CreateILMPolicy

Creates an ILM policy.

DeleteILMPolicy

Deletes a specified lifecycle policy definition.

UpdateILMPolicy

Modifies an ILM policy.

CreateDataStream

Creates a data stream.

DeleteDataStream

Deletes a data stream.

RolloverDataStream

Manually rolls over a matching index under a data stream. After this operation, a new index is created for the current data stream and becomes the new write index for the data stream.

ListDataStreams

Views a list of data streams.

CloseManagedIndex

Disables the cloud hosting feature for an index in an Indexing Service cluster. This operation is irreversible. You cannot re-enable the feature after you disable it.

Kibana

API

Description

DescribeKibanaSettings

Obtains the Kibana configuration.

UpdateKibanaSettings

Modifies the Kibana configuration. Currently, only the Kibana language configuration can be modified.

ListKibanaPlugins

Obtains a list of Kibana plug-ins.

InstallKibanaSystemPlugin

Installs a preset Kibana plug-in. The Kibana node must have at least 2 CPU cores and 4 GB of memory.

UninstallKibanaPlugin

Uninstalls a Kibana plug-in.

UpdateKibanaWhiteIps

Updates the Kibana access whitelist of a specified instance.

Logstash

Category

API

Description

Instance management

CreateLogstash

Creates a Logstash instance.

ListLogstash

Lists the details of all or specified Logstash instances.

DescribeLogstash

Queries the details of a specified instance.

UpdateLogstash

Modifies the information of a specified instance, such as the number of nodes, quota, name, and disk size.

RenewLogstash

Renews an instance.

RestartLogstash

Restarts a specified instance. After the restart, the instance enters the activating state.

UpdateLogstashDescription

Modifies the name of a specified instance.

UpdateLogstashChargeType

Converts a pay-as-you-go Alibaba Cloud Logstash instance to a subscription instance.

EstimatedLogstashRestartTime

Obtains the estimated time required to restart a Logstash instance.

DeleteLogstash

Releases a specified instance.

CancelLogstashDeletion

Recovers a released Logstash instance that is in the frozen state.

Cluster configuration

UpdateLogstashSettings

Updates the configuration of a specified Logstash instance.

ListExtendfiles

Obtains the extension file configuration of a Logstash instance.

UpdateExtendfiles

Updates the extension file configuration of a Logstash instance.

Cluster monitoring

ListAvailableEsInstanceIds

When you configure X-Pack monitoring for a Logstash instance, obtains a list of available Elasticsearch instances that support X-Pack monitoring.

ValidateConnection

In the monitoring and alerting configuration of a Logstash instance, verifies the connectivity of the Elasticsearch instance that provides X-Pack monitoring.

UpdateXpackMonitorConfig

Updates the X-Pack monitoring and alerting configuration of a Logstash instance.

DescribeXpackMonitorConfig

Obtains the X-Pack monitoring configuration of a Logstash instance.

Plugin management

ListLogstashPlugins

Obtains the details of all or specified plug-ins.

InstallLogstashSystemPlugin

Installs a plug-in.

UninstallLogstashPlugin

Uninstalls an installed plug-in.

Log query

ListLogstashLog

Views the logs of a Logstash instance.

Change task management

InterruptLogstashTask

Interrupts an instance change task. After the interruption, the instance enters the suspended state.

ResumeLogstashTask

Resumes an interrupted instance change task. After the resumption, the instance enters the activating state.

Pipeline management

CreatePipelines

Creates a Logstash pipeline.

ListPipeline

Obtains the pipeline list of a Logstash instance.

DescribePipeline

Obtains the pipeline information of a Logstash instance.

UpdatePipelines

Updates Logstash pipeline information.

RunPipelines

Immediately deploys a Logstash pipeline.

StopPipelines

Stops running a Logstash pipeline.

UpdatePipelineManagementConfig

Updates the Logstash pipeline management method.

DescribePipelineManagementConfig

Obtains the Logstash pipeline management configuration.

DeletePipelines

Deletes a specified Logstash pipeline.

ListPipelineIds

When you configure Kibana pipeline management, tests the connectivity between Logstash and Kibana and obtains a list of pipeline IDs created on the destination Kibana.

Beats

API

Description

CreateCollector

Creates a data collector.

DescribeCollector

Obtains the details of a data collector instance.

ReinstallCollector

Retries the installation of a data collector that failed to be installed during creation.

ListCollectors

Obtains a list of data collectors.

ListDefaultCollectorConfigurations

Obtains the default configuration file of a data collector.

UpdateCollectorName

Modifies the name of a data collector.

UpdateCollector

Updates the information of a data collector instance.

StartCollector

Starts a data collector.

RestartCollector

Restarts a data collector.

StopCollector

Stops a running data collector.

DeleteCollector

Deletes a data collector.

ListEcsInstances

Obtains a list of ECS machines.

ModifyDeployMachine

Updates the ECS machines on which a data collector is installed.

ListNodes

Views the status of the ECS machines on which a data collector is installed.

ListAckClusters

Obtains a list of Container Service for Kubernetes (ACK) clusters.

ListAckNamespaces

Views all namespaces in a specified ACK cluster.

DescribeAckOperator

Views the information of the Elasticsearch Operator installed on a specified ACK cluster.

InstallAckOperator

Installs Elasticsearch Operator on a specified ACK cluster.

Advanced monitoring and alerts

API

Description

ListInstanceHistoryEvents

Views the list of hardware O&M events triggered by an Elasticsearch cluster.

RebootInstanceNode

Restarts an ECS node in an Alibaba Cloud Elasticsearch instance.

APM

API

Description

StartApm

Starts an APM Server instance.

StopApm

Stops an APM Server instance.

RemoveApm

Deletes an APM Server instance.

UpdateApm

Modifies the configuration of an APM Server instance.

ListApm

Queries the details of all APM Server instances.

DescribeApm

Obtains the details of a specified APM Server instance.

Resource Access Management

API

Description

InitializeOperationRole

Creates a service-linked role.

ValidateSlrPermission

Verifies whether a service-linked role is created.