Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides CEN Bandwidth Packages available to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.cen.getBandwidthPackages({
instanceId: "cen-id1",
nameRegex: "^foo",
});
export const firstCenBandwidthPackageId = example.then(example => example.packages?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cen.get_bandwidth_packages(instance_id="cen-id1",
name_regex="^foo")
pulumi.export("firstCenBandwidthPackageId", example.packages[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := cen.GetBandwidthPackages(ctx, &cen.GetBandwidthPackagesArgs{
InstanceId: pulumi.StringRef("cen-id1"),
NameRegex: pulumi.StringRef("^foo"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstCenBandwidthPackageId", example.Packages[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Cen.GetBandwidthPackages.Invoke(new()
{
InstanceId = "cen-id1",
NameRegex = "^foo",
});
return new Dictionary<string, object?>
{
["firstCenBandwidthPackageId"] = example.Apply(getBandwidthPackagesResult => getBandwidthPackagesResult.Packages[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetBandwidthPackagesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = CenFunctions.getBandwidthPackages(GetBandwidthPackagesArgs.builder()
.instanceId("cen-id1")
.nameRegex("^foo")
.build());
ctx.export("firstCenBandwidthPackageId", example.packages()[0].id());
}
}
variables:
example:
fn::invoke:
function: alicloud:cen:getBandwidthPackages
arguments:
instanceId: cen-id1
nameRegex: ^foo
outputs:
firstCenBandwidthPackageId: ${example.packages[0].id}
Using getBandwidthPackages
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBandwidthPackages(args: GetBandwidthPackagesArgs, opts?: InvokeOptions): Promise<GetBandwidthPackagesResult>
function getBandwidthPackagesOutput(args: GetBandwidthPackagesOutputArgs, opts?: InvokeOptions): Output<GetBandwidthPackagesResult>def get_bandwidth_packages(ids: Optional[Sequence[str]] = None,
include_reservation_data: Optional[bool] = None,
instance_id: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBandwidthPackagesResult
def get_bandwidth_packages_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
include_reservation_data: Optional[pulumi.Input[bool]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBandwidthPackagesResult]func GetBandwidthPackages(ctx *Context, args *GetBandwidthPackagesArgs, opts ...InvokeOption) (*GetBandwidthPackagesResult, error)
func GetBandwidthPackagesOutput(ctx *Context, args *GetBandwidthPackagesOutputArgs, opts ...InvokeOption) GetBandwidthPackagesResultOutput> Note: This function is named GetBandwidthPackages in the Go SDK.
public static class GetBandwidthPackages
{
public static Task<GetBandwidthPackagesResult> InvokeAsync(GetBandwidthPackagesArgs args, InvokeOptions? opts = null)
public static Output<GetBandwidthPackagesResult> Invoke(GetBandwidthPackagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBandwidthPackagesResult> getBandwidthPackages(GetBandwidthPackagesArgs args, InvokeOptions options)
public static Output<GetBandwidthPackagesResult> getBandwidthPackages(GetBandwidthPackagesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:cen/getBandwidthPackages:getBandwidthPackages
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- Limit search to a list of specific CEN Bandwidth Package IDs.
- Include
Reservation boolData - Indicates whether to include renewal data. Valid values:
true: Return renewal data in the response.false: Do not return renewal data in the response. - Instance
Id string - ID of a CEN instance.
- Name
Regex string - A regex string to filter CEN Bandwidth Package by name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- Ids []string
- Limit search to a list of specific CEN Bandwidth Package IDs.
- Include
Reservation boolData - Indicates whether to include renewal data. Valid values:
true: Return renewal data in the response.false: Do not return renewal data in the response. - Instance
Id string - ID of a CEN instance.
- Name
Regex string - A regex string to filter CEN Bandwidth Package by name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- ids List<String>
- Limit search to a list of specific CEN Bandwidth Package IDs.
- include
Reservation BooleanData - Indicates whether to include renewal data. Valid values:
true: Return renewal data in the response.false: Do not return renewal data in the response. - instance
Id String - ID of a CEN instance.
- name
Regex String - A regex string to filter CEN Bandwidth Package by name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- ids string[]
- Limit search to a list of specific CEN Bandwidth Package IDs.
- include
Reservation booleanData - Indicates whether to include renewal data. Valid values:
true: Return renewal data in the response.false: Do not return renewal data in the response. - instance
Id string - ID of a CEN instance.
- name
Regex string - A regex string to filter CEN Bandwidth Package by name.
- output
File string - File name where to save data source results (after running
pulumi preview). - status string
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- ids Sequence[str]
- Limit search to a list of specific CEN Bandwidth Package IDs.
- include_
reservation_ booldata - Indicates whether to include renewal data. Valid values:
true: Return renewal data in the response.false: Do not return renewal data in the response. - instance_
id str - ID of a CEN instance.
- name_
regex str - A regex string to filter CEN Bandwidth Package by name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - status str
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- ids List<String>
- Limit search to a list of specific CEN Bandwidth Package IDs.
- include
Reservation BooleanData - Indicates whether to include renewal data. Valid values:
true: Return renewal data in the response.false: Do not return renewal data in the response. - instance
Id String - ID of a CEN instance.
- name
Regex String - A regex string to filter CEN Bandwidth Package by name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
getBandwidthPackages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of specific CEN Bandwidth Package IDs.
- Names List<string>
- (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.
- Packages
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Bandwidth Packages Package> - A list of CEN bandwidth package. Each element contains the following attributes:
- Include
Reservation boolData - Instance
Id string - The ID of the CEN instance that are associated with the bandwidth package.
- Name
Regex string - Output
File string - Status string
- Status of the CEN Bandwidth Package in CEN instance, including
IdleandInUse.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of specific CEN Bandwidth Package IDs.
- Names []string
- (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.
- Packages
[]Get
Bandwidth Packages Package - A list of CEN bandwidth package. Each element contains the following attributes:
- Include
Reservation boolData - Instance
Id string - The ID of the CEN instance that are associated with the bandwidth package.
- Name
Regex string - Output
File string - Status string
- Status of the CEN Bandwidth Package in CEN instance, including
IdleandInUse.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of specific CEN Bandwidth Package IDs.
- names List<String>
- (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.
- packages
List<Get
Bandwidth Packages Package> - A list of CEN bandwidth package. Each element contains the following attributes:
- include
Reservation BooleanData - instance
Id String - The ID of the CEN instance that are associated with the bandwidth package.
- name
Regex String - output
File String - status String
- Status of the CEN Bandwidth Package in CEN instance, including
IdleandInUse.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of specific CEN Bandwidth Package IDs.
- names string[]
- (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.
- packages
Get
Bandwidth Packages Package[] - A list of CEN bandwidth package. Each element contains the following attributes:
- include
Reservation booleanData - instance
Id string - The ID of the CEN instance that are associated with the bandwidth package.
- name
Regex string - output
File string - status string
- Status of the CEN Bandwidth Package in CEN instance, including
IdleandInUse.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of specific CEN Bandwidth Package IDs.
- names Sequence[str]
- (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.
- packages
Sequence[Get
Bandwidth Packages Package] - A list of CEN bandwidth package. Each element contains the following attributes:
- include_
reservation_ booldata - instance_
id str - The ID of the CEN instance that are associated with the bandwidth package.
- name_
regex str - output_
file str - status str
- Status of the CEN Bandwidth Package in CEN instance, including
IdleandInUse.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of specific CEN Bandwidth Package IDs.
- names List<String>
- (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.
- packages List<Property Map>
- A list of CEN bandwidth package. Each element contains the following attributes:
- include
Reservation BooleanData - instance
Id String - The ID of the CEN instance that are associated with the bandwidth package.
- name
Regex String - output
File String - status String
- Status of the CEN Bandwidth Package in CEN instance, including
IdleandInUse.
Supporting Types
GetBandwidthPackagesPackage
- Bandwidth int
- The bandwidth in Mbps of the CEN bandwidth package.
- Bandwidth
Package stringCharge Type - The billing method, including
POSTPAYandPREPAY. - Business
Status string - Status of the CEN Bandwidth Package, including
Normal,FinancialLockedandSecurityLocked. - Cen
Bandwidth stringPackage Id - The ID of the bandwidth package.
- Cen
Bandwidth stringPackage Name - The name of the bandwidth package.
- Cen
Ids List<string> - The list of CEN instances that are associated with the bandwidth package.
- Description string
- Description of the CEN Bandwidth Package.
- Expired
Time string - Geographic
Region stringAId - Region ID of the interconnected regions.
- Geographic
Region stringBId - Region ID of the interconnected regions.
- Geographic
Span stringId - The area ID of the cross-area connection.
- Has
Reservation stringData - Indicates whether renewal data is involved.
- Id string
- ID of the CEN Bandwidth Package.
- Instance
Id string - ID of a CEN instance.
- Is
Cross boolBorder - Indicates whether the bandwidth package is a cross-border bandwidth package.
- Name string
- Name of the CEN Bandwidth Package.
- Payment
Type string - The billing method of the bandwidth package.
- Reservation
Active stringTime - The expiration time of the temporary upgrade.
- Reservation
Bandwidth string - The restored bandwidth after the temporary upgrade.
- Reservation
Internet stringCharge Type - The billing method after the configuration change.
- Reservation
Order stringType - The type of the configuration change.
- Status string
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- Bandwidth int
- The bandwidth in Mbps of the CEN bandwidth package.
- Bandwidth
Package stringCharge Type - The billing method, including
POSTPAYandPREPAY. - Business
Status string - Status of the CEN Bandwidth Package, including
Normal,FinancialLockedandSecurityLocked. - Cen
Bandwidth stringPackage Id - The ID of the bandwidth package.
- Cen
Bandwidth stringPackage Name - The name of the bandwidth package.
- Cen
Ids []string - The list of CEN instances that are associated with the bandwidth package.
- Description string
- Description of the CEN Bandwidth Package.
- Expired
Time string - Geographic
Region stringAId - Region ID of the interconnected regions.
- Geographic
Region stringBId - Region ID of the interconnected regions.
- Geographic
Span stringId - The area ID of the cross-area connection.
- Has
Reservation stringData - Indicates whether renewal data is involved.
- Id string
- ID of the CEN Bandwidth Package.
- Instance
Id string - ID of a CEN instance.
- Is
Cross boolBorder - Indicates whether the bandwidth package is a cross-border bandwidth package.
- Name string
- Name of the CEN Bandwidth Package.
- Payment
Type string - The billing method of the bandwidth package.
- Reservation
Active stringTime - The expiration time of the temporary upgrade.
- Reservation
Bandwidth string - The restored bandwidth after the temporary upgrade.
- Reservation
Internet stringCharge Type - The billing method after the configuration change.
- Reservation
Order stringType - The type of the configuration change.
- Status string
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- bandwidth Integer
- The bandwidth in Mbps of the CEN bandwidth package.
- bandwidth
Package StringCharge Type - The billing method, including
POSTPAYandPREPAY. - business
Status String - Status of the CEN Bandwidth Package, including
Normal,FinancialLockedandSecurityLocked. - cen
Bandwidth StringPackage Id - The ID of the bandwidth package.
- cen
Bandwidth StringPackage Name - The name of the bandwidth package.
- cen
Ids List<String> - The list of CEN instances that are associated with the bandwidth package.
- description String
- Description of the CEN Bandwidth Package.
- expired
Time String - geographic
Region StringAId - Region ID of the interconnected regions.
- geographic
Region StringBId - Region ID of the interconnected regions.
- geographic
Span StringId - The area ID of the cross-area connection.
- has
Reservation StringData - Indicates whether renewal data is involved.
- id String
- ID of the CEN Bandwidth Package.
- instance
Id String - ID of a CEN instance.
- is
Cross BooleanBorder - Indicates whether the bandwidth package is a cross-border bandwidth package.
- name String
- Name of the CEN Bandwidth Package.
- payment
Type String - The billing method of the bandwidth package.
- reservation
Active StringTime - The expiration time of the temporary upgrade.
- reservation
Bandwidth String - The restored bandwidth after the temporary upgrade.
- reservation
Internet StringCharge Type - The billing method after the configuration change.
- reservation
Order StringType - The type of the configuration change.
- status String
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- bandwidth number
- The bandwidth in Mbps of the CEN bandwidth package.
- bandwidth
Package stringCharge Type - The billing method, including
POSTPAYandPREPAY. - business
Status string - Status of the CEN Bandwidth Package, including
Normal,FinancialLockedandSecurityLocked. - cen
Bandwidth stringPackage Id - The ID of the bandwidth package.
- cen
Bandwidth stringPackage Name - The name of the bandwidth package.
- cen
Ids string[] - The list of CEN instances that are associated with the bandwidth package.
- description string
- Description of the CEN Bandwidth Package.
- expired
Time string - geographic
Region stringAId - Region ID of the interconnected regions.
- geographic
Region stringBId - Region ID of the interconnected regions.
- geographic
Span stringId - The area ID of the cross-area connection.
- has
Reservation stringData - Indicates whether renewal data is involved.
- id string
- ID of the CEN Bandwidth Package.
- instance
Id string - ID of a CEN instance.
- is
Cross booleanBorder - Indicates whether the bandwidth package is a cross-border bandwidth package.
- name string
- Name of the CEN Bandwidth Package.
- payment
Type string - The billing method of the bandwidth package.
- reservation
Active stringTime - The expiration time of the temporary upgrade.
- reservation
Bandwidth string - The restored bandwidth after the temporary upgrade.
- reservation
Internet stringCharge Type - The billing method after the configuration change.
- reservation
Order stringType - The type of the configuration change.
- status string
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- bandwidth int
- The bandwidth in Mbps of the CEN bandwidth package.
- bandwidth_
package_ strcharge_ type - The billing method, including
POSTPAYandPREPAY. - business_
status str - Status of the CEN Bandwidth Package, including
Normal,FinancialLockedandSecurityLocked. - cen_
bandwidth_ strpackage_ id - The ID of the bandwidth package.
- cen_
bandwidth_ strpackage_ name - The name of the bandwidth package.
- cen_
ids Sequence[str] - The list of CEN instances that are associated with the bandwidth package.
- description str
- Description of the CEN Bandwidth Package.
- expired_
time str - geographic_
region_ stra_ id - Region ID of the interconnected regions.
- geographic_
region_ strb_ id - Region ID of the interconnected regions.
- geographic_
span_ strid - The area ID of the cross-area connection.
- has_
reservation_ strdata - Indicates whether renewal data is involved.
- id str
- ID of the CEN Bandwidth Package.
- instance_
id str - ID of a CEN instance.
- is_
cross_ boolborder - Indicates whether the bandwidth package is a cross-border bandwidth package.
- name str
- Name of the CEN Bandwidth Package.
- payment_
type str - The billing method of the bandwidth package.
- reservation_
active_ strtime - The expiration time of the temporary upgrade.
- reservation_
bandwidth str - The restored bandwidth after the temporary upgrade.
- reservation_
internet_ strcharge_ type - The billing method after the configuration change.
- reservation_
order_ strtype - The type of the configuration change.
- status str
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
- bandwidth Number
- The bandwidth in Mbps of the CEN bandwidth package.
- bandwidth
Package StringCharge Type - The billing method, including
POSTPAYandPREPAY. - business
Status String - Status of the CEN Bandwidth Package, including
Normal,FinancialLockedandSecurityLocked. - cen
Bandwidth StringPackage Id - The ID of the bandwidth package.
- cen
Bandwidth StringPackage Name - The name of the bandwidth package.
- cen
Ids List<String> - The list of CEN instances that are associated with the bandwidth package.
- description String
- Description of the CEN Bandwidth Package.
- expired
Time String - geographic
Region StringAId - Region ID of the interconnected regions.
- geographic
Region StringBId - Region ID of the interconnected regions.
- geographic
Span StringId - The area ID of the cross-area connection.
- has
Reservation StringData - Indicates whether renewal data is involved.
- id String
- ID of the CEN Bandwidth Package.
- instance
Id String - ID of a CEN instance.
- is
Cross BooleanBorder - Indicates whether the bandwidth package is a cross-border bandwidth package.
- name String
- Name of the CEN Bandwidth Package.
- payment
Type String - The billing method of the bandwidth package.
- reservation
Active StringTime - The expiration time of the temporary upgrade.
- reservation
Bandwidth String - The restored bandwidth after the temporary upgrade.
- reservation
Internet StringCharge Type - The billing method after the configuration change.
- reservation
Order StringType - The type of the configuration change.
- status String
- Status of the CEN Bandwidth Package in CEN instance, Valid value:
IdleandInUse.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
