RecommendTemplates
Retrieves recommended cluster configurations by calling RecommendTemplates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:RecommendTemplates |
none |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/recommended-templates HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The cluster ID. |
es-cn-oew20apwz0007**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| usageScenario |
string |
Yes |
The scenario-specific template type used by the cluster. Valid values:
Note
Standard instances support general-purpose, data analytics, database acceleration, and search scenarios. Advanced Edition supports only the log scenario. |
general |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
66B060CF-7381-49C7-9B89-7757927FDA16 |
| Result |
array<object> |
The returned results. |
|
|
object |
|||
| content |
string |
The template configuration content. |
{\n\t\"persistent\": {\n\t\t\"search\": {\n\t\t\t\"max_buckets\": \"10000\"\n\t\t}\n\t}\n} |
| templateName |
string |
The template name. Valid values:
Note
Advanced Edition instances of version 6.7.0 or later support enabling the index lifecycle template. |
dynamicSettings |
Examples
Success response
JSON format
{
"RequestId": "66B060CF-7381-49C7-9B89-7757927FDA16",
"Result": [
{
"content": "{\\n\\t\\\"persistent\\\": {\\n\\t\\t\\\"search\\\": {\\n\\t\\t\\t\\\"max_buckets\\\": \\\"10000\\\"\\n\\t\\t}\\n\\t}\\n}",
"templateName": "dynamicSettings"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.