全部產品
Search
文件中心

Resource Orchestration Service:ALIYUN::VPC::CommonBandwidthPackageIp

更新時間:Mar 28, 2026

ALIYUN::VPC::CommonBandwidthPackageIp類型用於添加EIP到共用頻寬中。

說明

調用本介面添加EIP時,注意事項如下:

  • 只支援添加隨用隨付的EIP。

  • EIP和共用頻寬的地區必須相同。

文法

{
  "Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
  "Properties": {
    "Eips": List,
    "BandwidthPackageId": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

Eips

List

要添加的EIP。

無。

BandwidthPackageId

String

共用頻寬的ID。

無。

Eips文法

"Eips": [
  {
    "Bandwidth": Integer,
    "AllocationId": String,
    "IpType": String
  }
]

Eips屬性

屬性名稱

類型

必須

允許更新

描述

約束

Bandwidth

Integer

頻寬峰值。

0表示不限制。

預設值:0。

AllocationId

String

EIP執行個體的ID。

無。

IpType

String

網路類型。

取值:

  • EIP:將 EIP 已加入共用頻寬。

傳回值

Fn::GetAtt

  • AllocationIds:所有的EIP的ID。

  • IpAddresses:所有的EIP地址。

樣本

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  BandwidthPackageId:
    Type: String
    Description: The ID of the Internet Shared Bandwidth instance.
Resources:
  CommonBandwidthPackageIp:
    Type: ALIYUN::VPC::CommonBandwidthPackageIp
    Properties:
      Eips:
        - Bandwidth: 5
          AllocationId: eip-8vbwv47kgXXXXXXXXX
      BandwidthPackageId:
        Ref: BandwidthPackageId
Outputs:
  AllocationIds:
    Description: All eip allocation ids of common bandwidth package.
    Value:
      Fn::GetAtt:
        - CommonBandwidthPackageIp
        - AllocationIds
  IpAddresses:
    Description: All eip addresses of common bandwidth package.
    Value:
      Fn::GetAtt:
        - CommonBandwidthPackageIp
        - IpAddresses
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "BandwidthPackageId": {
      "Type": "String",
      "Description": "The ID of the Internet Shared Bandwidth instance."
    }
  },
  "Resources": {
    "CommonBandwidthPackageIp": {
      "Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
      "Properties": {
        "Eips": [
          {
            "Bandwidth": 5,
            "AllocationId": "eip-8vbwv47kgXXXXXXXXX"
          }
        ],
        "BandwidthPackageId": {
          "Ref": "BandwidthPackageId"
        }
      }
    }
  },
  "Outputs": {
    "AllocationIds": {
      "Description": "All eip allocation ids of common bandwidth package.",
      "Value": {
        "Fn::GetAtt": [
          "CommonBandwidthPackageIp",
          "AllocationIds"
        ]
      }
    },
    "IpAddresses": {
      "Description": "All eip addresses of common bandwidth package.",
      "Value": {
        "Fn::GetAtt": [
          "CommonBandwidthPackageIp",
          "IpAddresses"
        ]
      }
    }
  }
}