Call the MoveResourceGroup to migrate the instance to the specified resource group.
Debugging
Request headers
This operation uses common request headers, but does not use special request headers. For more information, see Common parameters.
Request syntax
PATCH|POST|PUT /openapi/instances/[InstanceId]/resourcegroup HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
InstanceId | String | Path | Yes | es-cn-n6w1o1x0w001c**** |
The ID of the instance. |
clientToken | String | Query | No | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
This parameter is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
RequestBody
Enter the following parameters in RequestBody to specify the resource group to which the instance will be migrated.
Parameter |
Type |
Required |
Example |
Description |
---|
Parameter |
Type |
Required |
Example |
Description |
---|---|---|---|---|
resourceGroupId |
String |
Yes |
rg-acfm2h5vbzd**** |
The ID of the resource group. Available at Resource Groups Get on page. |
Response parameters
Examples
Sample requests
POST /openapi/instances/es-cn-n6w1o1x0w001c****/resourcegroup HTTP/1.1
common request header
{
"resourceGroupId": "rg-acfm2h5vbzd****"
}
Sample success responses
XML
format
<Result>
<dryRun>false</dryRun>
<id>24210</id>
<instanceId>es-cn-npk2151ww000a****</instanceId>
<version>6.7.0_with_X-Pack</version>
<description/>
<ownerId>168520994880****</ownerId>
<nodeAmount>3</nodeAmount>
<paymentType>prepaid</paymentType>
<status>inactive</status>
<privateNetworkIpWhiteList>0.0.0.0/0</privateNetworkIpWhiteList>
<enablePublic>false</enablePublic>
<nodeSpec>
<spec>elasticsearch.sn2ne.2xlarge</spec>
<disk>20</disk>
<diskType>cloud_ssd</diskType>
<diskEncryption>false</diskEncryption>
<empty>false</empty>
</nodeSpec>
<networkConfig>
<vpcId>vpc-bp12nu14urf0upaf4****</vpcId>
<vswitchId>vsw-bp1xn8mossizozn6q****</vswitchId>
<vsArea>cn-hangzhou-g</vsArea>
<type>vpc</type>
</networkConfig>
<lastPayTime>2021-03-03T16:00:58.000+0000</lastPayTime>
<createdAt>2021-02-03T12:22:14.643Z</createdAt>
<updatedAt>2021-03-04T03:46:02.358Z</updatedAt>
<commodityCode>elasticsearchpre</commodityCode>
<extendConfigs>
<configType>usageScenario</configType>
<value>general</value>
</extendConfigs>
<extendConfigs>
<configType>maintainTime</configType>
<maintainStartTime>02:00Z</maintainStartTime>
<maintainEndTime>06:00Z</maintainEndTime>
</extendConfigs>
<extendConfigs>
<configType>aliVersion</configType>
<aliVersion>ali1.3.0</aliVersion>
</extendConfigs>
<endTime>1614787200000</endTime>
<force>false</force>
<ignoreStatus>false</ignoreStatus>
<vpcInstanceId>es-cn-npk2151ww000a****-worker</vpcInstanceId>
<resourceGroupId>rg-aek2wq2jlqd****</resourceGroupId>
<zoneCount>1</zoneCount>
<protocol>HTTP</protocol>
<zoneInfos>
<zoneId>cn-hangzhou-g</zoneId>
<status>NORMAL</status>
</zoneInfos>
<instanceType>elasticsearch</instanceType>
<inited>true</inited>
<tags>
<tagKey>acs:rm:rgId</tagKey>
<tagValue>rg-acfm2h5vbzd****</tagValue>
</tags>
<domain>es-cn-npk2151ww000a****.elasticsearch.aliyuncs.com</domain>
<port>9200</port>
<esVersion>6.7.0_with_X-Pack</esVersion>
<esConfig>
<action.destructive_requires_name>true</action.destructive_requires_name>
<xpack.security.audit.outputs>index</xpack.security.audit.outputs>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.security.audit.enabled>false</xpack.security.audit.enabled>
<action.auto_create_index>+.*,-*</action.auto_create_index>
</esConfig>
<esIPWhitelist>0.0.0.0/0</esIPWhitelist>
<kibanaProtocol>HTTPS</kibanaProtocol>
<kibanaIPWhitelist>::1</kibanaIPWhitelist>
<kibanaIPWhitelist>127.0.0.1</kibanaIPWhitelist>
<kibanaDomain>es-cn-npk2151ww000a****.kibana.elasticsearch.aliyuncs.com</kibanaDomain>
<kibanaPort>5601</kibanaPort>
<haveKibana>true</haveKibana>
<instanceCategory>x-pack</instanceCategory>
<dedicateMaster>false</dedicateMaster>
<advancedDedicateMaster>false</advancedDedicateMaster>
<masterConfiguration/>
<haveClientNode>false</haveClientNode>
<warmNode>false</warmNode>
<warmNodeConfiguration/>
<clientNodeConfiguration/>
<kibanaConfiguration>
<spec>elasticsearch.n4.small</spec>
<amount>1</amount>
<disk>0</disk>
</kibanaConfiguration>
<elasticDataNodeConfiguration/>
<haveElasticDataNode>false</haveElasticDataNode>
<dictList>
<name>SYSTEM_MAIN.dic</name>
<fileSize>2782602</fileSize>
<sourceType>ORIGIN</sourceType>
<type>MAIN</type>
</dictList>
<dictList>
<name>SYSTEM_STOPWORD.dic</name>
<fileSize>132</fileSize>
<sourceType>ORIGIN</sourceType>
<type>STOP</type>
</dictList>
<aliwsDicts>
<name>aliws_ext_dict.txt</name>
<fileSize>17</fileSize>
<sourceType>ORIGIN</sourceType>
<type>ALI_WS</type>
</aliwsDicts>
<haveGrafana>false</haveGrafana>
<haveCerebro>false</haveCerebro>
<enableKibanaPublicNetwork>true</enableKibanaPublicNetwork>
<enableKibanaPrivateNetwork>false</enableKibanaPrivateNetwork>
<advancedSetting>
<gcName>CMS</gcName>
</advancedSetting>
<enableMetrics>true</enableMetrics>
<readWritePolicy>
<writeHa>false</writeHa>
</readWritePolicy>
</Result>
<RequestId>D63D226F-2B80-4BF9-8F70-DBEDCC8DC2AF</RequestId>
JSON
format
{
"Result": {
"dryRun": false,
"id": "24210",
"instanceId": "es-cn-npk2151ww000a****",
"version": "6.7.0_with_X-Pack",
"description": "",
"ownerId": "168520994880****",
"nodeAmount": 3,
"paymentType": "prepaid",
"status": "inactive",
"privateNetworkIpWhiteList": [
"0.0.0.0/0"
],
"enablePublic": false,
"nodeSpec": {
"spec": "elasticsearch.sn2ne.2xlarge",
"disk": 20,
"diskType": "cloud_ssd",
"diskEncryption": false,
"empty": false
},
"networkConfig": {
"vpcId": "vpc-bp12nu14urf0upaf4****",
"vswitchId": "vsw-bp1xn8mossizozn6q****",
"vsArea": "cn-hangzhou-g",
"type": "vpc"
},
"lastPayTime": "2021-03-03T16:00:58.000+0000",
"createdAt": "2021-02-03T12:22:14.643Z",
"updatedAt": "2021-03-04T03:46:02.358Z",
"commodityCode": "elasticsearchpre",
"extendConfigs": [
{
"configType": "usageScenario",
"value": "general"
},
{
"configType": "maintainTime",
"maintainStartTime": "02:00Z",
"maintainEndTime": "06:00Z"
},
{
"configType": "aliVersion",
"aliVersion": "ali1.3.0"
}
],
"endTime": 1614787200000,
"force": false,
"ignoreStatus": false,
"clusterTasks": [],
"vpcInstanceId": "es-cn-npk2151ww000a****-worker",
"resourceGroupId": "rg-aek2wq2jlqd****",
"zoneCount": 1,
"protocol": "HTTP",
"zoneInfos": [
{
"zoneId": "cn-hangzhou-g",
"status": "NORMAL"
}
],
"instanceType": "elasticsearch",
"inited": true,
"tags": [
{
"tagKey": "acs:rm:rgId",
"tagValue": "rg-acfm2h5vbzd****"
}
],
"customerLabels": [],
"domain": "es-cn-npk2151ww000a****.elasticsearch.aliyuncs.com",
"port": 9200,
"esVersion": "6.7.0_with_X-Pack",
"esConfig": {
"action.destructive_requires_name": "true",
"xpack.security.audit.outputs": "index",
"xpack.watcher.enabled": "false",
"xpack.security.audit.enabled": "false",
"action.auto_create_index": "+.*,-*"
},
"esIPWhitelist": [
"0.0.0.0/0"
],
"esIPBlacklist": [],
"kibanaProtocol": "HTTPS",
"kibanaIPWhitelist": [
"::1",
"127.0.0.1"
],
"kibanaPrivateIPWhitelist": [],
"publicIpWhitelist": [],
"kibanaDomain": "es-cn-npk2151ww000a****.kibana.elasticsearch.aliyuncs.com",
"kibanaPort": 5601,
"haveKibana": true,
"instanceCategory": "x-pack",
"dedicateMaster": false,
"advancedDedicateMaster": false,
"masterConfiguration": {},
"haveClientNode": false,
"warmNode": false,
"warmNodeConfiguration": {},
"clientNodeConfiguration": {},
"kibanaConfiguration": {
"spec": "elasticsearch.n4.small",
"amount": 1,
"disk": 0
},
"elasticDataNodeConfiguration": {},
"haveElasticDataNode": false,
"dictList": [
{
"name": "SYSTEM_MAIN.dic",
"fileSize": 2782602,
"sourceType": "ORIGIN",
"type": "MAIN"
},
{
"name": "SYSTEM_STOPWORD.dic",
"fileSize": 132,
"sourceType": "ORIGIN",
"type": "STOP"
}
],
"synonymsDicts": [],
"ikHotDicts": [],
"aliwsDicts": [
{
"name": "aliws_ext_dict.txt",
"fileSize": 17,
"sourceType": "ORIGIN",
"type": "ALI_WS"
}
],
"haveGrafana": false,
"haveCerebro": false,
"enableKibanaPublicNetwork": true,
"enableKibanaPrivateNetwork": false,
"advancedSetting": {
"gcName": "CMS"
},
"enableMetrics": true,
"readWritePolicy": {
"writeHa": false
}
},
"RequestId": "D63D226F-2B80-4BF9-8F70-DBEDCC8DC2AF"
}
Error code
For a list of error codes, visit the API Error Center.