Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.cen.BandwidthPackages
Explore with Pulumi AI
Use this data source to query detailed information of cen bandwidth packages
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooBandwidthPackage: volcengine.cen.BandwidthPackage[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
    fooBandwidthPackage.push(new volcengine.cen.BandwidthPackage(`fooBandwidthPackage-${range.value}`, {
        localGeographicRegionSetId: "China",
        peerGeographicRegionSetId: "China",
        bandwidth: 2,
        cenBandwidthPackageName: `acc-test-cen-bp-${range.value}`,
        description: "acc-test",
        billingType: "PrePaid",
        periodUnit: "Month",
        period: 1,
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    }));
}
const fooBandwidthPackages = volcengine.cen.BandwidthPackagesOutput({
    ids: fooBandwidthPackage.map(__item => __item.id),
});
import pulumi
import pulumi_volcengine as volcengine
foo_bandwidth_package = []
for range in [{"value": i} for i in range(0, 2)]:
    foo_bandwidth_package.append(volcengine.cen.BandwidthPackage(f"fooBandwidthPackage-{range['value']}",
        local_geographic_region_set_id="China",
        peer_geographic_region_set_id="China",
        bandwidth=2,
        cen_bandwidth_package_name=f"acc-test-cen-bp-{range['value']}",
        description="acc-test",
        billing_type="PrePaid",
        period_unit="Month",
        period=1,
        project_name="default",
        tags=[volcengine.cen.BandwidthPackageTagArgs(
            key="k1",
            value="v1",
        )]))
