GetSuggestShrinkableNodes
Retrieves the nodes that can be removed based on the specified node type and quantity.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DescribeInstance |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/suggest-shrinkable-nodes HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-nif1q9o8r0008**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| nodeType |
string |
Yes |
The type of nodes to scale in. WORKER indicates hot nodes. WORKER_WARM indicates warm nodes. |
WORKER |
| count |
integer |
Yes |
The expected number of nodes available for scale-in to retrieve. |
1 |
| ignoreStatus |
boolean |
No |
Specifies whether to ignore the instance status. Default value: false. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DCC**** |
| Result |
array<object> |
The returned results. |
|
|
object |
|||
| port |
integer |
The access port number of the node. |
9200 |
| host |
string |
The IP address of the node. |
192.168.**.** |
The Result also contains the following parameters.
| Name | Type | Example | Description |
| nodeType | String | WORKER | The node type. Valid values: MASTER (dedicated master node), WORKER (hot node), WORKER_WARM (warm node), COORDINATING (client node), and KIBANA (Kibana node). |
| zoneId | String | ap-southeast-1-b | The zone ID of the node. |
Examples
Success response
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC****",
"Result": [
{
"port": 9200,
"host": "192.168.**.**"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.