MoveResourceGroup
Modifies the resource group of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:MoveResourceGroup |
none |
*Instance
|
None | None |
Request syntax
PATCH /openapi/instances/{InstanceId}/resourcegroup 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 |
| clientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must ensure that it is unique among different requests. The token can be up to 64 ASCII characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
| body |
string |
No |
The instance migration information, such as the ID of the destination resource group. |
{"resourceGroupId":"rg-acfm2h5vbzd****"} |
Request body
You must also specify the following parameters in the request body to specify the destination resource group for the instance migration.
| Parameter | Type | Required | Example | Description |
| resourceGroupId | String | Yes | rg-acfm2h5vbzd**** | The ID of the destination resource group. You can obtain the ID on the Resource Groups page. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D*** |
| Result |
object |
The returned result. |
|
| nodeAmount |
integer |
The number of data nodes in the instance. |
2 |
| publicDomain |
string |
The public network access address. |
es-cn-n6w1o1x0w001c****.public.elasticsearch.aliyuncs.com |
| createdAt |
string |
The time when the instance was created. The time follows the YYYY-MM-DDTHH:mm:ss.SSSZ format. The trailing Z indicates UTC. |
2020-07-06T10:18:48.662Z |
| status |
string |
The status of the instance. Valid values:
|
active |
| publicPort |
integer |
The public port. |
9200 |
| kibanaPort |
integer |
The public port of Kibana. |
5601 |
| paymentType |
string |
The billing method of the instance. Valid values:
|
postpaid |
| domain |
string |
The internal endpoint of the instance. |
es-cn-nif1q8auz0003****.elasticsearch.aliyuncs.com |
| description |
string |
The name of the instance. |
es-cn-abc |
| esVersion |
string |
The version of the instance. |
6.7.0_with_X-Pack |
| kibanaDomain |
string |
The Kibana public network access address. |
es-cn-nif1q8auz0003****.kibana.elasticsearch.aliyuncs.com |
| updatedAt |
string |
The time when the instance was last updated. The time follows the YYYY-MM-DDTHH:mm:ss.SSSZ format. The trailing Z indicates UTC. |
2018-07-18T10:10:04.484Z |
| instanceId |
string |
The instance ID. |
es-cn-n6w1o1x0w001c**** |
| dictList |
array<object> |
The IK dictionary configurations. |
|
|
object |
|||
| fileSize |
integer |
The size of the dictionary file. Unit: bytes. |
2782602 |
| sourceType |
string |
The source type. Valid values:
|
ORIGIN |
| name |
string |
The name of the dictionary file. |
SYSTEM_MAIN.dic |
| type |
string |
The dictionary type. Valid values:
|
MAIN |
| synonymsDicts |
array<object> |
The synonym dictionary configurations. |
|
|
object |
|||
| fileSize |
integer |
The size of the dictionary file. Unit: bytes. |
2782602 |
| sourceType |
string |
The source type. Valid values:
|
ORIGIN |
| name |
string |
The name of the dictionary file. |
SYSTEM_MAIN.dic |
| type |
string |
The dictionary type. Valid values:
|
STOP |
| nodeSpec |
object |
The configurations of data nodes. |
|
| spec |
string |
The node specifications. |
elasticsearch.n4.small |
| disk |
integer |
The storage space of the node. Unit: GB. |
50 |
| diskType |
string |
The storage type of the node. |
cloud_ssd |
| networkConfig |
object |
The network configurations. |
|
| vpcId |
string |
The VPC ID. |
vpc-bp16k1dvzxtmagcva**** |
| vsArea |
string |
The zone where the instance resides. |
cn-hangzhou-i |
| type |
string |
The network type. Only VPC is supported. |
vpc |
| vswitchId |
string |
The vSwitch ID. |
vsw-bp1k4ec6s7sjdbudw**** |
| kibanaConfiguration |
object |
The Kibana node configurations. |
|
| spec |
string |
The node specifications. |
elasticsearch.n4.small |
| amount |
integer |
The number of nodes. |
1 |
| disk |
integer |
The storage space of the node. Unit: GB. |
20 |
| diskType |
string |
The storage type of the node. |
cloud_ssd |
| masterConfiguration |
object |
The master node configurations. |
|
| spec |
string |
The node specifications. |
elasticsearch.sn2ne.large |
| amount |
integer |
The number of nodes. |
3 |
| disk |
integer |
The storage space of the node. Unit: GB. |
20 |
| diskType |
string |
The storage type of the node. |
cloud_ssd |
Examples
Success response
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D***",
"Result": {
"nodeAmount": 2,
"publicDomain": "es-cn-n6w1o1x0w001c****.public.elasticsearch.aliyuncs.com",
"createdAt": "2020-07-06T10:18:48.662Z",
"status": "active",
"publicPort": 9200,
"kibanaPort": 5601,
"paymentType": "postpaid",
"domain": "es-cn-nif1q8auz0003****.elasticsearch.aliyuncs.com",
"description": "es-cn-abc",
"esVersion": "6.7.0_with_X-Pack",
"kibanaDomain": "es-cn-nif1q8auz0003****.kibana.elasticsearch.aliyuncs.com",
"updatedAt": "2018-07-18T10:10:04.484Z",
"instanceId": "es-cn-n6w1o1x0w001c****",
"dictList": [
{
"fileSize": 2782602,
"sourceType": "ORIGIN",
"name": "SYSTEM_MAIN.dic",
"type": "MAIN"
}
],
"synonymsDicts": [
{
"fileSize": 2782602,
"sourceType": "ORIGIN",
"name": "SYSTEM_MAIN.dic",
"type": "STOP"
}
],
"nodeSpec": {
"spec": "elasticsearch.n4.small",
"disk": 50,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-bp16k1dvzxtmagcva****",
"vsArea": "cn-hangzhou-i",
"type": "vpc",
"vswitchId": "vsw-bp1k4ec6s7sjdbudw****"
},
"kibanaConfiguration": {
"spec": "elasticsearch.n4.small",
"amount": 1,
"disk": 20,
"diskType": "cloud_ssd"
},
"masterConfiguration": {
"spec": "elasticsearch.sn2ne.large",
"amount": 3,
"disk": 20,
"diskType": "cloud_ssd"
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceActivating | Instance is activating | |
| 400 | InstanceNotFound | The instanceId provided does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.