閱讀404 返回首頁    go 手機大全


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

ALIYUN::MEMCACHE::Instance 類型可用於創建 Memcache 實例

語法

  1. {
  2. "Type" : "ALIYUN::MEMCACHE::Instance",
  3. "Properties" : {
  4. "VpcId" : String,
  5. "Capacity" : Integer,
  6. "PrivateIpAddr" : String,
  7. "ZoneId" : String,
  8. "SecurityIPArray" : String,
  9. "VSwitchId" : String,
  10. "NetworkType" : String,
  11. "Password" : String,
  12. "InstanceName" : String
  13. }
  14. }

屬性

屬性名稱 類型 必須 描述 約束
Capacity integer 指定存儲空間 取值範圍是:128MB to 512 GB。允許可選值是 128MB, 256MB, 512MB, 1024MB, 2048MB, …. 51200MB。單位是 MB
Password string 指定密碼 長度:8~30個字符,需同時包含大寫字母、小寫字母和數字
VpcId string 指定專有網絡的 ID
PrivateIpAddr string 指定專有網絡下的私有IP地址 私有IP地址必須屬於 VpcId 和 VSwitchId 指定的網段
ZoneId 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,表示不限製。默認不限製
VSwitchId string 指定 VpcId 下的虛擬網絡交換機 ID
NetworkType string 指定網絡類型 允許的可選值:CLASSIC, VPC
InstanceName string 指定實例的名稱 長度為128個字符

返回值

Fn::GetAtt

  • InstanceStatus 所創建實例的狀態
  • InstanceId 所創建實例的 ID
  • ConnectionDomain 用於連接實例的域名
  • QPS 此實例的峰值 QPS
  • InstanceName 此實例的名稱
  • PrivateIpAddress VPC 網絡下此實例的 IP 地址,經典網絡沒有私網 IP 地址

示例

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "OcsInstance": {
  5. "Type": "ALIYUN::MEMCACHE::Instance",
  6. "Properties": {
  7. "Password": "YU76sdfsfdUY",
  8. "Capacity": 1024,
  9. "VpcId": "vpc-25o8sqkwb",
  10. "VSwitchId": "vsw-25rc1y5t9",
  11. "ZoneId": "cn-beijing-c"
  12. }
  13. }
  14. },
  15. "Outputs": {
  16. "ConnectionDomain": {
  17. "Description": "內網連接字符串",
  18. "Value": {
  19. "Fn::GetAtt": [
  20. "OcsInstance",
  21. "ConnectionDomain"
  22. ]
  23. }
  24. },
  25. "PrivateIpAddress": {
  26. "Description": "內網ip",
  27. "Value": {
  28. "Fn::GetAtt": [
  29. "OcsInstance",
  30. "PrivateIpAddress"
  31. ]
  32. }
  33. }
  34. }
  35. }

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

  上一篇:go ALIYUN::MarketPlace::Order__資源列表_資源編排-阿裏雲
  下一篇:go ALIYUN::MONGODB::Instance__資源列表_資源編排-阿裏雲