API Reference Intl en-US
API Reference Intl en-US
Alibaba Cloud
Elasticsearch
Elasticsearch
API Reference
API Reference
Legal disclaimer
Alibaba Cloud reminds you t o carefully read and fully underst and t he t erms and condit ions of t his legal
disclaimer before you read or use t his document . If you have read or used t his document , it shall be deemed
as your t ot al accept ance of t his legal disclaimer.
1. You shall download and obt ain t his document from t he Alibaba Cloud websit e or ot her Alibaba Cloud-
aut horized channels, and use t his document for your own legal business act ivit ies only. The cont ent of
t his document is considered confident ial informat ion of Alibaba Cloud. You shall st rict ly abide by t he
confident ialit y obligat ions. No part of t his document shall be disclosed or provided t o any t hird part y for
use wit hout t he prior writ t en consent of Alibaba Cloud.
2. No part of t his document shall be excerpt ed, t ranslat ed, reproduced, t ransmit t ed, or disseminat ed by
any organizat ion, company or individual in any form or by any means wit hout t he prior writ t en consent of
Alibaba Cloud.
3. The cont ent of t his document may be changed because of product version upgrade, adjust ment , or
ot her reasons. Alibaba Cloud reserves t he right t o modify t he cont ent of t his document wit hout not ice
and an updat ed version of t his document will be released t hrough Alibaba Cloud-aut horized channels
from t ime t o t ime. You should pay at t ent ion t o t he version changes of t his document as t hey occur and
download and obt ain t he most up-t o-dat e version of t his document from Alibaba Cloud-aut horized
channels.
4. This document serves only as a reference guide for your use of Alibaba Cloud product s and services.
Alibaba Cloud provides t his document based on t he "st at us quo", "being defect ive", and "exist ing
funct ions" of it s product s and services. Alibaba Cloud makes every effort t o provide relevant operat ional
guidance based on exist ing t echnologies. However, Alibaba Cloud hereby makes a clear st at ement t hat
it in no way guarant ees t he accuracy, int egrit y, applicabilit y, and reliabilit y of t he cont ent of t his
document , eit her explicit ly or implicit ly. Alibaba Cloud shall not t ake legal responsibilit y for any errors or
lost profit s incurred by any organizat ion, company, or individual arising from download, use, or t rust in
t his document . Alibaba Cloud shall not , under any circumst ances, t ake responsibilit y for any indirect ,
consequent ial, punit ive, cont ingent , special, or punit ive damages, including lost profit s arising from t he
use or t rust in t his document (even if Alibaba Cloud has been not ified of t he possibilit y of such a loss).
5. By law, all t he cont ent s in Alibaba Cloud document s, including but not limit ed t o pict ures, archit ect ure
design, page layout , and t ext descript ion, are int ellect ual propert y of Alibaba Cloud and/or it s
affiliat es. This int ellect ual propert y includes, but is not limit ed t o, t rademark right s, pat ent right s,
copyright s, and t rade secret s. No part of t his document shall be used, modified, reproduced, publicly
t ransmit t ed, changed, disseminat ed, dist ribut ed, or published wit hout t he prior writ t en consent of
Alibaba Cloud and/or it s affiliat es. The names owned by Alibaba Cloud shall not be used, published, or
reproduced for market ing, advert ising, promot ion, or ot her purposes wit hout t he prior writ t en consent of
Alibaba Cloud. The names owned by Alibaba Cloud include, but are not limit ed t o, "Alibaba Cloud",
"Aliyun", "HiChina", and ot her brands of Alibaba Cloud and/or it s affiliat es, which appear separat ely or in
combinat ion, as well as t he auxiliary signs and pat t erns of t he preceding brands, or anyt hing similar t o
t he company names, t rade names, t rademarks, product or service names, domain names, pat t erns,
logos, marks, signs, or special descript ions t hat t hird part ies ident ify as Alibaba Cloud and/or it s
affiliat es.
6. Please direct ly cont act Alibaba Cloud for any errors of t his document .
Document conventions
St yle Descript io n Example
W arning:
A warning notice indicates a situation
W arning that may cause major system changes, Restarting will cause business
faults, physical injuries, and other adverse interruption. About 10 minutes are
results. required to restart an instance.
Closing angle brackets are used to Click Set t ings > Net w o rk > Set net w o rk
>
indicate a multi-level menu cascade. t ype .
Table of Contents
1.List of operations by function 10
2.Getting started 19
4.Request signatures 24
5.QPS limits 28
6.Common parameters 29
7.Elasticsearch instances 31
7.1.1. createInstance 31
7.1.2. ListInstance 48
7.1.3. DescribeInstance 55
7.1.4. EstimatedRestartTime 65
7.1.5. RestartInstance 68
7.1.6. UpdateInstanceChargeType 77
7.1.7. UpdateDescription 80
7.1.8. DeleteInstance 82
7.1.9. CancelDeletion 86
7.1.10. RenewInstance 88
7.1.11. ActivateZones 90
7.1.12. DeactivateZones 92
7.1.13. DescribeRegions 93
7.1.14. InterruptElasticsearchTask 95
7.1.15. ResumeElasticsearchTask 97
7.1.16. ListAllNode 98
8.Kibana 281
9.Logstash 298
9.3.1. ListLogstashPlugins
342
9.3.2. InstallLogstashSystemPlugin 345
10.Beats 387
11.RAM 452
Elasticsearch
Cluster management
ResumeElasticsearchT as
Resumes a change task of an Elasticsearch cluster.
k
Data migration ListDataT asks Queries the information of data migration tasks.
Cluster configuration
Kibana
Operation Description
Installs a built-in plug-in for Kibana. Before you call this operation,
InstallKibanaSystemPlugin make sure that the specifications of your Kibana node are 2 vCPUs and
4 GiB of memory or higher.
Logstash
UpdateLogstashDescrip
Changes the name of a specified Logstash cluster.
tion
Beats
Operation Description
ListDefaultCollectorConfiguration
Queries the default configuration files of shippers.
s
Operation Description
Access control
Operation Description
2.Getting started
T his t opic describes how t o use developer t ools, such as Alibaba Cloud CLI, OpenAPI Explorer, and
Alibaba Cloud SDKs, t o call an Elast icsearch API operat ion. T he List SearchLog API operat ion is used in
t he examples in t his t opic.
Context
Before you call an API operat ion, you must underst and relat ed inst ruct ions in API documentation and
obt ain t he values of t he required request paramet ers. If an error code is ret urned aft er you send a
request , you can obt ain t he descript ion of t he error code in t he API document at ion.
Not e For more informat ion, see Inst all ECS SDK for Java.
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-elasticsearch</artifactId>
<version>3.0.16</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>4.4.6</version>
</dependency>
Not ice SDK packages are frequent ly updat ed. We recommend t hat you visit t he Alibaba
Cloud SDK Cent er t o obt ain dependencies of t he lat est version.
3. Creat e a Java program and call t he ListSearchLog operat ion t o query t he syst em logs of t he clust er
t hat you want t o access.
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.FormatType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.profile.DefaultProfile;
public class ListSearchLog {
public static void main(String[] args) {
DefaultProfile profile = DefaultProfile.getProfile("<RegionId>", "<accessKeyId>
", "<accessSecret>");
IAcsClient client = new DefaultAcsClient(profile);
CommonRequest request = new CommonRequest();
//request.setProtocol(ProtocolType.HTTPS);
request.setMethod(MethodType.GET);
request.setDomain("elasticsearch.<RegionId>.aliyuncs.com");
request.setVersion("2017-06-13");
request.setUriPattern("/openapi/instances/<instanceid>/search-log");
request.putQueryParameter("type", "INSTANCELOG");
request.putQueryParameter("query", "level:warn");
request.putQueryParameter("beginTime", "1593332477000");
request.putQueryParameter("endTime", "1593418877000");
request.putQueryParameter("page", "1");
request.putQueryParameter("size", "20");
request.putHeadParameter("Content-Type", "application/json");
String requestBody = "" +
"{}";
request.setHttpContent(requestBody.getBytes(), "utf-8", FormatType.JSON);
try {
CommonResponse response = client.getCommonResponse(request);
System.out.println(response.getData());
} catch (ServerException e) {
e.printStackTrace();
} catch (ClientException e) {
e.printStackTrace();
}
}
}
Parameter Description
Parameter Description
Not e For more informat ion about request paramet ers, see List SearchLog.
Endpoints
T he endpoint of t he Elast icsearch API is elast icsearch.<RegionId>.aliyuncs.com.
Protocols
You can send request s over HT T P or HT T PS. For securit y purposes, we recommend t hat you send
request s over HT T PS.
Request syntax
T he following code provides t he request synt ax:
HTTPMethod /resource_URI_parameters
RequestHeader
RequestBody
HT T PMet hod: t he met hod of t he HT T P request , such as PUT , POST , PAT CH, GET , and DELET E.
resource_URI_paramet ers: t he ident ifier of t he resource t hat you want t o access, such as
/cluster .
Request Header: t he request headers. In most cases, informat ion such as t he API version number,
host name, and aut hent icat ion informat ion is included. For more informat ion, see Common
paramet ers.
Request Body: t he request paramet ers. T he paramet ers include common request paramet ers and
operat ion-specific request paramet ers. T he common request paramet ers cont ain informat ion such as
t he API version number and aut hent icat ion informat ion.
Sample request :
Encoding
T he request and response are encoded in UT F-8.
4.Request signatures
You must sign all API request s t o ensure securit y. Alibaba Cloud uses t he request signat ure t o verify t he
ident it y of t he API caller. Each API request must cont ain t he signat ure, regardless of whet her it is sent
by using HT T P or HT T PS.
O verview
T o sign a REST ful API request , you must add t he Aut horizat ion paramet er t o t he request header in t he
following format :
Authorization:acs:AccessKeyId:Singature
acs: t he abbreviat ion for Alibaba Cloud Service. T his is a fixed field and cannot be modified.
AccessKeyId: t he AccessKey ID t hat is used t o call t he API.
Signat ure: t he signat ure generat ed aft er t he request is symmet rically encrypt ed by using t he
AccessKey secret .
Signature calculation
T he signat ure algorit hm complies wit h t he HMAC-SHA1 specificat ions in RFC 2104. It uses an AccessKey
secret t o calculat e t he HMAC value of an encoded, format t ed query st ring and use t he HMAC value as
t he signat ure. Some paramet ers in a request are used t o calculat e t he signat ure. T herefore, t he
signat ures of request s vary wit h API request paramet ers.
T he st ring-t o-sign is a st ring assembled by using relat ed element s in an API request . It is used t o
calculat e t he signat ure and cont ains t he following element s:
HT T P header
Alibaba Cloud prot ocol headers (CanonicalizedHeaders)
Canonicalized resource (CanonicalizedResource)
Body
StringToSign =
//HTTP header
HTTP-Verb + "\n" +
Accept + "\n" +
Content-MD5 + "\n" +//Specify the request body that is encrypted by using the M
D5 algorithm.
Content-Type + "\n" +
Date + "\n" +
//Alibaba Cloud protocol headers (CanonicalizedHeaders)
CanonicalizedHeaders +
//Canonicalized resource (CanonicalizedResource)
CanonicalizedResource
POST
application/json
ChDfdfwC+Tn874znq7Dw7Q==
application/x-www-form-urlencoded;charset=utf-8
Thu, 22 Feb 2018 07:46:12 GMT
x-acs-signature-nonce: 550e8400-e29b-41d4-a716-446655440000
x-acs-signature-method:HMAC-SHA1
x-acs-signature-version:1.0
x-acs-version:2016-01-02
/stacks?name=test_alert&status=COMPLETE
HTTP header
T he HT T P header in t he st ring-t o-sign must cont ain t he values of t he following paramet ers. T he
paramet ers must be sort ed in alphabet ical order. If a paramet er has no value, set it t o \n .
Accept : t he response t ype required by t he client . Valid values: application/json and application/xml.
Cont ent -MD5: t he Base64-encoded 128-bit MD5 hash value of t he request body.
Cont ent -T ype: t he t ype of t he HT T P request body. T he t ype is defined in RFC 2616.
Dat e: t he GMT t ime specified in HT T P 1.1. Example: Wed, 05 Sep.2012 23:00:00 GMT .
Accept: application/json
Content-MD5: ChDfdfwC+Tn874znq7Dw7Q==
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Date: Thu, 22 Feb 2018 07:46:12 GMT
application/json
ChDfdfwC+Tn874znq7Dw7Q==
application/x-www-form-urlencoded;charset=utf-8
Thu, 22 Feb 2018 07:46:12 GMT
x-acs-signat ure-nonce: a unique, random number used t o prevent replay at t acks. You must use
different numbers for different request s.
x-acs-signat ure-version: t he version of t he signat ure encrypt ion algorit hm. Set t he value t o 1.0.
x-acs-version: t he version number of t he API.
1. Convert t he names of all HT T P request headers prefixed wit h x-acs- t o lowercase let t ers. For
example, convert X-acs-OSS-Meta-Name: TaoBao int o x-acs-oss-meta-name: TaoBao .
2. Arrange all HT T P request headers t hat are obt ained from t he preceding st ep in alphabet ical order.
3. Delet e spaces from each side of a delimit er bet ween t he request header and it s cont ent . For
example, convert x-acs-oss-meta-name: TaoBao,Alipay int o x-acs-oss-meta-name:TaoBao,Ali
pay .
4. Separat e all headers and cont ent wit h delimit ers (\n) t o form t he final CanonicalizedHeaders.
x-acs-signature-nonce: 550e8400-e29b-41d4-a716-446655440000
x-acs-signature-method: HMAC-SHA1
x-acs-signature-version: 1.0
x-acs-version: 2016-01-02GMT
x-acs-signature-nonce:550e8400-e29b-41d4-a716-446655440000
x-acs-signature-method:HMAC-SHA1
x-acs-signature-version:1.0
x-acs-version:2016-01-02
/stacks?status=COMPLETE&name=test_alert
/stacks?name=test_alert&status=COMPLETE
Body
Encrypt t he request body by using t he MD5 algorit hm, encode t he encrypt ed request body in Base64,
and add t he Base64-encoded st ring t o t he value of t he Cont ent -MD5 paramet er.
5.QPS limits
Alibaba Cloud Elast icsearch limit s t he queries per second (QPS) of an API operat ion for a single user and
all users. If t he number of calls of an API operat ion per second exceeds a specific QPS limit , t hrot t ling is
t riggered. As a result , your services may be affect ed. We recommend t hat you t ake not e of t he limit s
when you call an API operat ion. T his t opic describes t he QPS limit s on API operat ions of Elast icsearch.
Terms
T erm Description
Maximum QPS per user refers to the total number of calls that a single
Alibaba Cloud account, and the RAM users and RAM roles within the
Alibaba Cloud account can make to an API operation per second.
For example, the maximum QPS per user for an API operation is 20. T his
Maximum QPS per user
indicates that a single Alibaba Cloud account, and the RAM users and
RAM roles within the Alibaba Cloud account can make a total number
of 20 calls to the operation per second. If the upper limit is exceeded,
throttling is triggered.
Maximum QPS for all users refers to the total number of calls that all
Alibaba Cloud accounts, and all RAM users and RAM roles within the
Alibaba Cloud accounts can make to an API operation per second.
For example, the maximum QPS for all users for an API operation is 200.
Maximum QPS for all users
T his indicates that all Alibaba Cloud accounts, and all RAM users and
RAM roles within the Alibaba Cloud accounts can make a total number
of 200 calls to the operation per second. If the upper limit is exceeded,
throttling is triggered.
Operation Maximum QPS per user Maximum QPS for all users
ListAllNode 10 10
ListSearchLog 10 10
6.Common parameters
T his t opic describes common paramet ers, including common request paramet ers and common response
paramet ers. Common paramet ers are required by all API operat ions.
T he authentication
information that is used
to verify the validity of
the request. Specify the
information in the
AccessKeyId:Signat
ure format.
T he type of the
response that is
Accept Yes application/json required by the client.
Set the value to
application/json.
T he version number of
x-acs-version Yes 2017-06-13
the API operation.
A unique, random
number used to prevent
51284580-614a-11eb- replay attacks. You
x-acs-signature-nonce No
8a9b-9dcfec8d**** must use different
numbers for different
requests.
T he encryption method
of the signature string.
x-acs-signature-method Yes HMAC-SHA1
Set the value to HMAC-
SHA1.
T he Base64-encoded
MACiECZtnLiNkNS1v5**** 128-bit MD5 hash value
ContentMD5 Yes
=1 of the HT T P request
body.
7.Elasticsearch instances
7.1. Manage clusters
7.1.1. createInstance
Creat es an Elast icsearch clust er.
Make sure t hat you have read and underst and t he billing and pricing st andards of Alibaba Cloud
Elast icsearch.
For more informat ion, see Alibaba Cloud Elast icsearch pricing.
Before you creat e an inst ance, you must complet e real-name verificat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, refer t o t he document at ion of
common request paramet ers.
Request syntax
POST /openapi/instances HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
Positi Require
Parameter T ype Example Description
on d
Positi Require
Parameter T ype Example Description
on d
{ "description":
"xpack-hot-
cold",
"nodeAmount":
2, "esVersion":
"7.10_with_X-
Pack",
"instanceCateg
ory": "x-pack",
"nodeSpec": {
"spec":
"elasticsearch.s
n2ne.xlarge",
"disk": 20,
"diskT ype":
"cloud_ssd" },
"warmNodeCon
figuration": {
"spec":
"elasticsearch.s
n1ne.xlarge",
"amount": 3,
"diskT ype":
"cloud_efficien
cy", "disk": 500
String Body No T he request body parameters.
},
"networkConfig
": { "type":
"vpc", "vpcId":
"vpc-
8vbfu74bmw4
m7m84a****",
"vswitchId":
"vsw-
8vbnk6cmurbp
ump2f****",
"vsArea": "cn-
zhangjiakou-c"
},
"paymentT ype"
: "postpaid",
"esAdminPassw
ord":
"yourPassword
",
"kibanaConfigur
ation": {
"spec":
"elasticsearch.s
n1ne.large" } }
RequestBody
You must also specify t he following paramet ers in t he Request Body paramet er t o specify t he
informat ion of t he inst ance t o be creat ed.
T he number of
zones for the
specified instance.
zoneCount String No 2
Valid values: 1, 2,
and 3. Default
value: 1.
T he billing
method of the
cluster. Valid
paymentT ype String Yes postpaid values: postpaid
(pay-as-you-go)
and prepaid
(subscription).
T he payment
details of the
subscription
instance. T his
paymentInfo Map No postpaid parameter is
required when you
create a
subscription
instance.
T he purchase
time. Monthly and
yearly purchases
are supported.
└duration
Integer No 1 T his parameter is
required when you
create a
subscription
instance.
T he subscription
unit. Valid values:
Year and Month.
T his parameter is
└pricingCycle String No Month
required when you
create a
subscription
instance.
Specifies whether
to enable auto-
renewal settings.
Valid values: true
and false. Default
└isAutoRenew Boolean No true
value: false.
T he auto-renewal
period. Unit:
month. T his
parameter is
required if the
isAut o Renew
└autoRenewDurat
Integer No 3 parameter is set
ion
to t rue . T he
optional range of
parameter values
is the same as
that on the
purchase page.
T he number of
nodeAmount int Yes 3
data nodes.
T he access
password of the
Elasticsearch
instance. T hree of
the following
characters are
required:
esAdminPassword String Yes es_password uppercase letters,
lowercase letters,
digits, and special
characters:!
@# $%^&*()_+-=,
which must be 8
to 32 bits in
length.
T he version of the
read-only
instance. Valid
values:
7.10_with_X-Pack,
esVersion String Yes 5.5.3_with_X-Pack 6.7_with_X-Pack,
7.7_with_X-Pack,
6.8_with_X-Pack,
6.3_with_X-Pack,
5.6_with_X-Pack,
and with_X-Pack.
T he configuration
nodeSpec Map Yes
of the data node.
node
specifications, the
specification
elasticsearch.sn2n
└spec String Yes information can
e.xlarge
be viewed by
product
specifications.
T he storage space
└disk String Yes 20 of a single node.
Unit: GB.
T he type of the
storage. Valid
values:
cloud_ssd(SSD),
└diskT ype String Yes cloud_ssd cloud_essd
(Enhanced SSD),
and
cloud_efficiency
(ultra disk).
T he performance
level of the ESSD.
T his parameter is
└performanceLev required when the
String No PL1
el storage type is
cloud_essd. Valid
values: PL1, PL2,
and PL3.
Specifies whether
to enable disk
└diskEncryption Boolean No true encryption. Valid
values: true and
false.
T he configuration
masterConfigurati
Map No of the dedicated
on
master node.
node
specifications, the
specification
String elasticsearch.sn2n
└spec Yes information can
e.xlarge
be viewed by
product
specifications.
T he number of
nodes. Currently,
└amount int Yes 3
the value is fixed
to 3.
T he size of the
storage space per
└disk int Yes 20
node. Only 20GB is
supported.
T he storage type
of the node. Valid
values:
└diskT ype string Yes cloud_ssd
cloud_ssd(SSD)
and cloud_essd
(Enhanced SSD).
node
specifications, the
specification
information can
be viewed by
product
elasticsearch.ic5.la
└spec string Yes specifications. T he
rge
openstore.i2g.4xla
rge specification
indicates that
OpenStore
storage is
enabled.
T he number of
└amount Integer Yes 2
nodes.
T he storage type
of the node.
Optional value:
cloud_efficiency
(ultra disk). T he
Standard
Commercial
└diskT ype string No cloud_efficiency Edition allows you
to select the disk
type of the cold
data node. You
do not need to
set this value for
Log Performance-
enhanced Edition.
T he storage space
└disk Integer Yes 500
of a single node.
node
specifications, the
specification
elasticsearch.ic5.la
└spec string Yes information can
rge
be viewed by
product
specifications.
T he number of
└amount Integer Yes 2
nodes.
T he storage type
of the node.
└diskT ype string Yes cloud_efficiency Optional value:
cloud_efficiency
(ultra disk).
T he size of the
└disk Integer Yes 20 storage space per
node.
T he configuration
elasticDataNodeC
Map No of the elastic
onfiguration
node.
node
specifications, the
specification
elasticsearch.ic5.la
└spec string Yes information can
rge
be viewed by
product
specifications.
T he storage type
of the node. Valid
values:
cloud_ssd(SSD),
└diskT ype string Yes cloud_efficiency cloud_essd
(Enhanced SSD),
and
cloud_efficiency
(ultra disk).
T he size of the
└disk Integer Yes 20 storage space per
node.
T he performance
level of the ESSD.
T his parameter is
└performanceLev required when the
String No PL1
el storage type is
cloud_essd. Valid
values: PL1, PL2,
and PL3.
Specifies whether
to enable disk
└diskEncryption Boolean No true encryption. Valid
values: true and
false.
T he configuration
kibanaConfiguratio
Map No of the kibana
n
node.
node
specifications, the
specification
elasticsearch.n4.s
└spec String Yes information can
mall
be viewed by
product
specifications.
T he network
networkConfig Map Yes
configurations.
T he network type
of the instance.
└type string Yes VPC
Only VPC is
supported.
vpc- T he ID of the
└vpcId string Yes bp16k1dvzxtmagc virtual private
va**** cloud (VPC).
T he ID of the zone
└vsArea string Yes cn-hangzhou-i to which the
vSwitch belongs.
vsw-
T he ID of the
└vswitchId string Yes bp1k4ec6s7sjdbud
vSwitch.
w****
Specifies whether
to verify the
configuration
when you create
the instance. Valid
dryRun boolean No true
values: true (only
verified, not
created) and false
(verified and
created).
Not e
└ indicat es a child paramet er.
For a list of support ed node specificat ions, see Alibaba Cloud Elast icsearch pricing
informat ion and product specificat ions.
{
"description": "xpack-hot-cold",
"nodeAmount": 2,
"esVersion": "7.10_with_X-Pack",
"instanceCategory": "x-pack",
"nodeSpec": {
"spec": "elasticsearch.sn2ne.xlarge",
"disk": 20,
"diskType": "cloud_ssd"
},
"warmNodeConfiguration": {
"spec": "elasticsearch.sn1ne.xlarge",
"amount": 3,
"diskType": "cloud_efficiency",
"disk": 500
},
"networkConfig": {
"type": "vpc",
"vpcId": "vpc-8vbfu74bmw4m7m84a****",
"vswitchId": "vsw-8vbnk6cmurbpump2f****",
"vsArea": "cn-zhangjiakou-c"
},
"paymentType": "postpaid",
"esAdminPassword": "yourPassword",
"kibanaConfiguration": {
"spec": "elasticsearch.sn1ne.large"
}
}
Creat e an Indexing Service Series inst ance t hat cont ains only hot nodes.
{
"description": "is-hot",
"nodeAmount": 2,
"esVersion": "7.10_with_X-Pack",
"instanceCategory": "IS",
"nodeSpec": {
"spec": "elasticsearch.sn1ne.xlarge",
"disk": 20,
"diskType": "cloud_ssd"
},
"networkConfig": {
"type": "vpc",
"vpcId": "vpc-8vbfu74bmw4m7m84a****",
"vswitchId": "vsw-8vbnk6cmurbpump2f****",
"vsArea": "cn-zhangjiakou-c"
},
"paymentType": "postpaid",
"esAdminPassword": "yourPassword",
"kibanaConfiguration": {
"spec": "elasticsearch.sn1ne.large"
}
}
Creat e an Indexing Service Series inst ance t hat cont ains only cold nodes.
{
"description": "is-cold",
"nodeAmount": 2,
"esVersion": "7.10_with_X-Pack",
"instanceCategory": "IS",
"warmNodeConfiguration": {
"spec": "group.c6.large.500",
"amount": 3,
"disk": 300
},
"networkConfig": {
"type": "vpc",
"vpcId": "vpc-8vbfu74bmw4m7m84a****",
"vswitchId": "vsw-8vbnk6cmurbpump2f****",
"vsArea": "cn-zhangjiakou-c"
},
"paymentType": "postpaid",
"esAdminPassword": "yourPassword",
"kibanaConfiguration": {
"spec": "elasticsearch.sn1ne.large"
}
}
Creat e an Indexing Service Series inst ance t hat cont ains bot h cold and hot nodes.
{
"description": "is-hot-cold",
"nodeAmount": 2,
"esVersion": "7.10_with_X-Pack",
"instanceCategory": "IS",
"nodeSpec": {
"spec": "elasticsearch.sn2ne.xlarge",
"disk": 50,
"diskType": "cloud_ssd"
},
"warmNodeConfiguration": {
"spec": "group.c6.large.500",
"amount": 3,
"disk": 300
},
"networkConfig": {
"type": "vpc",
"vpcId": "vpc-8vbfu74bmw4m7m84a****",
"vswitchId": "vsw-8vbnk6cmurbpump2f****",
"vsArea": "cn-zhangjiakou-c"
},
"paymentType": "postpaid",
"esAdminPassword": "yourPassword",
"kibanaConfiguration": {
"spec": "elasticsearch.sn1ne.large"
}
}
Creat e an Indexing Service series inst ance, enable OpenSt ore st orage, and cont ain bot h cold and hot
nodes.
{
"description": "os-1",
"nodeAmount": 2,
"esVersion": "7.10_with_X-Pack",
"instanceCategory": "IS",
"nodeSpec": {
"spec": "elasticsearch.sn2ne.xlarge",
"disk": 50,
"diskType": "cloud_ssd"
},
"warmNodeConfiguration": {
"spec": "openstore.i2g.4xlarge",
"amount": 3
},
"networkConfig": {
"type": "vpc",
"vpcId": "vpc-8vbfu74bmw4m7m84a****",
"vswitchId": "vsw-8vbnk6cmurbpump2f****",
"vsArea": "cn-zhangjiakou-c"
},
"paymentType": "postpaid",
"esAdminPassword": "yourPassword",
"kibanaConfiguration": {
"spec": "elasticsearch.sn1ne.large"
}
}
Creat e an Indexing Service series inst ance, enable OpenSt ore st orage, and include hot and cold
shared nodes.
{
"description": "os-2",
"nodeAmount": 2,
"esVersion": "7.10_with_X-Pack",
"instanceCategory": "IS",
"nodeSpec": {
"spec": "openstore.i2g.4xlarge",
"disk": 50,
"diskType": "cloud_ssd"
},
"networkConfig": {
"type": "vpc",
"vpcId": "vpc-8vbfu74bmw4m7m84a****",
"vswitchId": "vsw-8vbnk6cmurbpump2f****",
"vsArea": "cn-zhangjiakou-c"
},
"paymentType": "postpaid",
"esAdminPassword": "yourPassword",
"kibanaConfiguration": {
"spec": "elasticsearch.sn1ne.large"
}
}
Response parameters
838D9D11-8EEF-
RequestId String 46D8-BF0D- T he ID of the request.
BC8FC2B0C2F3
Examples
Sample request s
HTTP/1.1 200 OK
Content-Type:application/xml
<createInstanceResponse>
<RequestId>838D9D11-8EEF-46D8-BF0D-BC8FC2B0C2F3</RequestId>
<Result>
<instanceId>es-is-0u2ecp69tt****</instanceId>
</Result>
</createInstanceResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "838D9D11-8EEF-46D8-BF0D-BC8FC2B0C2F3",
"Result" : {
"instanceId" : "es-is-0u2ecp69tt****"
}
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.1.2. ListInstance
You can call t his operat ion t o display t he det ails of all inst ances in t he list .
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/instances HTTP/1.1
Request parameter
Positi Require
Parameter T ype Example Description
on d
Positi Require
Parameter T ype Example Description
on d
es-cn-
T he ID of the ApsaraDB for Redis
instanceId String Query No v641a0ta3000g
instance.
****
6.7.0_with_X-
esVersion String Query No T he version of the instance.
Pack
[{"tagKey":"key
tags String Query No 1","tagValue":" Details about the tags.
value1"}]
vpc-
T he ID of the Virtual Private Cloud
vpcId String Query No bp16k1dvzxtm
to which the instance belongs.
agcva****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
clientNodeConf
Struct Coordinate node configurations.
iguration
2018-07-
createdAt String T he time when the instance was created.
13T 03:58:07.253Z
elasticDataNod
Struct T he configuration of the elastic data node.
eConfiguration
[{ "configT ype":
"aliVersion", T he configuration of cluster extension
extendConfigs List
"aliVersion": parameters.
"ali1.3.0" }]
es-cn-
instanceId String T he ID of the ApsaraDB for Redis instance.
v641a0ta3000g****
kibanaConfigur
Struct T he configuration of Kibana nodes.
ation
active: normal.
status String active activating: T he instance is taking effect.
inactive: freezes.
invalid: invalid.
Not e In t he following ret urn example, t his art icle only guarant ees t hat t he paramet ers in t he
ret urn dat a list are included, and t he paramet ers not ment ioned are for reference only. T he
program cannot force t o rely on obt aining t hese paramet ers.
Examples
Sample request s
GET /openapi/instances?description=abc&page=1&size=10
Error code
For a list of error codes, visit t he API Error Cent er .
7.1.3. DescribeInstance
You can call t his operat ion t o query det ailed informat ion about a specified Elast icsearch inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/instances/[InstanceId] HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes 3h4k3axh33th9 T he ID of the DRDS instance.
****
Response parameters
advancedSettin
Struct Advanced configuration.
g
2018-07-
createdAt String T he time when the instance was created.
13T 03:58:07.253Z
es-cn-
3h4k3axh33th9****.e
domain String T he internal endpoint of the instance.
lasticsearch.aliyuncs
.com
elasticDataNod
Struct T he configuration of the elastic data node.
eConfiguration
[{ "configT ype":
extendConfigs List "aliVersion","aliVersi T he extended configurations of the instance.
on": "ali1.3.0" }]
es-cn-
instanceId String T he ID of the instance.
3h4k3axh33th9****
kibanaConfigur
Struct T he configuration of Kibana nodes.
ation
es-cn-
3h4k3axh33th9****.k
kibanaDomain String T he endpoint of Kibana.
ibana.elasticsearch.
aliyuncs.com
kibanaPrivateIP
List ["192.168.XX.XX"] T he whitelist of Kibana private endpoint.
Whitelist
Array of
whiteIpGroupLi
whiteIpGroupLi T he list of whitelists.
st
st
es-cn-
3h4k3axh33th9****.e
publicDomain String T he public endpoint of the instance.
lasticsearch.aliyuncs
.com
active: normal.
status String active activating: T he instance is taking effect.
inactive: freezes.
invalid: invalid.
Array of
synonymsDicts T he configuration of the synonym dictionary.
SynonymsDicts
vpc-
vpcInstanceId String T he ID of the virtual private cloud (VPC).
bp1uag5jj38c****
Array of
zoneInfos Zone information.
ZoneInfo
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Not e In t he following ret urn example, t his art icle only guarant ees t hat t he paramet ers in t he
ret urn dat a list are included, and t he paramet ers not ment ioned are for reference only. T he
program cannot force t o rely on obt aining t hese paramet ers.
Examples
Sample request s
Error code
For a list of error codes, visit t he API Error Cent er .
7.1.4. EstimatedRestartTime
Obt ains t he est imat ed t ime t hat is required t o rest art an Elast icsearch clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/estimated-time/restart-time HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the cluster.
c****
RequestBody
You can also ent er t he following paramet ers in t he Request Body t o specify t he rest art paramet er
informat ion.
Restart type,
support: instance
(restart instance),
nodeIp (node
restart). Default
value: Restart the
restartT ype String No instance instance.
Select the IP
address list of the
nodes List<String\> No ["127.0.0.1"]
target node when
the node restarts.
Whether to make
a blue-green
change when the
blueGreenDep Boolean No false
node is restarted.
Default value:
false.
T he degree of
concurrency of
instance forced
restart. Default
batch Integer No 25.0
value: 1 /T otal
number of nodes
of the instance.
T he batch unit.
batchUnit String No percent Default value:
percent.
Sample t emplat e:
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Examples
Sample request s
POST /openapi/instances/es-cn-n6w1o1x0w001c****/estimated-time/restart-time?force=true
HTTP/1.1 public request header
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.1.5. RestartInstance
You can call t his operat ion t o rest art a specified Elast icsearch inst ance.
Not e Aft er t he inst ance is rest art ed, t he inst ance ent ers t he act ivat ing st at e. Aft er t he
inst ance is rest art ed, it s st at us changes t o act ive. Alibaba Cloud Elast icsearch support s rest art ing a
single node. Rest art ing a node can be divided int o normal rest art and blue-green rest art .
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/restart HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q8auz0003*** T he ID of the instance.
*
RequestBody
T he following paramet ers must be specified in Request Body:
T he restart type.
Valid values:
no deIp : T o
restart the node,
you need to
specify the IP
address of the
restartT ype String No instance
node.
no deEcsId : T o
restart a node,
you need to
specify the ID of
the ECS instance in
the cluster.
When selecting a
node to restart,
specify the IP
nodes List<String> No ["127.0.0.1"]
address or ID of
the node to be
restarted.
Whether to enable
blue-green
deployment when
blueGreenDep Boolean No false
the node restarts.
Default value:
f alse .
Set the
concurrency when
the instance is
batchCount Double No 25.0
forced to restart.
T he unit of the
bat chCo unt .
batchUnit String No percent
Default value:
percent .
Not e
If t he rest art T ype paramet er is not specified or is empt y, t he default value is inst ance . For
inst ance t he blueGreenDep paramet er is ignored by default , and t he following condit ions
must be met :
When t he value of f orce is t rue , t he value of bat chCount must be great er t han 0
but less t han or equal t o 100. Ot herwise, a Rest art Bat chValueError error is ret urned.
When t he f orce paramet er is set t o f alse , bat chCount is set t o 0 by default . If it is
set t o anot her value, an error NormalRest art Not Support Bat ch.
is
When t he value of rest art T ype is nodeIp , t he bat chCount paramet er is ignored. And t he
following condit ions are met :
T he error message ret urned if t he nodes paramet er is null.
when t he bluependep is t rue, t he blue-green deployment is enabled when t he
node is rest art ed. When t his paramet er is set t o f alse , t he syst em does not enable
t he blue-green deployment and rest art s normally.
Example:
{
"restartType":"nodeIp",
"nodes":["172.16.xx.xx","172.16.xx.xx"],
"blueGreenDep":true
}
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DC****
2020-07-
createdAt String T he time when the instance was created.
06T 10:18:48.662Z
dictList
ST OP: T he ST OP word.
type String MAIN MAIN: MAIN Dictionary
SYNONYMS: SYNONYMS
ALI_WS: an Alibaba Dictionary.
es-cn-
nif1q8auz0003****.e
domain String T he intranet access address of the instance.
lasticsearch.aliyuncs
.com
es-cn-
instanceId String T he ID of the instance.
n6w1o1x0w001c****
kibanaConfigur
Struct T he configuration of Kibana nodes.
ation
elasticsearch.n4.sm
spec String T he specification of data nodes.
all
es-cn-
nif1q8auz0003****.ki T he public network access address of
kibanaDomain String Kibana.
bana.elasticsearch.a
liyuncs.com
elasticsearch.sn2ne.l
spec String T he node specifications of the cluster.
arge
vpc-
vpcId String bp16k1dvzxtmagcv T he ID of the VPC.
a****
vsw-
T he ID of the vSwitch associated with the
vswitchId String bp1k4ec6s7sjdbudw
specified VPC.
****
elasticsearch.n4.sm
spec String T he specification of data nodes.
all
es-cn-
n6w1o1x0w001c****
publicDomain String T he public network access address.
.public.elasticsearch
.aliyuncs.com
synonymsDicts
ST OP: T he ST OP word.
type String ST OP MAIN: MAIN Dictionary
SYNONYMS: SYNONYMS
ALI_WS: an Alibaba Dictionary.
T he following response examples may cont ain t he paramet ers in t he list of ret urned dat a. T hese
paramet ers are for reference only. You must make sure t hat your applicat ion is not st rongly reliant on
t hese paramet ers.
Examples
Sample request s
JSON format
{
"Result": {
"instanceId": "es-cn-nif1q8auz0003****",
"version": "7.4.0_with_X-Pack",
"description": "es-cn-nif1q8auz0003****",
"nodeAmount": 3,
"paymentType": "prepaid",
"status": "active",
"privateNetworkIpWhiteList": [
"0.0.0.0/0"
],
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.n4.small",
"disk": 20,
"diskType": "cloud_ssd",
"diskEncryption": false
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
"vsArea": "cn-hangzhou-i",
"type": "vpc"
},
"createdAt": "2020-07-06T10:18:48.662Z",
"updatedAt": "2020-07-06T10:18:48.662Z",
"commodityCode": "elasticsearchpre",
"extendConfigs": [
{
"configType": "usageScenario",
"value": "general"
},
{
"configType": "maintainTime",
"maintainStartTime": "02:00Z",
"maintainEndTime": "06:00Z"
}
],
"endTime": 1596729600000,
"clusterTasks": [],
"vpcInstanceId": "es-cn-nif1q8auz0003****-worker",
"resourceGroupId": "rg-acfm2h5vbzd****",
"fileSize": 132,
"sourceType": "ORIGIN",
"type": "STOP"
}
],
"synonymsDicts": [],
"ikHotDicts": [],
"aliwsDicts": [],
"haveGrafana": false,
"haveCerebro": false,
"enableKibanaPublicNetwork": true,
"enableKibanaPrivateNetwork": false,
"advancedSetting": {
"gcName": "CMS"
}
},
"RequestId": "BB58A51D-CE72-49F9-AF08-F57F3C8A****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.1.6. UpdateInstanceChargeType
Call Updat eInst anceChargeT ype t o change t he billing met hod of a pay-as-you-go inst ance t o
subscript ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/convert-pay-type HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes T he ID of the instance.
0pp1jxvcl000z****
RequestBody
You must also specify t he following paramet ers in Request Body t o specify t he billing informat ion for
t he inst ance aft er t he billing met hod is convert ed t o subscript ion.
T he billing
information of the
paymentInfo Array Yes
instance after
conversion.
T he payment
duration of the
instance. 1 to 3 if
the pricingCycle
└duration Integer Yes 1 parameter is set
to Year. 1 to 9 if
the pricingCycle
parameter is set
to Month.
T he billing cycle
String of the instance.
└pricingCycle Yes Year
Valid values: Year
and Month.
T he billing
method of the
instance. Only the
functions of pay-
as-you-go
instances can be
paymentT ype String Yes prepaid
converted to
subscription
instances.
T herefore, this
parameter is set
to prepaid.
Example:
{
"paymentInfo":{
"duration":1,
"pricingCycle":"Month"
},
"paymentType":"prepaid"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
Return results:
Result Boolean true true: conversion successful
false: conversion failed
Examples
Sample request s
JSON format
{
"Result":true,
"RequestId":"3760F67B-691D-4663-B4E5-6783554F****"
}
Error codes
7.1.7. UpdateDescription
Changes t he name of a specified Elast icsearch clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request paramet ers. For more informat ion, see t he Common request
paramet ers t opic.
Request syntax
PATCH|POST /openapi/instances/[InstanceId]/description HTTP/1.1
Request parameters
Locati Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1ptcb3000 T he IDs of the added ECS instances.
9****
Response parameters
FDF34727-1664-
RequestId String 44C1-A8DA- T he ID of the request.
3EB72D60****
Not e In t he following ret urn example, t his art icle is guarant eed t o cont ain only t he
paramet ers in t he ret urn dat a list , and t he paramet ers not ment ioned are for reference only.
List Inst ance . T he program cannot force t o rely on obt aining t hese paramet ers.
Examples
Sample request s
PATCH /openapi/instances/es-cn-n6w1ptcb30009****/description?description=aliyunes_name
_test HTTP/1.1 public request header
Error codes
7.1.8. DeleteInstance
You can call t his operat ion t o release a pay-as-you-go Elast icsearch inst ance. Aft er t he inst ance is
released, t he physical resources of t he inst ance is reclaimed. T he dat a of t he inst ance is delet ed and
cannot be recovered. T he disks mount ed t o t he inst ance nodes and t he snapshot s are released.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
DELETE /openapi/instances/[InstanceId] HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Required t57p81n7ai89v*** T he ID of the instance.
*
Response parameters
94B03BBA-A132-
RequestId String 42C3-8367- T he ID of the request.
0A0C1C45****
T he ret urned dat a also includes t he Result paramet er. For more informat ion, see List Inst ance.
Examples
Sample request s
JSON format
{
"Result": {
"instanceId": "es-cn-t57p81n7ai89v****",
"version": "6.7.0_with_X-Pack",
"description": "aliyunes_name_test",
"nodeAmount": 3,
"paymentType": "postpaid",
"status": "active",
"privateNetworkIpWhiteList": [
"0.0.0.0/0"
],
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn2ne.xlarge",
"disk": 20,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
"vsArea": "cn-hangzhou-i",
"type": "vpc"
},
"createdAt": "2020-07-06T07:00:33.090Z",
"updatedAt": "2020-07-06T09:51:08.635Z",
"commodityCode": "elasticsearch",
"extendConfigs": [
{
"configType": "usageScenario",
"value": "general"
},
{
"configType": "maintainTime",
"maintainStartTime": "02:00Z",
"maintainEndTime": "06:00Z"
},
{
"configType": "aliVersion",
"aliVersion": "ali1.2.0"
}
],
"endTime": 4749724800000,
"clusterTasks": [],
"vpcInstanceId": "es-cn-t57p81n7ai89v****-worker",
"resourceGroupId": "rg-acfm2h5vbzd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-i",
"status": "NORMAL"
Error codes
For a list of error codes, visit t he API Error Cent er.
7.1.9. CancelDeletion
You can call t he CancelDelet ion operat ion t o rest ore t he released Elast icsearch inst ance t hat is frozen.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/cancel-deletion HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
T he ID of the instance.
InstanceId String Path Yes z2q1wk6z0000
7****
Positi Require
Parameter T ype Example Description
on d
Response parameters
D682B6B3-B425-
RequestId String 46DA-A5FC- T he ID of the request.
5F5C60553622
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "D682B6B3-B425-46DA-A5FC-5F5C60553622"
}
Error codes
7.1.10. RenewInstance
Call RenewInst ance t o renew a subscript ion inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/renew HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
RequestBody
T he following fields are also required in Request Body t o specify t he renewal informat ion.
T he renewal
duration of the
subscription
cluster. If
pricingCycle is set
to Year, the
duration Integer Yes 1
duration is 1 to 3.
If pricingCycle is
set to Month, the
duration is 1 to 9.
T he billing cycle
of renewal. Valid
pricingCycle String Yes Year
values: Year and
Month.
Example:
{
"duration":1,
"pricingCycle":"Year"
}
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Return results:
Result Boolean true true: renewal successfully
false: renewal failed
Examples
Sample request s
{
"Result": true,
"RequestId": "4FF74B95-7D01-44B4-8E0D-6E5AB515****"
}
Error codes
7.1.11. ActivateZones
call Act ivat eZones, rest ore offline zone. T his operat ion is available only for mult i-zone Elast icsearch
clust ers.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request paramet ers. For more informat ion, see t he Common request
paramet ers t opic.
Request syntax
POST /openapi/instances/[InstanceId]/actions/recover-zones HTTP/1.1
Request parameters
Locati Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he IDs of the added ECS instances.
c****
RequestBody
In t he Request Body, you also need t o ent er t he list of available zone IDs t o be rest ored, as shown in t he
following example.
["cn-hangzhou-i","cn-hangzhou-h"]
Response parameters
5A5D8E74-565C-
RequestId String 43DC-B031- T he ID of the request.
29289FA****
Sample response:
Result Boolean true true: specifies to recovery zone success
false: recovery zone failure
Examples
Sample request s
JSON format
Error codes
7.1.12. DeactivateZones
Call deact ivat ezones t o offline part of t he zone when mult iple zones are available. And you need t o
migrat e t he nodes in t he offline zone t o ot her zones.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/down-zones HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
RequestBody
You must also specify t he IDs of t he zones in t he Request Body field. Example:
["cn-hangzhou-i","cn-hangzhou-f"]
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Return results:
Result Boolean true true: offline zone successfully
false: offline zone successfully failed
Examples
Sample request s
{
"Result": true,
"RequestId": "5A5D8E74-565C-43DC-B031-29289FA****"
}
Error codes
7.1.13. DescribeRegions
Call DescribeRegions t o obt ain t he region informat ion of an Alibaba Cloud Elast icsearch.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/regions HTTPS|HTTP
Request parameters
None
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Array of
Result T he list of returned results.
regionInfo
https://elasticsearc
consoleEndpoin h-cn- T he Endpoint exposed by the console in this
String
t hangzhou.console.a region.
liyun.com
elasticsearch.cn-
regionEndpoint String hangzhou.aliyuncs.c T he Endpoint of the region.
om
Examples
Sample request s
JSON Format
{
"Result": [
{
"regionId": "cn-hangzhou",
"localName": "China (Hangzhou)",
"regionEndpoint": "elasticsearch.cn-hangzhou.aliyuncs.com",
"consoleEndpoint": "https://elasticsearch-cn-hangzhou.console.aliyun.com",
"status": "available"
}
]
}
Error code
Go t o t he Error Cent er . For more informat ion, see error codes.
7.1.14. InterruptElasticsearchTask
Call Int errupt Elast icsearchT ask t o int errupt t he Alibaba cloud elast icsearch inst ance in t he change. T his
paramet er is valid only for inst ances in t he init ializing st at e. When t he inst ance is int errupt ed, it ent ers
t he suspended st at e.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/interrupt HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
Response parameters
T he cluster is
running tasks or in T he error message. Only displayed if an
Message String
an error status. T ry exception is returned.
again later.
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
Return results:
Result Boolean true true: interrupted change successfully
false: interrupted change failed
Examples
Sample request s
<Result>true</Result>
<RequestId>E9908D15-13F4-4428-B08F-A3EE8E39****</RequestId>
JSON format
{
"Result": true,
"RequestId": "E9908D15-13F4-4428-B08F-A3EE8E39****"
}
Error codes
7.1.15. ResumeElasticsearchTask
Call ResumeElast icsearchT ask t o resume int errupt ed change of Elast icsearch inst ance. Aft er you resume
or int errupt a change, t he inst ance ent ers t he act ivat ing st at e.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/resume HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Return results:
Examples
Sample request s
<Result>true</Result>
<RequestId>2A83EDC0-EDB0-440D-ABD9-0E912684****</RequestId>
JSON format
{
"Result": true,
"RequestId": "2A83EDC0-EDB0-440D-ABD9-0E912684****"
}
Error codes
7.1.16. ListAllNode
Queries t he informat ion of all t he nodes in an Elast icsearch clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T he Get Logs operat ion does not have operat ion-specific request headers and uses only common
request headers. For more informat ion, see Common request headers.
Request syntax
GET /openapi/instances/{InstanceId}/nodes HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes tl32cpgwa002l* T he ID of the instance.
***
Response parameters
0D71B597-F3FF-
RequestId String 5B56-88D7- T he ID of the request.
74F9D3F7****
T he CPU utilization.
diskUsedPercen
String 1.0% T he disk usage.
t
Examples
Sample request s
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : [ {
"nodeType" : "WORKER",
"host" : "10.15.XX.XX",
"port" : 9200,
"zoneId" : "cn-hangzhou-i",
"heapPercent" : "21.6%",
"cpuPercent" : "4.2%",
"loadOneM" : "0.12",
"diskUsedPercent" : "1.0%",
"health" : "GREEN"
}, {
"nodeType" : "WORKER",
"host" : "10.15.XX.XX",
"port" : 9200,
"zoneId" : "cn-hangzhou-i",
"heapPercent" : "23.3%",
"cpuPercent" : "3.6%",
"loadOneM" : "0.04",
"diskUsedPercent" : "1.0%",
"health" : "GREEN"
}, {
"nodeType" : "WORKER",
"host" : "10.15.XX.XX",
"port" : 9200,
"zoneId" : "cn-hangzhou-i",
"heapPercent" : "18.3%",
"cpuPercent" : "2.7%",
"loadOneM" : "0.08",
"diskUsedPercent" : "1.0%",
"health" : "GREEN"
}, {
"nodeType" : "KIBANA",
"host" : "10.15.XX.XX",
"port" : 5601,
"zoneId" : "cn-hangzhou-i",
"health" : "GREEN"
} ],
"RequestId" : "0D71B597-F3FF-5B56-88D7-74F9D3F7****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
FAQ
Q: When t he List AllNode API is used, t he ret urned result s are incomplet e. In some cases, no met rics such
as diskUsedPercent , cpuPercent , and heapPercent are ret urned. What do I do?
A: Unlike t he Elast icsearch Client API, OpenAPI cannot ensure t hat t he st at us of all met rics of a clust er
can be obt ained in real t ime. For example, when t he clust er load is high or unst able, some met ric
informat ion cannot be ret urned. In t his case, you can use t he Elast icsearch Client API t o obt ain t he
met rics of t he Elast icsearch clust er it self. For more informat ion, see Access Alibaba Cloud Elast icsearch
Elast icsearch t hrough a client .
7.1.17. DescribeElasticsearchHealth
Call Describe Elast icsearch Healt h t o obt ain t he healt h st at us of t he specified Elast icsearch inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/elasticsearch-health HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes tl325wxga000l* T he ID of the request.
***
Response parameters
0731F217-2C8A-
RequestId String 4D42-8BCD- T he ID of the request.
5C352866E3B7
Examples
Sample request s
JSON format
Error codes
T he instance is currently in
400 InstanceActivating Instance is activating.
effect.
7.1.18. ListInstanceIndices
Queries t he indexes st ored on an Elast icsearch clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample codes.
Request parameters
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request structure
Request parameter
Locati Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes tl329rbpc0001* T he ID of the instance.
***
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
2021-01-
createT ime String T he time when the index list was queried.
11T 05:49:41.114Z
{ "indices": { ".ds-
console-2021.08.18-
000002": { "index":
".ds-console-
2021.08.18-000002",
"managed": true,
"policy": "console",
"lifecycle_date_milli
s": 1629277498775,
"age": "2.64h",
"phase": "hot",
"phase_time_millis":
1629277450334,
"action":
"complete",
"action_time_millis":
1629278605586,
ilmExplain String "step": "complete", T he full lifecycle status of the current index.
"step_time_millis":
1629278605586,
"phase_execution": {
"policy": "console",
"phase_definition": {
"min_age": "0s",
"actions": {
"rollover": {
"max_size": "1gb",
"max_age": "1d",
"max_docs": 10000
}, "set_priority": {
"priority": 1000 } } },
"version": 1,
"modified_date_in_
millis":
1629277370953 } } } }
.kibana_task_manag
name String T he name of the index.
er_1
Examples
Sample request s
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC****",
"Result": [
{
"name": ".kibana_task_manager_1",
"health": "green",
"size": 4929858933232,
"createTime": "2021-01-11T05:49:41.114Z",
"managedStatus": "closing",
"phase": null,
"ilmExplain": "{\n \"indices\": {\n \".kibana_task_manager_1\": {\n
\"index\": \".kibana_task_manager_1\",\n \"managed\": false\n }\n }\n}
"
},
{
"name": ".ds-console-2021.08.18-000002",
"health": "yellow",
"size": 49298589,
"createTime": "2021-01-11T05:49:41.114Z",
"managedStatus": "following",
"phase": "warm",
"ilmExplain": "{\n \"indices\": {\n \".ds-console-2021.08.18-000002\": {\n
\"index\": \".ds-console-2021.08.18-000002\",\n \"managed\": true,\n \"policy\":
\"console\",\n \"lifecycle_date_millis\": 1629277498775,\n \"age\": \"2.64h\",\n
\"phase\": \"hot\",\n \"phase_time_millis\": 1629277450334,\n \"action\": \"compl
ete\",\n \"action_time_millis\": 1629278605586,\n \"step\": \"complete\",\n
\"step_time_millis\": 1629278605586,\n \"phase_execution\": {\n \"policy\": \"c
onsole\",\n \"phase_definition\": {\n \"min_age\": \"0s\",\n \"act
ions\": {\n \"rollover\": {\n \"max_size\": \"1gb\",\n
\"max_age\": \"1d\",\n \"max_docs\": 10000\n },\n \"set_
priority\": {\n \"priority\": 1000\n }\n }\n },\n
\"version\": 1,\n \"modified_date_in_millis\": 1629277370953\n }\n }\n }\n}
"
}
],
"Headers": {
"X-Managed-Count": 15,
"X-Managed-StorageSize": 18093942932,
"X-OSS-Count": 5,
"X-OSS-StorageSize": 9093942932
}
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.1.19. MigrateToOtherZone
Call t he Migrat eT oOt herZone t o migrat e t he nodes in t he specified zone t o t he dest inat ion zone.
If t he specificat ions in your zone are insufficient , you can upgrade your inst ance t o nodes in anot her
zone. Before calling t his int erface, you must ensure t hat :
T he error message ret urned because t he current account is in a zone t hat has sufficient resources.
Aft er migrat ing nodes wit h current specificat ions t o anot her zone, you need t o manually upgrade
clust er because t he clust er will not be upgraded during t he migrat ion process. T herefore, select a
zone wit h sufficient resources t o avoid clust er upgrade failure. We recommend t hat you choose new
zones t hat are in lower alphabet ical order. For example, for cn-hangzhou-e and cn-hangzhou-h
zones, choose cn-hangzhou-h first .
T he clust er is in t he healt hy st at e.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see t he Common request
paramet ers t opic.
Request syntax
POST /openapi/instances/[InstanceId]/actions/migrate-zones HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
RequestBody
T he following paramet ers must be specified in Request Body t o specify t he zone informat ion for
migrat ion.
T he zone where
fromZoneId String Yes cn-hangzhou-i the instance is
located.
T he destination
zone to which the
toZoneId String Yes cn-hangzhou-b
instance is to be
migrated.
vsw-
T he ID of the
toVswitchId String Yes bp1f7r0ma00pf9h
vSwitch.
2l****
Example:
{
"fromZoneId": "cn-hangzhou-e",
"toZoneId": "cn-hangzhou-f",
"toVswitchId": "vsw-bp16t5hpc689dgkgc****"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Return results:
Result Boolean true true: migration succeeded
false: T he migration fails
Examples
Sample request s
XML format
<Result>true</Result>
<RequestId>24A77388-9444-49A3-A1CF-F48385E5****</RequestId>
JSON format
{
"Result": true,
"RequestId": "24A77388-9444-49A3-A1CF-F48385E5****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
7.1.20. MoveResourceGroup
Call t he MoveResourceGroup t o migrat e t he inst ance t o t he specified resource group.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses common request headers, but does not use special request headers. For more
informat ion, see Common paramet ers.
Request syntax
PATCH|POST|PUT /openapi/instances/[InstanceId]/resourcegroup HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the instance.
c****
RequestBody
Ent er t he following paramet ers in Request Body t o specify t he resource group t o which t he inst ance will
be migrat ed.
T he ID of the
resource group.
rg-
resourceGroupId String Yes Available at
acfm2h5vbzd****
Resource Groups
Get on page.
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
2020-07-
createdAt String T he time when the instance was created.
06T 10:18:48.662Z
ST OP: Stopwords
type String MAIN MAIN: MAIN dictionary
SYNONYMS: Synonym dictionary
ALI_WS: Alibaba dictionary
es-cn-
nif1q8auz0003****.e T he internal network endpoint of the
domain String
lasticsearch.aliyuncs instance.
.com
es-cn-
instanceId String T he ID of the instance.
n6w1o1x0w001c****
kibanaConfigur
Struct T he configuration of Kibana nodes.
ation
elasticsearch.n4.sm
spec String T he specification of data nodes.
all
es-cn-
nif1q8auz0003****.ki
kibanaDomain String T he public network endpoint of Kibana.
bana.elasticsearch.a
liyuncs.com
elasticsearch.sn2ne.l
spec String T he specification of the node.
arge
vpc-
vpcId String bp16k1dvzxtmagcv T he ID of the VPC.
a****
vsw-
vswitchId String bp1k4ec6s7sjdbudw T he ID of the vSwitch.
****
elasticsearch.n4.sm
spec String T he specification of data nodes.
all
es-cn-
n6w1o1x0w001c****
publicDomain String Public network access address.
.public.elasticsearch
.aliyuncs.com
active: normal
status String active activating: taking effect
inactive: frozen
invalid: invalid
Array of
synonymsDicts T he configuration of the synonym dictionary.
synonymsDicts
ST OP: Stopwords
type String ST OP MAIN: MAIN dictionary
SYNONYMS: Synonym dictionary
ALI_WS: Alibaba dictionary
Examples
Sample request s
XML format
<Result>
<dryRun>false</dryRun>
<id>24210</id>
<instanceId>es-cn-npk2151ww000a****</instanceId>
<version>6.7.0_with_X-Pack</version>
<description/>
<ownerId>168520994880****</ownerId>
<nodeAmount>3</nodeAmount>
<paymentType>prepaid</paymentType>
<status>inactive</status>
<privateNetworkIpWhiteList>0.0.0.0/0</privateNetworkIpWhiteList>
<enablePublic>false</enablePublic>
<nodeSpec>
<spec>elasticsearch.sn2ne.2xlarge</spec>
<disk>20</disk>
<diskType>cloud_ssd</diskType>
<diskEncryption>false</diskEncryption>
<empty>false</empty>
</nodeSpec>
<networkConfig>
<vpcId>vpc-bp12nu14urf0upaf4****</vpcId>
<vswitchId>vsw-bp1xn8mossizozn6q****</vswitchId>
<vsArea>cn-hangzhou-g</vsArea>
<type>vpc</type>
</networkConfig>
<lastPayTime>2021-03-03T16:00:58.000+0000</lastPayTime>
<createdAt>2021-02-03T12:22:14.643Z</createdAt>
<updatedAt>2021-03-04T03:46:02.358Z</updatedAt>
<commodityCode>elasticsearchpre</commodityCode>
<extendConfigs>
<configType>usageScenario</configType>
<value>general</value>
</extendConfigs>
<extendConfigs>
<configType>maintainTime</configType>
<maintainStartTime>02:00Z</maintainStartTime>
<maintainEndTime>06:00Z</maintainEndTime>
</extendConfigs>
<extendConfigs>
<configType>aliVersion</configType>
<aliVersion>ali1.3.0</aliVersion>
</extendConfigs>
<endTime>1614787200000</endTime>
<force>false</force>
<ignoreStatus>false</ignoreStatus>
<vpcInstanceId>es-cn-npk2151ww000a****-worker</vpcInstanceId>
<resourceGroupId>rg-aek2wq2jlqd****</resourceGroupId>
<zoneCount>1</zoneCount>
<protocol>HTTP</protocol>
<zoneInfos>
<zoneId>cn-hangzhou-g</zoneId>
<status>NORMAL</status>
</zoneInfos>
</zoneInfos>
<instanceType>elasticsearch</instanceType>
<inited>true</inited>
<tags>
<tagKey>acs:rm:rgId</tagKey>
<tagValue>rg-acfm2h5vbzd****</tagValue>
</tags>
<domain>es-cn-npk2151ww000a****.elasticsearch.aliyuncs.com</domain>
<port>9200</port>
<esVersion>6.7.0_with_X-Pack</esVersion>
<esConfig>
<action.destructive_requires_name>true</action.destructive_requires_name>
<xpack.security.audit.outputs>index</xpack.security.audit.outputs>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.security.audit.enabled>false</xpack.security.audit.enabled>
<action.auto_create_index>+.*,-*</action.auto_create_index>
</esConfig>
<esIPWhitelist>0.0.0.0/0</esIPWhitelist>
<kibanaProtocol>HTTPS</kibanaProtocol>
<kibanaIPWhitelist>::1</kibanaIPWhitelist>
<kibanaIPWhitelist>127.0.0.1</kibanaIPWhitelist>
<kibanaDomain>es-cn-npk2151ww000a****.kibana.elasticsearch.aliyuncs.com</kibanaDomain>
<kibanaPort>5601</kibanaPort>
<haveKibana>true</haveKibana>
<instanceCategory>x-pack</instanceCategory>
<dedicateMaster>false</dedicateMaster>
<advancedDedicateMaster>false</advancedDedicateMaster>
<masterConfiguration/>
<haveClientNode>false</haveClientNode>
<warmNode>false</warmNode>
<warmNodeConfiguration/>
<clientNodeConfiguration/>
<kibanaConfiguration>
<spec>elasticsearch.n4.small</spec>
<amount>1</amount>
<disk>0</disk>
</kibanaConfiguration>
<elasticDataNodeConfiguration/>
<haveElasticDataNode>false</haveElasticDataNode>
<dictList>
<name>SYSTEM_MAIN.dic</name>
<fileSize>2782602</fileSize>
<sourceType>ORIGIN</sourceType>
<type>MAIN</type>
</dictList>
<dictList>
<name>SYSTEM_STOPWORD.dic</name>
<fileSize>132</fileSize>
<sourceType>ORIGIN</sourceType>
<type>STOP</type>
</dictList>
<aliwsDicts>
<name>aliws_ext_dict.txt</name>
<fileSize>17</fileSize>
<sourceType>ORIGIN</sourceType>
<sourceType>ORIGIN</sourceType>
<type>ALI_WS</type>
</aliwsDicts>
<haveGrafana>false</haveGrafana>
<haveCerebro>false</haveCerebro>
<enableKibanaPublicNetwork>true</enableKibanaPublicNetwork>
<enableKibanaPrivateNetwork>false</enableKibanaPrivateNetwork>
<advancedSetting>
<gcName>CMS</gcName>
</advancedSetting>
<enableMetrics>true</enableMetrics>
<readWritePolicy>
<writeHa>false</writeHa>
</readWritePolicy>
</Result>
<RequestId>D63D226F-2B80-4BF9-8F70-DBEDCC8DC2AF</RequestId>
JSON format
{
"Result": {
"dryRun": false,
"id": "24210",
"instanceId": "es-cn-npk2151ww000a****",
"version": "6.7.0_with_X-Pack",
"description": "",
"ownerId": "168520994880****",
"nodeAmount": 3,
"paymentType": "prepaid",
"status": "inactive",
"privateNetworkIpWhiteList": [
"0.0.0.0/0"
],
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn2ne.2xlarge",
"disk": 20,
"diskType": "cloud_ssd",
"diskEncryption": false,
"empty": false
},
"networkConfig": {
"vpcId": "vpc-bp12nu14urf0upaf4****",
"vswitchId": "vsw-bp1xn8mossizozn6q****",
"vsArea": "cn-hangzhou-g",
"type": "vpc"
},
"lastPayTime": "2021-03-03T16:00:58.000+0000",
"createdAt": "2021-02-03T12:22:14.643Z",
"updatedAt": "2021-03-04T03:46:02.358Z",
"commodityCode": "elasticsearchpre",
"extendConfigs": [
{
"configType": "usageScenario",
"value": "general"
},
{
"configType": "maintainTime",
"maintainStartTime": "02:00Z",
"maintainEndTime": "06:00Z"
},
{
"configType": "aliVersion",
"aliVersion": "ali1.3.0"
}
],
"endTime": 1614787200000,
"force": false,
"ignoreStatus": false,
"clusterTasks": [],
"vpcInstanceId": "es-cn-npk2151ww000a****-worker",
"resourceGroupId": "rg-aek2wq2jlqd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-g",
"status": "NORMAL"
}
],
"instanceType": "elasticsearch",
"inited": true,
"tags": [
{
"tagKey": "acs:rm:rgId",
"tagValue": "rg-acfm2h5vbzd****"
}
],
"customerLabels": [],
"domain": "es-cn-npk2151ww000a****.elasticsearch.aliyuncs.com",
"port": 9200,
"esVersion": "6.7.0_with_X-Pack",
"esConfig": {
"action.destructive_requires_name": "true",
"xpack.security.audit.outputs": "index",
"xpack.watcher.enabled": "false",
"xpack.security.audit.enabled": "false",
"action.auto_create_index": "+.*,-*"
},
"esIPWhitelist": [
"0.0.0.0/0"
],
"esIPBlacklist": [],
"kibanaProtocol": "HTTPS",
"kibanaIPWhitelist": [
"::1",
"127.0.0.1"
],
"kibanaPrivateIPWhitelist": [],
"kibanaPrivateIPWhitelist": [],
"publicIpWhitelist": [],
"kibanaDomain": "es-cn-npk2151ww000a****.kibana.elasticsearch.aliyuncs.com",
"kibanaPort": 5601,
"haveKibana": true,
"instanceCategory": "x-pack",
"dedicateMaster": false,
"advancedDedicateMaster": false,
"masterConfiguration": {},
"haveClientNode": false,
"warmNode": false,
"warmNodeConfiguration": {},
"clientNodeConfiguration": {},
"kibanaConfiguration": {
"spec": "elasticsearch.n4.small",
"amount": 1,
"disk": 0
},
"elasticDataNodeConfiguration": {},
"haveElasticDataNode": false,
"dictList": [
{
"name": "SYSTEM_MAIN.dic",
"fileSize": 2782602,
"sourceType": "ORIGIN",
"type": "MAIN"
},
{
"name": "SYSTEM_STOPWORD.dic",
"fileSize": 132,
"sourceType": "ORIGIN",
"type": "STOP"
}
],
"synonymsDicts": [],
"ikHotDicts": [],
"aliwsDicts": [
{
"name": "aliws_ext_dict.txt",
"fileSize": 17,
"sourceType": "ORIGIN",
"type": "ALI_WS"
}
],
"haveGrafana": false,
"haveCerebro": false,
"enableKibanaPublicNetwork": true,
"enableKibanaPrivateNetwork": false,
"advancedSetting": {
"gcName": "CMS"
},
"enableMetrics": true,
"readWritePolicy": {
"writeHa": false
}
}
},
"RequestId": "D63D226F-2B80-4BF9-8F70-DBEDCC8DC2AF"
}
Error code
For a list of error codes, visit t he API Error Cent er.
7.1.21. ModifyInstanceMaintainTime
You can call t his operat ion t o change and enable t he maint enance window of an inst ance.
Before maint enance is performed, t he syst em sends SMS messages and emails t o t he cont act s list ed
in your Alibaba Cloud account .
T o ensure smoot h maint enance, your Alibaba Cloud Elast icsearch clust er ent ers t he Init ializ ing st at e
prior t o t he maint enance window. In t his case, you can st ill access t he clust er and perform query
operat ions such as performance monit oring. However, you cannot perform modificat ion operat ions
such as rest art and configurat ion upgrades for t he clust er.
Make sure t hat you configured aut omat ic reconnect ion policies for your applicat ions because t he
clust er may experience t ransient disconnect ions wit hin t he maint enance window.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see t he Common request
paramet ers t opic.
Request syntax
POST /openapi/instances/[InstanceId]/actions/modify-maintaintime HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
RequestBody
T he following paramet ers must be ent ered in Request Body t o specify maint enance window
informat ion.
T he start time of
the maintenance
window. Specify
maintainStartT ime String No 02:00Z the time in the
HH:mmZ format.
T he time must be
in UT C.
T he end time of
the maintenance
window. Specify
maintainEndT ime String No 06:00Z the time in the
HH:mmZ format.
T he time must be
in UT C.
Whether the
maintenance
window feature is
enabled. T he
openMaintainT ime boolean Yes true
value true
indicates enabled.
T he value false
indicates disabled.
Example:
{
"openMaintainTime": true,
"maintainStartTime": "03:00Z",
"maintainEndTime": "04:00Z"
}
Or
{
"openMaintainTime":false
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "8577468C-D13F-4980-BD71-977F9D82****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.1.22. GetRegionConfiguration
Obt ains t he open configurat ion informat ion of t he current region. T he ret urn value of t he int erface is
full dat a for reference, and t he act ual value displayed on t he console and sales page shall prevail.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/region HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6F******
clientNodeDiskL
Array of disk Coordinate node disk allowable values.
ist
["elasticsearch.sn2n
e.large","elasticsear
ch.sn2ne.xlarge","el
asticsearch.sn2ne.2x
large","elasticsearch
.sn2ne.4xlarge","ela
sticsearch.sn1ne.4xl
arge","elasticsearch.
clientNodeSpec List ic5.xlarge","elasticse Coordination node specifications.
arch.ic5.2xlarge","el
asticsearch.ic5.3xlar
ge","elasticsearch.ic
5.4xlarge","elasticse
arch.r5.large","elasti
csearch.r5.xlarge","e
lasticsearch.r5.2xlar
ge"]
https://common-
buy.aliyun.com/?
createUrl String commodityCode=el Sales page entry address.
asticsearch&orderT y
pe=BUY# /buy
[2560,3072,3584,409
valueLimitSet List T he discrete value allowed by the disk.
6,4608,5120]
elasticNodePro
Struct Elastic node configurations.
perties
[2560,3072,3584,409
valueLimitSet List T he discrete value allowed by the disk.
6,4608,5120]
["elasticsearch.sn2n
e.large","elasticsear
ch.sn2ne.xlarge","el
asticsearch.sn2ne.2x
large","elasticsearch
.sn2ne.4xlarge","ela
sticsearch.sn1ne.8xl
arge","elasticsearch.
ic5.large","elasticse
spec List T he node specification.
arch.ic5.xlarge","ela
sticsearch.ic5.2xlarg
e","elasticsearch.ic5.
3xlarge","elasticsear
ch.ic5.4xlarge","elas
ticsearch.r5.large","
elasticsearch.r5.xlar
ge","elasticsearch.r5
.2xlarge"]
Array of
esVersionsLate
esVersionsLate T he ES version is open for sale.
stList
stList
[ "WORKER",
"WORKER_WARM",
instanceSuppor T he instance node type that is open in the
List "COORDINAT ING",
tNodes region.
"KIBANA", "MAST ER",
"ELAST IC_WORKER" ]
["6.7.0_with_X-
supportEsVersi Pack","6.7.0_with_A- Enable the ES version information supported
List
ons Pack","7.4.0_with_X- by Jvm recycling.
Pack"]
kibanaNodePro
Struct T he configuration of Kibana nodes.
perties
["elasticsearch.n4.s
mall","elasticsearch.
sn2ne.large","elastic
T he list of specifications that are allowed to
spec List search.sn2ne.xlarge"
be set.
,"elasticsearch.sn2n
e.2xlarge","elasticse
arch.sn1ne.large"]
["elasticsearch.sn2n
e.large","elasticsear
ch.sn2ne.xlarge","el
asticsearch.sn2ne.2x
large","elasticsearch
masterSpec List .sn2ne.4xlarge","ela T he exclusive master node specifications.
sticsearch.sn1ne.4xl
arge","elasticsearch.
r5.large","elasticsea
rch.r5.xlarge","elasti
csearch.r5.2xlarge" ]
Array of
nodeSpecList T he list of data node specifications.
nodeSpecList
elasticsearch.sn2ne.l
spec String T he name of the specification.
arge
supportVersion Array of
Supported version configurations.
s CategoryEntity
warmNodeProp
Struct Cold node configuration.
erties
[2560,3072,3584,409
valueLimitSet List T he discrete value allowed by the disk.
6,4608,5120]
["elasticsearch.sn2n
e.large","elasticsear
ch.sn2ne.xlarge","el
asticsearch.sn2ne.2x
large","elasticsearch
.sn2ne.4xlarge","ela
sticsearch.sn1ne.8xl
arge","elasticsearch.
ic5.large","elasticse
spec List T he specifications supported by cold nodes.
arch.ic5.xlarge","ela
sticsearch.ic5.2xlarg
e","elasticsearch.ic5.
3xlarge","elasticsear
ch.ic5.4xlarge","elas
ticsearch.r5.large","
elasticsearch.r5.xlar
ge","elasticsearch.r5
.2xlarge"]
["cn-hangzhou-
zones List Supported zones.
b","cn-hangzhou-f"]
Not e T he above sample values are for reference only, subject t o t he act ual ret urn value of
t he int erface.
Examples
Sample request s
GET /openapi/region
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.1.23. ListShardRecoveries
You can call List ShardRecoveries t o ret urn a list of dat a progress about ongoing and complet ed part
recovery. By default , informat ion about ongoing part recovery is ret urned.
Not e Shard recovery is t he process of synchronizing from primary t o secondary shards. Aft er
t he rest orat ion is complet e, t he secondary part s are available for searching.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/cat-recovery HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes 7mz293m9a00 T he ID of the instance.
3j****
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC47D9
Examples
Sample request s
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.1.24. CapacityPlan
You can call Capacit yPlan t o recommend t he opt imal configurat ion informat ion for clust er capacit y
planning based on business scenarios, QPS, and log generat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample codes.
Request parameters
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request syntax
POST /openapi/assist/actions/capacity-plan HTTP/1.1
Request parameters
Locati Require
Parameter T ype Example Description
on d
Locati Require
Parameter T ype Example Description
on d
{ "type": "hot",
An
"code": T he disk usage. For more
array of
dataInfo Array "totalRawData" information, see dat aInf o f ield
node
, "size": 50, dat a st ruct ure .
roles.
"unit": "T B" }
{ "type":
An "common", T he metrics such as disk usage,
array of "code": "write", search and write, and aggregate
metric Array
node "concurrent": 2, requests. For more information,
roles. "throughput": see met ric f ield dat a st ruct ure .
100 },
T he memory size
consumed by each
Field T ype Example Required core.
Automatically
allocated.
T he memory size
consumed by each
Field T ype Example Required core.
Automatically
allocated.
T he code of the
disk data metric.
Valid values:
totalRawData
(source data
information),
document (data
document
information,
estimated number
of documents),
dailyIncrement
(daily data
growth),
dailyIncrement
(daily incremental
code String totalRawData Yes documents),
retentionT ime
(data retention
period), and
replica (replica
settings).
T he value of the
size int 100 No
disk usage metric.
T he data type of
the disk. Valid
type String hot Yes
values: hot data
and warm data.
T he memory size
consumed by each
Field T ype Example Required core.
Automatically
allocated.
T he total number
totalCount String 10000 No of entries
returned.
T he memory size
consumed by each
Field T ype Example Required core.
Automatically
allocated.
T he number of
concurrent int 2 No concurrent
threads.
T he throughput.
throughput int 100 No
Unit: MB/S.
T he search /write
peak type. Valid
type String common Yes values: common
(regular) and peak
(peak).
T he memory size
consumed by each
Field T ype Example Required core.
Automatically
allocated.
T he expected
average response
responseT ime int 100 No
time. Unit:
milliseconds.
Response parameters
E91B7129-A669-
RequestId String 4D9D-A743- T he RequestId of the current request.
F90A0FF1F5EF
Array of
ExtendConfigs T he extension configuration information.
ExtendConfigs
Array of
NodeConfigura
NodeConfigura T he node information.
tions
tions
Examples
Sample request s
"code": "retentionTime",
"size": 30,
"unit": "DAYS"
},
{
"type": "hot",
"code": "replica",
"size": 1
},
{
"type": "warm",
"code": "dailyIncrement",
"size": 10,
"unit": "TB"
},
{
"type": "warm",
"code": "dailyIncrementDocument",
"totalCount": 10000,
"size": 10,
"unit": "KiB"
},
{
"type": "warm",
"code": "retentionTime",
"size": 30,
"unit": "DAYS"
},
{
"type": "warm",
"code": "replica",
"size": 1
}
],
"metric": [
{
"type": "common",
"code": "write",
"concurrent": 2,
"throughput": 100
},
{
"type": "common",
"code": "search",
"peakQps": 30,
"averageQps": 30,
"responseTime": 100
},
{
"type": "peak",
"code": "write",
"concurrent": 2,
"throughput": 100
},
{
{
"type": "peak",
"code": "search",
"peakQps": 30,
"averageQps": 30,
"responseTime": 100
}
]
}
JSON format
{
"RequestId": "E91B7129-A669-4D9D-A743-F90A0FF1F5EF",
"Result": {
"instanceCategory": "advanced",
"oversizedCluster": true,
"nodeConfigurations": [
{
"amount": 3943,
"diskType": "cloud_ssd",
"disk": 20,
"nodeType": "WORKER",
"cpu": 32,
"memory": 128
},
{
"amount": 3,
"diskType": "cloud_ssd",
"disk": 20,
"nodeType": "MASTER",
"cpu": 2,
"memory": 8
},
{
"amount": 3,
"diskType": "cloud_efficiency",
"disk": 20,
"nodeType": "COORDINATING",
"cpu": 2,
"memory": 8
},
{
"amount": 7,
"diskType": "cloud_efficiency",
"nodeType": "WORKER_WARM",
"cpu": 4,
"memory": 32
},
{
"amount": 1,
"nodeType": "KIBANA",
"cpu": 1,
"memory": 2
}
],
"extendConfigs": [
{
"configType": "sharedDisk",
"diskType": "CPFS_PREMIUM",
"disk": 3943000
}
]
}
}
Error codes
For a list of error codes, visit t he API Error Cent er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/tags/all-tags HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Examples
Sample request s
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.2.2. ListTagResources
Queries t he t ags t hat are added t o one or more resources.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T he Get Logs operat ion does not have operat ion-specific request headers and uses only common
request headers. For more informat ion, see t he "Common request headers" sect ion in t he "Common
HT T P headers" t opic in API Reference.
Request syntax
GET /openapi/tags HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ResourceT ype String Query Yes INST ANCE T he type of the resource.
1d2db86sca438
T he token that is returned for the
NextT oken String Query No 4811e0b5e8707
next query.
e******
["es-cn-
T he list of instance IDs that you
ResourceIds String Query No aaa","es-cn-
want to query.
bbb"]
[{"key":"env","v
T he list of tags to query. It is in the
alue","dev"},
T ags String Query No form of a JSON string and contains
{"key":"dev",
a maximum of 20 subitems.
"value":"IT "}]
You must specify at least one of t he ResourceIds and T ags paramet ers. Ot herwise, an error is
ret urned.
Not e Syst em t ags are t ags t hat are added t o user inst ances by cloud product s (Alibaba
Cloud services). Syst em t ags include visible t ags and invisible t ags.
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6D******
Array of
T agResource T he labels of the resource.
T agResource
es-cn-
ResourceId String T he ID of the resource.
oew1q8bev0002****
Examples
Sample request s
GET /openapi/tags?ResourceType=INSTANCE&NextToken=1d2db86sca4384811e0b5e8707e******&Resourc
eIds=["es-cn-aaa","es-cn-bbb"]&Tags=[{"key":"env","value","dev"},{"key":"dev", "value":"IT
"}] HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "A5423B74-DBD5-4714-BF28-6725E5BE****",
"TagResources" : {
"TagResource" : [ {
"ResourceType" : "ALIYUN::ELASTICSEARCH::INSTANCE",
"ResourceId" : "es-cn-oew1q8bev0002****",
"TagKey" : "env",
"TagValue" : "dev"
} ]
}
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.2.3. TagResources
Call T agResources t o creat e a relat ionship bet ween t ag resources.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
ht t ps://elast icsearch.cn-hangzhou.aliyuncs.com/openapi/t ags
Request syntax
POST /openapi/tags HTTPS|HTTP
Request parameters
T he request paramet ers is empt y, but t he Request Body paramet er is required.
Specify t he required paramet ers in Request Body t o specify t he t arget resource and t ags.
["es-cn-aaa","es- T he ID of the
ResourceIds Array Yes
cn-bbb"] resource.
T he list of newly
created tags. A
[{"key":"env","valu
T ags Array Yes maximum of 20
e":"IT "}]
child tags are
allowed.
T he type of the
resource. Set this
ResourceT ype String Yes INST ANCE
parameter to
INST ANCE.
Not e
Except t hat you must pass t his paramet er, if t he key specified in t he T ags paramet er exist s,
t hen t his value must exist and can be an empt y st ring. Ot herwise, a InvalidParamet er.T agKey
error is ret urned.
If t he input key-value pairs are t he same, t he Duplicat e.T agKey error is report ed.
If a T ag key already exist s before cust om T ags are defined, t he value of t he previous T ag
key is overwrit t en.
Example:
{
"ResourceIds":["es-cn-oew1q8bev0002****","es-cn-09k1ptccp0009****"],
"Tags": [
{
"key": "env",
"value": "IT"
}
],
"ResourceType": "INSTANCE"
}
Response parameters
3D8795D9-8FF5-
RequestId String 46B2-86E6- T he ID of the request.
E3B407*******
T he response paramet ers also include t he Result paramet er. T he value is of t he Boolean t ype. If t he
resource relat ionship is creat ed, t rue is ret urned. If t he resource relat ionship is failed, false is ret urned.
Examples
Sample request s
XML format
<Result>true</Result>
<RequestId>27627E6B-E26A-406F-B6E1-0247882C****</RequestId>
JSON format
{
"Result": true,
"RequestId": "27627E6B-E26A-406F-B6E1-0247882C****"
}
Error codes
7.2.4. UntagResources
Delet es a user resource t ag relat ionship.
When you call t his operat ion, t ake not e of t he following it ems:
Not e User labels are manually added t o inst ances by users. A syst em T ag is a t ag t hat
Alibaba Cloud services add t o inst ances. Syst em labels are divided int o visible labels and invisible
labels.
If you delet e a resource t ag relat ionship t hat is not associat ed wit h any resources, you must delet e
t he t ags.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
DELETE /openapi/tags HTTPS|HTTP
Request parameters
["es-cn-
09k1rocex0006***
T he resource list that you want to
ResourceIds String Required *","es-cn-
delete.
oew1rgiev0009**
**"]
All= t rue you call t his operat ion wit h when T agKeys is empt y and all resource t ag relat ionships under
t he Resource are delet ed. For resources wit hout t ags, t he int erface is not processed and success is
ret urned.
When T agKeys is null and All= f alse , t he API is not processed and success is ret urned.
T agKeys is not empt y. All is ignored when t his operat ion is called, whet her it is t rue or false.
Af t er t he T agKeys specified are are, you can call t his operat ion t o delet e t he specified t ags from
resources. If t he specified t ag does not exist on a resource, t he specified t ag is not processed.
If t he request ed resource does not exist , t he syst em ret urns InvalidResourceId.Not Found when
you call t his operat ion.
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6D******
Return results:
Result Boolean true true: deleted
false: Failed
Examples
Sample request s
{
"Result":true,
"RequestId": "3D8795D9-8FF5-46B2-86E6-E3B40*******"
}
Error codes
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/transferable-nodes HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
T he ID of the zone to
zoneId String cn-hangzhou-b which the node
belongs.
Examples
Sample request s
JSON format
{
"Result":[
{
"nodeType":"WORKER",
"host":"192.168. **.**",
"port":9300,
"zoneId":"cn-hangzhou-b"
}
],
"RequestId":"3760F67B-691D-4663-B4E5-6783554F****"
}
Error codes
7.3.2. ValidateTransferableNodes
Call Validat eT ransferableNodes t o check whet her t he dat a on some nodes in t he specified inst ance can
be migrat ed.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/validate-transfer-nodes HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
RequestBody
You must ent er t he following paramet ers in Request Body t o specify t he IP address and port number of
t he node t o be verified:
T he IP address of the
host String 172.16.xx.xx
node.
Example:
[
{
"host": "172.16.**.**",
"port": 9200
},
{
"host": "172.16.**.**",
"port": 9200
}
]
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Return results:
Result Boolean true Yes: the data can be migrated
No: the data can not be migrated
Examples
Sample request s
XML format
<Result>true</Result>
<RequestId>3760F67B-691D-4663-B4E5-6783554F****</RequestId>
JSON format
{
"Result":true,
"RequestId":"3760F67B-691D-4663-B4E5-6783554F****"
}
Error codes
7.3.3. TransferNode
Call T ransferNode t o run a dat a migrat ion t ask.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/transfer HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
RequestBody
You must also ent er t he following paramet ers in Request Body t o specify t he IP address and port
number of t he node t o be migrat ed.
T he IP address of
host String Yes 192.168.xx.xx
the node.
T he access port
number of the
port Integer Yes 9200
node.
Example:
[
{
"host": "192.168. **.**",
"port": 9200
},
{
"host": "192.168. **.**",
"port": 9200
}
]
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Return results:
Result Boolean true true: task execution successfully
false: task execution failed
Examples
Sample request s
XML format
<Result>true</Result>
<RequestId>C82758DD-282F-4D48-934F-92170A33****</RequestId>
JSON format
{
"Result": true,
"RequestId": "C82758DD-282F-4D48-934F-92170A33****"
}
Error codes
7.3.4. ListDataTasks
Call List Dat aT asks t o obt ain t he informat ion of a dat a migrat ion t ask.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/data-task HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes oew1oxiro000f*** T he ID of the instance.
*
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
vpc-
T he ID of the VPC to which the cluster
vpcId String 2ze55voww95g82g
belongs.
ak****
es-cn-
T he instance ID or Server Load Balancer (SLB)
vpcInstanceId String 09k1rnu3g0002****-
ID of the current cluster.
worker
vpcInstancePor
String 9200 T he access port number of the cluster.
t
{\"_doc\":
{\"properties\":
{\"user\":
mapping String {\"properties\": T he Mapping configuration of the cluster.
{\"last\":
{\"type\":\"text\",...
}}}}}}
et_cn_mfv1233r472
taskId String T he ID of the task.
72****
Examples
Sample request s
JSON format
{
"Result": [
{
"taskId": "et_cn_mfv1233r47272****",
"sourceCluster": {
"dataSourceType": "elasticsearch",
"endpoint": "http://192.168.xx.xx:4101",
"vpcInstancePort": 9200,
"vpcId": "vpc-2ze55voww95g82gak****",
"vpcInstanceId": "es-cn-09k1rnu3g0002****-worker",
"index": "product_info",
"type": "products"
},
"sinkCluster": {
"dataSourceType": "elasticsearch",
"index": "product_info01",
"type": "_doc",
"settings": "{\n \"index\": {\n \"replication\": {\n}.....}}",
"mapping": "{\"_doc\":{\"properties\":{\"user\":{\"properties\":{\"last\":{
\"type\":\"text\",...}}}}}}"
},
"status": "SUCCESS",
"createTime": "2020-08-03 08:36:19"
},
{
"taskId": "et_cn_vb9g57i4h4eyp****",
"sourceCluster": {
"dataSourceType": "elasticsearch",
"endpoint": "http://192.168.xx.xx:4096",
"vpcInstancePort": 9200,
"vpcId": "vpc-2ze55voww95g82gak****",
"vpcInstanceId": "es-cn-oew1oxiro000f****-worker",
"index": "my_index",
"type": "_doc"
},
"sinkCluster": {
"dataSourceType": "elasticsearch",
"index": "my_index003",
"type": "_doc",
"settings": "{\n \"index\": {\n \"replication\": {\n}.....}}",
"mapping": "{\"_doc\":{\"properties\":{\"user\":{\"properties\":{\"last\":{
\"type\":\"text\",...}}}}}}"
},
"status": "SUCCESS",
"createTime": "2020-07-30 06:32:18"
}
],
"RequestId": "8FB71A9A-1ACE-40DA-ADC0-2B3DB44F****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.3.5. CreateDataTasks
Call t he Creat eDat aT asks t o creat e an index migrat ion t ask t o Dat a T ransport from t he select ed clust er
t o t he current clust er.
Current ly, t he one-click index migrat ion feat ure only support s t he China (Beijing) region.
T he source and dest inat ion Elast icsearch clust ers must meet t he following requirement s: T he source
is a user-creat ed or Alibaba Cloud Elast icsearch Elast icsearch clust er of version 6.7.0, and t he
dest inat ion is a Alibaba Cloud Elast icsearch Elast icsearch clust er of version 6.3.2 or 6.7.0.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample codes.
Request parameters
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/instances/[InstanceId]/data-task HTTP/1.1
Request parameters
Locati Require
Parameter T ype Example Description
on d
es-cn-
T he ID of the destination cluster for
InstanceId String Path Yes n6w1o1x0w001
index migration.
c****
RequestBody
You must also specify t he following paramet ers in Request Body t o specify t he migrat ion informat ion.
T he information
sourceCluster Struts of the source
cluster.
T he type of the
source cluster.
└dataSourceT ype String Yes elasticsearch
T he default value
is Elasticsearch.
T he public domain
name of the
cluster. You can
http://yourdomai
└endpoint String No specify this
n.com
parameter if the
source cluster is
Internet-enabled.
T he port number
used to access
the cluster. T he
└vpcInstancePort Integer No 9200 source cluster
uses VPC
information to
connect.
T he ID of the VPC
where the source
cluster resides.
vpc- T he source cluster
└vpcId String No 2ze59tt67m3nzkk uses VPC
o9**** information to
connect.
T he ID of the
instance or Server
Load Balancer
(Server Load
Balancer) instance
└vpcInstanceId String No es-xxx-worker of the current
cluster. T he
source cluster
uses VPC
information to
connect.
T he IP address of
the SLB instance in
the cluster. T he
└vpcIp String No 10.10.xx.xx source cluster
uses VPC
information for
connection
T he logon
└username String No elastic username of the
source cluster.
T he logon
└password String No xxxxx password of the
source cluster.
T he specified
└index String
Yes index_001 index of the
source cluster.
T he type of the
└type String Yes index_001
specified index.
T he information
sinkCluster Struts about the target
cluster.
T he type of the
└dataSourceT ype String Yes elasticsearch
target cluster.
T he logon
└username String Yes elastic username of the
target cluster.
T he logon
└password String Yes xxxxx password of the
target cluster.
T he specified
index of the
└index String Yes index_001
destination
cluster.
T he type of the
└type String Yes index_001
specified index.
{\"doc\":
{\"properties\":
Mapping
└mapping String Yes {\"interval_ms\":
configuration.
{\"type\":\"long\"
},....}
T he index route
field. T he primary
└routing String No _id
key field is used
by default.
"sourceFilterPara Migrate
migrationConfig Struts No
ms": "index = 1" configurations.
T he filter
condition of the
index. Filter
documents with
└filterParams String No index=111
specified
conditions for
index
reconstruction.
Public net work enabled for t he clust er: Ent er t he endpoint paramet er t o connect .
Public net work is not enabled for t he clust er (or VPC informat ion is used t o connect t o t he clust er):
Ent er t he paramet ers vpcInst ancePort , vpcId, vpcInst anceId, or vpcInst ancePort , vpcId, and vpcIp t o
connect .
Example:
{
"sourceCluster":{
"dataSourceType":"elasticsearch",
"endpoint" : "http://es-cn-n6w1o1x0w001c****.public.elasticsearch.aliyuncs.co
m:9200",
"username" : "elastic",
"password" : "xxxxxx",
"index" : "default",
"type" : "default"
},
"sinkCluster":{
"dataSourceType":"elasticsearch",
"username" : "elastic",
"password" : "xxxxxx",
"index" : "default",
"type" : "default",
"settings" : "#settings configuration#",
"mapping" : "#mapping configuration#",
"routing" : "_id"
},
"migrateConfig": {
"sourceFilterParams": ""
}
}
{
"sourceCluster":{
"dataSourceType" : "elasticsearch",
"vpcInstancePort":9200,
"vpcId":"vpc-2ze55voww95g82gak****",
"vpcInstanceId":"es-cn-oew1oxiro000f****-worker",
"username" : "elastic",
"password" : "xxxxxx",
"index" : "default",
"type" : "default"
},
"sinkCluster":{
"dataSourceType":"elasticsearch",
"username" : "elastic",
"password" : "xxxxxx",
"index" : "default",
"type" : "default",
"settings" : "#settings configuration#",
"mapping" : "#mapping configuration#",
"routing" : "_id"
},
"migrateConfig": {
"sourceFilterParams": ""
}
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
dataSourceT yp
String elasticsearch T he type of the target cluster.
e
{\"doc\":
{\"properties\":
mapping String {\"interval_ms\": Mapping configuration.
{\"type\":\"long\"},.
...}
vpcInstancePor
String 9200 T he access port number of the cluster.
t
http://10.20.xx.xx:9
endpoint String T he public domain name of the cluster.
200
Examples
Sample request s
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1****",
"Result": [{
"sourceCluster": {
"password": "xxxxxx",
"endpoint": "http://10.20.xx.xx:9200",
"vpcId": "vpc-2ze55voww95g82gak****",
"vpcInstancePort": 9200,
"index": "index_001",
"type": "index_001",
"vpcInstanceId": "es-cn-oew1oxiro000f****-worker",
"dataSourceType": "elasticsearch",
"username": "elastic"
},
"sinkCluster": {
"routing": "cluster_name",
"settings": "{\\n \\\"index\\\": {\\n \\\"replication\\\": {\\n \\\"ty
pe\\\": .....}",
"password": "xxxxx",
"mapping": "{\\\"doc\\\":{\\\"properties\\\":{\\\"interval_ms\\\":{\\\"type\\\"
:\\\"long\\\"},....}",
"vpcInstancePort": 9200,
"vpcId": "vpc-2ze55voww95g82gak****",
"index": "index_001",
"type": "index_001",
"vpcInstanceId": "es-cn-oew1oxiro000f****-worker",
"dataSourceType": "elasticsearch",
"username": "elastic"
}
}]
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.3.6. GetClusterDataInformation
Call Get Clust erDat aInformat ion t o obt ain t he dat a informat ion about t he clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/cluster/data-information HTTPS|HTTP
Request parameters
T he request paramet ers is empt y, but t he Request Body paramet er is required.
You must specify t he clust er informat ion by set t ing t he following paramet ers in Request Body:
T he type of the
cluster. Default
dataSourceT ype String Yes elasticsearch
value:
elasticsearch.
T he public domain
name of the
cluster. T his
parameter must
be specified when
endpoint String No http://10.01.xx.xx
the network
environment of
the source cluster
is a public
network.
T he ID of the
Elasticsearch
instance. T his
parameter is
required when the
es-cn-
network
instanceId String No 09k1rnu3g0002***
environment of
*
the source cluster
is an Alibaba
Cloud
Elasticsearch
cluster.
T he access port
number of the
cluster. T he
source cluster
network
environment is
vpcInstancePort Integer No 9200 required when the
Alibaba Cloud
Elasticsearch
cluster or Alibaba
Cloud ECS Service
User-created
cluster is used.
T he ID of the VPC
to which the
cluster belongs.
T he source cluster
vpc- network
environment is
2ze59tt67m3nzkk
vpcId String No required when the
o9****
Alibaba Cloud
Elasticsearch
cluster or Alibaba
Cloud ECS Service
User-created
cluster is used.
T he instance ID or
Server Load
Balancer (SLB) ID
of the current
cluster. T his
parameter is
es-
required when the
vpcInstanceId String No 09k1rnu3g0002***
network
*-worker
environment of
the source cluster
is an Alibaba
Cloud
Elasticsearch
cluster.
T he username
that is used to
username String No elastic
connect to the
cluster.
T he password
that is used to
password String No xxxxxx
connect to the
cluster.
T he name of the
index String No product
destination index.
Not e
If t he index is empt y, you can check whet her t he Elast icsearch clust er can be connect ed. If
t he connect ivit y is available, t he indices field in t he ret urned result s is not null.
If t he index is not empt y, you can get t he informat ion about t he set t ings and mappings
under t he current index.
If t he t ype is not empt y, you can obt ain t he rout ing field of t he current t ype.
T he paramet ers vary depending on t he net work environment of t he source clust er.
Public net work clust er: ent er one or more paramet ers, including endpoint . Example:
{
"dataSourceType": "elasticsearch",
"endpoint": "http://es-cn-npk1shyiq000d****.public.elasticsearch.aliyuncs.com:92
00",
"username": "elastic",
"password": "xxxxxx",
"index": "default",
"type": "default"
}
Alibaba Cloud ECS Service self-built clust er: Ent er t he following paramet ers: vpcInst ancePort , vpcId,
and vpcIp. For example:
{
"dataSourceType": "elasticsearch",
"vpcId":"vpc-2ze55voww95g82gak****",
"vpcInstancePort": "9200",
"vpcIp": "10.12.xx.xx",
"username" : "elastic",
"password" : "xxxxxx",
"index": "product",
"type" : "default"
}
Alibaba Cloud Elast icsearch clust er: specify t he paramet ers: vpcInst ancePort , vpcId, vpcInst anceId,
and inst anceId. T he sample code is as follows:
{
"dataSourceType" : "elasticsearch",
"vpcId":"vpc-2ze55voww95g82gak****",
"vpcInstancePort" : "9200",
"vpcInstanceId" : "es-cn-09k1rnu3g0002****-worker",
"instanceId" : "es-cn-oew1oxiro000f****",
"username" : "elastic",
"password" : "xxxxxx",
"index": "product",
"type" : "default"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
["index1","index2","i
indices List T he index list of the cluster.
ndex3"]
{\"_doc\":
{\"properties\":
{\"user\":
mapping String {\"properties\": T he Mapping configuration of the cluster.
{\"last\":
{\"type\":\"text\",...
}}}}}}
Examples
Sample request s
JSON format
{
"Result": {
"connectable": true,
"metaInfo": {
"indices": ["index1","index2","index3"],
"typeName": ["index1-type"],
"settings": "{\n \"index\": {\n \"replication\": {\n}.....}}",
"mapping": "{\"_doc\":{\"properties\":{\"user\":{\"properties\":{\"last\":{\"type\":\
"text\",...}}}}}}",
"fields": ["id","name","_id"]
}
},
"RequestId" : "29AEFBA7-DD86-4B05-87A2-43F22C85****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.3.7. DeleteDataTask
You can call t his operat ion t o delet e an index migrat ion t ask.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see t he Common request
paramet ers t opic.
Request syntax
DELETE /openapi/instances/[InstanceId]/data-task HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes oew1oxiro000f*** T he ID of the instance.
*
et_cn_0oyg09o96
taskId String Yes T he ID of the index migration task.
ib40****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "3F71A6D2-7BD0-4A53-9119-386A2F0B****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
7.3.8. CancelTask
Call CancelT ask t o cancel a dat a migrat ion t ask.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/cancel-task HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Return results:
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "C82758DD-282F-4D48-934F-92170A33****"
}
Error codes
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/suggest-shrinkable-nodes HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
T he ID of the zone to
zoneId String cn-hangzhou-b which the node
belongs.
Examples
Sample request s
JSON format
{
"Result": [
{
"nodeType": "WORKER",
"host": "172.16. **.**",
"port": 9200,
"zoneId": "cn-hangzhou-i"
}
],
"RequestId": "042E33B2-6FB3-474D-BD44-DBE706A4****"
}
Error codes
7.4.2. ValidateShrinkNodes
Calls Validat eShrinkNodes t o check whet her some nodes in a specified inst ance can be shrunken.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/validate-shrink-nodes HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Required nif1q9o8r0008*** T he ID of the instance.
*
RequestBody
You must ent er t he following paramet ers in Request Body t o specify t he IP address and port number of
t he node t o be verified:
T he IP address of
host String Yes 192.168.xx.xx
the node.
T he access port
port Integer Yes 9200 number of the
node.
Example:
[
{
"host": "192.168. **.**",
"port": 9200
},
{
"host": "192.168. **.**",
"port": 9200
}
]
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Return results:
Result Boolean true true: nodes can be shrunken
false: nodes cannot be shrunken
Examples
Sample request s
{
"Result":true,
"RequestId":"3760F67B-691D-4663-B4E5-6783554F****"
}
Error codes
7.4.3. ShrinkNode
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/actions/shrink HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
RequestBody
You must also specify t he following paramet ers in Request Body t o specify t he IP address and port
number of t he node t o be removed:
Required Example
Parameter T ype Description
T he IP address of
ho st String Yes 192.168.xx.xx
the node.
T he access port
po rt Integer Yes 9200 number of the
node.
Example:
[
{
"host": "192.168. **.**",
"port": 9200
},
{
"host": "192.168. **.**",
"port": 9200
}
]
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Return results:
Result Boolean true true: scale-in successfully
false: scale-in failed
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "C82758DD-282F-4D48-934F-92170A33****"
}
Error codes
7.4.4. UpgradeEngineVersion
Upgrades t he version or kernel of an Elast icsearch clust er. You can upgrade Elast icsearch clust ers from
V5.5.3 t o V5.6.16, from V5.6.16 t o V6.3.2, or from V6.3.2 t o V6.7.0.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
Request parameters
Positi Require
Attribute T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the instance.
c****
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DC*****
ClusterStatusNotHe
errorCode String T he error code returned.
alth
T he cluster status is
errorMsg String T he error message returned.
not health
Examples
Sample request s
JSON format
Error codes
T he instance is currently in
400 InstanceActivating Instance is activating.
effect.
7.4.5. UpdateInstance
You can call t his operat ion t o change t he clust er configurat ion.
When you call t his operat ion, t ake not e of t he following limit s:
If t he inst ance is in t he Act ivat ing, Invalid, or Inact ive st at e, you cannot change t he configurat ions.
If t he indexes of your clust er do not have replica shards, t he load of t he clust er is excessively high,
and large amount s of dat a are writ t en t o or queried in your clust er, access t o t he clust er may t ime
out during a clust er configurat ion upgrade or downgrade. We recommend t hat you configure an
access ret ry mechanism for your client before you upgrade t he configurat ion of your clust er. T his
reduces t he impact on your business.
You can change t he configurat ions of only one t ype of node at a t ime (dat a node, dedicat ed mast er
node, cold dat a node, coordinat or node, Kibana node, and elast ic node).
Due t o t he healt h and st abilit y of your clust er, Alibaba Cloud Elast icsearch does not support t he
purchase of 1-core 2 GB inst ances, 2-core 2 GB inst ances for dedicat ed mast er nodes, and 7.4
inst ances since May 2021. If you have confirmed t hat t he purchased specificat ions are no longer
available for sale, you must perform t he following operat ions:
For t he 1-core 2 GB and 2-core 2 GB specificat ions, we recommend t hat you upgrade t o t he st able
sales specificat ions t hat are available on t he buy page in advance. For more informat ion about t he
sales specificat ions available on t he buy page, see Purchase page paramet ers.
If your clust er is of V7.4, purchase a V7.10 clust er and migrat e dat a from t he original clust er t o t he
V7.10 clust er.
For more informat ion, see Upgrade a clust er and Downgrade a clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T he Get Logs operat ion does not have operat ion-specific request headers and uses only common
request headers. For more informat ion, see Common request headers.
Request syntax
PUT /openapi/instances/{InstanceId} HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1ptcb3000 T he ID of the instance.
9****
RequestBody
You must also specify t he following paramet ers in t he Request Body paramet er t o specify t he
informat ion of t he inst ance t o be upgraded.
T he change
method. Valid
updateT ype String No blue_green values:
blue_green and
normal.
T he number of
nodeAmount int No 3
data nodes.
T he configuration
nodeSpec Map No
of the data node.
node
specifications, the
specification
elasticsearch.sn2n information can
└spec String No
e.xlarge be viewed by
product
specifications.
T he storage space
└disk String No 20 of a single node.
Unit: GB.
T he type of the
storage. Valid
values:
cloud_ssd(SSD),
└diskT ype String No cloud_ssd cloud_essd
(Enhanced SSD),
and
cloud_efficiency
(ultra disk).
T he performance
level of the ESSD.
T his parameter is
required when the
└performanceLev storage type is
String No PL1
el cloud_essd. Valid
values: PL1, PL2,
and PL3.
T he configuration
masterConfigurati
Map No of the dedicated
on
master node.
node
specifications, the
specification
elasticsearch.sn2n
└spec String No information can
e.xlarge
be viewed by
product
specifications.
T he number of
nodes. Currently,
└amount int No 3
the value is fixed
to 3.
T he size of the
storage space per
└disk int No 20 node. Currently,
only 20 GB is
supported.
T he storage type
of the node. Valid
values:
└diskT ype string No cloud_ssd
cloud_ssd(SSD)
and cloud_essd
(Enhanced SSD).
node
specifications, the
specification
information can
be viewed by
product
specifications. T he
openstore.i2g.4xla
elasticsearch.ic5.la
└spec string No rge specification
rge
indicates that
OpenStore
storage is enabled
(this specification
only applies to
China site
(aliyun.com)).
T he number of
└amount Integer No 2
nodes.
T he storage space
└disk Integer No 500
of a single node.
node
specifications, the
specification
elasticsearch.ic5.la
└spec string No information can
rge
be viewed by
product
specifications.
T he number of
└amount Integer No 2
nodes.
T he size of the
storage space per
node.
└disk Integer No 20
Elastic node
elasticDataNodeC configuration (this
onfiguration Map No configuration only
applies to China
site (aliyun.com)).
node
specifications, the
specification
information can
elasticsearch.ic5.la be viewed by
└spec string No
rge product
specifications.
T he storage type
of the node. Valid
values:
cloud_ssd(SSD),
└diskT ype string No cloud_efficiency cloud_essd
(Enhanced SSD),
and
cloud_efficiency
(ultra disk).
T he size of the
└disk Integer No 20 storage space per
node.
T he performance
level of the ESSD.
T his parameter is
└performanceLev
el required when the
String No PL1
storage type is
cloud_essd. Valid
values: PL1, PL2,
and PL3.
T he configuration
kibanaConfiguratio
Map No of the kibana
n
node.
node
specifications, the
specification
elasticsearch.n4.s
└spec String Yes information can
mall
be viewed by
product
specifications.
Specifies whether
to verify the
configurations
when you change
the configuration
dryRun boolean No true
of the instance.
Valid values: true
and false. Valid
values: true and
false.
Not e
└ indicat es a child paramet er.
For a list of support ed node specificat ions, see Alibaba Cloud Elast icsearch pricing
informat ion and product specificat ions.
Upgrade
Not e You cannot reduce t he st orage space value, st orage t ype configurat ion, number of
nodes, number of CPU cores of specificat ions, or memory value when you upgrade t he
configurat ion.
{
"warmNodeConfiguration": {
"disk": 1000
}
}
Current ly, you can upgrade st orage t ypes only for dat a nodes, elast ic dat a nodes, and dedicat ed
mast er nodes.
{
"masterConfiguration": {
"diskType": "cloud_essd"
}
}
If t he st orage t ype of a dedicat ed mast er node is Enhanced SSD, upgrade t he node st orage
performance level t o PL3.
{
"masterConfiguration": {
"performanceLevel": "PL3"
}
}
Current ly, only dat a nodes, cold dat a nodes, elast ic dat a nodes, and coordinat or nodes are
support ed.
T he met hod of increasing t he number of nodes for a dat a node is different from t hat for ot her
nodes. For more informat ion, see t he following example.
Increase t he number of dat a nodes t o 12.
{
"nodeAmount": 12
}
Increase t he number of nodes of ot her t ypes (for example, cold dat a nodes) t o 12.
{
"warmNodeConfiguration": {
"amount": 12
}
}
{
"nodeSpec": {
"spec": "elasticsearch.r5.xlarge"
}
}
T o upgrade several configurat ions of t he same node at t he same t ime, you must writ e t he request
body of t he upgraded resource at t he same t ime.
{
"clientNodeConfiguration": {
"amount": 8,
"spec": "elasticsearch.sn1ne.xlarge"
}
}
{
"nodeAmount": 12,
"nodeSpec": {
"diskType": "cloud_essd"
}
}
Enable a node
For more informat ion about how t o configure a complet e node resource, see Configure a
creat eInst ance port .
Enable t he coordinat ion node and set t he coordinat ion node configurat ion.
{
"clientNodeConfiguration": {
"amount": 5,
"disk": 20,
"spec": "elasticsearch.sn1ne.xlarge"
}
}
Enable t he cold dat a node and set t he cold dat a node configurat ion.
{
"warmNodeConfiguration": {
"disk": 1000,
"amount": 3,
"spec": "elasticsearch.sn1ne.xlarge"
}
}
{
"nodeSpec": {
"spec": "elasticsearch.r5.xlarge"
},
"updateType": "blue_green" ## Change the value to normal.
}
{
"nodeSpec": {
"spec": "elasticsearch.r5.xlarge"
},
"force": true
}
{
"nodeSpec": {
"spec": "elasticsearch.r5.xlarge"
},
"dryRun": true
}
Downgrade
Not e
When you downgrade t he configurat ion, you cannot upgrade t he st orage space value, st orage
t ype, number of nodes, number of CPU cores of specificat ions, or memory value.
T he Updat eInst ance int erface cannot reduce t he number of nodes. Use t he ShrinkNode int erface if
necessary.
You cannot downgrade t he st orage space of a node. Enabled nodes cannot be disabled.
You cannot select a forced change or specify a change t ype. By default , smart changes are used.
If you downgrade t he configurat ion, you must set t he orderAct ionT ype paramet er t o
Downgrade .
You can downgrade mult iple resource configurat ions at t he same t ime, or perform dryRun pre-
verificat ion.
When you downgrade t he configurat ion, you cannot change t he st orage t ypes of cold dat a nodes,
coordinat or nodes, and Kibana nodes.
Change t he st orage t ype of t he dedicat ed mast er node t o SSD.
{
"masterConfiguration": {
"diskType": "cloud_ssd"
}
}
{
"nodeSpec": {
"spec": "elasticsearch.r5.xlarge"
}
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
2018-07-
createdAt String T he time when the instance was created.
13T 03:58:07.253Z
active: normal
status String active activating: taking effect
inactive: frozen
invalid: invalid
es-cn-
domain String abc.elasticsearch.ali T he private domain name of the instance.
yuncs.com
elasticsearch.sn2ne.
spec String T he instance type of the node.
xlarge
kibanaConfigur
Object T he configuration of Kibana nodes.
ation
elasticsearch.n4.sm
spec String T he instance type of the node.
all
elasticsearch.sn2ne.l
spec String T he instance type of the node.
arge
Examples
Sample request s
PUT /openapi/instances/es-cn-n6w1ptcb30009****?clientToken=5A2CFF0E-5718-45B5-9D4D-70B3FF**
**&orderActionType=upgrade HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
{
"nodeSpec": {
"spec": "elasticsearch.r5.xlarge"
}
}
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : {
"instanceId" : "es-cn-n6w1ptcb30009****",
"version" : "5.5.3_with_X-Pack",
"nodeAmount" : 3,
"paymentType" : "postpaid",
"status" : "active",
"nodeSpec" : {
"spec" : "elasticsearch.n4.small",
"disk" : 40,
"diskType" : "cloud_ssd",
"diskEncryption" : false
},
"createdAt" : "2020-06-28T08:25:52.895Z",
"zoneCount" : 1,
"instanceCategory" : "x-pack",
"kibanaConfiguration" : {
"spec" : "elasticsearch.n4.small",
"amount" : 1,
"disk" : 0
}
},
"RequestId" : "B5246080-9C30-4B6A-8F8A-8C705405****"
}
> In the return example, this article only guarantees that the parameters in the return da
ta list are included, and the parameters not mentioned are for reference only. The program
cannot force to rely on obtaining these parameters.
Error codes
For a list of error codes, visit t he API Error Cent er.
When you call t his operat ion, t ake not e of t he following it ems:
When t he inst ance is in t he act ivat ing, invalid, or inact ive st at e, you cannot updat e t he configurat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
PATCH|POST /openapi/instances/[InstanceId]/instance-settings HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
RequestBody
T he esConf ig paramet er needs t o be filled in t he Request Body t o specify t he YML paramet ers and
values t o be updat ed. Example:
{
"esConfig": {
"thread_pool.bulk.queue_size": 500
}
}
Response parameters
BB1C321A-211C-
RequestId String 4FD7-BD8B- T he ID of the request.
7F2FABE2****
T he ret urned dat a also includes t he Result paramet er. For more informat ion, see List Inst ance.
Examples
Sample request s
{
"Result": {
"instanceId": "es-cn-nif1q9o8r0008****",
"version": "6.7.0_with_X-Pack",
"description": "es-cn-nif1q9o8r0008****",
"nodeAmount": 4,
"paymentType": "postpaid",
"status": "active",
"privateNetworkIpWhiteList": [
"0.0.0.0/0"
],
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.n4.small",
"disk": 20,
"diskType": "cloud_ssd",
"diskEncryption": false
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
"vsArea": "cn-hangzhou-i",
"type": "vpc"
},
"createdAt": "2020-07-07T04:05:16.791Z",
"updatedAt": "2020-07-07T07:09:51.268Z",
"commodityCode": "elasticsearch",
"extendConfigs": [
{
"configType": "usageScenario",
"value": "general"
},
{
"configType": "maintainTime",
"maintainStartTime": "02:00Z",
"maintainEndTime": "06:00Z"
},
{
"configType": "aliVersion",
"aliVersion": "ali1.2.0"
}
],
"esConfig": {
"thread_pool.bulk.queue_size": "500",
"xpack.security.authc.realms.native.type": "native",
"xpack.security.authc.reserved_realm.enabled": "false",
"xpack.security.transport.ssl.truststore.path": "168520994880****.p12",
"xpack.security.authc.realms.native.order": "1",
"xpack.license.self_generated.type": "trial",
"xpack.security.authc.realms.file.order": "0",
"xpack.security.authc.realms.file.type": "file",
"xpack.security.enabled": "true",
"bootstrap.memory_lock": "true",
"xpack.monitoring.collection.enabled": "true",
"xpack.security.transport.ssl.keystore.path": "168520994880****.p12",
"xpack.security.transport.ssl.verification_mode": "certificate",
"xpack.security.transport.ssl.enabled": "true"
},
"esIPWhitelist": [
"0.0.0.0/0"
],
"esIPBlacklist": [],
"kibanaIPWhitelist": [
"0.0.0.0/0",
"::/0"
],
"kibanaPrivateIPWhitelist": [],
"publicIpWhitelist": [],
"kibanaDomain": "es-cn-nif1q9o8r0008****.kibana.elasticsearch.aliyuncs.com",
"kibanaPort": 5601,
"haveKibana": true,
"instanceCategory": "x-pack",
"dedicateMaster": false,
"advancedDedicateMaster": false,
"masterConfiguration": {},
"haveClientNode": false,
"warmNode": false,
"warmNodeConfiguration": {},
"clientNodeConfiguration": {},
"kibanaConfiguration": {
"spec": "elasticsearch.n4.small",
"amount": 1,
"disk": 0
},
"dictList": [
{
"name": "SYSTEM_MAIN.dic",
"fileSize": 2782602,
"sourceType": "ORIGIN",
"type": "MAIN"
},
{
"name": "SYSTEM_STOPWORD.dic",
"fileSize": 132,
"sourceType": "ORIGIN",
"type": "STOP"
}
],
"synonymsDicts": [],
"ikHotDicts": [],
"aliwsDicts": [],
"haveGrafana": false,
"haveCerebro": false,
"enableKibanaPublicNetwork": true,
"enableKibanaPrivateNetwork": false,
"advancedSetting": {
"gcName": "CMS"
}
},
"RequestId": "C1FA70F8-B84E-4D89-B31A-BCD1E476****"
}
Error codes
7.5.2. UpdateHotIkDicts
Call t he Updat eHot IkDict s t o hot updat e t he IK word segment at ion plug-ins for a Alibaba Cloud
Elast icsearch inst ance, including t he IK main word segment at ion dict ionary and IK st opword Dict ionary.
If t he dict ionary file is obt ained from OSS, make sure t hat t he OSS bucket is public-readable.
If t he ORIGIN configurat ion is not added t o an uploaded dict ionary file, t he dict ionary file is delet ed
aft er you call t his operat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
PUT /openapi/instances/[InstanceId]/ik-hot-dict HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes oew1q8bev000 T he ID of the instance.
2****
RequestBody
Ent er t he following paramet ers in Request Body.
T he name of the
name String Yes dic_0.dic uploaded
dictionary file.
T he description of
the open storage
file of OSS. When
ossObject Array Yes sourceT ype is set
to OSS, this
parameter is
required.
search-cloud- T he name of an
└bucketName String Yes
test-cn-**** OSS Bucket.
T he storage path
of the dictionary
└key String Yes oss/dic_0.dic
file in the OSS
Bucket.
T he type of the
Dictionary File
Source. Valid
values: OSS (open
storage service
using OSS) and
ORIGIN (retaining
the dictionaries
that have been
previously
uploaded).
sourceT ype String Yes OSS No t es :
T he type of the
dictionary that
you want to
update. Valid
type String Yes MAIN values: MAIN(IK
MAIN and word
dictionaries) and
ST OP(IK disabled
dictionaries).
Example:
[
{
"name":"deploy_0.dic",
"ossObject":{
"bucketName":"search-cloud-test-cn-****",
"key":"user_dict/dict_0.dic"
},
"sourceType":"OSS",
"type":"MAIN"
},
{
"name":"deploy_2.dic",
"ossObject":{
"bucketName":"search-cloud-test-cn-****",
"key":"user_dict/dict_2.dic"
},
"sourceType":"OSS",
"type":"STOP"
},
{
"name":"SYSTEM_MAIN.dic",
"sourceType":"ORIGIN",
"type":"MAIN"
},
{
"name":"SYSTEM_STOPWORD.dic",
"sourceType":"ORIGIN",
"type":"STOP"
}
]
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Examples
Sample request s
JSON Synt ax
{
"Result": [
{
"name": "deploy_0.dic",
"ossObject": {
"bucketName": "search-cloud-test-cn-****",
"key": "user_dict/dict_0.dic"
},
"sourceType": "OSS",
"type": "MAIN"
},
{
"name": "deploy_2.dic",
"ossObject": {
"bucketName": "search-cloud-test-cn-****",
"key": "user_dict/dict_2.dic"
},
"sourceType": "OSS",
"type": "STOP"
},
{
"name": "SYSTEM_MAIN.dic",
"sourceType": "ORIGIN",
"type": "MAIN"
},
{
"name": "SYSTEM_STOPWORD.dic",
"sourceType": "ORIGIN",
"type": "STOP"
}
],
"RequestId": "E1F6991B-1F77-47EA-9666-593F11E3****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.5.3. UpdateSynonymsDicts
Call t he Updat eSynonymsDict s t o updat e t he Synonym Dict ionary of t he Elast icsearch inst ance.
If t he dict ionary file is obt ained from OSS, make sure t hat t he OSS bucket is public-readable.
If t he ORIGIN configurat ion is not added t o an uploaded dict ionary file, t he dict ionary file is delet ed
aft er you call t his operat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request paramet ers, and does not involve special request headers.
For more informat ion, see t he t opic about common paramet ers.
Request syntax
PUT /openapi/instances/[InstanceId]/synonymsDict HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes nif1q9o8r0008* T he ID of the instance.
***
RequestBody
Ent er t he following paramet ers in Request Body.
T he name of the
dictionary file you
name String Yes dic_0.txt uploaded, must
be a T XT file.
T he description of
the open storage
file of OSS. When
sourceT ype is set
to OSS, this
ossObject Array No
parameter is
required.
search-cloud- T he name of an
└bucketName String No
test-cn-**** OSS Bucket.
T he storage path
of the dictionary
└key String No oss/dic_0.txt
file in the OSS
Bucket.
T he type of the
Dictionary File
Source. Valid
values: OSS (open
storage service
using OSS) and
ORIGIN (retaining
the dictionaries
that have been
previously
uploaded).
No t e:
If an uploaded
dictionary is not
configured with
an ORIGIN, it is
deleted by the
system.
T he type of the
dictionary that
you want to
type String Yes SYNONYMS
update. T he value
is fixed to
SYNONYMS.
Examples:
[
{
"name":"deploy_0.txt",
"ossObject":{
"bucketName":"search-cloud-test-cn-****",
"key":"user_dict/dict_0.dic"
},
"sourceType":"OSS",
"type":"MAIN"
},
{
"name":"SYSTEM_MAIN.txt",
"type":"MAIN",
"sourceType":"ORIGIN"
},
{
"name":"SYSTEM_STOPWORD.txt",
"type":"STOP",
"sourceType":"ORIGIN"
}
]
Response parameters
7C5622CC-B312-
RequestId String 426F-85AA- T he ID of the request.
B0271*******
Examples
Sample request s
JSON format
{
"Result": [
{
"name":"deploy_0.txt",
"fileSize":220,
"sourceType":"OSS",
"type":"SYNONYMS"
},
{
"name":"SYSTEM_MAIN.txt",
"fileSize":2782602,
"sourceType":"ORIGIN",
"type":"SYNONYMS"
},
{
"name":"SYSTEM_STOPWORD.txt",
"fileSize":132,
"sourceType":"ORIGIN",
"type":"SYNONYMS"
}
],
"RequestId": "1F7FE662-CCD8-474F-BA9B-A7E0792E****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
7.5.4. UpdateDict
Call Updat eDict t o cold updat e t he IK word segment at ion plug-in of t he Alibaba Cloud Elast icsearch
inst ance, including t he IK main word segment at ion t hesaurus and t he IK st op word library.
If t he dict ionary file comes from OSS, make sure t hat t he OSS st orage space is publicly readable.
If t he uploaded dict ionary is not configured wit h ORIGIN, t he dict ionary file will be delet ed aft er t his
int erface is called.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
PUT /openapi/instances/[InstanceId]/dict HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes nif1q9o8r0008* T he ID of the instance.
***
RequestBody
T he following paramet ers must be filled in t he Request Body.
T he name of the
name String Yes dic_0.dic uploaded
dictionary file.
T he open storage
file description of
ossObject Array Yes OSS. Required
when sourceT ype
is OSS.
T he path where
the dictionary file
└key String Yes oss/dic_0.dic
is stored in OSS
Bucket.
T he source type
of the dictionary
file. Optional
values: OSS (OSS
Open Storage)
and ORIGIN (Keep
previously
uploaded
dictionaries).
No t e:
If the dictionary
that has been
uploaded before
is not configured
with ORIGIN, it will
be deleted by the
system.
T he dictionary
type to update.
Optional values:
MAIN(IK main
type String Yes MAIN segmentation
thesaurus) or
ST OP(IK
deactivation
thesaurus).
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
Examples
Sample request s
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.5.5. UpdateAliwsDict
Call t he Updat eAliwsDict t o updat e t he dict ionary file of t he AliNLP word Breaker (analysis-aliws).
Support s cust om dict ionary configurat ion.
Alibaba Cloud Elast icsearch V5.0 clust ers do not support t he analysis-aliws plug-in.
If t he dict ionary file is obt ained from OSS, make sure t hat t he OSS bucket is public-readable.
If t he ORIGIN configurat ion is not added t o an uploaded dict ionary file, t he dict ionary file is delet ed
aft er you call t his operat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request paramet ers, and does not involve special request headers.
For more informat ion, see t he t opic about common paramet ers.
Request syntax
PUT /openapi/instances/[InstanceId]/aliws-dict HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the instance.
c****
RequestBody
Ent er t he following paramet ers in Request Body.
T he name of the
uploaded
name String Yes aliws_ext_dict.txt dictionary file.
T he description of
the open storage
file of OSS. When
ossObject Array Yes sourceT ype is set
to OSS, this
parameter is
required.
search-cloud- T he name of an
└bucketName String Yes
test-cn-**** OSS Bucket.
T he storage path
oss/aliws_ext_dict of the dictionary
└key String Yes
.txt file in the OSS
Bucket.
T he type of the
Dictionary File
Source. Valid
values: OSS (open
storage service
using OSS) and
ORIGIN (retaining
the dictionaries
that have been
previously
uploaded).
No t e:
If a dictionary is
not configured
with an ORIGIN in
the previous
upload, it is
deleted by the
system.
T he type of the
dictionary. Static
field:
type String Yes ALI_WS
ALI_WS(AliNLP
word
segmentation).
Examples:
[
{
"name":"deploy_0.txt",
"ossObject":{
"bucketName":"search-cloud-test-cn-****",
"key":"user_dict/dict_0.txt"
},
"sourceType":"OSS",
"type":"ALI_WS"
},
{
"name":"aliws_ext_dict.txt",
"sourceType":"ORIGIN",
"type":"ALI_WS"
}
]
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Examples
Sample request s
XML format
<Result>
<name>aliws_ext_dict.txt</name>
<fileSize>6243</fileSize>
<sourceType>OSS</sourceType>
<type>ALI_WS</type>
</Result>
<RequestId>6A185DDB-3E87-448B-8932-8F77E35****</RequestId>
JSON format
{
"Result":[
{
"name":"aliws_ext_dict.txt",
"fileSize":6243,
"sourceType":"OSS",
"type":"ALI_WS"
}
],
"RequestId":"6A185DDB-3E87-448B-8932-8F77E35****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
7.5.6. ListDictInformation
T he call List Dict Informat ion obt ains and verifies t he det ails of t he user OSS dict ionary file when adding
t he dict ionary file st ored by t he user OSS.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/dict/_info HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the instance.
c****
Positi Require
Parameter T ype Example Description
on d
Response parameters
7C4334EA-D22B-
RequestId String 48BD-AE28- T he ID of the request.
08EE68******
Examples
Sample request s
GET /openapi/instances/es-cn-n6w1o1x0w001c****/dict/_info?bucketName=your-oss-bucket-n
ame&key=test/dict.dic&analyzerType=ALIWS HTTP/1.1 public request header
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.5.7. UpdateAdvancedSetting
Call Updat eAdvancedSet t ing t o change t he garbage collect or configurat ion for t he specified inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST|PUT /openapi/instances/[InstanceId]/actions/update-advanced-setting HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes 09k1ruw79000u** T he ID of the instance.
**
RequestBody
T he following paramet ers must be specified in Request Body t o specify t he modified garbage collect or
configurat ion.
T he new name of
the garbage
gcName String Yes CMS collector.
Supported types:
CMS and G1.
Example:
{
"gcName":"CMS"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
Return results:
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "D7BA7E23-F6B7-4D57-BBE4-67EACAAB****"
}
Error codes
7.5.8. ListDicts
List Dict s is called t o ret urn t he dict ionary det ails of t he specified t ype and t he public downloadable link
generat ed by t he signat ure.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/dicts HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
analyzerT ype String Query Yes IK IK_HOT :IK hot updates the
dictionary.
SYNONYMS: synonyms.
ALIWS: Ali dictionary.
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes 0ju29ifnc0005** T he ID of the instance.
**
SYST EM_MAIN.d
name String Query No Filter the name of the specified file.
ic
Not e T he dict ionary name under each elast icsearchAnalyzer is unique. Even if IK's main word
bank and disabled word bank, t here will be no dict ionary file wit h t he same name.
Response parameters
2937F832-F39E-
RequestId String 41EF-89BA- T he ID of the request.
B528342A2A3A
http://test_bucket.
oss-cn-
hangzhou.aliyuncs.c
om/AliyunEs/test.di
c? Internet downloadable link. T he valid
downloadUrl String
Expires=162573****& duration is 90 seconds.
OSSAccessKeyId=LT
AI*****V9&Signature
=PNPO********BBGsJ
DO4V3VfU4sE%3D
Examples
Sample request s
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request paramet ers. For more informat ion, see t he Common request
paramet ers t opic.
Request syntax
GET /openapi/instances/[InstanceId]/plugins HTTP/1.1
Request parameters
Locati Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes nif1q9o8r0008* T he IDs of the added ECS instances.
***
Response parameters
5A5D8E74-565C-
RequestId String 43DC-B031- T he ID of the request.
29289FA9****
IK analysis plug-in
description String T he description of the plug-in.
for Elasticsearch.
Examples
Sample request s
JSON format
Error codes
7.6.2. InstallSystemPlugin
Call Inst allSyst emPlugin t o inst all a syst em preset plug-in.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/plugins/system/actions/install HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
RequestBody
Ent er t he name of t he plug-in t o be inst alled in Request Body, in t he format of
["plugin_name1","plugin_name2",...,"plugin_namen"] , such as ["aliyun-sql","codec-
compression"] .
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Examples
Sample request s
JSON format
{
"Result": ["aliyun-sql"],
"RequestId": "5A5D8E74-565C-43DC-B031-29289FA*****"
}
Error codes
7.6.3. UninstallPlugin
Call Uninst allPlugin t o uninst all t he preset plug-in.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
RequestBody
Ent er t he name of t he plug-in in t he Request Body. T he format is ["pluginname1","pluginname2",…,
"plugin_namen"] . Example: ["aliyun-sql","codec-compression"] .
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Examples
Sample request s
JSON format
{
"Result": ["aliyun-mysql"],
"RequestId": "5A5D8E74-565C-43DC-B031-29289FA9BAD6****"
}
Error codes
7.6.4. InstallUserPlugins
Call t he Inst allUserPlugins t o inst all user-defined plug-ins t hat have been uploaded t o t he Elast icsearch
console.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/plugins/user/actions/install HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes i7m27ausp001l T he ID of the instance.
****
RequestBody
T he following paramet ers must be filled in t he Request Body t o specify a list of cust om plug-ins.
Parameter Required
T ype Example Description
RequestBody Array
User-defined
plug-ins that have
└ name String Yes pluginName1.zip been uploaded to
the Elasticsearch
console.
For example, an error message is ret urned if you use t he following code:
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6F*****
Examples
Sample request s
JSON format
Error codes
T he instance is currently in
400 InstanceActivating Instance is activating.
effect.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, refer t o t he document at ion of
common request paramet ers.
Request syntax
GET /openapi/instances/{InstanceId}/search-log HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the instance.
c****
Positi Require
Parameter T ype Example Description
on d
host:172.16.**.
T he keyword used to match log
query String Query Yes ** AND
entries.
content:netty
Response parameters
7F40EAA1-6F1D-
RequestId String 4DD9-8DB8- T he ID of the request.
C5F00C4E****
[GC (Allocation
Failure) 2018-07-
19T 17:24:20.682+0
800: 7516.513:
[ParNew: 6604768K-
>81121K(7341504K),
T he content of the log entry. Migrated to
content String 0.0760606 secs]
contentCollection fields.
7226662K-
>703015K(31813056
K), 0.0762507 secs]
[T imes: user=0.52
sys=0.00, real=0.07
secs]
es-cn-
instanceId String T he ID of the instance.
n6w1o1x0w001c****
T he Result .cont ent Collect ion cont ains t he following paramet ers.
[o.e.c.r.a.AllocationServi
ce] [MnNASM_] Cluster
health status changed
T he content of the log
content String from [YELLOW] to
entry.
[GREEN] (reason: [shards
started [[my_index][3]]
...]).
T he IP of the node
host String 192.168.**.** where the log is
generated.
Examples
Sample request s
GET /openapi/instances/es-cn-n6w1o1x0w001c****/search-log?type=INSTANCELOG&query=host:172.1
6.\*\*.\*\* AND content:netty&beginTime=1531910852074&endTime=1531910852074&page=1&size=20
HTTP/1.1
Common request headers
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : [ {
"timestamp" : 1552868172741,
"host" : "192.168.**.**",
"contentCollection" : {
"level" : "info",
"host" : "192.168.**.**",
"time" : "2019-03-18T08:16:12.741Z",
"content" : "[o.e.c.r.a.AllocationService] [MnNASM_] Cluster health status changed fr
om [YELLOW] to [GREEN] (reason: [shards started [[my_index][3]] ...])."
},
"instanceId" : "es-cn-n6w1o1x0w001c****"
}, {
"timestamp" : 1552838205462,
"host" : "192.168.**.**",
"contentCollection" : {
"level" : "info",
"host" : "192.168.**.**",
"time" : "2019-03-17T23:56:45.462Z",
"content" : "[o.e.c.r.a.AllocationService] [v4p9o7A] Cluster health status changed fr
om [GREEN] to [YELLOW] (reason: [{MnNASM_}{MnNASM_OSR-2YgySSc****}{EvJHPrAOS_u8J3-6qZ****}{
192.168.**.**}{192.168.**.**:9300}{ml.max_open_jobs=10, ml.enabled=true} transport disconne
cted])."
},
"instanceId" : "es-cn-n6w1o1x0w001c****"
} ],
"RequestId" : "121753D9-744A-4203-9EC4-F29E628A****",
"Headers" : {
"X-Total-Count" : 2
}
}
Error codes
For a list of error codes, visit t he API Error Cent er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/snapshots HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes nif1q9o8r0008*** T he ID of the instance.
*
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Return results:
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "8EA34ABE-8015-4190-9B57-B3079AB2****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.8.2. DescribeSnapshotSetting
Call DescribeSnapshot Set t ing t o get t he dat a backup configurat ion of t he clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/snapshot-setting HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes T he ID of the instance.
0pp1jxvcl000z****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
Examples
Sample request s
JSON format
{
"RequestId": "B2A05BB2-7B66-4D0F-BEDE-5033AFFE****",
"Result": {
"Enable": true,
"QuartzRegex": "0 0 01 ? * * *"
}
}
Error codes
7.8.3. UpdateSnapshotSetting
Call Updat eSnapshot Set t ing t o updat e t he dat a backup configurat ion of t he specified inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST|PUT /openapi/instances/[InstanceId]/snapshot-setting HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes oew1rgiev0009** T he ID of the instance.
**
RequestBody
T he following paramet ers must be set in Request Body t o specify t he modified backup dat a.
T he start time of
automatic backup.
quartzRegex String No 0 0 01 ? * * *
When enable is
true, it is required.
Specifies whether
to enable
enable Boolean Yes true
scheduled
backups.
Example:
{
"quartzRegex":"0 0 01 ? * * *",
"enable":true
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
Examples
Sample request s
JSON format
{
"Result": {
"quartzRegex": "0 0 01 ? * * *",
"enable": true
},
"RequestId": "77C0C894-77E3-4711-88E1-495216FA****"
}
Error codes
7.8.4. ListSnapshotReposByInstanceId
Call t he List Snapshot ReposByInst anceId t o get t he cross-clust er OSS reposit ories of t he current
inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/snapshot-repos HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes T he ID of the instance.
0pp1jxvcl000z****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
es-cn-
instanceId String Reference instance ID.
6ja1ro4jt000c****
es-cn-
repoPath String T he address of the repository.
6ja1ro4jt000c****
aliyun_snapshot_fro
snapWarehous
String m_es-cn- Reference warehouse name.
e
6ja1ro4jt000c****
Examples
Sample request s
JSON format
{
"Result": [
{
"instanceId": "es-cn-6ja1ro4jt000c****",
"snapWarehouse": "aliyun_snapshot_from_es-cn-6ja1ro4jt000c****",
"repoPath": "es-cn-6ja1ro4jt000c****",
"status": "available"
}
],
"RequestId": "123BB496-6EEF-41E6-92BB-3F782664****"
}
Error codes
7.8.5. ListAlternativeSnapshotRepos
Call List Alt ernat iveSnapshot Repos t o get t he OSS reference warehouses t hat can be added t o t he
current inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/alternative-snapshot-repos HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes T he ID of the instance.
0pp1jxvcl000z****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
es-cn-
instanceId String T he ID of the instance.
6ja1ro4jt000c****
Examples
Sample request s
JSON format
{
"Result": [
{
"instanceId": "es-cn-6ja1ro4jt000c****",
"repoPath": "es-cn-6ja1ro4jt000c****"
},
{
"instanceId": "es-cn-oew1rgiev0009****",
"repoPath": "es-cn-oew1rgiev0009****"
}
],
"RequestId": "335D2540-BB16-447F-8AD4-39B7A0AE****"
}
Error codes
7.8.6. AddSnapshotRepo
Call t he AddSnapshot Repo t o creat e a reference reposit ory when configuring a cross-clust er OSS
reposit ory.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only.
Request syntax
POST /openapi/instances/[InstanceId]/snapshot-repos HTTPS|HTTP
Request parameters
RequestBody
T he following paramet ers must be set in Request Body t o specify t he cross-clust er backup informat ion.
T he ID of the
instance for which
you want to
restore data.
After this
parameter is
specified,
Elasticsearch
creates a
snapshot of the
instance from
which you can
restore data.
T he instance and
the source
instance must
meet the
following
es-cn-
repoPath String Yes requirements:
4591jumei000u****
Instances within
the same region
belong to the
same account,
and the version of
the source
instance is earlier
than or equal to
the version of the
destination
instance. For more
information, see
configure cross-
cluster OSS
repositories.
Example:
{
"repoPath" :"es-cn-4591jumei000u****"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Return results:
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "D21379E3-A54E-4C86-A64C-3717365F****"
}
Error codes
7.8.7. DeleteSnapshotRepo
Call Delet eSnapshot Repo t o delet e a cross-clust er OSS reposit ory.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
DELETE /openapi/instances/[InstanceId]/snapshot-repos HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
es-cn-
repoPath String Yes n6w1rux8i000w** Reference instance ID.
**
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Return results:
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "93005691-1899-4515-A5CE-FD28D347****"
}
Error codes
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/diagnosis/instances/[InstanceId]/actions/open-diagnosis HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Return results:
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "37F0EC9E-B81A-43D9-B583-9D5A8DEC****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.9.2. CloseDiagnosis
Call CloseDiagnosis t o disable t he int elligent O&M funct ion of an inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only.
Request syntax
POST /openapi/diagnosis/instances/[InstanceId]/actions/close-diagnosis HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes T he ID of the instance.
s9dsk3k4k****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Return results:
Result Boolean true true: close intelligent O&M successfully
false: close intelligent O&M failed
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "290ED7FB-4AA0-4F9B-86DC-95FEB016****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.9.3. DiagnoseInstance
Call t he DiagnoseInst ance t o diagnose t he inst ance immediat ely.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request paramet ers, and does not involve special request headers.
For more informat ion, see t he t opic about common paramet ers.
Request syntax
POST /openapi/diagnosis/instances/[InstanceId]/actions/diagnose HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the instance.
c****
Positi Require
Parameter T ype Example Description
on d
RequestBody
Ent er t he following paramet ers in Request Body t o specify t he diagnosis t ask informat ion.
T he type of the
diagnostic task.
Valid values:
SELECT : diagnoses
the selected
indexes.
T he list of
diagnostic
indexes. t ype is
indices List<String\> Yes ["library"]
set to ALL , indices
can be left empty
([]).
["ClusterBulkReject T he diagnostic
diagnoseItems List<String\> Yes
Diagnostic",...] item.
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
es-cn-
instanceId String T he ID of the instance to be diagnosed.
n6w1o1x0w001c****
trigger__2020-08-
reportId String T he ID of the report.
17T 17:09:02
Examples
Sample request s
JSON format
{
"Result": {
"reportId": "trigger__2020-10-19T16:49:56",
"instanceId": "es-cn-n6w1o1x0w001c****",
"state": "RUNNING",
"createTime": 0,
"diagnoseItems": []
},
"RequestId": "1EE5BB1E-7ECE-4CFE-A05A-7F1EE2C4****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
7.9.4. ListDiagnoseReport
Queries t he hist orical int elligent O&M report s of an Elast icsearch clust er.
Debugging
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/diagnosis/instances/[InstanceId]/reports HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1qu7ei000p T he ID of the instance.
****
startT ime Long Query Yes 1594569600000 the query start timestamps.
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Number of Replica
name String T he full name of the diagnostic item.
Shards
IndexAliasUseDiagno
item String T he diagnostic item name.
stic
trigger__2020-08-
reportId String T he report ID.
17T 17:09:02f
Examples
Sample request s
diagnosis/instances/es-cn-09k1rocex0006****/reports?startTime=1600099200000&endTime=16
00185600000 public request header
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.9.5. ListDiagnoseReportIds
Queries t he IDs of t he hist orical int elligent O&M report s of an Elast icsearch clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/diagnosis/instances/[InstanceId]/report-ids HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1qu7ei000p T he ID of the instance.
****
startT ime Long Query Yes 1595088000000 the query start timestamps.
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
["scheduled__2020-
Result List T he return results.
09-13T 00:40:00"]
Examples
Sample request s
GET /openapi/diagnosis/instances/es-cn-09k1rocex0006****/report-ids?startTime=16000992
00000&endTime=1600185600000 HTTP/1.1 public request header
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
7.9.6. ListDiagnoseIndices
Call t he List DiagnoseIndices t o obt ain t he healt h diagnosis diagnost ic index in t he specified inst ance
Int elligent O&M module.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/diagnosis/instances/[InstanceId]/indices HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes n6w1o1x0w001 T he ID of the instance.
c****
Response parameters
F05ED12E-140A-
RequestId String 4ACB-B059- T he ID of the request.
3A508A69F2E1
["my_index_aliws",
"aliyun-index-
test","filebeat-
Result List T he list of diagnostic indexes.
6.7.0-2020.11.15",
"filebeat-6.7.0-
2020.12.27"]
Examples
Sample request s
JSON Synt ax
{
"Result": [
"my_index_aliws",
"aliyun-index-test",
"filebeat-6.7.0-2020.11.15",
"filebeat-6.7.0-2020.12.27"
],
"RequestId": "F05ED12E-140A-4ACB-B059-3A508A69F2E1"
}
Error codes
For more informat ion about error codes, see error cent er .
7.9.7. DescribeDiagnoseReport
Call DescribeDiagnoseReport t o view t he hist orical report s of int elligent maint enance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see t he Common request
paramet ers t opic.
Request structure
GET /openapi/diagnosis/instances/[InstanceId]/reports/[ReportId] HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes mp91kzb8m0009 T he ID of an instance.
****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Array of
diagnoseItems T he list of diagnostic item information.
diagnoseItems
Number of Replica
name String T he full name of the diagnostic item.
Shards
IndexAliasUseDiagno
item String T he name of the diagnostic item.
stic
trigger__2020-08-
reportId String Report ID.
17T 17:09:02
Examples
Sample request s
GET /openapi/diagnosis/instances/es-cn-09k1rocex0006****/reports/scheduled__2020-09-15T00:4
0:00? lang=en HTTP/1.1
Common request header
JSON format
{
"Result": {
"reportId": "scheduled__2020-09-15T02:40:00",
"instanceId": "es-cn-09k1rocex0006****",
"state": "SUCCESS",
"trigger": "INNER",
"health": "YELLOW",
"createTime": 1600108800000,
"diagnoseItems": [
{
"item": "IndexReplicaDiagnostic",
"health": "YELLOW",
"detail": {
"name": "Number of Replica Shards",
"desc": "Check whether the number of replica shards is optimal and easy
to maintain.\nReplica shards can increase the index data reliability and improve the QPS if
the resources are sufficient. However, too many replica shards may consume large amounts of
disk space and memory. This reduces the performance of write operations.",
"type": "CONSOLE_API",
"suggest": "You can call the following function in the Elasticsearch AP
I: \nPUT ${index}/_settings\n{\n \"settings\": {\n \"index.number_of_replicas\":
\"${num}\"\n }\n} \r\nSet the index and num parameters to the actual values.",
"result": "You may need to adjust the numbers of replica shards of some
indices as follows: \n[geoname08 : 0 -> 1][geoname09 : 0 -> 1][geonametest01 : 0 -> 1]"
}
},
{
"item": "IndexShardsDiagnostic",
"health": "YELLOW",
"detail": {
"name": "Number and Sizes of Shards in Each Index",
"desc": "Check whether the number and sizes of shards in each index are
optimal.\nA small number of shards may degrade the read and write performance of an index.
A large number of shards consume a lot of system resources and degrade the read and write p
erformance of an index.",
"type": "ES_API",
"suggest": "We recommend the following solution: \nhotmovies [size < 1
GB] [7 -> 1, 3]\ngeoname08 [2 GB] [5 -> 1, 3]\ngeoname09 [3 GB] [5 -> 1, 3]\ngeonametest01
[2 GB] [5 -> 1, 3]\n \r\nThis solution applies to the current index sizes. Adjust the numbe
r of shards based on the future indices and nodes.",
"result": "You may need to adjust the number of shards in some indices.
"
}
}
]
},
"RequestId": "7BABD728-1584-432C-A300-25BEBDFC****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.9.8. DescribeDiagnosisSettings
Call DescribeDiagnosisSet t ings t o obt ain t he scenario set t ings of int elligent maint enance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see t he Common request
paramet ers t opic.
Request structure
GET /openapi/diagnosis/instances/[InstanceId]/settings HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes 68n1n8b7f000a** T he ID of an instance.
**
Response parameters
5E82B8A8-EED7-
T he ID of the request.
RequestId String 4557-A6E9-
D1AD3E58****
Examples
Sample request s
JSON format
{
"Result": {
"scene": "Business Search",
"updateTime": 1561969800000
},
"RequestId": "592414F7-652B-4360-91AB-85C53B32****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
7.9.9. UpdateDiagnosisSettings
Call Updat eDiagnosisSet t ings t o updat e t he inst ance of int elligent operat ion&maint enance (O&M)
scene set t ings.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
PUT /openapi/diagnosis/instances/[InstanceId]/settings HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes 45914gy290009** T he ID of the instance.
**
RequestBody
You must also specify t he following paramet ers in Request Body t o configure int elligent maint enance.
T he name of the
intelligent
maintenance
scenario to be
configured. T his
function supports
scene String Yes Business Analysis
Business Search,
Data Acceleration,
Statistics,
Business Analysis,
and custom
scenarios.
Example:
{
"scene":"Business Analysis"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Return results:
Result Boolean true true: update successfully
false: update failed
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "5B03F520-E884-4F7B-931D-63766054****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
8.Kibana
8.1. DescribeKibanaSettings
Call DescribeKibanaSet t ings t o obt ain t he Kibana configurat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/kibana-settings HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6D*****
{"map.includeElastic
MapsService":
"false",
"server.ssl.cert":
"/home/admin/pack
ages/kibana/config
Return results:
/cert/client.crt",
"server.ssl.enabled" true: T he Kibana configuration obtained
Result Map : "true", successfully
"server.ssl.key": false: T he Kibana configuration obtained
"/home/admin/pack failed
ages/kibana/config
/cert/client.key",
"xpack.reporting.ca
pture.browser.chro
mium.disableSandb
ox": "true"}
Examples
Sample request s
JSON format
{
"Result": {
"map.includeElasticMapsService": "false",
"server.ssl.cert": "/home/admin/packages/kibana/config/cert/client.crt",
"server.ssl.enabled": "true",
"server.ssl.key": "/home/admin/packages/kibana/config/cert/client.key",
"xpack.reporting.capture.browser.chromium.disableSandbox": "true"
},
"RequestId": "131834B6-AE89-45D4-878B-D2F46A8C****"
}
Error codes
8.2. UpdateKibanaSettings
Call Updat eKibanaSet t ings t o modify t he Kibana configurat ion. Current ly, you can only modify t he
Kibana language configurat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
PATCH|POST /openapi/instances/[InstanceId]/actions/update-kibana-settings HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w001c* T he ID of the instance.
***
RequestBody
You can also specify t he Kibana language by set t ing t he i18n.locale paramet er in Request Body
(opt ional, valid value: en by default ). Example:
{
"i18n.locale":"en"
}
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DC*****
Return results:
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "5A5D8E74-565C-43DC-B031-29289FA9****"
}
Error codes
8.3. ListKibanaPlugins
Queries t he plug-ins of Kibana.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/instances/[InstanceId]/kibana-plugins HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes oew1q8bev000 T he ID of the instance.
2****
Response parameters
11234B4A-34CE-
RequestId String 473B-8E61- T he ID of the request.
AD95702E****
Customize DSL
description String statements to query T he description of the plug-in.
data.
bsearch_querybuilde
name String T he name of the plug-in.
r
Examples
Sample request s
Error codes
8.4. InstallKibanaSystemPlugin
Call Inst allKibanaSyst emPlugin t o inst all t he Kibana plug-in. T he Kibana specificat ion must be 2-Core 4
GB or higher.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/kibana-plugins/system/actions/install HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes n6w1o1x0w00*** T he ID of the instance.
***
RequestBody
You must also ent er t he name of t he plug-in in t he Request Body field. T he format is
["pluginname1","pluginname2",…, "plugin_namen"] . Example:
["bsearch_label","bsearch_querybuilder"] .
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DC****
["bsearch_querybuil
Result List T he list of plug-ins to be installed.
der"]
Examples
Sample request s
JSON format
{
"Result": ["bsearch_querybuilder"],
"RequestId": "5A5D8E74-565C-43DC-B031-29289****"
}
Error codes
8.5. UninstallKibanaPlugin
Call t he Uninst allKibanaPlugin t o uninst all t he Kibana plug-in.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses common request paramet ers only. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/kibana-plugins/actions/uninstall HTTPS|HTTP
Request parameters
es-cn-
InstanceId String Yes T he ID of the instance.
6ja1ro4jt000c****
RequestBody
Ent er t he name of t he Kibana plug-in in t he Request Body field. T he format is
["pluginname1","pluginname2",…, "plugin_namen"] . Example:
["bsearch_label","bsearch_querybuilder"] .
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D****
Not e T he ret urned dat a also cont ains Headers, which indicat es t he request header
informat ion.
Examples
Sample request s
JSON format
{
"Result": [
"bsearch_querybuilder"
],
"RequestId": "D528727E-F512-4EE6-B46F-B9270D4E****",
"Headers": {}
}
Error codes
8.6. UpdateKibanaWhiteIps
Updat es t he IP address whit elist for access t o t he Kibana console of a specified Elast icsearch clust er.
Usage notes
Before you call t his operat ion, make sure t hat t he inst ance is not in t he act ivat ing, invalid, or inact ive
st at e.
You can updat e t he whit elist in t wo ways: IP address whit elist list and IP address whit elist group. T he
t wo met hods cannot be used at t he same t ime. In addit ion t o Inst anceId and client T oken, t he t wo
met hods support different paramet ers, as follows:
IP address whit elist list : kibanaIPWhit elist
IP address whit elist groups: modifyMode and whit eIpGroup
Public net work access whit elist s do not support configuring privat e IP addresses. Privat e net work
access whit elist s do not support configuring public IP addresses.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, refer t o t he document at ion of
common request paramet ers.
Request syntax
PATCHPOST /openapi/instances/{InstanceId}/kibana-white-ips HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
es-cn-
InstanceId String Path Yes tl329rbpc0001* T he ID of the instance.
***
Positi Require
Parameter T ype Example Description
on d
RequestBody
You must also specify t he following paramet ers in t he Request Body paramet er t o specify t he whit elist
t o be updat ed.
T he list of IP
address
whitelists. T his
parameter is
available if
whiteIpGroup is
left empty. T he
value of this
parameter
updates the IP
address whitelist
configurations in
the Default
kibanaIPWhitelist List<String\> Yes ["110.0.XX.XX/8"]
whitelist group.
You cannot
configure both
kibanaIPWhitelist
and whiteIpGroup.
T he group name
of the whitelist
group. T his
Required in parameter is
└ groupName String test_group_name
whiteIpGroup required if the
whiteIpGroup
parameter is
optional.
T he list of IP
addresses in the
whitelist group.
Required in ["0.0.0.0", T his parameter is
└ ips List<String>
whiteIpGroup "10.2.XX.XX"] required if the
whiteIpGroup
parameter is
optional.
Not ice T he addit ion and delet ion of whit elist groups are implement ed by calling
modifyMode t o Cover. Delet e and Append cannot add or delet e whit elist groups at t he same t ime.
You can only modify t he IP address list in t he whit elist group. T ake not e of t he following it ems:
If t he modifyMode paramet er is set t o Cover, t he whit elist group is delet ed if ips is empt y. If
groupName is not in t he list of exist ing whit elist group names, a whit elist group is creat ed.
If t he modifyMode paramet er is set t o Delet e, you must ret ain at least one IP address for t he
delet ed ips.
If t he modifyMode paramet er is set t o Append, make sure t hat t he whit elist group name has
been creat ed. Ot herwise, t he Not Found error message appears.
Response parameters
E5EF11F1-DBAE-
RequestId String 4020-AC24- T he ID of the request.
DFA6C4345CAE
[
kibanaPrivateIP T he list of Kibana private network access
Array of String "192.168.XX.XX/24"
Whitelist whitelists.
]
[ "0.0.XX.XX",
kibanaIPWhiteli T he list of Kibana access whitelists.
Array of String "10.2.XX.XX",
st
"110.0.XX.XX/9" ]
Not e In t he following ret urn example, t his art icle only guarant ees t hat t he paramet ers in t he
ret urn dat a list are included, and t he paramet ers not ment ioned are for reference only. T he
program cannot force t o rely on obt aining t hese paramet ers.
Example
Sample request
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : {
"instanceId" : "es-cn-tl329rbpc0001****",
"version" : "7.10.0_with_X-Pack",
"description" : "lrr",
"nodeAmount" : 0,
"paymentType" : "postpaid",
"status" : "active",
"privateNetworkIpWhiteList" : [ "11.22.XX.XX", "0.0.XX.XX/0" ],
"enablePublic" : false,
"nodeSpec" : { },
"dataNode" : false,
"networkConfig" : {
"vpcId" : "vpc-bp1jy348ibzulk6hn****",
"vswitchId" : "vsw-bp1a0mifpletdd1da****",
"vsArea" : "cn-hangzhou-h",
"whiteIpGroupList" : [ {
"groupName" : "default",
"ips" : [ "0.0.XX.XX/0", "11.22.XX.XX" ],
"whiteIpType" : "PRIVATE_ES"
}, {
"groupName" : "default",
"ips" : [ "110.0.XX.XX/9" ],
"whiteIpType" : "PUBLIC_KIBANA"
}, {
"groupName" : "default",
"ips" : [ "192.168.XX.XX/24" ],
"whiteIpType" : "PRIVATE_KIBANA"
}, {
"groupName" : "test_group_name",
"ips" : [ "0.0.XX.XX", "10.2.XX.XX" ],
"whiteIpType" : "PUBLIC_KIBANA"
} ],
"type" : "vpc"
},
"createdAt" : "2021-07-21T01:29:38.510Z",
"updatedAt" : "2021-07-21T06:12:12.370Z",
"commodityCode" : "elasticsearch",
"extendConfigs" : [ {
"configType" : "usageScenario",
"value" : "log"
}, {
"configType" : "maintainTime",
"maintainStartTime" : "02:00Z",
"maintainEndTime" : "06:00Z"
}, {
"configType" : "aliVersion",
"aliVersion" : "ali1.4.0"
}, {
"configType" : "followCube",
"followClusterEnabled" : true
} ],
"endTime" : 4782556800000,
"clusterTasks" : [ ],
"vpcInstanceId" : "es-cn-tl329rbpc0001****-worker",
"resourceGroupId" : "rg-acfmxxkk2p7****",
"zoneCount" : 1,
"protocol" : "HTTP",
"zoneInfos" : [ {
"zoneId" : "cn-hangzhou-h",
"status" : "NORMAL"
} ],
"instanceType" : "elasticsearch",
"inited" : true,
"tags" : [ {
"tagKey" : "acs:rm:rgId",
"tagValue" : "rg-acfmxxkk2p7****"
} ],
"serviceVpc" : true,
"domain" : "es-cn-tl329rbpc0001****.elasticsearch.aliyuncs.com",
"port" : 9200,
"esVersion" : "7.10.0_with_X-Pack",
"esConfig" : {
"action.destructive_requires_name" : "true",
"xpack.watcher.enabled" : "false",
"xpack.watcher.enabled" : "false",
"action.auto_create_index" : "+.*,-*"
},
"esIPWhitelist" : [ "11.22.XX.XX", "0.0.XX.XX/0" ],
"esIPBlacklist" : [ ],
"kibanaProtocol" : "HTTPS",
"kibanaIPWhitelist" : [ "0.0.0.0", "10.2.XX.XX", "110.0.XX.XX/9" ],
"kibanaPrivateIPWhitelist" : [ "192.168.XX.XX/24" ],
"publicIpWhitelist" : [ ],
"kibanaDomain" : "es-cn-tl329rbpc0001****.kibana.elasticsearch.aliyuncs.com",
"kibanaPort" : 5601,
"kibanaPrivateDomain" : "es-cn-tl329rbpc0001****-kibana.internal.elasticsearch.aliyuncs
.com",
"kibanaPrivatePort" : 5601,
"haveKibana" : true,
"instanceCategory" : "IS",
"dedicateMaster" : false,
"advancedDedicateMaster" : false,
"masterConfiguration" : { },
"haveClientNode" : false,
"warmNode" : true,
"warmNodeConfiguration" : {
"spec" : "elasticsearch.d1.2xlarge",
"amount" : 3
},
"clientNodeConfiguration" : { },
"kibanaConfiguration" : {
"spec" : "elasticsearch.n4.small",
"amount" : 1,
"disk" : 0
},
"elasticDataNodeConfiguration" : { },
"haveElasticDataNode" : false,
"dictList" : [ {
"name" : "SYSTEM_MAIN.dic",
"fileSize" : 2782602,
"sourceType" : "ORIGIN",
"type" : "MAIN"
}, {
"name" : "SYSTEM_STOPWORD.dic",
"fileSize" : 132,
"sourceType" : "ORIGIN",
"type" : "STOP"
} ],
"synonymsDicts" : [ ],
"ikHotDicts" : [ ],
"aliwsDicts" : [ ],
"haveGrafana" : false,
"haveCerebro" : false,
"enableKibanaPublicNetwork" : true,
"enableKibanaPrivateNetwork" : true,
"advancedSetting" : {
"gcName" : "CMS"
},
"enableMetrics" : true,
"enableMetrics" : true,
"readWritePolicy" : {
"writeHa" : false
}
},
"RequestId" : "E815C5C9-E82D-4B10-BDE0-D25340C2ACEF"
}
Error codes
T he instance is currently in
400 InstanceActivating Instance is activating.
effect.
9.Logstash
9.1. Manage clusters
9.1.1. CreateLogstash
Creat es a Logst ash clust er.
Make sure t hat you have fully underst ood t he payment met hod and price of Logst ash before you call
t his operat ion.
Before you creat e an inst ance, you must complet e real-name verificat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
POST /openapi/logst ashes
Request syntax
POST /openapi/logstashes HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
Positi Require
Parameter T ype Example Description
on d
logstash.n4.sm
spec String Body No T he instance type of the node.
all
vpc-
vpcId String Body No bp16k1dvzxtm T he VPC ID of the instance.
agcva****
vsw-
vswitchId String Body No bp1k4ec6s7sjd T he ID of the vSwitch
budw****
Positi Require
Parameter T ype Example Description
on d
T he payment details of a
subscription instance. T his
paymentInfo Object Body No
parameter is required when you
create a subscription instance.
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE*****
Example
Sample request s
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE*****",
"Result" : [ {
"instanceId" : "ls-cn-n6w1o5jq****",
"version" : "6.7.0_with_X-Pack",
"description" : "test",
"nodeAmount" : 1,
"paymentType" : "postpaid",
"status" : "active",
"enablePublic" : false,
"nodeSpec" : {
"spec" : "elasticsearch.sn1ne.large",
"disk" : 20,
"diskType" : "cloud_ssd"
},
"networkConfig" : {
"vpcId" : "vpc-bp16k1dvzxtmagcva****",
"vswitchId" : "vsw-bp1k4ec6s7sjdbudw****",
"vsArea" : "cn-hangzhou-i",
"type" : "vpc"
},
"createdAt" : "2020-05-27T01:30:15.947Z",
"updatedAt" : "2020-05-27T01:40:51.333Z",
"commodityCode" : "elasticsearch_logstash_post",
"extendConfigs" : [ ],
"endTime" : 4746268800000,
"clusterTasks" : [ ],
"resourceGroupId" : "rg-acfm2h5vbzd****",
"zoneCount" : 1,
"protocol" : "HTTP",
"zoneInfos" : [ {
"zoneId" : "cn-hangzhou-i",
"status" : "NORMAL"
} ],
"instanceType" : "logstash",
"inited" : true,
"tags" : [ ],
"config" : { },
"endpointList" : [ {
"host" : "172.16.**.**",
"port" : 9600,
"zoneId" : "cn-hangzhou-i"
} ]
} ]
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.1.2. ListLogstash
Queries t he det ailed informat ion of all Logst ash clust ers or a specified Logst ash clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
/openapi/logst ashes
Request syntax
GET /openapi/logstashes HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
instanceId String Query No T he ID of the instance.
n6w1o5jq****
5.5.3_with_X-
version String Query No T he version of the instance.
Pack
rg-
resourceGroupI
String Query No acfm2h5vbzd** T he ID of the resource group.
d
**
Response parameters
AC442F2F-5068-
RequestId String 4434-AA21- T he ID of the request.
E78947A9****
2018-07-
createdAt String T he time when the instance was created.
13T 03:58:07.253Z
whether to enable
enablePublic Boolean false public access. the
default value is false.
elasticsearch_logstash_
commodityCode String T he service code.
post
Package year-to-month
endT ime Long 4749897600000 instance, the last
expiration time.
T he ID of the resource
resourceGroupId String rg-acfm2h5vbzd**** group to which the VPC
belongs.
T he access protocol of
protocol String HT T P
the instance.
T he IP address of the
└host String 172.16.xx.xx
node.
Examples
Sample request s
GET /openapi/logstashes?description=abc&page=1&size=10
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
9.1.3. DescribeLogstash
Call t he DescribeLogst ash t o query t he det ails of a specified inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId] HTTPS|HTTP
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he ID of the instance.
s9dsk3k4k****
Response parameters
C9334241-4837-
RequestId String 46C2-B24B- T he ID of the request.
9BDC517318DE
[{ "configT ype":
T he configuration of the cluster extension
ExtendConfigs List "aliVersion","aliVersi
parameter.
on": "ali1.3.0" }]
Array of
ZoneInfos Zone information.
zoneInfos
{"slowlog.threshold.
warn":
"2s","slowlog.thresh
old.info":
config Map "1s","slowlog.thresh T he configurations of the instance.
old.debug":
"500ms","slowlog.t
hreshold.trace":
"100ms" }
2020-02-
createdAt String T he time when the instance was created.
06T 14:12:03.672Z
Array of
endpointList T he access information of the node.
endpoint
vpc-
vpcId String bp16k1dvzxtmagcv T he ID of the VPC.
a****
vsw-
vswitchId String bp1k4ec6s7sjdbudw T he ID of the vSwitch.
****
elasticsearch.sn1ne.l
spec String T he specification of the node.
arge
vpc-
T he ID of the VPC to which the instance
vpcInstanceId String bp16k1dvzxtmagcv
belongs.
a****
For more informat ion about t he paramet ers, see List Logst ash .
Examples
Sample request s
JSON Synt ax
{
"Result": {
"instanceId": "ls-cn-m7r1o6cl****",
"version": "6.7.0_with_X-Pack",
"description": "ls-cn-abc",
"nodeAmount": 2,
"paymentType": "postpaid",
"status": "active",
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn1ne.large",
"disk": 20,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
"vsArea": "cn-hangzhou-i",
"type": "vpc"
},
"createdAt": "2020-05-27T11:53:43.104Z",
"updatedAt": "2020-05-27T11:53:43.104Z",
"commodityCode": "elasticsearch_logstash_post",
"extendConfigs": [],
"endTime": 4746268800000,
"clusterTasks": [],
"resourceGroupId": "rg-acfm2h5vbzd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-i",
"status": "NORMAL"
}
],
"instanceType": "logstash",
"inited": true,
"tags": [],
"config": {
"slowlog.threshold.warn": "2s",
"slowlog.threshold.info": "1s",
"slowlog.threshold.debug": "500ms",
"slowlog.threshold.trace": "100ms"
},
"endpointList": [
{
"host": "172.16.**.**",
"port": 9600,
"zoneId": "cn-hangzhou-i"
},
{
{
"host": "172.16.**.**",
"port": 9600,
"zoneId": "cn-hangzhou-i"
}
]
},
"RequestId": "C9334241-4837-46C2-B24B-9BDC517318DE"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.1.4. UpdateLogstash
Call t he Updat eLogst ash t o modify some informat ion about a specified inst ance, such as t he number of
nodes, quot a, name, and disk size.
When you call t his operat ion, t ake not e of t he following it ems:
You cannot modify inst ance informat ion when t he inst ance is in t he act ivat ing, invalid, or inact ive st at e.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
PATCH|PUT /openapi/logstashes/[InstanceId] HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
n6w1o5jq****
RequestBody
{
"nodeSpec": {
"disk": 40
}
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
T he name of the
description String test
instance.
T he number of data
nodeAmount Integer 2
nodes.
T he billing method of
the instance.
Supported: prepaid
paymentT ype String postpaid
(subscription) and
postpaid (pay-as-you-
go).
T he status of the
instance. Valid values:
normal (active),
status String active
effective (activating),
frozen (inactive), and
invalid (invalid).
T he version of the
version String 6.7.0_with_X-Pack
instance.
T he configuration of
nodeSpec
the node.
T he specification of the
└spec String logstash.sn2ne.xlarge
node.
T he network
networkConfig
configuration.
T he type of the
network. Currently, only
└type String vpc
Virtual Private Cloud
(VPC) is supported.
vpc-
└vpcId String T he ID of the VPC.
bp16k1dvzxtmagcva****
vsw-
└vswitchId String T he ID of the vSwitch.
bp1k4ec6s7sjdbudw****
Not e └ indicat es a sub-paramet er. For more informat ion about t he paramet er descript ion,
see List Logst ash .
Examples
Sample request s
JSON Synt ax
{
"Result": {
"instanceId": "ls-cn-n6w1o5jq****",
"version": "6.7.0_with_X-Pack",
"description": "test",
"nodeAmount": 1,
"paymentType": "postpaid",
"status": "active",
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn1ne.large",
"disk": 40,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
"vsArea": "cn-hangzhou-i",
"type": "vpc"
},
"createdAt": "2020-05-27T01:30:15.947Z",
"updatedAt": "2020-05-27T01:40:51.333Z",
"commodityCode": "elasticsearch_logstash_post",
"extendConfigs": [],
"endTime": 4746268800000,
"clusterTasks": [],
"resourceGroupId": "rg-acfm2h5vbzd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-i",
"status": "NORMAL"
}
],
"instanceType": "logstash",
"inited": true,
"tags": [],
"config": {
"config": {
"xpack.monitoring.elasticsearch.username": "elastic",
"xpack.monitoring.enabled": "true",
"slowlog.threshold.debug": "500ms",
"xpack.monitoring.elasticsearch.password": "Elasti****",
"xpack.monitoring.elasticsearch.hosts": "[\"http://es-cn-n6w1o1x0w001c****.elas
ticsearch.aliyuncs.com:9200\"]",
"slowlog.threshold.warn": "2s",
"slowlog.threshold.info": "1s",
"slowlog.threshold.trace": "100ms"
},
"endpointList": [
{
"host": "172.16.**.**",
"port": 9600,
"zoneId": "cn-hangzhou-i"
}
]
},
"RequestId": "FBD56B2B-367F-470D-90D0-C3120832****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.1.5. RenewLogstash
Call t he RenewLogst ash t o renew an inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/actions/renew HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
n6w1o5jq****
RequestBody
Ent er t he following paramet ers in Request Body.
T he renewal
duration of the
subscription
cluster.
If pricingCycle is
duration Integer Yes 1
set to Year, valid
values: 1 to 3.
If pricingCycle is
Month, valid
values: 1 to 9.
T he billing cycle
of renewal. Valid
pricingCycle String Yes Year
values: Year and
Month.
Sample code:
{
"duration":1,
"pricingCycle":"Year"
}
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DC****
Returned results:
Result Boolean true true: renewal successful
false: renewal fails
Examples
Sample request s
{
"Result":true,
"RequestId":"3760F67B-691D-4663-B4E5-6783554****"
}
Error codes
9.1.6. RestartLogstash
Call t he Rest art Logst ash t o rest art a specified inst ance. Aft er t he inst ance is rest art ed, it ent ers t he
act ivat ing st at e.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/actions/restart HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
v0h1kzca****
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
T he ret urned dat a also includes t he Result paramet er. For more informat ion about t he paramet ers, see
List Logst ash .
Examples
Sample request s
JSON Synt ax
{
"Result": {
"instanceId": "ls-cn-v0h1kzca****",
"version": "7.4.0_with_X-Pack",
"description": "es-74-keepit",
"nodeAmount": 1,
"paymentType": "prepaid",
"status": "active",
"status": "active",
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn1ne.large",
"disk": 20,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-bp12nu14urf0upaf4****",
"vswitchId": "vsw-bp131d5ag0vjd5ja3****",
"vsArea": "cn-hangzhou-h",
"type": "vpc"
},
"createdAt": "2020-03-26T09:23:06.575Z",
"updatedAt": "2020-05-12T11:06:14.132Z",
"commodityCode": "elasticsearch_logstash_pre",
"extendConfigs": [],
"endTime": 1619884800000,
"clusterTasks": [],
"resourceGroupId": "rg-acfm2h5vbzd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-h",
"status": "NORMAL"
}
],
"instanceType": "logstash",
"inited": true,
"tags": [],
"config": {
"slowlog.threshold.warn": "2s",
"slowlog.threshold.info": "1s",
"slowlog.threshold.debug": "500ms",
"slowlog.threshold.trace": "100ms"
},
"endpointList": [
{
"host": "10.7.**.**",
"port": 9600,
"zoneId": "cn-hangzhou-h"
}
]
},
"RequestId": "831AD23B-175F-47F1-8314-AFBB9947****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.1.7. EstimatedLogstashRestartTime
Call t he Est imat edLogst ashRest art T ime t o obt ain t he est imat ed t ime period during which t he Logst ash
inst ance can be rest art ed.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/estimated-time/restart-time HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
oew1qbgl****
RequestBody
You can also ent er t he following paramet ers in Request Body t o specify t he rest art paramet ers.
T he restart type.
Valid values:
instance (restart
restartT ype String No instance
instance. default)
and nodeIp
(restart node).
Select the IP
address list of the
nodes List<String\> No ["127.0.xx.xx"]
target node when
the node restarts.
Specifies whether
to perform the
blue-green
blueGreenDep Boolean No false change when the
node is restarted.
Default value:
false.
T he concurrency
of the forced
instance restart.
Default value: 1
/the total number
batch Integer No 25.0 of nodes.
T he blueGreenDep paramet er is ignored when rest art T ype is set t o inst ance.
force is set t o t rue. T he value of bat ch must be great er t han 0, and smaller t han or equal t o 100.
Ot herwise, t he syst em will prompt a Rest art Bat chValueError error.
T he value of force is false. T he default value of bat ch is 0. When anot her value is ent ered,
NormalRest art Not Support Bat ch error is report ed.
Sample code:
{
"restartType":"nodeIp",
"nodes": ["172.16.xx.xx"],
"blueGreenDep":true
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Examples
Sample request s
POST /openapi/logstashes/ls-cn-oew1qbgl****/estimated-time/restart-time/restart-time?force=
true HTTP/1.1
common request headers
JSON Synt ax
{
"Result": {
"unit": "second",
"value": 600
},
"RequestId": "623E4A4C-199E-4A71-8096-842831A4****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.1.8. UpdateLogstashDescription
Call t he Updat eLogst ashDescript ion t o modify t he name of a specified Logst ash inst ance.
When you call t his operat ion, t ake not e of t he following it ems:
T he inst ance name cannot be modified when t he inst ance is in t he act ivat ing, invalid, or inact ive st at e.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
PATCH|POST /openapi/logstashes/[InstanceId]/description HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
n6w1o5jq****
RequestBody
Ent er t he descript ion field in t he Request Body paramet er t o specify t he modified inst ance name.
Example:
{
"description": "logstash_name"
}
Response parameters
5FFD9ED4-C2EC-
T he ID of the request.
RequestId String 4E89-B22B-
1ACB6FE1****
T he name of the
description String ls-cn-abc
instance.
T he billing method of
the instance.
Supported: prepaid
paymentT ype String postpaid
(subscription) and
postpaid (pay-as-you-
go).
T he status of the
instance. Four instance
statuses are supported:
status String active normal (active),
effective (activating),
frozen (inactive), and
invalid (invalid).
T he version of the
esVersion String 6.7.0_with_X-Pack
instance.
T he configuration of
nodeSpec
the node.
T he specification of the
└spec String logstash.n4.small
node.
T he network
networkConfig
configuration.
T he type of the
network. Currently, only
└type String vpc
Virtual Private Cloud
(VPC) is supported.
T he domain names
domainList
returned.
Not e └ indicat es a sub-paramet er. For more informat ion about ot her paramet ers, see
List Logst ash .
Examples
Sample request s
JSON Synt ax
{
"Result": {
"instanceId": "ls-cn-n6w1o5jq****",
"version": "6.7.0_with_X-Pack",
"description": "logstash_name",
"nodeAmount": 1,
"paymentType": "postpaid",
"status": "active",
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn1ne.large",
"disk": 50,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
"vsArea": "cn-hangzhou-i",
"type": "vpc"
},
"createdAt": "2020-05-27T01:30:15.947Z",
"updatedAt": "2020-07-08T02:38:47.137Z",
"commodityCode": "elasticsearch_logstash_post",
"extendConfigs": [],
"endTime": 4749897600000,
"clusterTasks": [],
"resourceGroupId": "rg-acfm2h5vbzd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-i",
"status": "NORMAL"
}
],
"instanceType": "logstash",
"inited": true,
"tags": [],
"config": {
"xpack.monitoring.elasticsearch.username": "elastic",
"xpack.monitoring.enabled": "true",
"slowlog.threshold.debug": "500ms",
"xpack.monitoring.elasticsearch.password": "Elasti****",
"xpack.monitoring.elasticsearch.hosts": "[\"http://es-cn-n6w1o1x0w001c****.elas
ticsearch.aliyuncs.com:9200\"]",
"slowlog.threshold.warn": "2s",
"slowlog.threshold.info": "1s",
"slowlog.threshold.trace": "100ms"
},
"endpointList": [
{
"host": "172.16.**.**",
"port": 9600,
"zoneId": "cn-hangzhou-i"
"zoneId": "cn-hangzhou-i"
}
]
},
"RequestId": "C3845099-3D0E-4D2B-9D62-F16019EE****"
}
Error codes
9.1.9. UpdateLogstashChargeType
Call t he Updat eLogst ashChargeT ype t o convert a pay-as-you-go Alibaba Cloud Logst ash inst ance t o a
subscript ion inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/actions/convert-pay-type HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
n6w1o5jq****
RequestBody
T he billing
information of the
paymentInfo Array Yes
instance after
conversion.
T he subscription
period of the
image. If
pricingCycle is set
to Year, valid
└duration Integer Yes 1
values are 1 to 3.
If pricingCycle is
set to Month,
valid values are 1
to 9.
T he billing cycle
of the instance.
└pricingCycle String Yes Year
Valid values: Year
and Month.
T he current
Payment type of
the instance.
Currently, you can
only convert pay-
as-you-go
paymentT ype String Yes prepaid instances to
subscription
instances.
T herefore, the
value of this
parameter is fixed
to prepaid.
Sample code:
{
"paymentInfo":{
"duration":1,
"pricingCycle":"Month"
},
"paymentType":"prepaid"
}
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
Returned results:
Result Boolean true true: conversion successful
false: conversion failed
Examples
Sample request s
JSON Synt ax
{
"Result":true,
"RequestId":"3760F67B-691D-4663-B4E5-6783554F****"
}
Error codes
9.1.10. DeleteLogstash
Call Delet eLogst ash t o release a specified inst ance.
Aft er an inst ance is released, t he physical resources used by t he inst ance are recycled. All relat ed dat a
is lost and cannot be recovered. T he Cloud disks at t ached t o t he inst ance nodes are also released. T he
corresponding snapshot s are delet ed.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
DELETE /openapi/logstashes/[InstanceId] HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
n6w1o5jq****
Response parameters
94B03BBA-A132-
RequestId String 42C3-8367- T he ID of the request.
0A0C1C45****
T he ret urned dat a also includes t he Result paramet er. For more informat ion about t he paramet ers, see
List Logst ash .
Examples
Sample request s
JSON Synt ax
{
"Result": {
"instanceId": "ls-cn-n6w1o5jq****",
"version": "6.7.0_with_X-Pack",
"description": "test",
"nodeAmount": 1,
"paymentType": "postpaid",
"status": "active",
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn1ne.large",
"disk": 50,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
"vsArea": "cn-hangzhou-i",
"type": "vpc"
},
"createdAt": "2020-05-27T01:30:15.947Z",
"updatedAt": "2020-07-08T02:39:02.190Z",
"commodityCode": "elasticsearch_logstash_post",
"extendConfigs": [],
"endTime": 4749897600000,
"clusterTasks": [],
"resourceGroupId": "rg-acfm2h5vbzd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-i",
"status": "NORMAL"
}
],
"instanceType": "logstash",
"inited": true,
"tags": [],
"config": {
"xpack.monitoring.elasticsearch.username": "elastic",
"xpack.monitoring.enabled": "true",
"slowlog.threshold.debug": "500ms",
"xpack.monitoring.elasticsearch.password": "Elasti****",
"xpack.monitoring.elasticsearch.hosts": "[\"http://es-cn-n6w1o1x0w001c****.elas
ticsearch.aliyuncs.com:9200\"]",
"slowlog.threshold.warn": "2s",
"slowlog.threshold.info": "1s",
"slowlog.threshold.trace": "100ms"
},
"endpointList": [
{
"host": "172.16.**.**",
"port": 9600,
"zoneId": "cn-hangzhou-i"
}
]
},
"RequestId": "5766F858-B38C-4CFA-8044-69C7C8A5****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.1.11. CancelLogstashDeletion
Call CancelLogst ashDelet ion t o rest ore t he frozen Logst ash inst ance aft er it is released.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/actions/cancel-deletion HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he ID of the instance.
m7r1vsi2****
Response parameters
23EBF56B-2DC0-
RequestId String 4507-8BE5- T he ID of the request.
B87395DB0FEB
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "23EBF56B-2DC0-4507-8BE5-B87395DB0FEB"
}
Error codes
When you call t his operat ion, t ake not e of t he following it ems:
If t he inst ance is in t he Act ive (act ivat ing), Invalid (invalid), and Inact ive (inact ive) st at e, t he informat ion
cannot be updat ed.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample codes.
Request parameters
T his operat ion uses only common request headers. For more informat ion, see Common request
paramet ers.
Request structure
PATCH|POST /openapi/logstashes/[InstanceId]/instance-settings HTTP/1.1
Request parameters
Locati Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he ID of the instance.
2r42btxr****
Request Body
You must specify t he following paramet ers in Request Body t o updat e t he configurat ions of a specified
Logst ash inst ance.
Used to update
the YML
{"thread_pool.bulk
config Map No configuration
.queue_size":500}
information of an
instance.
Response parameters
71D0D1DA-B22F-
RequestId String 58CB-AF5B- T he ID of the request.
D1657A6A****
T he ret urned dat a also cont ains t he Result paramet er. For more informat ion about t he paramet er, see
List Logst ash.
Examples
Sample request s
JSON format
{
"Result": {
"instanceId": "ls-cn-2r42btxr****",
"version": "7.4.0_with_X-Pack",
"description": "lrr",
"nodeAmount": 1,
"paymentType": "postpaid",
"status": "active",
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn1ne.large",
"disk": 20,
"diskType": "cloud_efficiency"
},
"dataNode": true,
"networkConfig": {
"vpcId": "vpc-bp1jy348ibzulk6hn****",
"vswitchId": "vsw-bp1a0mifpletdd1da****",
"vswitchId": "vsw-bp1a0mifpletdd1da****",
"vsArea": "cn-hangzhou-h",
"whiteIpGroupList": [],
"type": "vpc"
},
"createdAt": "2021-08-30T08:28:21.976Z",
"updatedAt": "2021-08-30T08:59:06.371Z",
"commodityCode": "elasticsearch_logstash_post",
"extendConfigs": [],
"endTime": 4786012800000,
"clusterTasks": [],
"resourceGroupId": "rg-acfmxxkk2p7****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-h",
"status": "NORMAL"
}
],
"instanceType": "logstash",
"inited": true,
"tags": [
{
"tagKey": "acs:rm:rgId",
"tagValue": "rg-acfmxxkk2p7****"
}
],
"serviceVpc": false,
"isNewDeployment": false,
"config": {
"xpack.monitoring.enabled": "true",
"xpack.monitoring.elasticsearch.username": "elastic",
"slowlog.threshold.debug": "500ms",
"xpack.monitoring.elasticsearch.hosts": "[\"http://es-cn-7pp2bvb75005u****.elas
ticsearch.aliyuncs.com:9200\"]",
"xpack.monitoring.elasticsearch.password": "*******",
"slowlog.threshold.warn": "2s",
"slowlog.threshold.info": "1s",
"slowlog.threshold.trace": "100ms"
},
"endpointList": [
{
"host": "172.29.XX.XX",
"port": 9600,
"zoneId": "cn-hangzhou-h"
}
]
},
"RequestId": "71D0D1DA-B22F-58CB-AF5B-D1657A6A****"
}
Error codes
T he instance is currently in
400 InstanceActivating Instance is activating.
effect.
9.2.2. ListExtendfiles
Call t he List Ext endfiles t o obt ain t he ext ended file configurat ions of a Logst ash inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId]/extendfiles HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
/ssd/1/share/ls-cn-
oew1qbgl****/logst
ash/current/config/
filePath String T he path of the extended file.
custom/mysql-
connector-java-
5.1.35.jar
mysql-connector-
name String T he name of the extended file.
java-5.1.35.jar
Examples
Sample request s
JSON Synt ax
{
"Result": [
{
"name": "mysql-connector-java-5.1.35.jar",
"fileSize": 968668,
"sourceType": "ORIGIN",
"filePath": "/ssd/1/share/ls-cn-oew1qbgl****/logstash/current/config/custom/mys
ql-connector-java-5.1.35.jar"
}
],
"RequestId": "741099F7-F490-4679-A52E-38601EE7****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
9.2.3. UpdateExtendfiles
Call t he Updat eExt endfiles t o updat e t he ext ended file configurat ions of a Logst ash inst ance.
Current ly, t his operat ion only allows you t o delet e Logst ash ext ension files t hat have been uploaded in
t he console. If you want t o add or modify an ident ifier, perform t he operat ions in t he console.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request structure
PUT /openapi/logstashes/[InstanceId]/extendfiles HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he ID of the cluster.
oew1qbgl****
RequestBody
T o specify t he updat ed ext ension file configurat ion, ent er t he following paramet ers in Request Body:
T he name of the
extended file. T he
file suffix must be
.jar. Chinese
mysql-connector- characters are not
name String Yes
java-6.0.2.jar supported in the
file name, and the
length cannot
exceed 100
characters.
T he extended file
Source. Currently,
only ORIGIN is
supported. T hat
is, the
corresponding
extension file is
retained. T he
extension file that
does not have this
sourceT ype String Yes ORIGIN parameter
configured is
deleted. T he
function of adding
and modifying
extended files is in
development. You
can implement all
management and
control operations
in control.
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
mysql-connector-
name String T he name of the extended file.
java-6.0.2.jar
Examples
Sample request s
JSON format
{
"Result": [
{
"name": "mysql-connector-java-5.1.35.jar",
"fileSize": 968668,
"sourceType": "ORIGIN"
}
],
"RequestId": "27F32ECF-0527-43BF-A116-D6260D1240BE"
}
Error code
For a list of error codes, visit t he API Error Cent er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId]/plugins HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he ID of the instance.
oew1qbgl****
logstash-filter-
name String Query No T he name of the plug-in.
clone
Response parameters
99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
T he clone filter is
description String for duplicating T he description of the plug-in.
events.
logstash-filter-
name String T he name of the plug-in.
clone
T he header of the
Headers Struct
response.
T he number of returned
└X-T otal-Count Integer 131
plug-ins.
Examples
Sample request s
GET /openapi/logstashes/ls-cn-oew1qbgl****/plugins?name=logstash-filter-clone&page=10&
size=3 HTTP/1.1 public request header
JSON format
Error codes
9.3.2. InstallLogstashSystemPlugin
Inst alls a plug-in.
T he plug-ins t o be inst alled must be included in t he Syst em Default Plug-ins list of Alibaba Cloud
Logst ash. Ext ernal open-source plug-ins are not support ed.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T he Get Logs operat ion does not have operat ion-specific request headers and uses only common
request headers. For more informat ion, see t he "Common request headers" sect ion in t he "Common
HT T P headers" t opic in API Reference.
Request syntax
POST /openapi/logstashes/{InstanceId}/plugins/system/actions/install HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he ID of the instance.
oew1qbgl****
RequestBody
In t he Request Body, you must also ent er t he name of t he plug-in t o be inst alled in t he
["pluginName1","pluginName2",.."pluginNamen"] format . Example:
[
"logstash-input-datahub",
"logstash-input-maxcompute"
]
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC4****
["logstash-input-
datahub",
Result Array of String T he list of successfully installed plug-ins.
"logstash-input-
maxcompute"]
T he ret urned dat a also cont ains Headers paramet ers, indicat ing t hat header informat ion is ret urned.
Examples
Sample request s
POST /openapi/logstashes/ls-cn-oew1qbgl****/plugins/system/actions/install?clientToken=5A2C
FF0E-5718-45B5-9D4D-70B3FF**** HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
[
"logstash-input-datahub",
"logstash-input-maxcompute"
]
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : [ "logstash-input-datahub", "logstash-input-maxcompute" ],
"RequestId" : "93DE9165-49A9-455E-AD7E-64B6694F****",
"Headers" : { }
}
Error codes
T he instance is currently in
400 InstanceActivating Instance is activating.
effect.
9.3.3. UninstallLogstashPlugin
Call t he Uninst allLogst ashPlugin t o uninst all t he inst alled plug-in.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/plugins/actions/uninstall HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
oew1qbgl****
RequestBody
You must ent er t he name of t he plug-in t o be uninst alled in t he format of
["pluginName1","pluginName2",...,"pluginNamen"] , as shown in t he following example.
[
"logstash-input-datahub",
"logstash-input-maxcompute"
]
Response parameters
F99407AB-2FA9-
RequestId String 489E-A259- T he ID of the request.
40CF6DCC****
T he ret urned dat a also cont ains t he Headers paramet er, indicat ing t he ret urned header informat ion.
Examples
Sample request s
JSON Synt ax
{
"Result": [
"logstash-input-datahub",
"logstash-input-maxcompute"
],
"RequestId": "63EB9CD3-7652-4CFD-B38C-6413BCEC****",
"Headers": {}
}
Error codes
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId]/available-elasticsearch-for-centralized-management HTT
PS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
http://es-cn-
n6w1o1x0w001c**** T he public endpoint of the Elasticsearch
endpoint String
.elasticsearch.aliyun instance.
cs.com:9200
es-cn-
esInstanceId String T he ID of the Elasticsearch instance.
n6w1o1x0w001c****
https://es-cn-
n6w1o1x0w001c****
kibanaEndpoint String T he public network endpoint of Kibana.
.kibana.elasticsearch
.aliyuncs.com:5601
Examples
Sample request s
GET /openapi/logstashes/ls-cn-oew1qbgl****/available-elasticsearch-for-centralized-manageme
nt HTTP/1.1
common request header
JSON Synt ax
{
"Result": [
{
"esInstanceId": "es-cn-n6w1o1x0w001c****",
"endpoint": "http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200",
"description": "pan_67_keepit",
"kibanaEndpoint": "https://es-cn-n6w1o1x0w001c****.kibana.elasticsearch.aliyunc
s.com:5601"
},
{
"esInstanceId": "es-cn-6ja1rgego0006****",
"endpoint": "http://es-cn-6ja1rgego0006****.elasticsearch.aliyuncs.com:9200",
"description": "pan_mulitzones_keepit",
"kibanaEndpoint": "https://es-cn-6ja1rgego0006****.kibana.elasticsearch.aliyunc
s.com:5601"
}
],
"RequestId": "4047A0E1-DEE0-4C6C-92A9-E52D32FD****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.4.2. DescribeXpackMonitorConfig
Call t he DescribeXpackMonit orConfig t o obt ain t he X-Pack monit oring configurat ions of a Logst ash
inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId]/xpack-monitor-config HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
["http://es-cn-
X-Pack list of access addresses for the
n6w1o1x0w001c****
endpoints List Elasticsearch instance associated with the
.elasticsearch.aliyun
monitoring.
cs.com:9200"]
Examples
Sample request s
JSON Synt ax
{
"Result": {
"esInstanceId": "es-cn-n6w1o1x0w001c****",
"endpoints": [
"http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200"
],
"pipelineIds": [],
"userName": "elastic",
"enable": true
},
"RequestId": "9EC7377A-60D7-4AB2-ADE3-983E1D0D****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
9.4.3. UpdateXpackMonitorConfig
Call t he Updat eXpackMonit orConfig t o updat e t he X-Pack monit oring alert configurat ions of a
Logst ash inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/xpack-monitor-config HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
RequestBody
Ent er t he following paramet ers in Request Body t o specify t he monit oring configurat ion for X-Pack.
http://es-cn- T he access
n6w1o1x0w001c** address of the
endpoints List<String\> Yes
**.elasticsearch.ali Elasticsearch
yuncs.com:9200 instance.
T he ID List of
["name-1","name-
pipelineIds List<String\> Yes Logstash pipelines
2"]
to be monitored.
Specifies whether
enable Boolean Yes true to enable X-Pack
monitoring.
Username of the
userName String Yes elastic Elasticsearch
instance.
Password of the
password String Yes **** Elasticsearch
instance.
Sample code:
{
"endpoints": [
"http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200"
],
"pipelineIds": ["datahub_test","test"],
"enable": true,
"userName": "elastic",
"password": "xxxx",
"esInstanceId": "es-cn-n6w1o1x0w001c****"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Returned results:
Result Boolean true true: update successful
false: update failed
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "30A59FC7-609B-4C12-B6EF-991A5CA7****"
}
Error codes
9.4.4. ValidateConnection
Call Validat eConnect ion t o verify t he connect ivit y of Elast icsearch inst ance providing x-pack monit oring
in t he monit oring alarm configurat ion of t he Logst ash inst ance.
Not e T o monit or X-Pack for Logst ash, you must configure Elast icsearch inst ance. Aft er t he
configurat ion, you can monit or t he Logst ash inst ance in Kibana of t he corresponding Elast icsearch
inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/validate-connection HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
RequestBody
Ent er t he following paramet ers in Request Body t o specify t he Elast icsearch inst ance t o be connect ed.
T he access
["http://es-cn- address of the X-
n6w1o1x0w001c** Pack instance that
endpoints List<String\> Yes
**.elasticsearch.ali the Elasticsearch
yuncs.com:9200"] provides for
monitoring.
Username of the
userName String Yes elastic Elasticsearch
instance.
Password of the
password String Yes xxx Elasticsearch
instance.
Sample code:
{
"endpoints": [
"http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200"
],
"userName": "elastic",
"password": "xxxx"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Returned results:
Result Boolean true true: verification succeed
false: verification failed
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "D5B41051-FE06-4986-9D87-3779E627****"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only common request headers. For more informat ion, refer t o t he document at ion of
common request paramet ers.
Request syntax
GET /openapi/logstashes/{InstanceId}/search-log HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he ID of the instance.
v0h1kzca****
Positi Require
Parameter T ype Example Description
on d
host:10.7.xx.xx
AND level:info
T he keyword used to match log
query String Query Yes AND
entries.
content:openin
g
Response parameters
7F40EAA1-6F1D-
RequestId String 4DD9-8DB8- T he ID of the request.
C5F00C4E****
[logstash.outputs.fil
eextend] Opening
file
{:path=>\"/ssd/1/ls
content String T he details of the log.
-cn-
v0h1kzca****/logsta
sh/logs/debug/test
\"}
T he header of the
Headers Struct
response.
T he number of returned
└X-T otal-Count Integer 1
logs.
Examples
Sample request s
GET /openapi/logstashes/ls-cn-v0h1kzca****/search-log?type=LOGSTASH_INSTANCE_LOG&query=host
:10.7.xx.xx AND level:info AND content:opening&beginTime=1531910852074&endTime=153191085207
4&page=1&size=20 HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : [ {
"timestamp" : 1595408280506,
"host" : "10.7.**.**",
"contentCollection" : {
"level" : "info",
"host" : "10.7.**.**",
"time" : "2020-07-22T16:58:00.506Z",
"content" : "[logstash.outputs.fileextend] Opening file {:path=>\"/ssd/1/ls-cn-v0h1kz
ca****/logstash/logs/debug/test\"}"
},
"instanceId" : "ls-cn-v0h1kzca****"
} ],
"RequestId" : "DADBEFD2-570D-48EE-ABE4-0E3017D8****",
"Headers" : {
"X-Total-Count" : 1
}
}
Error code
T he instance is currently in
400 InstanceActivating Instance is activating.
effect.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
/openapi/logst ashes/{inst anceId}/act ions/int errupt
Request structure
POST /openapi/logstashes/[InstanceId]/actions/interrupt HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
4591f1y6****
Response parameters
0FA05123-745C-
RequestId String 42FD-A69B- T he ID of the request.
AFF48EF9****
Returned results:
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "0FA05123-745C-42FD-A69B-AFF48EF9****"
}
Error codes
9.6.2. ResumeLogstashTask
Call t he ResumeLogst ashT ask t o resume t he change int errupt ion t ask for t he inst ance. Aft er
rest orat ion, t he inst ance ent ers t he act ivat ing st at e.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/actions/resume HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the instance.
4591f1y6****
Response parameters
T he specified
cluster does not
T he error message. T his parameter is not
Message String exist. Check the
returned if you call the operation normally.
cluster status and
try again.
0FA05123-745C-
RequestId String 42FD-A69B- T he ID of the request.
AFF48EF9****
Returned results:
Result Boolean true true: T he restore task is successful.
false: T he restore task failed.
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "0FA05123-745C-42FD-A69B-AFF48EF9****"
}
Error codes
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/pipelines HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
RequestBody
T o specify t he pipeline informat ion, you must ent er t he following paramet ers in Request Body:
T he ID of the
pipelineId String Yes pipeline-test
pipeline.
T he description of
description String No this is a test
the pipeline.
T he specific
input { } filter { }
config String Yes configuration of
output { }
the pipeline.
T he number of
workers Integer No 2
pipeline workers.
Pipeline batch
batchSize Integer No 125
size.
Pipeline batch
batchDelay Integer No 50
delay.
T he type of the
queue. Valid
queueT ype String No MEMORY
values: MEMORY
and PERSIST ED.
T he status of the
pipeline. Valid
values:
NOT _DEPLOYED,
RUNNING, and
DELET ED. T his
String RUNNING
pipelineStatus No parameter is
required when the
trigger parameter
is set to true.
T he maximum
queueMaxBytes Integer No 1024 number of bytes
in the queue.
T he number of
queueCheckPoint
Integer No 1024 queue checkpoint
Writes
writes.
Sample code:
[{
"pipelineId":"test",
"config":"input {\n\n}\nfilter {\n\n}\noutput {\n\n}"
}]
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Returned results:
Result Boolean true true: creation succeed
false: creation failed
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "732A60FB-1899-4466-83D2-E96DA455****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
9.7.2. ListPipeline
Queries t he pipelines of a Logst ash clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId]/pipelines HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes T he Logstash instance ID.
oew1qbgl****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
gmtCreatedT im 2020-08-
String pipeline creation time.
e 05T 03:10:38.188Z
gmtUpdateT im 2020-08-
String T he pipeline update time.
e 05T 08:43:31.757Z
Examples
Sample request s
JSON format
Error code
For a list of error codes, visit t he API Error Cent er .
9.7.3. DescribePipeline
Call t he DescribePipeline t o obt ain t he pipeline informat ion of a Logst ash inst ance.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId]/pipelines/[PipelineId] HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
Response parameters
829F38F6-E2D6-
RequestId String 4109-90A6- T he ID of the request.
888160BD1***
input { } filter { }
config String T he specific configuration of the pipeline.
output { }
2020-06-
gmtCreatedT im
String 20T 07:26:47.000+0 T he time when the pipeline was created.
e
000
2020-06-
gmtUpdateT im
String 20T 07:26:47.000+0 T he time when the pipeline was updated.
e
000
queueCheckPoi
Integer 1024 T he number of queue checkpoint writes.
ntWrites
Examples
Sample request s
JSON Synt ax
{
"Result": {
"pipelineId": "test",
"config": "input {\n\n}\nfilter {\n\n}\noutput {\n\n}",
"workers": 2,
"batchSize": 100,
"batchDelay": 60,
"queueType": "MEMORY",
"pipelineStatus": "NOT_DEPLOYED",
"queueMaxBytes": 1024,
"queueCheckPointWrites": 1024,
"gmtCreatedTime": "2020-09-16T06:35:30.139Z",
"gmtUpdateTime": "2020-09-16T07:06:24.759Z"
},
"RequestId": "49AEA9F3-B946-4102-8BD7-92E71C86****"
}
Pipeline parameters that are not configured use the system default values, and are not disp
layed in the returned result.
Error code
For a list of error codes, visit t he API Error Cent er.
9.7.4. UpdatePipelines
Call t he Updat ePipelines t o updat e t he Logst ash pipeline informat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
PUT /openapi/logstashes/[InstanceId]/pipelines HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
RequestBody
T o specify t he updat ed pipeline informat ion, you must ent er t he following paramet ers in Request Body:
T he ID of the
pipelineId String Yes pipeline-test pipeline to
update.
T he
description String No this is a test description of
the pipeline.
T he specific
input { } filter { configuration
config String Yes
} output { } of the
pipeline.
T he number of
workers Integer No 2 pipeline
workers.
Pipeline batch
batchSize Integer No 125
size.
Pipeline batch
batchDelay Integer No 50
delay.
T he type of
the queue.
queueT ype String No MEMORY Valid values:
MEMORY and
PERSIST ED.
T he status of
the pipeline.
Valid values:
NOT _DEPLOYE
D, RUNNING,
and DELET ED.
pipelineStatus String No RUNNING
T his
parameter is
required when
the trigger
parameter is
set to true.
T he maximum
queueMaxByte number of
Integer No 1024
s bytes in the
queue.
T he number of
queueCheckPoi queue
Integer No 1024
ntWrites checkpoint
writes.
Sample code:
[
{
"pipelineId": "test",
"config": "input {\n\n}\nfilter {\n\n}\noutput {\n \n}"
}
]
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Returned results:
Result Boolean true true: update succeed
false: update failed
Examples
Sample request s
PUT /openapi/logstashes/ls-cn-oew1qbgl****/pipelines?clientToken=5A2CFF0E-5718-45B5-9D4D-70
B3FF****&trigger=false HTTP/1.1
common request header
[
{"pipelineId":"test", "config":"input {\n\n}\nfilter {\n\n}\noutput {\n \n}"},
{"pipelineId":"test1", "config":"input {\n\n}\nfilter {\n\n}\noutput {\n \n}"}
]
JSON Synt ax
{
"Result": true,
"RequestId": "734F9DEC-74AC-4D6E-B97F-FFDAA90B****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
9.7.5. RunPipelines
Call t he RunPipelines t o immediat ely deploy a Logst ash pipeline.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/pipelines/action/run HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
RequestBody
Ent er t he pipeline ID list in Request Body t o specify t he pipeline t o be deployed. Example:
["PipelineId1","PipelineId2","..."] .
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Returned results:
Result Boolean true true: deployment succeed
false: deployment failed
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "529AEFD2-F5FA-492F-8921-520141B9****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
9.7.6. StopPipelines
Call t he St opPipelines t o st op running t he Logst ash pipeline.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/pipelines/action/stop HTTPS|HTTP
Request parameters
Requir
Paramet er T ype Example Descript ion
ed
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
RequestBody
Ent er t he pipeline ID list in Request Body t o specify t he pipeline t o be deployed. Example:
["PipelineId1","PipelineId2","..."] .
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Returned results:
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "57092D4B-C92E-4CF9-B73C-B4B376C9****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
9.7.7. UpdatePipelineManagementConfig
Call t he Updat ePipelineManagement Config t o updat e t he met hod for managing Logst ash pipelines.
Not e Pipeline management met hods are divided int o configurat ion file management and
Kibana pipeline management . Current ly, t he console no longer support s Kibana pipeline
management . You can only use t his funct ion t hrough t he API.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
POST /openapi/logstashes/[InstanceId]/pipeline-management-config HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
RequestBody
Ent er t he following paramet ers in Request Body t o specify t he associat ed Elast icsearch inst ance
informat ion.
T he ID of the
Elasticsearch
instance where
es-cn-
Kibana is located
esInstanceId String Yes n6w1o1x0w001c**
after the Kibana
**
management
pipeline is
enabled.
T he username of
userName String Yes elastic
Kibana.
T he password of
password String Yes xxxxxx
Kibana.
T he list of
["testKibanaMana pipelines
pipelineIds List<String\> Yes
gement"] managed by
Kibana.
T he list of access
addresses of
Elasticsearch
["http://es-cn-
instances where
n6w1o1x0w001c**
endpoints List<String\> Yes Kibana is located
**.elasticsearch.ali
after the Kibana
yuncs.com:9200"]
management
pipeline is
enabled.
T he pipeline
management
method. Valid
values: ES(Kibana
pipelineManageme
String Yes ES pipeline
ntT ype
management) and
MULT IPLE_PIPELINE
(configuration file
management).
Sample code:
{
"pipelineManagementType": "ES",
"endpoints": [
"http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200"
],
"pipelineIds": [
"testKibanaManagement"
],
"userName": "elastic",
"password": "xxxx",
"esInstanceId": "es-cn-n6w1o1x0w001c****"
}
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Returned results:
Result Boolean true true: update successfully
false: update failed
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "135E9F19-277D-4E34-85AC-EB394AA2****"
}
Error codes
9.7.8. DescribePipelineManagementConfig
Call t he DescribePipelineManagement Config t o obt ain t he Logst ash pipeline management
configurat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
GET /openapi/logstashes/[InstanceId]/pipeline-management-config HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
["http://es-cn-
T he list of access addresses of the
n6w1o1x0w001c****
endpoints String Elasticsearch instance. Format: Domains:
.elasticsearch.aliyun
port number .
cs.com:9200"]
es-cn-
esInstanceId String T he ID of the Elasticsearch instance.
n6w1o1x0w001c****
["testKibanaManage
pipelineIds List T he list of pipeline names.
ment"]
Examples
Sample request s
{
"Result": {
"pipelineManagementType": "MULTIPLE_PIPELINE",
"esInstanceId": "es-cn-n6w1o1x0w001c****",
"endpoints": [
"http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200"
],
"pipelineIds": [
"testKibanaManagement"
],
"userName": "elastic"
},
"RequestId": "6822F07C-A896-4A2C-A430-BC01D5D1****"
}
Error codes
9.7.9. DeletePipelines
Call t he Delet ePipelines t o delet e a specified Logst ash pipeline.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. You can use OpenAPI Explorer t o search for API
operat ions, call API operat ions, and dynamically generat e SDK sample code.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request syntax
DELETE /openapi/logstashes/[InstanceId]/pipelines HTTPS|HTTP
Request parameters
ls-cn-
InstanceId String Yes T he ID of the Logstash instance.
oew1qbgl****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Returned results:
Result Boolean true true: delete successfully
false: delete failed
Examples
Sample request s
JSON Synt ax
{
"Result": true,
"RequestId": "61A12DC0-CD30-46A2-A3CE-653EA0CA****"
}
Error code
For a list of error codes, visit t he API Error Cent er.
9.7.10. ListPipelineIds
When calling t he List PipelineIds t o set up Kibana pipeline management , t est t he connect ivit y bet ween
Logst ash and Kibana and obt ain t he list of pipeline IDs creat ed on t he t arget Kibana.
Not e Pipeline management is divided int o configurat ion file management and Kibana pipeline
management . Kibana pipeline management is not open in some regional consoles.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request headers
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request syntax
POST /openapi/instances/[InstanceId]/pipeline-ids HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ls-cn-
InstanceId String Path Yes 7g1umu96oit2e T he Logstash instance ID.
****
RequestBody
T he following paramet ers must be filled in t he Request Body t o verify t he Kibana informat ion of t he
management pipeline.
T he username
that is used to log
on to the Kibana
console. Default
userName String Yes elastic value: elastic.
T he password
used to log on to
password String Yes xxxxxx
the Kibana
console.
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
testKibanaManagem
pipelineId String T he ID of the pipeline created on Kibana.
ent
Examples
Sample request s
JSON format
Error codes
10.Beats
10.1. CreateCollector
Call t he Creat eCollect or t o creat e a collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/collectors HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
RequestBody
T he following paramet ers must be filled in t he Request Body t o specify t he configurat ion informat ion
of t he collect or t o be creat ed.
Whether to verify
and create a
collector is used
only when
creating or
updating a
dryRun Boolean Yes true
collector. Optional
values: true (only
check but not
update), false
(check and
update).
T he name of the
name String Yes ct-test
collector.
T he collector
type. Optional
values: fileBeat,
resT ype String Yes fileBeat metricBeat,
heartBeat, and
auditBeat.
6.8.5_with_comm T he collector
resVersion String Yes
unity version.
Virtual Private
vpc-
Cloud ID. where
vpcId Integer Yes bp12nu14urf0upaf
the collector is
*****
located
T he fileBeat
collection path.
Only when the
installation
collectorPaths List<String> No ["/var/log"]
machine of the
collector is ECS,
configuration is
required.
T he configuration
configs List Yes file information of
the collector.
T he name of the
└fileName String Yes filebeat.yml
file.
"filebeat.inputs:xx T he content of
└content String Yes
x" the remote file.
Collector
extendConfigs Array expansion
configuration.
T he type of the
configuration.
Optional values:
collectorT argetIns
tance (collector
Output),
collectorDeployMa
chine (collector's
collectorElasticsea deployment
└configT ype String Yes
rchForKibana machine),
collector
Elasticsearch
ForKibana
(Elasticsearch
instance
information
supporting Kibana
dashboard).
T he type of
machine that the
collector is
deployed.
Optional values:
ECSInstanceId(ECS)
└type String No ECSInstanceId , ACKCluster
(Container
Kubernetes).
Required when the
co nf igT ype is
co llect o rDeplo y
Machine .
T he instance type
specified by the
collector Output.
Optional value:
Elasticsearch ,
└instanceT ype String No elasticsearch
logstash. Required
when the
co nf igT ype is
co llect o rT arget I
nst ance .
T he instance ID
associated with
the collector.
When the
co nf igT ype is
co llect o rT arget I
nst ance , the
instance ID of
collector Output;
When the
co nf igT ype is
es-cn- co llect o rDeplo y
└instanceId String Yes
nif201ihd0012**** Machines and the
t ype is
ACKClust er , it is
ACK cluster ID.
T he list of ECS
machines
deployed by the
collector.
An array of node Required when the
└machines Array
roles. co nf igT ype is
co llect o rDeplo y
Machines and the
t ype is
ECSInst anceId .
i-
T he list of ECS
└└instanceId String Yes bp11u91xgubypcu
machine IDs.
z****
T he ID of the host
group. Required
when the
co nf igT ype is
co llect o rDeplo y
default_ct-cn-
└groupId String Machine .
5i2l75bz4776****
T he transmission
protocol needs to
be consistent with
the access
protocol of the
instance specified
by the collector
└protocol String No HT T P
Output. Optional
values: HT T P,
HT T PS. Required
when the
co nf igT ype is
co llect o rT arget I
nst ance .
Output specifies
the user name of
the instance. T he
default name is
elastic. Required
when the
└userName String No elastic
co nf igT ype is
co llect o rT arget I
nst ance or
co llect o rElast ic
searchFo rKibana
.
T he password of
└password String No ***** the corresponding
username.
Whether to enable
Monitoring is
required when the
co nf igT ype is
co llect o rT arget I
└enableMonitorin nst ance and the
Boolean No true
g inst anceT ype is
Elast icsearch.
Optional values:
true (enabled) and
false (not
enabled).
Collector Output
specifies the list
of access
["es-cn-
addresses of the
nif201i*****.elastic
└hosts List<String> No instance. Required
search.aliyuncs.co
when the
m:9200"]
co nf igT ype is
co llect o rT arget I
nst ance .
T he private
network access
address of Kibana
es-cn- after Kibana
nif201ihd0012****- Dashboard is
└host String No kibana.internal.ela enabled. Required
sticsearch.aliyuncs when the
.com:5601 co nf igT ype is
co llect o rElast ic
searchFo rKibana
.
T he Internet
access address of
Kibana after
Kibana Dashboard
is enabled.
https://es-cn- Required when the
nif201ihd0012****. co nf igT ype is
└kibanaHost String No kibana.elasticsear co llect o rElast ic
ch.aliyuncs.com:5 searchFo rKibana
601 .
ECS
configT ype, inst anceId, inst anceT ype, host s, userName, password, prot ocol, enableMonit oring
ACK
configT ype, inst anceId, inst anceT ype, userName, password, prot ocol, enableMonit oring
ECS
configT ype, inst anceId, host , kibanaHost , userName, password, prot ocol
ACK
configT ype
collect orDeployMachine
ECS
Response parameters
8466BDFB-C513-
RequestId String 4B8D-B4E3- T he ID of the request.
5AB256AB****
ct-cn-
resId String T he ID of the successfully created collector.
4135is2tj194p****
Examples
Sample request s
POST /openapi/collectors HTTP/1.1 public request header {"dryrun": false, "name": "tes
t_mufei_1", "resType": "fileBeat", "resVersion": "6.8.5_with_community", "vpcId": "vpc-bp12
nu14urf0upaf*****", "collectorPaths": [ "/var/log" ], "extendConfigs": [ { "instanceId": "e
s-cn-nif201ihd0012****", "instanceType": "elasticsearch", "configType": "collectorTargetIns
tance", "hosts": [ "es-cn-nif201ihd0012****.elasticsearch.aliyuncs.com:9200" ], "userName":
"elastic", "password": "*****", "protocol": "HTTP" }, { "type": "ECSInstanceId", "configTyp
e": "collectorDeployMachine", "machines": [ { "instanceId": "i-bp11u91xgubypcuz****" } ] }
], "configs": [ { "fileName": "filebeat.yml", "content": "filebeat.inputs:xxx" }, { "fileNa
me": "fields.yml", "content": "- key: log\n title: Log file content\n description: >\n Cont
ains log file lines.\n ...." } ] }
Error codes
For a list of error codes, visit t he API Error Cent er .
10.2. DescribeCollector
call DescribeCollect or get collect or inst ance det ails of
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/collectors/[ResId] HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes rg31ahn82m0q T he collector instance ID.
d****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Array of
extendConfigs Collector expansion configuration.
extendConfigs
es-cn-
T he private network address of Kibana after
n6w1o1x0w001c****
Kibana Dashboard is enabled. When
-
host String co nf igT ype For
kibana.internal.elasti
co llect o rElast icsearchFo rKibana When
csearch.aliyuncs.co
displayed.
m:5601
i-
instanceId String T he list of ECS machine IDs.
bp1gyhphjaj73jsr****
ECSInstanceId:ECS
ACKCluster: Container Kubernetes
2020-06-
gmtCreatedT im
String 20T 07:26:47.000+0 T he time when the collector was created.
e
000
2020-06-
gmtUpdateT im
String 20T 07:26:47.000+0 T he collector update time.
e
000
ct-cn-
name String T he name of the collector.
4135is2tj194p****
ct-cn-
resId String T he collector instance ID.
rg31ahn82m0qd****
6.8.5_with_communi
resVersion String T he collector version.
ty
ext endConf igs T here are 3 configT ype t ypes, namely collect orT arget Inst ance,
collect orElast icsearchForKibana and collect orDeployMachine. Different deployment machines have
different ret urned paramet ers. T he specific combinat ion met hod is as follows:
collect orT arget Inst ance
ECS
configT ype, inst anceId, inst anceT ype, host s, userName, password, prot ocol, enableMonit oring
ACK
configT ype, inst anceId, inst anceT ype, userName, password, prot ocol, enableMonit oring
configT ype, inst anceId, host , kibanaHost , userName, password, prot ocol
ACK
configT ype
collect orDeployMachine
ECS
configT ype, t ype, machines, groupId
ACK
configT ype, t ype, inst anceId, t ot alPodsCount , successPodsCount
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
10.3. ReinstallCollector
Call t he Reinst allCollect or t o ret ry t he inst allat ion of t he collect or t hat was not successfully inst alled at
t he t ime of creat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/collectors/[ResId]/actions/reinstall HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes l871nd0u73c45 T he collector ID.
****
RequestBody
T he following paramet ers must be filled in t he Request Body t o specify t he informat ion of t he machine
t hat ret ries inst alling t he collect or.
T he ID of the ECS
instance to be
nodes List<String\> Yes ["ecs-cn-abc"] retried to install
the collector.
T he type of the
retry installation
collector.
Currently, only
nodeEcsId is
restartT ype String Yes nodeEcsId
supported,
indicating an ECS
instance.
Example:
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Request result:
Result Boolean true true: T he installation is successful.
false: Installation failed
Examples
Sample request s
JSON format
Error codes
10.4. ListCollectors
Call List Collect ors t o obt ain t he list informat ion of collect ors.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/collectors HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
resId String Query No 77uqof2s7rg5c T he collector ID.
****
collectorName
name String Query No T he name of the collector.
1
es-cn-
T he instance ID associated with the
instanceId String Query No nif1q8auz0003*
collector.
***
Positi Require
Parameter T ype Example Description
on d
ECS:ECS instances
ACK: Container Kubernetes
cluster
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Array of
extendConfigs T he extended parameter information.
extendConfigs
es-cn-
T he private network access address of
n6w1o1x0w001c****
Kibana after Kibana Dashboard is enabled.
-
host String When co nf igT ype For
kibana.internal.elasti
co llect o rElast icsearchFo rKibana When
csearch.aliyuncs.co
displayed.
m:5601
i-
instanceId String bp13y63575oypr9d* T he list of ECS machine IDs.
***
ECSInstanceId:ECS
ACKCluster: Container Kubernetes
2020-08-
gmtCreatedT im
String 18T 02:06:12.000+0 T he time when the collector was created.
e
000
2020-08-
gmtUpdateT im
String 18T 09:40:43.000+0 T he collector update time.
e
000
ct-cn-
resId String T he collector instance ID.
0v3xj86085dvq****
6.8.5_with_communi
resVersion String T he collector version.
ty
ext endConf igs T here are 3 configT ype t ypes, namely collect orT arget Inst ance,
collect orElast icsearchForKibana and collect orDeployMachine. Different deployment machines have
different ret urned paramet ers. T he specific combinat ion met hod is as follows:
configT ype, inst anceId, inst anceT ype, host s, userName, password, prot ocol, enableMonit oring
ACK
configT ype, inst anceId, inst anceT ype, userName, password, prot ocol, enableMonit oring
configT ype, inst anceId, host , kibanaHost , userName, password, prot ocol
ACK
configT ype
collect orDeployMachine
ECS
configT ype, t ype, machines, groupId
ACK
configT ype, t ype, inst anceId, t ot alPodsCount , successPodsCount
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
10.5. ListDefaultCollectorConfigurations
Call t he List Default Collect orConfigurat ions t o obt ain t he default configurat ion file of t he collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/beats/default-configurations HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
fileBeat
resT ype String Query Yes fileBeat metricBeat
heartBeat
auditBeat
ECS:6.8.5_with_community
ACK:6.8.13_with_community
Response parameters
8BAE3C32-8E4A-
RequestId String 47D6-B4B0- T he ID of the request.
95B5DE643BF5
Examples
Sample request s
JSON format
{ "Result": [ { "fileName": "fields.yml", "content": "- key: log\n title: Log file con
tent\n description: >\n Contains log file lines.\n fields:\n ......" }, { "fileName": "file
beat.yml", "content": "###################### Filebeat Configuration Example ##############
###########\n\n# This file is an example configuration file ......" } ], "RequestId": "8BAE
3C32-8E4A-47D6-B4B0-95B5DE643BF5" }
Error codes
For a list of error codes, visit t he API Error Cent er .
10.6. UpdateCollectorName
Call t he Updat eCollect orName t o modify t he name of t he collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/collectors/[ResId]/actions/rename HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes 77uqof2s7rg5c T he collector ID.
****
Positi Require
Parameter T ype Example Description
on d
RequestBody
T he following paramet ers must be filled in t he Request Body t o specify t he name of t he modified
collect or.
T he name of the
name String Yes collectorName1 modified
collector.
Example:
{ "name": "collectorName1" }
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Array of
extendConfigs Collector expansion configuration.
extendConfigs
true
false
c1b9fde5172b84f82
instanceId String T he list of ECS machine IDs.
b9928e825a7b8988
2020-06-
gmtCreatedT im
String 20T 07:26:47.000+0 T he time when the collector was created.
e
000
2020-06-
gmtUpdateT im
String 20T 07:26:47.000+0 T he collector update time.
e
000
ct-cn-
resId String T he collector instance ID.
77uqof2s7rg5c****
Examples
Sample request s
JSON format
Error codes
For a list of error codes, visit t he Error Cent er .
10.7. UpdateCollector
Call t he Updat eCollect or t o updat e t he collect or inst ance informat ion.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
PUT /openapi/collectors/[ResId] HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes 77uqof2s7rg5c T he collector instance ID.
****
RequestBody
T he following paramet ers must be filled in t he Request Body t o specify t he configurat ion informat ion
of t he collect or t o be updat ed.
Whether to verify
and update the
collector. Optional
values: true (only
dryRun boolean Yes false
check but not
update), false
(check and
update).
T he name of the
name String Yes ct-test
collector.
T he collector
status. Optional
status String Yes activing values: active (in
effect) and active
(in effect).
T he collector
type. Optional
values: fileBeat,
resT ype String Yes fileBeat
metricBeat,
heartBeat,
auditBeat.
Virtual Private
vpc-
Cloud ID. where
vpcId String Yes bp16k1dvzxtma**
the collector is
***
located
6.8.5_with_comm T he collector
resVersion String Yes
unity version.
T he ID of the
ownerId String Yes 16852099488***** Alibaba Cloud
account.
2020-06-
T he collector
gmtUpdateT ime Date Yes 20T 07:26:47.000+
update time.
0000
Filebeat collection
collectorPaths List<String> No ["/var/log"]
path.
T he configuration
configs List Yes file information of
the collector.
T he name of the
└fileName String Yes filebeat.yml
mezzanine file.
"filebeat.inputs:xx T he content of
└content String Yes
x" the remote file.
Collector
extendConfigs Array Yes expansion
configuration.
T he type of the
configuration.
Optional values:
collectorT argetIns
tance (collector
Output),
collectorDeployMa
chine (collector's
deployment
machine),
collector
Elasticsearch
ForKibana
(Elasticsearch
instance
information
supporting Kibana
collectorElasticsea dashboard).
└configT ype String Yes
rchForKibana
T he type of
machine that the
collector is
deployed.
Optional values:
ECSInstanceId(ECS)
└type String Yes ECSInstanceId , ACKCluster
(Container
Kubernetes).
Required when the
co nf igT ype is
co llect o rDeplo y
Machine .
T he list of ECS
machines
deployed by the
collector.
An array of node Required when the
└machines Array
roles. co nf igT ype is
co llect o rDeplo y
Machines and the
t ype is
ECSInst anceId .
i-
T he list of ECS
└└instanceId String No bp13y63575oypr9
machine IDs.
d****
T he status of
each collector on
ECS. Optional
values: heartOk
(normal
heartbeat),
└└agentStatus String No failed heartLost
(abnormal
heartbeat),
uninstalled (not
installed), failed
(installation
failed).
T he ID of the host
group. Required
default_ct-cn- when the
└groupId String
5i2l75bz4776**** co nf igT ype is
co llect o rDeplo y
Machine .
T he instance ID
associated with
the collector.
When the
co nf igT ype is
co llect o rT arget I
nst ance , the
es-cn- instance ID of
└instanceId String Yes
nif1z89fz003i**** collector Output;
When the
co nf igT ype is
co llect o rDeplo y
Machines and the
t ype is
ACKClust er , it is
ACK cluster ID.
T he transmission
protocol needs to
be consistent with
the access
protocol of the
instance specified
by the collector
└protocol String Yes HT T P
Output. Optional
values HT T P and
HT T PS. Required
when the
co nf igT ype is
co llect o rT arget I
nst ance .
Output specifies
the user name of
the instance. T he
default name is
elastic. Required
when the
co nf igT ype is
co llect o rT arget I
nst ance or
co llect o rElast ic
searchFo rKibana
└userName String Yes elastic
.
Whether to enable
Monitoring is
required when the
co nf igT ype is
co llect o rT arget I
└enableMonitorin nst ance and the
Boolean Yes true
g inst anceT ype is
Elast icsearch.
Optional values:
true (enabled) and
false (not
enabled).
Collector Output
specifies the list
of access
["es-cn-
addresses of the
n6w1o1x*****.elas
└hosts List<String> No instance. Required
ticsearch.aliyuncs.
when the
com:9200"]
co nf igT ype is
co llect o rT arget I
nst ance .
T he instance type
specified by the
collector Output.
Optional value:
Elasticsearch ,
└instanceT ype String Yes elasticsearch
logstash. Required
when the
co nf igT ype is
co llect o rT arget I
nst ance .
T he private
network access
address of Kibana
es-cn-
after Kibana
n6w1o1x0w001c**
Dashboard is
**-
└host String No enabled. Required
kibana.internal.ela
when the
sticsearch.aliyuncs
co nf igT ype is
.com:5601
co llect o rElast ic
searchFo rKibana
.
T he Internet
access address of
Kibana after
Kibana Dashboard
https://es-cn-
is enabled.
nif1z89fz003i****.
└kibanaHost String No kibana.elasticsear Required when the
ch.aliyuncs.com:5 co nf igT ype is
601 co llect o rElast ic
searchFo rKibana
.
configT ype, inst anceId, inst anceT ype, host s, userName, password, prot ocol, enableMonit oring
ACK
configT ype, inst anceId, inst anceT ype, userName, password, prot ocol, enableMonit oring
configT ype, inst anceId, host , kibanaHost , userName, password, prot ocol
ACK
configT ype
collect orDeployMachine
ECS
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Array of
extendConfigs T he extended parameter information.
extendConfigs
i-
instanceId String bp13y63575oypr9d* T he list of ECS machine IDs.
***
ECSInstanceId: ECS
ACKCluster: Container Kubernetes
2020-06-
gmtCreatedT im
String 20T 07:26:47.000+0 T he time when the collector was created.
e
000
2020-06-
gmtUpdateT im
String 20T 07:26:47.000+0 T he collector update time.
e
000
ct-cn-
resId String T he collector instance ID.
0v3xj86085dvq****
6.8.5_with_communi
resVersion String T he collector version.
ty
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
10.8. StartCollector
Call St art Collect or t o st art t he collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/collectors/[ResId]/actions/start HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes 77uqof2s7rg5c T he collector ID.
****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Examples
Sample request s
Error codes
10.9. RestartCollector
Call t he Rest art Collect or t o rest art t he collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/collectors/[ResId]/actions/restart HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes 77uqof2s7rg5c T he collector instance ID.
****
Response parameters
84B4038A-AF38-
RequestId String 4BF4-9FAD- T he ID of the request.
EA92A4FFF00A
Examples
Sample request s
JSON format
Error codes
For a list of error codes, visit t he API Error Cent er .
10.10. StopCollector
Call St opCollect or t o st op t he running collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/collectors/[ResId]/actions/stop HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes 77uqof2s7rg5c T he collector ID.
****
Positi Require
Parameter T ype Example Description
on d
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
10.11. DeleteCollector
Call t he Delet eCollect or t o delet e t he collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
DELETE /openapi/collectors/[ResId] HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes 92z1h38882dal T he collector ID.
****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1****
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/ecs HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
Positi Require
Parameter T ype Example Description
on d
ecsInstanceNa
String Query No test T he ECS instance name.
me
vpc-
T he ID of the VPC where the ECS
vpcId String Query No bp16k1dvzxtm
instance is located.
agcva****
Response parameters
5FFD9ED4-C2EC-
RequestId String 4E89-B22B- T he ID of the request.
1ACB6FE1D***
Array of
extendConfigs T he extended parameter information.
extendConfigs
true
false
i-
instanceId String bp13y63575oypr9d* T he list of ECS machine IDs.
***
ECSInstanceId:ECS
ACKCluster: Container Kubernetes
2020-06-
gmtCreatedT im
String 20T 07:26:47.000+0 T he time when the collector was created.
e
000
2020-06-
gmtUpdateT im
String 20T 07:26:47.000+0 T he collector update time.
e
000
ct-cn-
resId String T he collector instance ID.
0v3xj86085dvq****
i-
ecsInstanceId String bp14ncqge8wy3l3d* T he ID of the instance.
***
ecsInstanceNa
String ecsT estName T he ECS instance name.
me
[ { "tagKey": "a",
tags String T he tag information of the ECS instance.
"tagValue": "b" } ]
Examples
Sample request s
JSON format
Error codes
For a list of error codes, visit t he API Error Cent er .
10.12.2. ModifyDeployMachine
Call t he ModifyDeployMachine t o updat e t he ECS machine inst alled by t he collect or.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/collectors/[ResId]/actions/modify-deploy-machines HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes xb1i7q79u65nk* T he collector ID.
***
Positi Require
Parameter T ype Example Description
on d
RequestBody
T he following paramet ers must be filled in t he Request Body t o specify t he informat ion of t he t arget
ECS inst ance.
T he target ECS
machines List Yes instance
information.
i-
T he ID of the
└instanceId String Yes bp11u91xgubypcu
instance.
z****
T he type of
machine that the
collector is
deployed. Only
type String Yes ECSInstanceId
ECSInstanceId(ECS
machine
deployment) is
supported.
T he type of the
configuration.
Only
collectorDeployMa
collectorDeployMa
configT ype String Yes chine (the
chine
deployment
machine of the
collector) is
supported.
Response parameters
C37CE536-6C0F-
RequestId String 4778-9B59- T he ID of the request.
6D94C7F7EB63
Examples
Sample request s
JSON format
Error codes
For a list of error codes, visit t he API Error Cent er .
10.12.3. ListNodes
Call List Nodes t o view t he st at us of t he ECS machine where t he collect or is inst alled.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/collectors/[ResId]/nodes HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
ct-cn-
ResId String Path Yes l871nd0u73c45 T he collector ID.
****
i-
ecsInstanceIds String Query No bp1ei8ysh7orb T he ID of ECS instance N.
6eq****
ecsInstanceNa
String Query No test T he ECS instance name.
me
Response parameters
E1FD7642-7C40-
RequestId String 4FF2-9C0F- T he ID of the request.
21F1A1746F70
i-
ecsInstanceId String T he ID of the instance.
bp13y63575oypr****
ecsInstanceNa
String ECS_beat T he ECS instance name.
me
Array of
ipAddress T he IP information list of the ECS instance.
ipAddress
windows:Windows Server
linux:Linux
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/ack-clusters HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
Positi Require
Parameter T ype Example Description
on d
vpc-
T he Virtual Private Cloud ID. where
vpcId String Query No bp12nu14urf0u
the ACK cluster resides
paf4****
Response parameters
F93EAA49-284F-
RequestId String 4FCE-9E67- T he ID of the request.
FA23FB4BB512
c5ea2c2d9a3cf4994
clusterId String T he ID of the cluster.
81292f60425d****
vpc-
T he ID of the VPC where the source cluster
vpcId String bp12nu14urf0upaf4
resides.
****
T he header of the
Headers Struct
response.
T he number of returned
└X-T otal-Count Integer 2
records.
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
10.13.2. ListAckNamespaces
Call t he List AckNamespaces t o view all namespaces of t he specified Alibaba Cloud Cont ainer Service for
Kubernet es ACK(Cont ainer Service for Kubernet es) clust er.
Not e When you creat e an ACK clust er-based collect or, you need t o specify t he namespace
of t he clust er. You can call t his int erface t o view all namespaces of t he clust er and select t he
appropriat e namespace based on t his.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/ack-clusters/[ClusterId]/namespaces HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
c79acd3fbf462
T he ID of the cluster from which
ClusterId String Path Yes 423fb6450e513
you want to detach tags.
bb6****
Response parameters
95789100-A329-
RequestId String 473B-9D14- T he ID of the request.
9E0B7DB4BD5A
T he header of the
Headers Struct
response.
T he number of returned
└X-T otal-Count Integer 5
records.
Examples
Sample request s
JSON format
Error codes
For a list of error codes, visit t he API Error Cent er .
10.13.3. DescribeAckOperator
Call t he DescribeAckOperat or t o view t he Elast icsearch Operat or informat ion inst alled on t he specified
Alibaba Cloud Cont ainer Service for Kubernet es ACK(Cont ainer Service for Kubernet es) clust er.
Not e Before inst alling t he collect or on t he ACK clust er, you can call t his int erface t o view t he
inst allat ion st at us of t he Elast icsearch Operat or on t he t arget clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
GET /openapi/ack-clusters/[ClusterId]/operator HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
c79acd3fbf462
T he ID of the cluster from which
ClusterId String Path Yes 423fb6450e513
you want to detach tags.
bb6****
Positi Require
Parameter T ype Example Description
on d
Response parameters
6615EE8D-FD9D-
RequestId String 4FD3-997E- T he ID of the request.
6FEA5B8D82ED
deployed: installed
status String deployed
not-deploy: not installed
failed: installation failed
unknown: unknown status
Examples
Sample request s
JSON format
Error codes
For a list of error codes, visit t he API Error Cent er .
10.13.4. InstallAckOperator
Call t he Inst allAckOperat or t o inst all Elast icsearch Operat or. on t he specified Alibaba Cloud Cont ainer
Service for Kubernet es ACK(Cont ainer Service for Kubernet es) clust er
Not e Before inst alling t he collect or on t he ACK clust er, you need t o call t his int erface and
inst all t he Elast icsearch Operat or. on t he t arget clust er.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. Aft er you call an operat ion, OpenAPI Explorer
dynamically generat es t he sample code of t he operat ion for different SDKs.
Request header
T his operat ion uses only t he common request header. For more informat ion, see Common request
paramet ers.
Request structure
POST /openapi/ack-clusters/[ClusterId]/operator HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
c79acd3fbf462
T he ID of the cluster from which
ClusterId String Path Yes 423fb6450e513
you want to detach tags.
bb6****
Response parameters
EFA88951-7A6F-
RequestId String 4A8E-AB8F- T he ID of the request.
2BB7132BA751
Examples
Sample request s
Error codes
For a list of error codes, visit t he API Error Cent er .
11.RAM
11.1. InitializeOperationRole
Call t he Init ializeOperat ionRole t o creat e a service linked role.
Not e When using a collect or t o collect logs from different dat a sources or performing elast ic
clust er scaling t asks (for t he China sit e), you must first grant permissions t o creat e service linked
roles.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request structure
POST /openapi/user/slr HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
RequestBody
Set t he following paramet ers in Request Body t o specify t he name of t he service-linked role t o be
creat ed.
T he name of the
service linked role.
Valid values:
AliyunServiceRoleF
orElasticsearchOp
s (the role used to
perform the task
AliyunServiceRoleF
of elastic scaling
rolename String Yes orElasticsearchColl
of the cluster,
ector
only applicable to
the China site) and
AliyunServiceRoleF
orElasticsearchColl
ector (creating
and managing
Beats collectors).
Response parameters
29101430-4797-
RequestId String 4D1D-96C3- T he ID of the request.
9FCBCCA8F845
Examples
Sample request s
JSON format
{
"Result": true,
"RequestId": "29101430-4797-4D1D-96C3-9FCBCCA8F845"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
11.2. ValidateSlrPermission
Call t he Validat eSlrPermission t o verify t hat t he service linked role has been creat ed.
Not e Before you use t he collect or t ool t o collect logs from different dat a sources, you must
be aut horized t o creat e service linked roles. You can call t his operat ion t o verify t hat it has been
creat ed.
Debugging
OpenAPI Explorer aut omat ically calculat es t he signat ure value. For your convenience, we recommend
t hat you call t his operat ion in OpenAPI Explorer. OpenAPI Explorer dynamically generat es t he sample
code of t he operat ion for different SDKs.
Request header
T his operat ion uses only common request headers. For more informat ion, see Common paramet ers.
Request structure
GET /openapi/user/servicerolepermission HTTP/1.1
Request parameters
Positi Require
Parameter T ype Example Description
on d
Response parameters
BC4ED7DD-8C84-
RequestId String 49B5-8A95- T he ID of the request.
456F82E44D13
Examples
Sample request s
GET /openapi/user/servicerolepermission?rolename=AliyunServiceRoleForElasticsearchCollector
HTTP/1.1
common request headers
{
"Result": true,
"RequestId": "2C77A9B5-6B2A-42D7-9DBB-0166A0D40483"
}
Error codes
For a list of error codes, visit t he API Error Cent er.
ls-cn-
instanceId String T he ID of the instance.
n6w1o5jq****
6.7.0_with_X-Pack
7.4.0_with_X-Pack
prepaid: subscription
postpaid: pay-as-you-go