published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
A shared bandwidth package is a cloud resource that supports multiplexing and sharing bandwidth. Add multiple public IPs or IPv6 public bandwidths within a single region to a shared bandwidth package instance to share one bandwidth.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
bandwidthPackageDemo:
type: volcenginecc:vpc:BandwidthPackage
name: BandwidthPackageDemo
properties:
period: 1
periodUnit: 1
protocol: Dual-stack
tags:
- key: env
value: test
bandwidthPackageName: BandwidthPackageDemo
description: BandwidthPackageDemo
isp: BGP
billingType: 2
bandwidth: 2
projectName: default
eipAddresses:
- allocation_id: eip-2f90y2a8sczcw4f4pzzx1xxxx
eip_address: 101.126.*.143
Create BandwidthPackage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BandwidthPackage(name: string, args: BandwidthPackageArgs, opts?: CustomResourceOptions);@overload
def BandwidthPackage(resource_name: str,
args: BandwidthPackageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BandwidthPackage(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
bandwidth_package_name: Optional[str] = None,
billing_type: Optional[int] = None,
description: Optional[str] = None,
eip_addresses: Optional[Sequence[BandwidthPackageEipAddressArgs]] = None,
enable_dual_stack: Optional[bool] = None,
isp: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[int] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
security_protection_types: Optional[Sequence[str]] = None,
tags: Optional[Sequence[BandwidthPackageTagArgs]] = None)func NewBandwidthPackage(ctx *Context, name string, args BandwidthPackageArgs, opts ...ResourceOption) (*BandwidthPackage, error)public BandwidthPackage(string name, BandwidthPackageArgs args, CustomResourceOptions? opts = null)
public BandwidthPackage(String name, BandwidthPackageArgs args)
public BandwidthPackage(String name, BandwidthPackageArgs args, CustomResourceOptions options)
type: volcenginecc:vpc:BandwidthPackage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BandwidthPackageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BandwidthPackage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BandwidthPackage resource accepts the following input properties:
- Bandwidth int
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- Bandwidth
Package stringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- Billing
Type int - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- Description string
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Eip
Addresses List<Volcengine.Bandwidth Package Eip Address> - Enable
Dual boolStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- Isp string
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- Period int
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- Period
Unit int - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- Project
Name string - Project name. If not specified, added to the default project.
- Protocol string
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- Security
Protection List<string>Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
-
List<Volcengine.
Bandwidth Package Tag>
- Bandwidth int
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- Bandwidth
Package stringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- Billing
Type int - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- Description string
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Eip
Addresses []BandwidthPackage Eip Address Args - Enable
Dual boolStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- Isp string
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- Period int
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- Period
Unit int - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- Project
Name string - Project name. If not specified, added to the default project.
- Protocol string
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- Security
Protection []stringTypes - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
-
[]Bandwidth
Package Tag Args
- bandwidth Integer
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth
Package StringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing
Type Integer - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- description String
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip
Addresses List<BandwidthPackage Eip Address> - enable
Dual BooleanStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- isp String
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- period Integer
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period
Unit Integer - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project
Name String - Project name. If not specified, added to the default project.
- protocol String
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- security
Protection List<String>Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
-
List<Bandwidth
Package Tag>
- bandwidth number
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth
Package stringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing
Type number - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- description string
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip
Addresses BandwidthPackage Eip Address[] - enable
Dual booleanStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- isp string
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- period number
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period
Unit number - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project
Name string - Project name. If not specified, added to the default project.
- protocol string
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- security
Protection string[]Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
-
Bandwidth
Package Tag[]
- bandwidth int
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth_
package_ strname - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing_
type int - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- description str
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip_
addresses Sequence[BandwidthPackage Eip Address Args] - enable_
dual_ boolstack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- isp str
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- period int
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period_
unit int - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project_
name str - Project name. If not specified, added to the default project.
- protocol str
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- security_
protection_ Sequence[str]types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
-
Sequence[Bandwidth
Package Tag Args]
- bandwidth Number
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth
Package StringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing
Type Number - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- description String
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip
Addresses List<Property Map> - enable
Dual BooleanStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- isp String
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- period Number
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period
Unit Number - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project
Name String - Project name. If not specified, added to the default project.
- protocol String
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- security
Protection List<String>Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the BandwidthPackage resource produces the following output properties:
- Bandwidth
Package stringId - Bandwidth package ID
- Business
Status string - Billing status
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Expired
Time string - Expiration time
- Id string
- The provider-assigned unique ID for this managed resource.
- Overdue
Time string - Overdue time
- Ratio int
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- Status string
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
- Updated
Time string - Update time
- Bandwidth
Package stringId - Bandwidth package ID
- Business
Status string - Billing status
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Expired
Time string - Expiration time
- Id string
- The provider-assigned unique ID for this managed resource.
- Overdue
Time string - Overdue time
- Ratio int
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- Status string
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
- Updated
Time string - Update time
- bandwidth
Package StringId - Bandwidth package ID
- business
Status String - Billing status
- created
Time String - Creation time
- deleted
Time String - Deletion time
- expired
Time String - Expiration time
- id String
- The provider-assigned unique ID for this managed resource.
- overdue
Time String - Overdue time
- ratio Integer
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- status String
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
- updated
Time String - Update time
- bandwidth
Package stringId - Bandwidth package ID
- business
Status string - Billing status
- created
Time string - Creation time
- deleted
Time string - Deletion time
- expired
Time string - Expiration time
- id string
- The provider-assigned unique ID for this managed resource.
- overdue
Time string - Overdue time
- ratio number
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- status string
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
- updated
Time string - Update time
- bandwidth_
package_ strid - Bandwidth package ID
- business_
status str - Billing status
- created_
time str - Creation time
- deleted_
time str - Deletion time
- expired_
time str - Expiration time
- id str
- The provider-assigned unique ID for this managed resource.
- overdue_
time str - Overdue time
- ratio int
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- status str
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
- updated_
time str - Update time
- bandwidth
Package StringId - Bandwidth package ID
- business
Status String - Billing status
- created
Time String - Creation time
- deleted
Time String - Deletion time
- expired
Time String - Expiration time
- id String
- The provider-assigned unique ID for this managed resource.
- overdue
Time String - Overdue time
- ratio Number
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- status String
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
- updated
Time String - Update time
Look up Existing BandwidthPackage Resource
Get an existing BandwidthPackage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BandwidthPackageState, opts?: CustomResourceOptions): BandwidthPackage@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
bandwidth_package_id: Optional[str] = None,
bandwidth_package_name: Optional[str] = None,
billing_type: Optional[int] = None,
business_status: Optional[str] = None,
created_time: Optional[str] = None,
deleted_time: Optional[str] = None,
description: Optional[str] = None,
eip_addresses: Optional[Sequence[BandwidthPackageEipAddressArgs]] = None,
enable_dual_stack: Optional[bool] = None,
expired_time: Optional[str] = None,
isp: Optional[str] = None,
overdue_time: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[int] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
ratio: Optional[int] = None,
security_protection_types: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tags: Optional[Sequence[BandwidthPackageTagArgs]] = None,
updated_time: Optional[str] = None) -> BandwidthPackagefunc GetBandwidthPackage(ctx *Context, name string, id IDInput, state *BandwidthPackageState, opts ...ResourceOption) (*BandwidthPackage, error)public static BandwidthPackage Get(string name, Input<string> id, BandwidthPackageState? state, CustomResourceOptions? opts = null)public static BandwidthPackage get(String name, Output<String> id, BandwidthPackageState state, CustomResourceOptions options)resources: _: type: volcenginecc:vpc:BandwidthPackage get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bandwidth int
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- Bandwidth
Package stringId - Bandwidth package ID
- Bandwidth
Package stringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- Billing
Type int - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- Business
Status string - Billing status
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Description string
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Eip
Addresses List<Volcengine.Bandwidth Package Eip Address> - Enable
Dual boolStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- Expired
Time string - Expiration time
- Isp string
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- Overdue
Time string - Overdue time
- Period int
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- Period
Unit int - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- Project
Name string - Project name. If not specified, added to the default project.
- Protocol string
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- Ratio int
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- Security
Protection List<string>Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
- Status string
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
-
List<Volcengine.
Bandwidth Package Tag> - Updated
Time string - Update time
- Bandwidth int
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- Bandwidth
Package stringId - Bandwidth package ID
- Bandwidth
Package stringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- Billing
Type int - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- Business
Status string - Billing status
- Created
Time string - Creation time
- Deleted
Time string - Deletion time
- Description string
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Eip
Addresses []BandwidthPackage Eip Address Args - Enable
Dual boolStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- Expired
Time string - Expiration time
- Isp string
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- Overdue
Time string - Overdue time
- Period int
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- Period
Unit int - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- Project
Name string - Project name. If not specified, added to the default project.
- Protocol string
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- Ratio int
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- Security
Protection []stringTypes - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
- Status string
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
-
[]Bandwidth
Package Tag Args - Updated
Time string - Update time
- bandwidth Integer
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth
Package StringId - Bandwidth package ID
- bandwidth
Package StringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing
Type Integer - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- business
Status String - Billing status
- created
Time String - Creation time
- deleted
Time String - Deletion time
- description String
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip
Addresses List<BandwidthPackage Eip Address> - enable
Dual BooleanStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- expired
Time String - Expiration time
- isp String
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- overdue
Time String - Overdue time
- period Integer
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period
Unit Integer - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project
Name String - Project name. If not specified, added to the default project.
- protocol String
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- ratio Integer
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- security
Protection List<String>Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
- status String
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
-
List<Bandwidth
Package Tag> - updated
Time String - Update time
- bandwidth number
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth
Package stringId - Bandwidth package ID
- bandwidth
Package stringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing
Type number - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- business
Status string - Billing status
- created
Time string - Creation time
- deleted
Time string - Deletion time
- description string
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip
Addresses BandwidthPackage Eip Address[] - enable
Dual booleanStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- expired
Time string - Expiration time
- isp string
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- overdue
Time string - Overdue time
- period number
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period
Unit number - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project
Name string - Project name. If not specified, added to the default project.
- protocol string
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- ratio number
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- security
Protection string[]Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
- status string
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
-
Bandwidth
Package Tag[] - updated
Time string - Update time
- bandwidth int
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth_
package_ strid - Bandwidth package ID
- bandwidth_
package_ strname - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing_
type int - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- business_
status str - Billing status
- created_
time str - Creation time
- deleted_
time str - Deletion time
- description str
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip_
addresses Sequence[BandwidthPackage Eip Address Args] - enable_
dual_ boolstack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- expired_
time str - Expiration time
- isp str
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- overdue_
time str - Overdue time
- period int
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period_
unit int - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project_
name str - Project name. If not specified, added to the default project.
- protocol str
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- ratio int
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- security_
protection_ Sequence[str]types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
- status str
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
-
Sequence[Bandwidth
Package Tag Args] - updated_
time str - Update time
- bandwidth Number
- Bandwidth cap of the shared bandwidth package, unit: Mbps. If BillingType is 1: range is 5–5000. If BillingType is 2, 3, or 4: range is 2–5000.
- bandwidth
Package StringId - Bandwidth package ID
- bandwidth
Package StringName - Bandwidth package name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-).
- billing
Type Number - Billing methods for shared bandwidth packages. Options are: 1: Annual/monthly subscription. 2: Billed by bandwidth cap (default). 3: Billed by peak traffic. 4: Billed by traditional 95th percentile (minimum ratio defaults to 20%).
- business
Status String - Billing status
- created
Time String - Creation time
- deleted
Time String - Deletion time
- description String
- Description, limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- eip
Addresses List<Property Map> - enable
Dual BooleanStack - Enable dual stack. Options: true: enable dual stack; false: do not enable dual stack.
- expired
Time String - Expiration time
- isp String
- Line type, default is BGP. BGP: BGP (multi-line). 1. If your account has applied for and enabled static single line permissions, you can use the following values: 1.1, ChinaMobile: China Mobile static single line. 1.2, ChinaTelecom: China Telecom static single line. 1.3, ChinaUnicom: China Unicom static single line. 2. If your account has applied for and enabled BGP single line permissions, you can use SingleLineBGP. 3. If your account has applied for and enabled Premium BGP permissions, you can use PremiumBGP. 4. If your account has applied for and enabled Fusion BGP permissions, you can use FusionBGP. 5. If your account has applied for and enabled Economical static single line permissions, you can use the following values: 5.1, ChinaMobileValue: China Mobile economical static single line. 5.2, ChinaUnicomValue: China Unicom economical static single line. 5.3, ChinaTelecomValue: China Telecom economical static single line.
- overdue
Time String - Overdue time
- period Number
- Duration for purchasing yearly/monthly shared bandwidth package, default is '1'. If PeriodUnit is 1, Period can be 1–9, 12, 24, or 36. If PeriodUnit is 2, Period can be 1–3.
- period
Unit Number - Unit for the duration when purchasing an annual/monthly subscription shared bandwidth package. Options are: 1: Month (default). 2: Year.
- project
Name String - Project name. If not specified, added to the default project.
- protocol String
- IP protocol of the shared bandwidth package. Options are: Dual-stack: Dual-stack protocol type. IPv4: IPv4 protocol type. This parameter supports Dual-stack only when BillingType is 2 or 4.
- ratio Number
- 95 billing minimum ratio, unit: %, this parameter is returned only for 95 billing shared bandwidth package instances.
- security
Protection List<String>Types - Security protection type of the shared bandwidth package. AntiDDoS_Enhanced: Create an enhanced protection shared bandwidth package, which supports adding public IPs with basic protection. If not specified, it means a basic protection shared bandwidth package, which supports adding public IPs with enhanced protection.
- status String
- Status of the shared bandwidth package. Creating: In progress. Available: Available. Deleting: In progress.
- List<Property Map>
- updated
Time String - Update time
Supporting Types
BandwidthPackageEipAddress, BandwidthPackageEipAddressArgs
- Allocation
Id string - Allocation ID
- Allocation
Id string - Allocation ID
- allocation
Id String - Allocation ID
- allocation
Id string - Allocation ID
- allocation_
id str - Allocation ID
- allocation
Id String - Allocation ID
BandwidthPackageTag, BandwidthPackageTagArgs
Import
$ pulumi import volcenginecc:vpc/bandwidthPackage:BandwidthPackage example "bandwidth_package_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
