阅读549 返回首页    go 阿里云


ALIYUN::ESS::ScalingConfiguration__资源列表_资源编排-阿里云

ALIYUN::ESS::ScalingConfiguration 类型可用于创建伸缩配置。

语法

{
   "Type" : "ALIYUN::ESS::ScalingConfiguration",
   "Properties" : {
         "ImageId" : String,
      "InstanceType" : String,
      "InstanceId" : String,
      "InternetChargeType": String,
      "InternetMaxBandwidthIn" : String,
      "InternetMaxBandwidthOut" : String,
      "ScalingConfigurationName" : String,
      "ScalingGroupId" : String,
      "SecurityGroupId" : String,
      "SystemDisk_Category" : String,
      "DiskMappings" : String
   }
}

属性

ImageId

镜像文件ID,表示启动实例时选择的镜像资源。

InstanceType

ECS实例的资源规则。

InstanceId

InstanceId

InternetChargeType

网络计费类型,按流量计费还是按固定带宽计费。可选值:PayByBandwidth:按带宽计费、PayByTraffic:按流量计费;如用户不指定,默认是PayByBandwidth。

InternetMaxBandwidthIn

公网入带宽最大值,单位为Mbps(Mega bit per second),取值范围:[1,200],如果客户不指定,AliyunAPI将自动将入带宽设置成200Mbps。

InternetMaxBandwidthOut

公网出带宽最大值,单位为Mbps(Mega bit per second),取值范围:按带宽计费:[1,100] 如果客户不指定,API将自动将出带宽设置成0Mbps;按流量计费:[1,100] 如果客户不指定,会报错。

ScalingConfigurationName

伸缩配置的显示名称,2-40 个英文或中文字符,以数字、大小字母或中文开头,可包含数字,_、-或.。同一用户账号同一地域同一伸缩组内唯一。如果没有指定该参数,默认值为ScalingConfigurationId。

ScalingGroupId

伸缩配置所属的伸缩组ID。

SecurityGroupId

指定新创建实例所属于的安全组ID,同一个安全组内的实例之间可以互相访问。

SystemDisk_Category

系统盘的磁盘种类。可选值:cloud,ephemeral,默认值:cloud

DiskMappings

数据盘的属性

返回值

Fn::GetAtt

  • ScalingConfigurationId 伸缩配置的ID,由系统生成,全局唯一。

示例

{
  "ROSTemplateFormatVersion" : "2015-09-01",
  "Resources" : {
    "ScalingConfiguration": {
      "Type": "ALIYUN::ESS::ScalingConfiguration",
      "Properties": {
        "ImageId": "ubuntu1404_64_20G_aliaegis_20150325.vhd",
        "InstanceType": "ecs.t1.small",
        "InstanceId": "i-25xhhcqbu",
        "InternetChargeType": "PayByTraffic",
        "InternetMaxBandwidthIn": 1,
        "InternetMaxBandwidthOut": 20,
        "SystemDisk_Category": "cloud",
        "ScalingGroupId": "bwhtvpcBcKYac9fe3vd0kv7E",
        "SecurityGroupId": "sg-25zwc3se0",
        "DiskMappings": [
            {
                "Size": 10
            },
            {
                "Category": "cloud",
                "Size": 10
            }
        ]
      }
    }
  },
  "Outputs": {
    "ScalingConfiguration": {
         "Value" : {"get_attr": ["ScalingConfigurationId"]}
    }
  }
}

最后更新:2016-11-23 16:04:02

  上一篇:go ALIYUN::ECS::SecurityGroupEgress__资源列表_资源编排-阿里云
  下一篇:go ALIYUN::ESS::ScalingGroup__资源列表_资源编排-阿里云