阅读241 返回首页    go 阿里云 go 技术社区[云栖]


ALIYUN::ECS::EIPAssociation__资源列表_资源编排-阿里云

ALIYUN::ECS::EIPAssociation 类型可用于绑定弹性公网 IP。

语法

{
   "Type" : "ALIYUN::ECS::EIP",
   "Properties" : {
         "InstanceId" : String,
      "AllocationId": String
   }
}

属性

InstanceId

需要进行绑定操作的实例id。
若InstanceType为EcsInstance,则此处填写ECS实例Id;
若InstanceType为HaVip,则此处填写HaVipId;

AllocationId

需要进行绑定操作的EIP的申请Id,申请Id是EIP的唯一标识

返回值

Fn::GetAtt

示例

{
  "ROSTemplateFormatVersion" : "2015-09-01",
  "Resources" : {
    "NewEip": {
      "Type": "ALIYUN::ECS::EIP",
      "Properties": {
        "RegionId" : "cn-beijing"
      }
    }
  },
  "Outputs": {
    "EipAddress": {
         "Value" : {"get_attr": ["EipAddress"]}
    },
    "AllocationId": {
         "Value" : {"get_attr": ["AllocationId"]}
    },
  }
}

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

  上一篇:go ALIYUN::ECS::EIP__资源列表_资源编排-阿里云
  下一篇:go ALIYUN::ECS::Instance__资源列表_资源编排-阿里云