Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of transit router bandwidth packages
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooBandwidthPackage = new volcengine.transit_router.BandwidthPackage("fooBandwidthPackage", {
transitRouterBandwidthPackageName: "acc-tf-test",
description: "acc-test",
bandwidth: 2,
period: 1,
renewType: "Manual",
});
const fooBandwidthPackages = volcengine.transit_router.getBandwidthPackagesOutput({
ids: [fooBandwidthPackage.id],
});
import pulumi
import pulumi_volcengine as volcengine
foo_bandwidth_package = volcengine.transit_router.BandwidthPackage("fooBandwidthPackage",
transit_router_bandwidth_package_name="acc-tf-test",
description="acc-test",
bandwidth=2,
period=1,
renew_type="Manual")
foo_bandwidth_packages = volcengine.transit_router.get_bandwidth_packages_output(ids=[foo_bandwidth_package.id])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooBandwidthPackage, err := transit_router.NewBandwidthPackage(ctx, "fooBandwidthPackage", &transit_router.BandwidthPackageArgs{
TransitRouterBandwidthPackageName: pulumi.String("acc-tf-test"),
Description: pulumi.String("acc-test"),
Bandwidth: pulumi.Int(2),
Period: pulumi.Int(1),
RenewType: pulumi.String("Manual"),
})
if err != nil {
return err
}
_ = transit_router.GetBandwidthPackagesOutput(ctx, transit_router.GetBandwidthPackagesOutputArgs{
Ids: pulumi.StringArray{
fooBandwidthPackage.ID(),
},
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooBandwidthPackage = new Volcengine.Transit_router.BandwidthPackage("fooBandwidthPackage", new()
{
TransitRouterBandwidthPackageName = "acc-tf-test",
Description = "acc-test",
Bandwidth = 2,
Period = 1,
RenewType = "Manual",
});
var fooBandwidthPackages = Volcengine.Transit_router.GetBandwidthPackages.Invoke(new()
{
Ids = new[]
{
fooBandwidthPackage.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.transit_router.BandwidthPackage;
import com.pulumi.volcengine.transit_router.BandwidthPackageArgs;
import com.pulumi.volcengine.transit_router.Transit_routerFunctions;
import com.pulumi.volcengine.transit_router.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) {
var fooBandwidthPackage = new BandwidthPackage("fooBandwidthPackage", BandwidthPackageArgs.builder()
.transitRouterBandwidthPackageName("acc-tf-test")
.description("acc-test")
.bandwidth(2)
.period(1)
.renewType("Manual")
.build());
final var fooBandwidthPackages = Transit_routerFunctions.getBandwidthPackages(GetBandwidthPackagesArgs.builder()
.ids(fooBandwidthPackage.id())
.build());
}
}
resources:
fooBandwidthPackage:
type: volcengine:transit_router:BandwidthPackage
properties:
transitRouterBandwidthPackageName: acc-tf-test
description: acc-test
bandwidth: 2
period: 1
renewType: Manual
variables:
fooBandwidthPackages:
fn::invoke:
Function: volcengine:transit_router:getBandwidthPackages
Arguments:
ids:
- ${fooBandwidthPackage.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,
local_geographic_region_set_id: Optional[str] = None,
output_file: Optional[str] = None,
peer_geographic_region_set_id: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[GetBandwidthPackagesTag]] = None,
transit_router_bandwidth_package_name: Optional[str] = None,
transit_router_peer_attachment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBandwidthPackagesResult
def get_bandwidth_packages_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
local_geographic_region_set_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
peer_geographic_region_set_id: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetBandwidthPackagesTagArgs]]]] = None,
transit_router_bandwidth_package_name: Optional[pulumi.Input[str]] = None,
transit_router_peer_attachment_id: 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: volcengine:transit_router/getBandwidthPackages:getBandwidthPackages
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- The ID list of the TransitRouter bandwidth package.
- Local
Geographic stringRegion Set Id - The local geographic region set ID.
- Output
File string - File name where to save data source results.
- Peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- Project
Name string - The ProjectName of the TransitRouter bandwidth package.
-
List<Get
Bandwidth Packages Tag> - Tags.
- Transit
Router stringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- Transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- Ids []string
- The ID list of the TransitRouter bandwidth package.
- Local
Geographic stringRegion Set Id - The local geographic region set ID.
- Output
File string - File name where to save data source results.
- Peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- Project
Name string - The ProjectName of the TransitRouter bandwidth package.
-
[]Get
Bandwidth Packages Tag - Tags.
- Transit
Router stringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- Transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- ids List<String>
- The ID list of the TransitRouter bandwidth package.
- local
Geographic StringRegion Set Id - The local geographic region set ID.
- output
File String - File name where to save data source results.
- peer
Geographic StringRegion Set Id - The peer geographic region set ID.
- project
Name String - The ProjectName of the TransitRouter bandwidth package.
-
List<Get
Bandwidth Packages Tag> - Tags.
- transit
Router StringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- transit
Router StringPeer Attachment Id - The ID of the peer attachment.
- ids string[]
- The ID list of the TransitRouter bandwidth package.
- local
Geographic stringRegion Set Id - The local geographic region set ID.
- output
File string - File name where to save data source results.
- peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- project
Name string - The ProjectName of the TransitRouter bandwidth package.
-
Get
Bandwidth Packages Tag[] - Tags.
- transit
Router stringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- ids Sequence[str]
- The ID list of the TransitRouter bandwidth package.
- local_
geographic_ strregion_ set_ id - The local geographic region set ID.
- output_
file str - File name where to save data source results.
- peer_
geographic_ strregion_ set_ id - The peer geographic region set ID.
- project_
name str - The ProjectName of the TransitRouter bandwidth package.
-
Sequence[Get
Bandwidth Packages Tag] - Tags.
- transit_
router_ strbandwidth_ package_ name - The name of the TransitRouter bandwidth package.
- transit_
router_ strpeer_ attachment_ id - The ID of the peer attachment.
- ids List<String>
- The ID list of the TransitRouter bandwidth package.
- local
Geographic StringRegion Set Id - The local geographic region set ID.
- output
File String - File name where to save data source results.
- peer
Geographic StringRegion Set Id - The peer geographic region set ID.
- project
Name String - The ProjectName of the TransitRouter bandwidth package.
- List<Property Map>
- Tags.
- transit
Router StringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- transit
Router StringPeer Attachment Id - The ID of the peer attachment.
getBandwidthPackages Result
The following output properties are available:
- Bandwidth
Packages List<GetBandwidth Packages Bandwidth Package> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Ids List<string>
- Local
Geographic stringRegion Set Id - The local geographic region set ID.
- Output
File string - Peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- Project
Name string - The ProjectName of the transit router bandwidth package.
-
List<Get
Bandwidth Packages Tag> - Tags.
- Transit
Router stringBandwidth Package Name - The name of the transit router bandwidth package.
- Transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- Bandwidth
Packages []GetBandwidth Packages Bandwidth Package - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Ids []string
- Local
Geographic stringRegion Set Id - The local geographic region set ID.
- Output
File string - Peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- Project
Name string - The ProjectName of the transit router bandwidth package.
-
[]Get
Bandwidth Packages Tag - Tags.
- Transit
Router stringBandwidth Package Name - The name of the transit router bandwidth package.
- Transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- bandwidth
Packages List<GetBandwidth Packages Bandwidth Package> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- ids List<String>
- local
Geographic StringRegion Set Id - The local geographic region set ID.
- output
File String - peer
Geographic StringRegion Set Id - The peer geographic region set ID.
- project
Name String - The ProjectName of the transit router bandwidth package.
-
List<Get
Bandwidth Packages Tag> - Tags.
- transit
Router StringBandwidth Package Name - The name of the transit router bandwidth package.
- transit
Router StringPeer Attachment Id - The ID of the peer attachment.
- bandwidth
Packages GetBandwidth Packages Bandwidth Package[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- ids string[]
- local
Geographic stringRegion Set Id - The local geographic region set ID.
- output
File string - peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- project
Name string - The ProjectName of the transit router bandwidth package.
-
Get
Bandwidth Packages Tag[] - Tags.
- transit
Router stringBandwidth Package Name - The name of the transit router bandwidth package.
- transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- bandwidth_
packages Sequence[GetBandwidth Packages Bandwidth Package] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- ids Sequence[str]
- local_
geographic_ strregion_ set_ id - The local geographic region set ID.
- output_
file str - peer_
geographic_ strregion_ set_ id - The peer geographic region set ID.
- project_
name str - The ProjectName of the transit router bandwidth package.
-
Sequence[Get
Bandwidth Packages Tag] - Tags.
- transit_
router_ strbandwidth_ package_ name - The name of the transit router bandwidth package.
- transit_
router_ strpeer_ attachment_ id - The ID of the peer attachment.
- bandwidth
Packages List<Property Map> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- ids List<String>
- local
Geographic StringRegion Set Id - The local geographic region set ID.
- output
File String - peer
Geographic StringRegion Set Id - The peer geographic region set ID.
- project
Name String - The ProjectName of the transit router bandwidth package.
- List<Property Map>
- Tags.
- transit
Router StringBandwidth Package Name - The name of the transit router bandwidth package.
- transit
Router StringPeer Attachment Id - The ID of the peer attachment.
Supporting Types
GetBandwidthPackagesBandwidthPackage
- Account
Id string - The account id.
- Allocations
List<Get
Bandwidth Packages Bandwidth Package Allocation> - The detailed information on cross regional connections associated with bandwidth packets.
- Bandwidth int
- The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
- Billing
Type string - The billing type of the transit router bandwidth package.
- Business
Status string - The business status of the transit router bandwidth package.
- Creation
Time string - The create time of the transit router bandwidth package.
- Delete
Time string - The delete time of the transit router bandwidth package.
- Description string
- The description of the transit router bandwidth package.
- Expired
Time string - The expired time of the transit router bandwidth package.
- Id string
- The id of the transit router bandwidth package.
- Local
Geographic stringRegion Set Id - The local geographic region set ID.
- Peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- Project
Name string - The ProjectName of the TransitRouter bandwidth package.
- Remaining
Bandwidth int - The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
- Status string
- The status of the transit router bandwidth package.
-
List<Get
Bandwidth Packages Bandwidth Package Tag> - Tags.
- Transit
Router stringBandwidth Package Id - The id of the transit router attachment.
- Transit
Router stringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- Update
Time string - The update time of the transit router bandwidth package.
- Account
Id string - The account id.
- Allocations
[]Get
Bandwidth Packages Bandwidth Package Allocation - The detailed information on cross regional connections associated with bandwidth packets.
- Bandwidth int
- The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
- Billing
Type string - The billing type of the transit router bandwidth package.
- Business
Status string - The business status of the transit router bandwidth package.
- Creation
Time string - The create time of the transit router bandwidth package.
- Delete
Time string - The delete time of the transit router bandwidth package.
- Description string
- The description of the transit router bandwidth package.
- Expired
Time string - The expired time of the transit router bandwidth package.
- Id string
- The id of the transit router bandwidth package.
- Local
Geographic stringRegion Set Id - The local geographic region set ID.
- Peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- Project
Name string - The ProjectName of the TransitRouter bandwidth package.
- Remaining
Bandwidth int - The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
- Status string
- The status of the transit router bandwidth package.
-
[]Get
Bandwidth Packages Bandwidth Package Tag - Tags.
- Transit
Router stringBandwidth Package Id - The id of the transit router attachment.
- Transit
Router stringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- Update
Time string - The update time of the transit router bandwidth package.
- account
Id String - The account id.
- allocations
List<Get
Bandwidth Packages Bandwidth Package Allocation> - The detailed information on cross regional connections associated with bandwidth packets.
- bandwidth Integer
- The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
- billing
Type String - The billing type of the transit router bandwidth package.
- business
Status String - The business status of the transit router bandwidth package.
- creation
Time String - The create time of the transit router bandwidth package.
- delete
Time String - The delete time of the transit router bandwidth package.
- description String
- The description of the transit router bandwidth package.
- expired
Time String - The expired time of the transit router bandwidth package.
- id String
- The id of the transit router bandwidth package.
- local
Geographic StringRegion Set Id - The local geographic region set ID.
- peer
Geographic StringRegion Set Id - The peer geographic region set ID.
- project
Name String - The ProjectName of the TransitRouter bandwidth package.
- remaining
Bandwidth Integer - The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
- status String
- The status of the transit router bandwidth package.
-
List<Get
Bandwidth Packages Bandwidth Package Tag> - Tags.
- transit
Router StringBandwidth Package Id - The id of the transit router attachment.
- transit
Router StringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- update
Time String - The update time of the transit router bandwidth package.
- account
Id string - The account id.
- allocations
Get
Bandwidth Packages Bandwidth Package Allocation[] - The detailed information on cross regional connections associated with bandwidth packets.
- bandwidth number
- The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
- billing
Type string - The billing type of the transit router bandwidth package.
- business
Status string - The business status of the transit router bandwidth package.
- creation
Time string - The create time of the transit router bandwidth package.
- delete
Time string - The delete time of the transit router bandwidth package.
- description string
- The description of the transit router bandwidth package.
- expired
Time string - The expired time of the transit router bandwidth package.
- id string
- The id of the transit router bandwidth package.
- local
Geographic stringRegion Set Id - The local geographic region set ID.
- peer
Geographic stringRegion Set Id - The peer geographic region set ID.
- project
Name string - The ProjectName of the TransitRouter bandwidth package.
- remaining
Bandwidth number - The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
- status string
- The status of the transit router bandwidth package.
-
Get
Bandwidth Packages Bandwidth Package Tag[] - Tags.
- transit
Router stringBandwidth Package Id - The id of the transit router attachment.
- transit
Router stringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- update
Time string - The update time of the transit router bandwidth package.
- account_
id str - The account id.
- allocations
Sequence[Get
Bandwidth Packages Bandwidth Package Allocation] - The detailed information on cross regional connections associated with bandwidth packets.
- bandwidth int
- The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
- billing_
type str - The billing type of the transit router bandwidth package.
- business_
status str - The business status of the transit router bandwidth package.
- creation_
time str - The create time of the transit router bandwidth package.
- delete_
time str - The delete time of the transit router bandwidth package.
- description str
- The description of the transit router bandwidth package.
- expired_
time str - The expired time of the transit router bandwidth package.
- id str
- The id of the transit router bandwidth package.
- local_
geographic_ strregion_ set_ id - The local geographic region set ID.
- peer_
geographic_ strregion_ set_ id - The peer geographic region set ID.
- project_
name str - The ProjectName of the TransitRouter bandwidth package.
- remaining_
bandwidth int - The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
- status str
- The status of the transit router bandwidth package.
-
Sequence[Get
Bandwidth Packages Bandwidth Package Tag] - Tags.
- transit_
router_ strbandwidth_ package_ id - The id of the transit router attachment.
- transit_
router_ strbandwidth_ package_ name - The name of the TransitRouter bandwidth package.
- update_
time str - The update time of the transit router bandwidth package.
- account
Id String - The account id.
- allocations List<Property Map>
- The detailed information on cross regional connections associated with bandwidth packets.
- bandwidth Number
- The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
- billing
Type String - The billing type of the transit router bandwidth package.
- business
Status String - The business status of the transit router bandwidth package.
- creation
Time String - The create time of the transit router bandwidth package.
- delete
Time String - The delete time of the transit router bandwidth package.
- description String
- The description of the transit router bandwidth package.
- expired
Time String - The expired time of the transit router bandwidth package.
- id String
- The id of the transit router bandwidth package.
- local
Geographic StringRegion Set Id - The local geographic region set ID.
- peer
Geographic StringRegion Set Id - The peer geographic region set ID.
- project
Name String - The ProjectName of the TransitRouter bandwidth package.
- remaining
Bandwidth Number - The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
- status String
- The status of the transit router bandwidth package.
- List<Property Map>
- Tags.
- transit
Router StringBandwidth Package Id - The id of the transit router attachment.
- transit
Router StringBandwidth Package Name - The name of the TransitRouter bandwidth package.
- update
Time String - The update time of the transit router bandwidth package.
GetBandwidthPackagesBandwidthPackageAllocation
- Allocate
Time string - The delete time of the transit router bandwidth package.
- Delete
Time string - The delete time of the transit router bandwidth package.
- Local
Region stringId - The local region id of the transit router.
- Transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- Allocate
Time string - The delete time of the transit router bandwidth package.
- Delete
Time string - The delete time of the transit router bandwidth package.
- Local
Region stringId - The local region id of the transit router.
- Transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- allocate
Time String - The delete time of the transit router bandwidth package.
- delete
Time String - The delete time of the transit router bandwidth package.
- local
Region StringId - The local region id of the transit router.
- transit
Router StringPeer Attachment Id - The ID of the peer attachment.
- allocate
Time string - The delete time of the transit router bandwidth package.
- delete
Time string - The delete time of the transit router bandwidth package.
- local
Region stringId - The local region id of the transit router.
- transit
Router stringPeer Attachment Id - The ID of the peer attachment.
- allocate_
time str - The delete time of the transit router bandwidth package.
- delete_
time str - The delete time of the transit router bandwidth package.
- local_
region_ strid - The local region id of the transit router.
- transit_
router_ strpeer_ attachment_ id - The ID of the peer attachment.
- allocate
Time String - The delete time of the transit router bandwidth package.
- delete
Time String - The delete time of the transit router bandwidth package.
- local
Region StringId - The local region id of the transit router.
- transit
Router StringPeer Attachment Id - The ID of the peer attachment.
GetBandwidthPackagesBandwidthPackageTag
GetBandwidthPackagesTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
