DescribeTemplates
Retrieves the scenario-specific template configuration and cluster settings configuration of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DescribeTemplates |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/templates HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-n6w1o1x0w001c**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1**** |
| Result |
array<object> |
The returned result. |
|
|
object |
|||
| content |
string |
The template 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:
|
dynamicSettings |
Examples
Success response
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1****",
"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
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceNotFound | The instanceId provided does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.