createInstance_Elasticsearch_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

注意事项

  • 请确保在使用该接口前,已充分了解 Elasticsearch 产品的收费方式和价格。详情请参见阿里云 Elasticsearch 定价
  • 创建实例需要通过实名认证。详情请参见实名认证
  • 创建实例时不需要指定可用区,实例默认与所选 VPC 在同一可用区中。

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
elasticsearch:CreateInstance
Create
Instance
acs:elasticsearch:{#regionId}:{#accountId}:instances/*
elasticsearch:DataNodeDiskEncryption
elasticsearch:WarmNodeDiskEncryption

请求语法

POST /openapi/instances HTTP/1.1

请求参数

字段名称字段详情
clientTokenstring

用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大不超过 64 个 ASCII 字符。

示例值:5A2CFF0E-5718-45B5-9D4D-70B3FF****
bodyobject

请求体参数。

示例值:{ "description": "xpack-hot-cold", "nodeAmount": 2, "esVersion": "7.10_with_X-Pack", "instanceCategory": "x-pack", "nodeSpec": { "spec": "elasticsearch.sn2ne.xlarge", "disk": 20, "diskType": "cloud_ssd" }, "warmNodeConfiguration": { "spec": "elasticsearch.sn1ne.xlarge", "amount": 3, "diskType": "cloud_efficiency", "disk": 500 }, "networkConfig": { "type": "vpc", "vpcId": "vpc-8vbfu74bmw4m7m84a****", "vswitchId": "vsw-8vbnk6cmurbpump2f****", "vsArea": "cn-zhangjiakou-c" }, "paymentType": "postpaid", "esAdminPassword": "yourPassword", "kibanaConfiguration": { "spec": "elasticsearch.sn1ne.large" } }

请求说明

说明
  • 阿里云 Elasticsearch 支持的节点规格列表,请参见阿里云 Elasticsearch 定价信息产品规格
    • diskType 参数是节点的存储类型,普通云盘型规格该参数必填,本地盘规格该参数非必填。

    请求体参数示例如下:

    • 创建通用商业版实例,同时包含冷、热节点。
    {
      "description": "xpack-hot-cold",
      "nodeAmount": 2,
      "esVersion": "7.10_with_X-Pack",
      "instanceCategory": "x-pack",
      "nodeSpec": {
        "spec": "elasticsearch.sn2ne.xlarge",
        "disk": 20,
        "diskType": "cloud_ssd"
      },
      "warmNodeConfiguration": {
        "spec": "elasticsearch.sn1ne.xlarge",
        "amount": 3,
        "diskType": "cloud_efficiency",
        "disk": 500
      },
      "networkConfig": {
        "type": "vpc",
        "vpcId": "vpc-8vbfu74bmw4m7m84a****",
        "vswitchId": "vsw-8vbnk6cmurbpump2f****",
        "vsArea": "cn-zhangjiakou-c"
      },
      "paymentType": "postpaid",
      "esAdminPassword": "yourPassword",
      "kibanaConfiguration": {
        "spec": "elasticsearch.sn1ne.large"
      }
    }
    
    • 创建 Indexing Service 系列实例,只包含热节点。
    {
      "description": "is-hot",
      "nodeAmount": 2,
      "esVersion": "7.10_with_X-Pack",
      "instanceCategory": "IS",
      "nodeSpec": {
        "spec": "elasticsearch.sn1ne.xlarge",
        "disk": 20,
        "diskType": "cloud_ssd"
      },
      "networkConfig": {
        "type": "vpc",
        "vpcId": "vpc-8vbfu74bmw4m7m84a****",
        "vswitchId": "vsw-8vbnk6cmurbpump2f****",
        "vsArea": "cn-zhangjiakou-c"
      },
      "paymentType": "postpaid",
      "esAdminPassword": "yourPassword",
      "kibanaConfiguration": {
        "spec": "elasticsearch.sn1ne.large"
      }
    }
    
    • 创建 Indexing Service 系列实例,只包含冷节点。
    {
      "description": "is-cold",
      "nodeAmount": 2,
      "esVersion": "7.10_with_X-Pack",
      "instanceCategory": "IS",
      "warmNodeConfiguration": {
        "spec": "group.c6.large.500",
        "amount": 3,
        "disk": 300
      },
      "networkConfig": {
        "type": "vpc",
        "vpcId": "vpc-8vbfu74bmw4m7m84a****",
        "vswitchId": "vsw-8vbnk6cmurbpump2f****",
        "vsArea": "cn-zhangjiakou-c"
      },
      "paymentType": "postpaid",
      "esAdminPassword": "yourPassword",
      "kibanaConfiguration": {
        "spec": "elasticsearch.sn1ne.large"
      }
    }
    
    • 创建 Indexing Service 系列实例,同时包含冷、热节点。
    {
      "description": "is-hot-cold",
      "nodeAmount": 2,
      "esVersion": "7.10_with_X-Pack",
      "instanceCategory": "IS",
      "nodeSpec": {
        "spec": "elasticsearch.sn2ne.xlarge",
        "disk": 50,
        "diskType": "cloud_ssd"
      },
      "warmNodeConfiguration": {
        "spec": "group.c6.large.500",
        "amount": 3,
        "disk": 300
      },
      "networkConfig": {
        "type": "vpc",
        "vpcId": "vpc-8vbfu74bmw4m7m84a****",
        "vswitchId": "vsw-8vbnk6cmurbpump2f****",
        "vsArea": "cn-zhangjiakou-c"
      },
      "paymentType": "postpaid",
      "esAdminPassword": "yourPassword",
      "kibanaConfiguration": {
        "spec": "elasticsearch.sn1ne.large"
      }
    }
    
    • 创建 Indexing Service 系列实例,开启 OpenStore 存储,同时包含冷、热节点。
    {
      "description": "os-1",
      "nodeAmount": 2,
      "esVersion": "7.10_with_X-Pack",
      "instanceCategory": "IS",
      "nodeSpec": {
        "spec": "elasticsearch.sn2ne.xlarge",
        "disk": 50,
        "diskType": "cloud_ssd"
      },
      "warmNodeConfiguration": {
        "spec": "openstore.i2g.4xlarge",
        "amount": 3
      },
      "networkConfig": {
        "type": "vpc",
        "vpcId": "vpc-8vbfu74bmw4m7m84a****",
        "vswitchId": "vsw-8vbnk6cmurbpump2f****",
        "vsArea": "cn-zhangjiakou-c"
      },
      "paymentType": "postpaid",
      "esAdminPassword": "yourPassword",
      "kibanaConfiguration": {
        "spec": "elasticsearch.sn1ne.large"
      }
    }
    
    • 创建 Indexing Service 系列实例,开启 OpenStore 存储,包含冷热共享型节点。
    {
      "description": "os-2",
      "nodeAmount": 2,
      "esVersion": "7.10_with_X-Pack",
      "instanceCategory": "IS",
      "nodeSpec": {
        "spec": "openstore.i2g.4xlarge",
        "disk": 50,
        "diskType": "cloud_ssd"
      },
      "networkConfig": {
        "type": "vpc",
        "vpcId": "vpc-8vbfu74bmw4m7m84a****",
        "vswitchId": "vsw-8vbnk6cmurbpump2f****",
        "vsArea": "cn-zhangjiakou-c"
      },
      "paymentType": "postpaid",
      "esAdminPassword": "yourPassword",
      "kibanaConfiguration": {
        "spec": "elasticsearch.sn1ne.large"
      }
    }
    
    • 创建通用商业版 7.10 版本实例,并开启自动续费。
    说明 paymentType 设置为 prepaid,表示实例为预付费模式。自动续费在 paymentInfo 参数中设置。
    {
     "description": "自动续费",
     "nodeAmount": 3,
     "instanceCategory": "x-pack",
     "esVersion": "7.10_with_X-Pack",
     "nodeSpec": {
     "spec": "elasticsearch.sn2ne.xlarge",
     "disk": 50,
     "diskType": "cloud_ssd"
     },
     "kibanaConfiguration": {
     "spec": "elasticsearch.sn1ne.large"
     },
     "networkConfig": {
     "type": "vpc",
     "vpcId": "vpc-8vbfu74bmw4m7m84a****",
     "vswitchId": "vsw-8vbnk6cmurbpump2f****",
     "vsArea": "cn-zhangjiakou-c"
     },
     "paymentType": "prepaid",
     "paymentInfo": {
     "duration": 1,
     "pricingCycle": "Month",
     "isAutoRenew": true,
     "autoRenewDuration": 1
     },
     "esAdminPassword": "yourPassword"
    }
    

    返回说明

    返回参数

    名称类型示例值描述
    RequestIdString838D9D11-8EEF-46D8-BF0D-BC8FC2B0C2F3请求 ID。
    Resultobject返回结果。
    └instanceIdstringes-is-0u2ecp69tt****实例 ID。

    变更历史

    变更时间变更内容概要操作
    2023-11-20
    变更请求参数body
    2022-12-13
    变更请求参数body
    2022-09-13
    新增请求参数body

    相关示例

    ElasticSearch OpenAPI 控制台管控SDK示例,阿里云ElasticSearch 实例创建和管控API CodeSample
    2022-07-04