阅读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__资源列表_资源编排-阿里云