@@ -424,7 +424,7 @@ export default class Indices {
424
424
425
425
/**
426
426
* Deletes an index template.
427
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
427
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template .html | Elasticsearch API documentation }
428
428
*/
429
429
async deleteIndexTemplate ( this : That , params : T . IndicesDeleteIndexTemplateRequest | TB . IndicesDeleteIndexTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesDeleteIndexTemplateResponse >
430
430
async deleteIndexTemplate ( this : That , params : T . IndicesDeleteIndexTemplateRequest | TB . IndicesDeleteIndexTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesDeleteIndexTemplateResponse , unknown > >
@@ -450,7 +450,7 @@ export default class Indices {
450
450
451
451
/**
452
452
* Deletes an index template.
453
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
453
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1 .html | Elasticsearch API documentation }
454
454
*/
455
455
async deleteTemplate ( this : That , params : T . IndicesDeleteTemplateRequest | TB . IndicesDeleteTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesDeleteTemplateResponse >
456
456
async deleteTemplate ( this : That , params : T . IndicesDeleteTemplateRequest | TB . IndicesDeleteTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesDeleteTemplateResponse , unknown > >
@@ -592,7 +592,7 @@ export default class Indices {
592
592
593
593
/**
594
594
* Returns information about whether a particular index template exists.
595
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices -templates.html | Elasticsearch API documentation }
595
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/index -templates.html | Elasticsearch API documentation }
596
596
*/
597
597
async existsIndexTemplate ( this : That , params : T . IndicesExistsIndexTemplateRequest | TB . IndicesExistsIndexTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesExistsIndexTemplateResponse >
598
598
async existsIndexTemplate ( this : That , params : T . IndicesExistsIndexTemplateRequest | TB . IndicesExistsIndexTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesExistsIndexTemplateResponse , unknown > >
@@ -618,7 +618,7 @@ export default class Indices {
618
618
619
619
/**
620
620
* Returns information about whether a particular index template exists.
621
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
621
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1 .html | Elasticsearch API documentation }
622
622
*/
623
623
async existsTemplate ( this : That , params : T . IndicesExistsTemplateRequest | TB . IndicesExistsTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesExistsTemplateResponse >
624
624
async existsTemplate ( this : That , params : T . IndicesExistsTemplateRequest | TB . IndicesExistsTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesExistsTemplateResponse , unknown > >
@@ -923,7 +923,7 @@ export default class Indices {
923
923
924
924
/**
925
925
* Returns an index template.
926
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
926
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template .html | Elasticsearch API documentation }
927
927
*/
928
928
async getIndexTemplate ( this : That , params ?: T . IndicesGetIndexTemplateRequest | TB . IndicesGetIndexTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesGetIndexTemplateResponse >
929
929
async getIndexTemplate ( this : That , params ?: T . IndicesGetIndexTemplateRequest | TB . IndicesGetIndexTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesGetIndexTemplateResponse , unknown > >
@@ -1031,7 +1031,7 @@ export default class Indices {
1031
1031
1032
1032
/**
1033
1033
* Returns an index template.
1034
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
1034
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1 .html | Elasticsearch API documentation }
1035
1035
*/
1036
1036
async getTemplate ( this : That , params ?: T . IndicesGetTemplateRequest | TB . IndicesGetTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesGetTemplateResponse >
1037
1037
async getTemplate ( this : That , params ?: T . IndicesGetTemplateRequest | TB . IndicesGetTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesGetTemplateResponse , unknown > >
@@ -1264,7 +1264,7 @@ export default class Indices {
1264
1264
1265
1265
/**
1266
1266
* Creates or updates an index template.
1267
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
1267
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template .html | Elasticsearch API documentation }
1268
1268
*/
1269
1269
async putIndexTemplate ( this : That , params : T . IndicesPutIndexTemplateRequest | TB . IndicesPutIndexTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesPutIndexTemplateResponse >
1270
1270
async putIndexTemplate ( this : That , params : T . IndicesPutIndexTemplateRequest | TB . IndicesPutIndexTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesPutIndexTemplateResponse , unknown > >
@@ -1378,7 +1378,7 @@ export default class Indices {
1378
1378
1379
1379
/**
1380
1380
* Creates or updates an index template.
1381
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation }
1381
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1 .html | Elasticsearch API documentation }
1382
1382
*/
1383
1383
async putTemplate ( this : That , params : T . IndicesPutTemplateRequest | TB . IndicesPutTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesPutTemplateResponse >
1384
1384
async putTemplate ( this : That , params : T . IndicesPutTemplateRequest | TB . IndicesPutTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesPutTemplateResponse , unknown > >
@@ -1508,6 +1508,32 @@ export default class Indices {
1508
1508
return await this . transport . request ( { path, method, querystring, body } , options )
1509
1509
}
1510
1510
1511
+ /**
1512
+ * Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.
1513
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-cluster-api.html | Elasticsearch API documentation }
1514
+ */
1515
+ async resolveCluster ( this : That , params : T . IndicesResolveClusterRequest | TB . IndicesResolveClusterRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesResolveClusterResponse >
1516
+ async resolveCluster ( this : That , params : T . IndicesResolveClusterRequest | TB . IndicesResolveClusterRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesResolveClusterResponse , unknown > >
1517
+ async resolveCluster ( this : That , params : T . IndicesResolveClusterRequest | TB . IndicesResolveClusterRequest , options ?: TransportRequestOptions ) : Promise < T . IndicesResolveClusterResponse >
1518
+ async resolveCluster ( this : That , params : T . IndicesResolveClusterRequest | TB . IndicesResolveClusterRequest , options ?: TransportRequestOptions ) : Promise < any > {
1519
+ const acceptedPath : string [ ] = [ 'name' ]
1520
+ const querystring : Record < string , any > = { }
1521
+ const body = undefined
1522
+
1523
+ for ( const key in params ) {
1524
+ if ( acceptedPath . includes ( key ) ) {
1525
+ continue
1526
+ } else if ( key !== 'body' ) {
1527
+ // @ts -expect-error
1528
+ querystring [ key ] = params [ key ]
1529
+ }
1530
+ }
1531
+
1532
+ const method = 'GET'
1533
+ const path = `/_resolve/cluster/${ encodeURIComponent ( params . name . toString ( ) ) } `
1534
+ return await this . transport . request ( { path, method, querystring, body } , options )
1535
+ }
1536
+
1511
1537
/**
1512
1538
* Returns information about any matching indices, aliases, and data streams
1513
1539
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html | Elasticsearch API documentation }
@@ -1687,7 +1713,7 @@ export default class Indices {
1687
1713
1688
1714
/**
1689
1715
* Simulate matching the given index name against the index templates in the system
1690
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
1716
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index .html | Elasticsearch API documentation }
1691
1717
*/
1692
1718
async simulateIndexTemplate ( this : That , params : T . IndicesSimulateIndexTemplateRequest | TB . IndicesSimulateIndexTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesSimulateIndexTemplateResponse >
1693
1719
async simulateIndexTemplate ( this : That , params : T . IndicesSimulateIndexTemplateRequest | TB . IndicesSimulateIndexTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesSimulateIndexTemplateResponse , unknown > >
@@ -1725,7 +1751,7 @@ export default class Indices {
1725
1751
1726
1752
/**
1727
1753
* Simulate resolving the given template name or body
1728
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates .html | Elasticsearch API documentation }
1754
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template .html | Elasticsearch API documentation }
1729
1755
*/
1730
1756
async simulateTemplate ( this : That , params : T . IndicesSimulateTemplateRequest | TB . IndicesSimulateTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesSimulateTemplateResponse >
1731
1757
async simulateTemplate ( this : That , params : T . IndicesSimulateTemplateRequest | TB . IndicesSimulateTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesSimulateTemplateResponse , unknown > >
0 commit comments