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
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| QrsNum | Integer | 是 | 否 | 查询节点数。 | 无 | 
| QrsSpec | String | 是 | 否 | 查询节点规格。 | 无 | 
| UserName | String | 是 | 否 | 用户名称。 | 无 | 
| VpcId | String | 是 | 否 | 专有网络ID。 | 无 | 
| SearcherSpec | String | 是 | 否 | 数据节点规格。 | 无 | 
| ChargeType | String | 是 | 否 | 付费类型。 | 取值: Postpay:后付费(按量付费)。 | 
| VSwitchId | String | 是 | 否 | 虚拟交换机ID。 | 无 | 
| SearcherNum | Integer | 是 | 否 | 数据节点数量。 | 无 | 
| SearcherDocSize | Integer | 是 | 否 | 数据节点存储空间。 | 无 | 
| Password | String | 是 | 否 | 用户密码。 | 无 | 
返回值
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"
        ]
      }
    }
  }
}该文章对您有帮助吗?