閱讀413 返回首頁    go 英雄聯盟


ALIYUN::MONGODB::Instance__資源列表_資源編排-阿裏雲

ALIYUN::MONGODB::Instance 類型可用於創建 MongoDB 實例

語法

  1. {
  2. "Type" : "ALIYUN::MONGODB::Instance",
  3. "Properties" : {
  4. "SrcDBInstanceId" : String,
  5. "DBInstanceStorage" : Integer,
  6. "DBInstanceDescription" : String,
  7. "SecurityIPArray" : String,
  8. "ZoneId" : String,
  9. "VpcId" : String,
  10. "VSwitchId" : String,
  11. "BackupId" : String,
  12. "NetworkType" : String,
  13. "DBInstanceClass" : String,
  14. "AccountPassword" : String
  15. }
  16. }

屬性

屬性名稱 類型 必須 描述 約束
DBInstanceStorage integer 指定數據庫實例的大小 取值範圍 [5,1000], 每5 GB 遞增, 單位是 GB
DBInstanceClass string 指定數據庫實例規格 允許可選值:dds.mongo.mid, dds.mongo.standard, dds.mongo.large, dds.mongo.xlarge, dds.mongo.2xlarge, dds.mongo.4xlarge
SrcDBInstanceId string 指定通過備份實例創建新實例
DBInstanceDescription string 指定實例的描述
SecurityIPArray string 指定所有可以訪問該實例的 IP 名單 以逗號隔開,不可重複,最多1000個;支持格式:%,0.0.0.0/0,10.23.12.24(IP),或者10.23.12.24/24(CIDR模式,無類域間路由,/24表示了地址中前綴的長度,範圍[1,32])其中,0.0.0.0/0,表示不限製。默認不限製
ZoneId string 指定可用區 專有網絡下要和 VSwitchId 的可用區一致
VpcId string 指定專有網絡 ID
VSwitchId string 指定 VpcId 下的虛擬交換機 ID
BackupId string 指定備份集 ID
NetworkType string 指定網絡類型 允許的可選值: CLASSIC, VPC
AccountPassword string 指定 Root 用戶的密碼 密碼有字符,數字和’_’組成,長度為6-32字符

返回值

Fn::GetAtt

  • OrderId 創建 MongoDB 的訂單 ID.
  • DBInstanceId MongoDB 的實例 ID,全局唯一
  • DBInstanceStatus MongoDB 的狀態信息

示例

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "MongoDB": {
  5. "Type": "ALIYUN::MONGODB::Instance",
  6. "Properties": {
  7. "DBInstanceClass":"dds.mongo.mid",
  8. "DBInstanceStorage":"10",
  9. "VpcId": "vpc-25o8sqkwb",
  10. "VSwitchId": "vsw-25w8qld3m"
  11. }
  12. }
  13. },
  14. "Outputs": {
  15. "DBInstanceStatus": {
  16. "Description": "Status of mongodb instance.",
  17. "Value": {
  18. "Fn::GetAtt": [
  19. "MongoDB",
  20. "DBInstanceStatus"
  21. ]
  22. }
  23. },
  24. "InstanceId": {
  25. "Description": "The instance id of created mongodb instance.",
  26. "Value": {
  27. "Fn::GetAtt": [
  28. "MongoDB",
  29. "DBInstanceId"
  30. ]
  31. }
  32. }
  33. }
  34. }

最後更新:2016-12-20 17:12:51

  上一篇:go ALIYUN::MEMCACHE::Instance__資源列表_資源編排-阿裏雲
  下一篇:go ALIYUN::OSS::Bucket__資源列表_資源編排-阿裏雲