阅读61 返回首页    go 阿里云


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

ALIYUN::ECS::ForwardEntry 类型可用于配置 NAT 网关的端口转发表

语法

  1. {
  2. "Type" : "ALIYUN::ECS::ForwardEntry",
  3. "Properties" : {
  4. "ExternalIp" : String,
  5. "ExternalPort" : String,
  6. "ForwardTableId" : String,
  7. "InternalIp" : String,
  8. "IpProtocol" : String,
  9. "InternalPort" : String,
  10. }
  11. }

属性

属性名称 类型 必须 描述 约束
ExternalIp string 端口转发规则中的源 IP,该 IP 必须是该端口转发表所属 Nat Gateway 上的共享带宽包中的 IP
ExternalPort string 源端口; 取值范围:1~65535|Any
ForwardTableId string 指定端口转发表 ID
InternalIp string 端口转发规则中的目标 IP,是一个私网 IP 地址
IpProtocol string 指定协议类型 允许的可选值:TCP, UDP, Any
InternalPort string 目标端口 取值范围为 1~65535|Any

返回值

Fn::GetAtt

  • ForwardEntryId 端口转发表中表项 ID

示例

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "ForwardEntry": {
  5. "Type": "ALIYUN::ECS::ForwardEntry",
  6. "Properties": {
  7. "ForwardTableId": "my_forwardtable",
  8. "ExternalIp": "101.201.34.148",
  9. "ExternalPort": "8080",
  10. "IpProtocol": "TCP",
  11. "InternalIp": "10.2.21.8",
  12. "InternalPort": "80"
  13. }
  14. }
  15. },
  16. "Outputs": {
  17. "ForwardEntryId": {
  18. "Value" : {"Fn::GetAttr": ["ForwardEntry","ForwardEntryId"]}
  19. }
  20. }
  21. }

最后更新:2016-12-20 17:12:30

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