Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.cen.BandwidthPackages
Explore with Pulumi AI
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:
- Cen
Bandwidth List<string>Package Names - A list of cen bandwidth package names.
- Cen
Id string - A cen id.
- Ids List<string>
- A list of cen bandwidth package IDs.
- Local
Geographic stringRegion Set Id - A local geographic region set id.
- Name
Regex string - A Name Regex of cen bandwidth package.
- Output
File string - File name where to save data source results.
- Peer
Geographic stringRegion Set Id - A peer geographic region set id.
- List<Bandwidth
Packages Tag> - Tags.
- Cen
Bandwidth []stringPackage Names - A list of cen bandwidth package names.
- Cen
Id string - A cen id.
- Ids []string
- A list of cen bandwidth package IDs.
- Local
Geographic stringRegion Set Id - A local geographic region set id.
- Name
Regex string - A Name Regex of cen bandwidth package.
- Output
File string - File name where to save data source results.
- Peer
Geographic stringRegion Set Id - A peer geographic region set id.
- []Bandwidth
Packages Tag - Tags.
- cen
Bandwidth List<String>Package Names - A list of cen bandwidth package names.
- cen
Id String - A cen id.
- ids List<String>
- A list of cen bandwidth package IDs.
- local
Geographic StringRegion Set Id - A local geographic region set id.
- name
Regex String - A Name Regex of cen bandwidth package.
- output
File String - File name where to save data source results.
- peer
Geographic StringRegion Set Id - A peer geographic region set id.
- List<Bandwidth
Packages Tag> - Tags.
- cen
Bandwidth string[]Package Names - A list of cen bandwidth package names.
- cen
Id string - A cen id.
- ids string[]
- A list of cen bandwidth package IDs.
- local
Geographic stringRegion Set Id - A local geographic region set id.
- name
Regex string - A Name Regex of cen bandwidth package.
- output
File string - File name where to save data source results.
- peer
Geographic stringRegion Set Id - A peer geographic region set id.
- Bandwidth
Packages 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[Bandwidth
Packages Tag] - Tags.
- cen
Bandwidth List<String>Package Names - A list of cen bandwidth package names.
- cen
Id String - A cen id.
- ids List<String>
- A list of cen bandwidth package IDs.
- local
Geographic StringRegion Set Id - A local geographic region set id.
- name
Regex String - A Name Regex of cen bandwidth package.
- output
File String - File name where to save data source results.
- peer
Geographic StringRegion Set Id - A peer geographic region set id.
- List<Property Map>
- Tags.
BandwidthPackages Result
The following output properties are available:
- Bandwidth
Packages List<BandwidthPackages Bandwidth Package> - The collection of cen bandwidth package query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of cen bandwidth package query.
- Cen
Bandwidth List<string>Package Names - Cen
Id string - Ids List<string>
- Local
Geographic stringRegion Set Id - The local geographic region set id of the cen bandwidth package.
- Name
Regex string - Output
File string - Peer
Geographic stringRegion Set Id - The peer geographic region set id of the cen bandwidth package.
- List<Bandwidth
Packages Tag> - Tags.
- Bandwidth
Packages []BandwidthPackages Bandwidth Package - The collection of cen bandwidth package query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of cen bandwidth package query.
- Cen
Bandwidth []stringPackage Names - Cen
Id string - Ids []string
- Local
Geographic stringRegion Set Id - The local geographic region set id of the cen bandwidth package.
- Name
Regex string - Output
File string - Peer
Geographic stringRegion Set Id - The peer geographic region set id of the cen bandwidth package.
- []Bandwidth
Packages Tag - Tags.
- bandwidth
Packages List<BandwidthPackages Bandwidth Package> - The collection of cen bandwidth package query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of cen bandwidth package query.
- cen
Bandwidth List<String>Package Names - cen
Id String - ids List<String>
- local
Geographic StringRegion Set Id - The local geographic region set id of the cen bandwidth package.
- name
Regex String - output
File String - peer
Geographic StringRegion Set Id - The peer geographic region set id of the cen bandwidth package.
- List<Bandwidth
Packages Tag> - Tags.
- bandwidth
Packages BandwidthPackages Bandwidth Package[] - The collection of cen bandwidth package query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of cen bandwidth package query.
- cen
Bandwidth string[]Package Names - cen
Id string - ids string[]
- local
Geographic stringRegion Set Id - The local geographic region set id of the cen bandwidth package.
- name
Regex string - output
File string - peer
Geographic stringRegion Set Id - The peer geographic region set id of the cen bandwidth package.
- Bandwidth
Packages 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[Bandwidth
Packages Tag] - Tags.
- bandwidth
Packages List<Property Map> - The collection of cen bandwidth package query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of cen bandwidth package query.
- cen
Bandwidth List<String>Package Names - cen
Id String - ids List<String>
- local
Geographic StringRegion Set Id - The local geographic region set id of the cen bandwidth package.
- name
Regex String - output
File String - peer
Geographic StringRegion Set Id - The peer geographic region set id of the cen bandwidth package.
- List<Property Map>
- Tags.
Supporting Types
BandwidthPackagesBandwidthPackage
- Account
Id string - The account ID of the cen bandwidth package.
- Bandwidth int
- The bandwidth of the cen bandwidth package.
- Billing
Type string - The billing type of the cen bandwidth package.
- Business
Status string - The business status of the cen bandwidth package.
- Cen
Bandwidth stringPackage Id - The ID of the cen bandwidth package.
- Cen
Bandwidth stringPackage Name - The name of the cen bandwidth package.
- Cen
Ids List<string> - The cen IDs of the bandwidth package.
- Creation
Time string - The create time of the cen bandwidth package.
- Deleted
Time string - The deleted time of the cen bandwidth package.
- Description string
- The description of the cen bandwidth package.
- Expired
Time string - The expired time of the cen bandwidth package.
- Id string
- The ID of the cen bandwidth package.
- Local
Geographic stringRegion Set Id - A local geographic region set id.
- Peer
Geographic stringRegion Set Id - A peer geographic region set id.
- Project
Name string - The ProjectName of the cen bandwidth package.
- Remaining
Bandwidth int - The remain bandwidth of the cen bandwidth package.
- Status string
- The status of the cen bandwidth package.
- List<Bandwidth
Packages Bandwidth Package Tag> - Tags.
- Update
Time string - The update time of the cen bandwidth package.
- Account
Id string - The account ID of the cen bandwidth package.
- Bandwidth int
- The bandwidth of the cen bandwidth package.
- Billing
Type string - The billing type of the cen bandwidth package.
- Business
Status string - The business status of the cen bandwidth package.
- Cen
Bandwidth stringPackage Id - The ID of the cen bandwidth package.
- Cen
Bandwidth stringPackage Name - The name of the cen bandwidth package.
- Cen
Ids []string - The cen IDs of the bandwidth package.
- Creation
Time string - The create time of the cen bandwidth package.
- Deleted
Time string - The deleted time of the cen bandwidth package.
- Description string
- The description of the cen bandwidth package.
- Expired
Time string - The expired time of the cen bandwidth package.
- Id string
- The ID of the cen bandwidth package.
- Local
Geographic stringRegion Set Id - A local geographic region set id.
- Peer
Geographic stringRegion Set Id - A peer geographic region set id.
- Project
Name string - The ProjectName of the cen bandwidth package.
- Remaining
Bandwidth int - The remain bandwidth of the cen bandwidth package.
- Status string
- The status of the cen bandwidth package.
- []Bandwidth
Packages Bandwidth Package Tag - Tags.
- Update
Time string - The update time of the cen bandwidth package.
- account
Id String - The account ID of the cen bandwidth package.
- bandwidth Integer
- The bandwidth of the cen bandwidth package.
- billing
Type String - The billing type of the cen bandwidth package.
- business
Status String - The business status of the cen bandwidth package.
- cen
Bandwidth StringPackage Id - The ID of the cen bandwidth package.
- cen
Bandwidth StringPackage Name - The name of the cen bandwidth package.
- cen
Ids List<String> - The cen IDs of the bandwidth package.
- creation
Time String - The create time of the cen bandwidth package.
- deleted
Time String - The deleted time of the cen bandwidth package.
- description String
- The description of the cen bandwidth package.
- expired
Time String - The expired time of the cen bandwidth package.
- id String
- The ID of the cen bandwidth package.
- local
Geographic StringRegion Set Id - A local geographic region set id.
- peer
Geographic StringRegion Set Id - A peer geographic region set id.
- project
Name String - The ProjectName of the cen bandwidth package.
- remaining
Bandwidth Integer - The remain bandwidth of the cen bandwidth package.
- status String
- The status of the cen bandwidth package.
- List<Bandwidth
Packages Bandwidth Package Tag> - Tags.
- update
Time String - The update time of the cen bandwidth package.
- account
Id string - The account ID of the cen bandwidth package.
- bandwidth number
- The bandwidth of the cen bandwidth package.
- billing
Type string - The billing type of the cen bandwidth package.
- business
Status string - The business status of the cen bandwidth package.
- cen
Bandwidth stringPackage Id - The ID of the cen bandwidth package.
- cen
Bandwidth stringPackage Name - The name of the cen bandwidth package.
- cen
Ids string[] - The cen IDs of the bandwidth package.
- creation
Time string - The create time of the cen bandwidth package.
- deleted
Time string - The deleted time of the cen bandwidth package.
- description string
- The description of the cen bandwidth package.
- expired
Time string - The expired time of the cen bandwidth package.
- id string
- The ID of the cen bandwidth package.
- local
Geographic stringRegion Set Id - A local geographic region set id.
- peer
Geographic stringRegion Set Id - A peer geographic region set id.
- project
Name string - The ProjectName of the cen bandwidth package.
- remaining
Bandwidth number - The remain bandwidth of the cen bandwidth package.
- status string
- The status of the cen bandwidth package.
- Bandwidth
Packages Bandwidth Package Tag[] - Tags.
- update
Time 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[Bandwidth
Packages Bandwidth Package Tag] - Tags.
- update_
time str - The update time of the cen bandwidth package.
- account
Id String - The account ID of the cen bandwidth package.
- bandwidth Number
- The bandwidth of the cen bandwidth package.
- billing
Type String - The billing type of the cen bandwidth package.
- business
Status String - The business status of the cen bandwidth package.
- cen
Bandwidth StringPackage Id - The ID of the cen bandwidth package.
- cen
Bandwidth StringPackage Name - The name of the cen bandwidth package.
- cen
Ids List<String> - The cen IDs of the bandwidth package.
- creation
Time String - The create time of the cen bandwidth package.
- deleted
Time String - The deleted time of the cen bandwidth package.
- description String
- The description of the cen bandwidth package.
- expired
Time String - The expired time of the cen bandwidth package.
- id String
- The ID of the cen bandwidth package.
- local
Geographic StringRegion Set Id - A local geographic region set id.
- peer
Geographic StringRegion Set Id - A peer geographic region set id.
- project
Name String - The ProjectName of the cen bandwidth package.
- remaining
Bandwidth Number - The remain bandwidth of the cen bandwidth package.
- status String
- The status of the cen bandwidth package.
- List<Property Map>
- Tags.
- update
Time 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
volcengine
Terraform Provider.