MoveResourceGroup を呼び出して、インスタンスを指定したリソースグループに移行します。
デバッグ
リクエストヘッダー
この操作では、共通のリクエストヘッダーを使用しますが、特別なリクエストヘッダーは使用しません。 詳細については、「共通パラメーター」をご参照ください。
リクエスト構文
PATCH|POST|PUT /openapi/instances/[InstanceId]/resourcegroup HTTP/1.1
リクエストパラメーター
パラメーター | タイプ | 位置 | 必須 | 例 | 説明 |
InstanceId | String | Path | はい | es-cn-n6w1o1x0w001c**** | インスタンス ID。 |
clientToken | String | Query | いいえ | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** | このパラメーターは、リクエストのべき等性を確保するために使用されます。クライアントで値を生成できますが、異なるリクエスト間で一意であることを確認する必要があります。トークンには ASCII 文字のみを含めることができ、長さは 64 文字を超えることはできません。 |
RequestBody
RequestBody に次のパラメーターを入力して、インスタンスの移行先となるリソースグループを指定します。
パラメーター | タイプ | 必須 | 例 | 説明 |
resourceGroupId | String | はい | rg-acfm2h5vbzd**** | リソースグループ ID。 リソースグループ ページで取得できます。 |
レスポンスパラメーター
パラメーター | タイプ | 例 | 説明 |
RequestId | String | 5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D*** | リクエスト ID。 |
Result | Struct | 戻り値。 | |
createdAt | String | 2020-07-06T10:18:48.662Z | インスタンスが作成された時刻。 |
description | String | es-cn-abc | インスタンスの名前。 |
dictList | dictList の配列 | IK 辞書の構成。 | |
fileSize | Long | 2782602 | 辞書ファイルのサイズ。単位:バイト。 |
name | String | SYSTEM_MAIN.dic | 辞書ファイルの名前。 |
sourceType | String | ORIGIN | ソースタイプ。有効な値:
|
type | String | MAIN | 辞書のタイプ。有効な値:
|
domain | String | es-cn-nif1q8auz0003****.elasticsearch.aliyuncs.com | インスタンスの内部ネットワークエンドポイント。 |
esVersion | String | 6.7.0_with_X-Pack | インスタンスのバージョン。 |
instanceId | String | es-cn-n6w1o1x0w001c**** | インスタンス ID。 |
kibanaConfiguration | Struct | Kibana ノードの構成。 | |
amount | Integer | 1 | DRDS サーバーノードの数。 |
disk | Integer | 20 | ノードのストレージ容量。単位: GB。 |
diskType | String | cloud_ssd | ノードのストレージタイプ。 |
spec | String | elasticsearch.n4.small | データノードの仕様。 |
kibanaDomain | String | es-cn-nif1q8auz0003****.kibana.elasticsearch.aliyuncs.com | Kibana のパブリックネットワークエンドポイント。 |
kibanaPort | Integer | 5601 | Kibana のパブリックポート。 |
masterConfiguration | Struct | 専用マスターノードの構成。 | |
amount | Integer | 3 | ノードの数。 |
disk | Integer | 20 | ノードのストレージ容量。単位: GB。 |
diskType | String | cloud_ssd | ノードのストレージタイプ。 |
spec | String | elasticsearch.sn2ne.large | ノードの仕様。 |
networkConfig | Struct | ネットワーク構成。 | |
type | String | vpc | ネットワークのタイプ。仮想プライベートクラウドのみがサポートされています。 |
vpcId | String | vpc-bp16k1dvzxtmagcva**** | VPC の ID。 |
vsArea | String | cn-hangzhou-i | インスタンスがデプロイされているゾーン。 |
vswitchId | String | vsw-bp1k4ec6s7sjdbudw**** | vSwitch の ID。 |
nodeAmount | Integer | 2 | データノードの数。 |
nodeSpec | Struct | データノードの構成。 | |
disk | Integer | 50 | ノードのストレージ容量。単位: GB。 |
diskType | String | cloud_ssd | ノードのストレージタイプ。 |
spec | String | elasticsearch.n4.small | データノードの仕様。 |
paymentType | String | postpaid | 物理接続の課金方法。有効な値:
|
publicDomain | String | es-cn-n6w1o1x0w001c****.public.elasticsearch.aliyuncs.com | パブリックネットワークアクセスアドレス。 |
publicPort | Integer | 9200 | パブリックネットワークポート。 |
status | String | active | クラスタのステータス。有効な値:
|
synonymsDicts | synonymsDicts の配列 | シノニム辞書の構成。 | |
fileSize | Long | 2782602 | 辞書ファイルのサイズ。単位:バイト。 |
name | String | SYSTEM_MAIN.dic | 辞書ファイルの名前。 |
sourceType | String | ORIGIN | ソースタイプ。有効な値:
|
type | String | STOP | 辞書のタイプ。有効な値:
|
updatedAt | String | 2018-07-18T10:10:04.484Z | インスタンスが最後に更新された時刻。 |
例
リクエストの例
POST /openapi/instances/es-cn-n6w1o1x0w001c****/resourcegroup HTTP/1.1
共通リクエストヘッダー
{
"resourceGroupId": "rg-acfm2h5vbzd****"
}
正常なレスポンスの例
XML
フォーマット
<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
フォーマット
{
"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"
}
レスポンスパラメーター
エラーコードのリストについては、API エラーセンターをご覧ください。