foo_bandwidth_packages = volcengine.cen.bandwidth_packages_output(ids=[__item.id for __item in foo_bandwidth_package])
package main
import (
	"fmt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
var fooBandwidthPackage []*cen.BandwidthPackage
for index := 0; index < 2; index++ {
    key0 := index
    val0 := index
__res, err := cen.NewBandwidthPackage(ctx, fmt.Sprintf("fooBandwidthPackage-%v", key0), &cen.BandwidthPackageArgs{
LocalGeographicRegionSetId: pulumi.String("China"),
PeerGeographicRegionSetId: pulumi.String("China"),
Bandwidth: pulumi.Int(2),
CenBandwidthPackageName: pulumi.String(fmt.Sprintf("acc-test-cen-bp-%v", val0)),
Description: pulumi.String("acc-test"),
BillingType: pulumi.String("PrePaid"),
PeriodUnit: pulumi.String("Month"),
Period: pulumi.Int(1),
ProjectName: pulumi.String("default"),
Tags: cen.BandwidthPackageTagArray{
&cen.BandwidthPackageTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
fooBandwidthPackage = append(fooBandwidthPackage, __res)
}
_ = cen.BandwidthPackagesOutput(ctx, cen.BandwidthPackagesOutputArgs{
Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:cen-bandwidthPackages:BandwidthPackages.pp:20,9-34),
}, nil);
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooBandwidthPackage = new List<Volcengine.Cen.BandwidthPackage>();
    for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        fooBandwidthPackage.Add(new Volcengine.Cen.BandwidthPackage($"fooBandwidthPackage-{range.Value}", new()
        {
            LocalGeographicRegionSetId = "China",
            PeerGeographicRegionSetId = "China",
            Bandwidth = 2,
            CenBandwidthPackageName = $"acc-test-cen-bp-{range.Value}",
            Description = "acc-test",
            BillingType = "PrePaid",
            PeriodUnit = "Month",
            Period = 1,
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Cen.Inputs.BandwidthPackageTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        }));
    }
    var fooBandwidthPackages = Volcengine.Cen.BandwidthPackages.Invoke(new()
    {
        Ids = fooBandwidthPackage.Select(__item => __item.Id).ToList(),
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cen.BandwidthPackage;
import com.pulumi.volcengine.cen.BandwidthPackageArgs;
import com.pulumi.volcengine.cen.inputs.BandwidthPackageTagArgs;
import com.pulumi.volcengine.cen.CenFunctions;
import com.pulumi.volcengine.cen.inputs.BandwidthPackagesArgs;
import com.pulumi.codegen.internal.KeyedValue;
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) {
        for (var i = 0; i < 2; i++) {
            new BandwidthPackage("fooBandwidthPackage-" + i, BandwidthPackageArgs.builder()            
                .localGeographicRegionSetId("China")
                .peerGeographicRegionSetId("China")
                .bandwidth(2)
                .cenBandwidthPackageName(String.format("acc-test-cen-bp-%s", range.value()))
                .description("acc-test")
                .billingType("PrePaid")
                .periodUnit("Month")
                .period(1)
                .projectName("default")
                .tags(BandwidthPackageTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
        
}
        final var fooBandwidthPackages = CenFunctions.BandwidthPackages(BandwidthPackagesArgs.builder()
            .ids(fooBandwidthPackage.stream().map(element -> element.id()).collect(toList()))
            .build());
    }
}
Coming soon!
Using BandwidthPackages
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 bandwidthPackages(args: BandwidthPackagesArgs, opts?: InvokeOptions): Promise<BandwidthPackagesResult>
function bandwidthPackagesOutput(args: BandwidthPackagesOutputArgs, opts?: InvokeOptions): Output<BandwidthPackagesResult>def bandwidth_packages(cen_bandwidth_package_names: Optional[Sequence[str]] = None,
                       cen_id: Optional[str] = None,
                       ids: Optional[Sequence[str]] = None,
                       local_geographic_region_set_id: Optional[str] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       peer_geographic_region_set_id: Optional[str] = None,
                       tags: Optional[Sequence[BandwidthPackagesTag]] = None,
                       opts: Optional[InvokeOptions] = None) -> BandwidthPackagesResult
def bandwidth_packages_output(cen_bandwidth_package_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       cen_id: Optional[pulumi.Input[str]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       local_geographic_region_set_id: Optional[pulumi.Input[str]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       peer_geographic_region_set_id: Optional[pulumi.Input[str]] = None,
                       tags: Optional[pulumi.Input[Sequence[pulumi.Input[BandwidthPackagesTagArgs]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[BandwidthPackagesResult]func BandwidthPackages(ctx *Context, args *BandwidthPackagesArgs, opts ...InvokeOption) (*BandwidthPackagesResult, error)
func BandwidthPackagesOutput(ctx *Context, args *BandwidthPackagesOutputArgs, opts ...InvokeOption) BandwidthPackagesResultOutputpublic static class BandwidthPackages 
{
    public static Task<BandwidthPackagesResult> InvokeAsync(BandwidthPackagesArgs args, InvokeOptions? opts = null)
    public static Output<BandwidthPackagesResult> Invoke(BandwidthPackagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<BandwidthPackagesResult> bandwidthPackages(BandwidthPackagesArgs args, InvokeOptions options)
public static Output<BandwidthPackagesResult> bandwidthPackages(BandwidthPackagesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:cen:BandwidthPackages
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CenBandwidth List<string>Package Names 
- A list of cen bandwidth package names.
- CenId string
- A cen id.
- Ids List<string>
- A list of cen bandwidth package IDs.
- LocalGeographic stringRegion Set Id 
- A local geographic region set id.
- NameRegex string
- A Name Regex of cen bandwidth package.
- OutputFile string
- File name where to save data source results.
- PeerGeographic stringRegion Set Id 
- A peer geographic region set id.
- 
List<BandwidthPackages Tag> 
- Tags.
- CenBandwidth []stringPackage Names 
- A list of cen bandwidth package names.
- CenId string
- A cen id.
- Ids []string
- A list of cen bandwidth package IDs.
- LocalGeographic stringRegion Set Id 
- A local geographic region set id.
- NameRegex string
- A Name Regex of cen bandwidth package.
- OutputFile string
- File name where to save data source results.
- PeerGeographic stringRegion Set Id 
- A peer geographic region set id.
- 
[]BandwidthPackages Tag 
- Tags.
- cenBandwidth List<String>Package Names 
- A list of cen bandwidth package names.
- cenId String
- A cen id.
- ids List<String>
- A list of cen bandwidth package IDs.
- localGeographic StringRegion Set Id 
- A local geographic region set id.
- nameRegex String
- A Name Regex of cen bandwidth package.
- outputFile String
- File name where to save data source results.
- peerGeographic StringRegion Set Id 
- A peer geographic region set id.
- 
List<BandwidthPackages Tag> 
- Tags.
- cenBandwidth string[]Package Names 
- A list of cen bandwidth package names.
- cenId string
- A cen id.
- ids string[]
- A list of cen bandwidth package IDs.
- localGeographic stringRegion Set Id 
- A local geographic region set id.
- nameRegex string
- A Name Regex of cen bandwidth package.
- outputFile string
- File name where to save data source results.
- peerGeographic stringRegion Set Id 
- A peer geographic region set id.
- 
BandwidthPackages Tag[] 
- Tags.
- cen_bandwidth_ Sequence[str]package_ names 
- A list of cen bandwidth package names.
- cen_id str
- A cen id.
- ids Sequence[str]
- A list of cen bandwidth package IDs.
- local_geographic_ strregion_ set_ id 
- A local geographic region set id.
- name_regex str
- A Name Regex of cen bandwidth package.
- output_file str
- File name where to save data source results.
- peer_geographic_ strregion_ set_ id 
- A peer geographic region set id.
- 
Sequence[BandwidthPackages Tag] 
- Tags.
- cenBandwidth List<String>Package Names 
- A list of cen bandwidth package names.
- cenId String
- A cen id.
- ids List<String>
- A list of cen bandwidth package IDs.
- localGeographic StringRegion Set Id 
- A local geographic region set id.
- nameRegex String
- A Name Regex of cen bandwidth package.
- outputFile String
- File name where to save data source results.
- peerGeographic StringRegion Set Id 
- A peer geographic region set id.
- List<Property Map>
- Tags.
BandwidthPackages Result
The following output properties are available:
- BandwidthPackages List<BandwidthPackages Bandwidth Package> 
- The collection of cen bandwidth package query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of cen bandwidth package query.
- CenBandwidth List<string>Package Names 
- CenId string
- Ids List<string>
- LocalGeographic stringRegion Set Id 
- The local geographic region set id of the cen bandwidth package.
- NameRegex string
- OutputFile string
- PeerGeographic stringRegion Set Id 
- The peer geographic region set id of the cen bandwidth package.
- 
List<BandwidthPackages Tag> 
- Tags.
- BandwidthPackages []BandwidthPackages Bandwidth Package 
- The collection of cen bandwidth package query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of cen bandwidth package query.
- CenBandwidth []stringPackage Names 
- CenId string
- Ids []string
- LocalGeographic stringRegion Set Id 
- The local geographic region set id of the cen bandwidth package.
- NameRegex string
- OutputFile string
- PeerGeographic stringRegion Set Id 
- The peer geographic region set id of the cen bandwidth package.
- 
[]BandwidthPackages Tag 
- Tags.
- bandwidthPackages List<BandwidthPackages Bandwidth Package> 
- The collection of cen bandwidth package query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Integer
- The total count of cen bandwidth package query.
- cenBandwidth List<String>Package Names 
- cenId String
- ids List<String>
- localGeographic StringRegion Set Id 
- The local geographic region set id of the cen bandwidth package.
- nameRegex String
- outputFile String
- peerGeographic StringRegion Set Id 
- The peer geographic region set id of the cen bandwidth package.
- 
List<BandwidthPackages Tag> 
- Tags.
- bandwidthPackages BandwidthPackages Bandwidth Package[] 
- The collection of cen bandwidth package query.
- id string
- The provider-assigned unique ID for this managed resource.
- totalCount number
- The total count of cen bandwidth package query.
- cenBandwidth string[]Package Names 
- cenId string
- ids string[]
- localGeographic stringRegion Set Id 
- The local geographic region set id of the cen bandwidth package.
- nameRegex string
- outputFile string
- peerGeographic stringRegion Set Id 
- The peer geographic region set id of the cen bandwidth package.
- 
BandwidthPackages Tag[] 
- Tags.
- bandwidth_packages Sequence[BandwidthPackages Bandwidth Package] 
- The collection of cen bandwidth package query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_count int
- The total count of cen bandwidth package query.
- cen_bandwidth_ Sequence[str]package_ names 
- cen_id str
- ids Sequence[str]
- local_geographic_ strregion_ set_ id 
- The local geographic region set id of the cen bandwidth package.
- name_regex str
- output_file str
- peer_geographic_ strregion_ set_ id 
- The peer geographic region set id of the cen bandwidth package.
- 
Sequence[BandwidthPackages Tag] 
- Tags.
- bandwidthPackages List<Property Map>
- The collection of cen bandwidth package query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Number
- The total count of cen bandwidth package query.
- cenBandwidth List<String>Package Names 
- cenId String
- ids List<String>
- localGeographic StringRegion Set Id 
- The local geographic region set id of the cen bandwidth package.
- nameRegex String
- outputFile String
- peerGeographic StringRegion Set Id 
- The peer geographic region set id of the cen bandwidth package.
- List<Property Map>
- Tags.
Supporting Types
BandwidthPackagesBandwidthPackage   
- AccountId string
- The account ID of the cen bandwidth package.
- Bandwidth int
- The bandwidth of the cen bandwidth package.
- BillingType string
- The billing type of the cen bandwidth package.
- BusinessStatus string
- The business status of the cen bandwidth package.
- CenBandwidth stringPackage Id 
- The ID of the cen bandwidth package.
- CenBandwidth stringPackage Name 
- The name of the cen bandwidth package.
- CenIds List<string>
- The cen IDs of the bandwidth package.
- CreationTime string
- The create time of the cen bandwidth package.
- DeletedTime string
- The deleted time of the cen bandwidth package.
- Description string
- The description of the cen bandwidth package.
- ExpiredTime string
- The expired time of the cen bandwidth package.
- Id string
- The ID of the cen bandwidth package.
- LocalGeographic stringRegion Set Id 
- A local geographic region set id.
- PeerGeographic stringRegion Set Id 
- A peer geographic region set id.
- ProjectName string
- The ProjectName of the cen bandwidth package.
- RemainingBandwidth int
- The remain bandwidth of the cen bandwidth package.
- Status string
- The status of the cen bandwidth package.
- 
List<BandwidthPackages Bandwidth Package Tag> 
- Tags.
- UpdateTime string
- The update time of the cen bandwidth package.
- AccountId string
- The account ID of the cen bandwidth package.
- Bandwidth int
- The bandwidth of the cen bandwidth package.
- BillingType string
- The billing type of the cen bandwidth package.
- BusinessStatus string
- The business status of the cen bandwidth package.
- CenBandwidth stringPackage Id 
- The ID of the cen bandwidth package.
- CenBandwidth stringPackage Name 
- The name of the cen bandwidth package.
- CenIds []string
- The cen IDs of the bandwidth package.
- CreationTime string
- The create time of the cen bandwidth package.
- DeletedTime string
- The deleted time of the cen bandwidth package.
- Description string
- The description of the cen bandwidth package.
- ExpiredTime string
- The expired time of the cen bandwidth package.
- Id string
- The ID of the cen bandwidth package.
- LocalGeographic stringRegion Set Id 
- A local geographic region set id.
- PeerGeographic stringRegion Set Id 
- A peer geographic region set id.
- ProjectName string
- The ProjectName of the cen bandwidth package.
- RemainingBandwidth int
- The remain bandwidth of the cen bandwidth package.
- Status string
- The status of the cen bandwidth package.
- 
[]BandwidthPackages Bandwidth Package Tag 
- Tags.
- UpdateTime string
- The update time of the cen bandwidth package.
- accountId String
- The account ID of the cen bandwidth package.
- bandwidth Integer
- The bandwidth of the cen bandwidth package.
- billingType String
- The billing type of the cen bandwidth package.
- businessStatus String
- The business status of the cen bandwidth package.
- cenBandwidth StringPackage Id 
- The ID of the cen bandwidth package.
- cenBandwidth StringPackage Name 
- The name of the cen bandwidth package.
- cenIds List<String>
- The cen IDs of the bandwidth package.
- creationTime String
- The create time of the cen bandwidth package.
- deletedTime String
- The deleted time of the cen bandwidth package.
- description String
- The description of the cen bandwidth package.
- expiredTime String
- The expired time of the cen bandwidth package.
- id String
- The ID of the cen bandwidth package.
- localGeographic StringRegion Set Id 
- A local geographic region set id.
- peerGeographic StringRegion Set Id 
- A peer geographic region set id.
- projectName String
- The ProjectName of the cen bandwidth package.
- remainingBandwidth Integer
- The remain bandwidth of the cen bandwidth package.
- status String
- The status of the cen bandwidth package.
- 
List<BandwidthPackages Bandwidth Package Tag> 
- Tags.
- updateTime String
- The update time of the cen bandwidth package.
- accountId string
- The account ID of the cen bandwidth package.
- bandwidth number
- The bandwidth of the cen bandwidth package.
- billingType string
- The billing type of the cen bandwidth package.
- businessStatus string
- The business status of the cen bandwidth package.
- cenBandwidth stringPackage Id 
- The ID of the cen bandwidth package.
- cenBandwidth stringPackage Name 
- The name of the cen bandwidth package.
- cenIds string[]
- The cen IDs of the bandwidth package.
- creationTime string
- The create time of the cen bandwidth package.
- deletedTime string
- The deleted time of the cen bandwidth package.
- description string
- The description of the cen bandwidth package.
- expiredTime string
- The expired time of the cen bandwidth package.
- id string
- The ID of the cen bandwidth package.
- localGeographic stringRegion Set Id 
- A local geographic region set id.
- peerGeographic stringRegion Set Id 
- A peer geographic region set id.
- projectName string
- The ProjectName of the cen bandwidth package.
- remainingBandwidth number
- The remain bandwidth of the cen bandwidth package.
- status string
- The status of the cen bandwidth package.
- 
BandwidthPackages Bandwidth Package Tag[] 
- Tags.
- updateTime string
- The update time of the cen bandwidth package.
- account_id str
- The account ID of the cen bandwidth package.
- bandwidth int
- The bandwidth of the cen bandwidth package.
- billing_type str
- The billing type of the cen bandwidth package.
- business_status str
- The business status of the cen bandwidth package.
- cen_bandwidth_ strpackage_ id 
- The ID of the cen bandwidth package.
- cen_bandwidth_ strpackage_ name 
- The name of the cen bandwidth package.
- cen_ids Sequence[str]
- The cen IDs of the bandwidth package.
- creation_time str
- The create time of the cen bandwidth package.
- deleted_time str
- The deleted time of the cen bandwidth package.
- description str
- The description of the cen bandwidth package.
- expired_time str
- The expired time of the cen bandwidth package.
- id str
- The ID of the cen bandwidth package.
- local_geographic_ strregion_ set_ id 
- A local geographic region set id.
- peer_geographic_ strregion_ set_ id 
- A peer geographic region set id.
- project_name str
- The ProjectName of the cen bandwidth package.
- remaining_bandwidth int
- The remain bandwidth of the cen bandwidth package.
- status str
- The status of the cen bandwidth package.
- 
Sequence[BandwidthPackages Bandwidth Package Tag] 
- Tags.
- update_time str
- The update time of the cen bandwidth package.
- accountId String
- The account ID of the cen bandwidth package.
- bandwidth Number
- The bandwidth of the cen bandwidth package.
- billingType String
- The billing type of the cen bandwidth package.
- businessStatus String
- The business status of the cen bandwidth package.
- cenBandwidth StringPackage Id 
- The ID of the cen bandwidth package.
- cenBandwidth StringPackage Name 
- The name of the cen bandwidth package.
- cenIds List<String>
- The cen IDs of the bandwidth package.
- creationTime String
- The create time of the cen bandwidth package.
- deletedTime String
- The deleted time of the cen bandwidth package.
- description String
- The description of the cen bandwidth package.
- expiredTime String
- The expired time of the cen bandwidth package.
- id String
- The ID of the cen bandwidth package.
- localGeographic StringRegion Set Id 
- A local geographic region set id.
- peerGeographic StringRegion Set Id 
- A peer geographic region set id.
- projectName String
- The ProjectName of the cen bandwidth package.
- remainingBandwidth Number
- The remain bandwidth of the cen bandwidth package.
- status String
- The status of the cen bandwidth package.
- List<Property Map>
- Tags.
- updateTime String
- The update time of the cen bandwidth package.
BandwidthPackagesBandwidthPackageTag    
BandwidthPackagesTag  
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.