All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::VPC::CommonBandwidthPackageIp

Last Updated:Mar 28, 2026

Resource ALIYUN::VPC::CommonBandwidthPackageIp digunakan untuk menambahkan satu atau beberapa EIP ke instans bandwidth bersama.

Catatan

Perhatikan hal berikut saat menggunakan resource ini untuk menambahkan EIP:

  • Hanya EIP pay-as-you-go yang dapat ditambahkan.

  • EIP dan instans bandwidth bersama harus berada di wilayah yang sama.

Sintaks

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

Properti

Parameter

Type

Required

Update allowed

Description

Constraints

Eips

List

Yes

No

EIP yang akan ditambahkan ke instans bandwidth bersama.

None.

BandwidthPackageId

String

Yes

No

ID instans bandwidth bersama.

None.

Sintaks Eips

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

Properti Eips

Parameter

Type

Required

Update allowed

Description

Constraints

Bandwidth

Integer

No

No

Bandwidth puncak untuk EIP.

Nilai 0 menunjukkan bahwa bandwidth tidak terbatas.

Nilai default: 0.

AllocationId

String

Yes

No

ID instans EIP.

None.

IpType

String

No

No

Jenis jaringan.

Nilai yang valid:

  • EIP: Menambahkan EIP ke instans bandwidth bersama.

Nilai kembalian

Fn::GetAtt

  • AllocationIds: ID EIP.

  • IpAddresses: Alamat IP EIP.

Contoh

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  BandwidthPackageId:
    Type: String
    Description: ID instans bandwidth bersama.
Resources:
  CommonBandwidthPackageIp:
    Type: ALIYUN::VPC::CommonBandwidthPackageIp
    Properties:
      Eips:
        - Bandwidth: 5
          AllocationId: eip-8vbwv47kgXXXXXXXXX
      BandwidthPackageId:
        Ref: BandwidthPackageId
Outputs:
  AllocationIds:
    Description: ID alokasi EIP dalam paket bandwidth bersama.
    Value:
      Fn::GetAtt:
        - CommonBandwidthPackageIp
        - AllocationIds
  IpAddresses:
    Description: Alamat IP EIP dalam paket bandwidth bersama.
    Value:
      Fn::GetAtt:
        - CommonBandwidthPackageIp
        - IpAddresses
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "BandwidthPackageId": {
      "Type": "String",
      "Description": "ID instans bandwidth bersama."
    }
  },
  "Resources": {
    "CommonBandwidthPackageIp": {
      "Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
      "Properties": {
        "Eips": [
          {
            "Bandwidth": 5,
            "AllocationId": "eip-8vbwv47kgXXXXXXXXX"
          }
        ],
        "BandwidthPackageId": {
          "Ref": "BandwidthPackageId"
        }
      }
    }
  },
  "Outputs": {
    "AllocationIds": {
      "Description": "ID alokasi EIP dalam paket bandwidth bersama.",
      "Value": {
        "Fn::GetAtt": [
          "CommonBandwidthPackageIp",
          "AllocationIds"
        ]
      }
    },
    "IpAddresses": {
      "Description": "Alamat IP EIP dalam paket bandwidth bersama.",
      "Value": {
        "Fn::GetAtt": [
          "CommonBandwidthPackageIp",
          "IpAddresses"
        ]
      }
    }
  }
}