文档

ALIYUN::SearchEngine::Instance

更新时间:

ALIYUN::SearchEngine::Instance类型用于创建开放搜索向量检索版/召回引擎版实例。

语法

{
  "Type": "ALIYUN::SearchEngine::Instance",
  "Properties": {
    "QrsNum": Integer,
    "QrsSpec": String,
    "UserName": String,
    "VpcId": String,
    "SearcherSpec": String,
    "ChargeType": String,
    "VSwitchId": String,
    "SearcherNum": Integer,
    "SearcherDocSize": Integer,
    "Password": String
  }
}

属性

属性名称类型必须允许更新描述约束
QrsNumInteger查询节点数。
QrsSpecString查询节点规格。
UserNameString用户名称。
VpcIdString专有网络ID。
SearcherSpecString数据节点规格。
ChargeTypeString付费类型。取值:

Postpay:后付费(按量付费)。

VSwitchIdString虚拟交换机ID。
SearcherNumInteger数据节点数量。
SearcherDocSizeInteger数据节点存储空间。
PasswordString用户密码。

返回值

Fn::GetAtt

  • Endpoint:实例连接地址。
  • InstanceId:实例ID。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "QrsNum": {
      "Type": "Number",
      "Description": "The number of query nodes.",
      "MinValue": 1
    },
    "QrsSpec": {
      "Type": "String",
      "Description": "The specification of query nodes."
    },
    "UserName": {
      "Type": "String",
      "Description": "The user name of instance. Begin with a letter, support upper and lower case letters, numbers, underscores, length 1-30 characters.",
      "MinLength": 1,
      "MaxLength": 30
    },
    "VpcId": {
      "Type": "String",
      "Description": "The ID of VPC."
    },
    "SearcherSpec": {
      "Type": "String",
      "Description": "The specification of data nodes."
    },
    "ChargeType": {
      "Type": "String",
      "Description": "The billing method. Valid values: POSTPAY.\nPOSTPAY: pay-as-you-go.",
      "AllowedValues": [
        "POSTPAY"
      ],
      "Default": "POSTPAY"
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "The ID of vSwitch."
    },
    "SearcherNum": {
      "Type": "Number",
      "Description": "The number of data nodes.",
      "MinValue": 1
    },
    "SearcherDocSize": {
      "Type": "Number",
      "Description": "The storage size of single data node."
    },
    "Password": {
      "Type": "String",
      "Description": "The password of instance. It consists of lowercase letters and numbers, and the length is 6-8 characters."
    }
  },
  "Resources": {
    "Instance": {
      "Type": "ALIYUN::SearchEngine::Instance",
      "Properties": {
        "QrsNum": {
          "Ref": "QrsNum"
        },
        "QrsSpec": {
          "Ref": "QrsSpec"
        },
        "UserName": {
          "Ref": "UserName"
        },
        "VpcId": {
          "Ref": "VpcId"
        },
        "SearcherSpec": {
          "Ref": "SearcherSpec"
        },
        "ChargeType": {
          "Ref": "ChargeType"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "SearcherNum": {
          "Ref": "SearcherNum"
        },
        "SearcherDocSize": {
          "Ref": "SearcherDocSize"
        },
        "Password": {
          "Ref": "Password"
        }
      }
    }
  },
  "Outputs": {
    "Endpoint": {
      "Description": "The endpoint of instance.",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "Endpoint"
        ]
      }
    },
    "InstanceId": {
      "Description": "The ID of instance.",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "InstanceId"
        ]
      }
    }
  }
}
  • 本页导读 (1)
文档反馈