MoveResourceGroup

Updated at:

Modifies the resource group of an instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

elasticsearch:MoveResourceGroup

none

*Instance

acs:elasticsearch:{#regionId}:{#accountId}:instances/{#instancesId}

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.

ParameterTypeRequiredExampleDescription
resourceGroupIdStringYesrg-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: Normal.

  • activating: Activating.

  • inactive: Frozen.

  • invalid: Invalid.

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:

  • prepaid: subscription.

  • postpaid: pay-as-you-go.

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:

  • OSS: Object Storage Service (OSS). Make sure that the OSS bucket is publicly readable.

  • ORIGIN: The previously uploaded dictionary is retained.

ORIGIN

name

string

The name of the dictionary file.

SYSTEM_MAIN.dic

type

string

The dictionary type. Valid values:

  • STOP: stopword dictionary.

  • MAIN: main dictionary.

  • SYNONYMS: synonym dictionary.

  • ALI_WS: Alibaba Cloud dictionary.

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:

  • OSS: Object Storage Service (OSS). Make sure that the OSS bucket is publicly readable.

  • ORIGIN: The previously uploaded dictionary is retained.

ORIGIN

name

string

The name of the dictionary file.

SYSTEM_MAIN.dic

type

string

The dictionary type. Valid values:

  • STOP: stopword dictionary.

  • MAIN: main dictionary.

  • SYNONYMS: synonym dictionary.

  • ALI_WS: Alibaba Cloud dictionary.

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.