1. Packages
  2. Volcengine
  3. API Docs
  4. cen
  5. BandwidthPackages
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.cen.BandwidthPackages

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of cen bandwidth packages

    Example Usage

    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 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
    })
    }
    
    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());
    
        }
    }
    
    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])
    
    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),
    });
    

    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) BandwidthPackagesResultOutput
    public 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cen:BandwidthPackages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CenBandwidthPackageNames List<string>
    A list of cen bandwidth package names.
    CenId string
    A cen id.
    Ids List<string>
    A list of cen bandwidth package IDs.
    LocalGeographicRegionSetId string
    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.
    PeerGeographicRegionSetId string
    A peer geographic region set id.
    Tags List<BandwidthPackagesTag>
    Tags.
    CenBandwidthPackageNames []string
    A list of cen bandwidth package names.
    CenId string
    A cen id.
    Ids []string
    A list of cen bandwidth package IDs.
    LocalGeographicRegionSetId string
    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.
    PeerGeographicRegionSetId string
    A peer geographic region set id.
    Tags []BandwidthPackagesTag
    Tags.
    cenBandwidthPackageNames List<String>
    A list of cen bandwidth package names.
    cenId String
    A cen id.
    ids List<String>
    A list of cen bandwidth package IDs.
    localGeographicRegionSetId String
    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.
    peerGeographicRegionSetId String
    A peer geographic region set id.
    tags List<BandwidthPackagesTag>
    Tags.
    cenBandwidthPackageNames string[]
    A list of cen bandwidth package names.
    cenId string
    A cen id.
    ids string[]
    A list of cen bandwidth package IDs.
    localGeographicRegionSetId string
    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.
    peerGeographicRegionSetId string
    A peer geographic region set id.
    tags BandwidthPackagesTag[]
    Tags.
    cen_bandwidth_package_names Sequence[str]
    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_region_set_id str
    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_region_set_id str
    A peer geographic region set id.
    tags Sequence[BandwidthPackagesTag]
    Tags.
    cenBandwidthPackageNames List<String>
    A list of cen bandwidth package names.
    cenId String
    A cen id.
    ids List<String>
    A list of cen bandwidth package IDs.
    localGeographicRegionSetId String
    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.
    peerGeographicRegionSetId String
    A peer geographic region set id.
    tags List<Property Map>
    Tags.

    BandwidthPackages Result

    The following output properties are available:

    BandwidthPackages List<BandwidthPackagesBandwidthPackage>
    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.
    CenBandwidthPackageNames List<string>
    CenId string
    Ids List<string>
    LocalGeographicRegionSetId string
    The local geographic region set id of the cen bandwidth package.
    NameRegex string
    OutputFile string
    PeerGeographicRegionSetId string
    The peer geographic region set id of the cen bandwidth package.
    Tags List<BandwidthPackagesTag>
    Tags.
    BandwidthPackages []BandwidthPackagesBandwidthPackage
    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.
    CenBandwidthPackageNames []string
    CenId string
    Ids []string
    LocalGeographicRegionSetId string
    The local geographic region set id of the cen bandwidth package.
    NameRegex string
    OutputFile string
    PeerGeographicRegionSetId string
    The peer geographic region set id of the cen bandwidth package.
    Tags []BandwidthPackagesTag
    Tags.
    bandwidthPackages List<BandwidthPackagesBandwidthPackage>
    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.
    cenBandwidthPackageNames List<String>
    cenId String
    ids List<String>
    localGeographicRegionSetId String
    The local geographic region set id of the cen bandwidth package.
    nameRegex String
    outputFile String
    peerGeographicRegionSetId String
    The peer geographic region set id of the cen bandwidth package.
    tags List<BandwidthPackagesTag>
    Tags.
    bandwidthPackages BandwidthPackagesBandwidthPackage[]
    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.
    cenBandwidthPackageNames string[]
    cenId string
    ids string[]
    localGeographicRegionSetId string
    The local geographic region set id of the cen bandwidth package.
    nameRegex string
    outputFile string
    peerGeographicRegionSetId string
    The peer geographic region set id of the cen bandwidth package.
    tags BandwidthPackagesTag[]
    Tags.
    bandwidth_packages Sequence[BandwidthPackagesBandwidthPackage]
    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_package_names Sequence[str]
    cen_id str
    ids Sequence[str]
    local_geographic_region_set_id str
    The local geographic region set id of the cen bandwidth package.
    name_regex str
    output_file str
    peer_geographic_region_set_id str
    The peer geographic region set id of the cen bandwidth package.
    tags Sequence[BandwidthPackagesTag]
    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.
    cenBandwidthPackageNames List<String>
    cenId String
    ids List<String>
    localGeographicRegionSetId String
    The local geographic region set id of the cen bandwidth package.
    nameRegex String
    outputFile String
    peerGeographicRegionSetId String
    The peer geographic region set id of the cen bandwidth package.
    tags 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.
    CenBandwidthPackageId string
    The ID of the cen bandwidth package.
    CenBandwidthPackageName string
    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.
    LocalGeographicRegionSetId string
    A local geographic region set id.
    PeerGeographicRegionSetId string
    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.
    Tags List<BandwidthPackagesBandwidthPackageTag>
    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.
    CenBandwidthPackageId string
    The ID of the cen bandwidth package.
    CenBandwidthPackageName string
    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.
    LocalGeographicRegionSetId string
    A local geographic region set id.
    PeerGeographicRegionSetId string
    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.
    Tags []BandwidthPackagesBandwidthPackageTag
    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.
    cenBandwidthPackageId String
    The ID of the cen bandwidth package.
    cenBandwidthPackageName String
    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.
    localGeographicRegionSetId String
    A local geographic region set id.
    peerGeographicRegionSetId String
    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.
    tags List<BandwidthPackagesBandwidthPackageTag>
    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.
    cenBandwidthPackageId string
    The ID of the cen bandwidth package.
    cenBandwidthPackageName string
    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.
    localGeographicRegionSetId string
    A local geographic region set id.
    peerGeographicRegionSetId string
    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.
    tags BandwidthPackagesBandwidthPackageTag[]
    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_package_id str
    The ID of the cen bandwidth package.
    cen_bandwidth_package_name str
    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_region_set_id str
    A local geographic region set id.
    peer_geographic_region_set_id str
    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.
    tags Sequence[BandwidthPackagesBandwidthPackageTag]
    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.
    cenBandwidthPackageId String
    The ID of the cen bandwidth package.
    cenBandwidthPackageName String
    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.
    localGeographicRegionSetId String
    A local geographic region set id.
    peerGeographicRegionSetId String
    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.
    tags List<Property Map>
    Tags.
    updateTime String
    The update time of the cen bandwidth package.

    BandwidthPackagesBandwidthPackageTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    BandwidthPackagesTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine