Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.bandwidth_package.BandwidthPackages
Explore with Pulumi AI
Use this data source to query detailed information of 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.Bandwidth_package.BandwidthPackage>();
for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
{
var range = new { Value = rangeIndex };
fooBandwidthPackage.Add(new Volcengine.Bandwidth_package.BandwidthPackage($"fooBandwidthPackage-{range.Value}", new()
{
BandwidthPackageName = "acc-test-bp",
BillingType = "PostPaidByBandwidth",
Isp = "BGP",
Description = "acc-test",
Bandwidth = 2,
Protocol = "IPv4",
SecurityProtectionTypes = new[]
{
"AntiDDoS_Enhanced",
},
Tags = new[]
{
new Volcengine.Bandwidth_package.Inputs.BandwidthPackageTagArgs
{
Key = "k1",
Value = "v1",
},
},
}));
}
var fooBandwidthPackages = Volcengine.Bandwidth_package.BandwidthPackages.Invoke(new()
{
Ids = fooBandwidthPackage.Select(__item => __item.Id).ToList(),
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/bandwidth_package"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
var fooBandwidthPackage []*bandwidth_package.BandwidthPackage
for index := 0; index < 2; index++ {
key0 := index
_ := index
__res, err := bandwidth_package.NewBandwidthPackage(ctx, fmt.Sprintf("fooBandwidthPackage-%v", key0), &bandwidth_package.BandwidthPackageArgs{
BandwidthPackageName: pulumi.String("acc-test-bp"),
BillingType: pulumi.String("PostPaidByBandwidth"),
Isp: pulumi.String("BGP"),
Description: pulumi.String("acc-test"),
Bandwidth: pulumi.Int(2),
Protocol: pulumi.String("IPv4"),
SecurityProtectionTypes: pulumi.StringArray{
pulumi.String("AntiDDoS_Enhanced"),
},
Tags: bandwidth_package.BandwidthPackageTagArray{
&bandwidth_package.BandwidthPackageTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
fooBandwidthPackage = append(fooBandwidthPackage, __res)
}
_ = bandwidth_package.BandwidthPackagesOutput(ctx, bandwidth_package.BandwidthPackagesOutputArgs{
Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:bandwidth_package-bandwidthPackages:BandwidthPackages.pp:18,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.bandwidth_package.BandwidthPackage;
import com.pulumi.volcengine.bandwidth_package.BandwidthPackageArgs;
import com.pulumi.volcengine.bandwidth_package.inputs.BandwidthPackageTagArgs;
import com.pulumi.volcengine.bandwidth_package.Bandwidth_packageFunctions;
import com.pulumi.volcengine.bandwidth_package.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()
.bandwidthPackageName("acc-test-bp")
.billingType("PostPaidByBandwidth")
.isp("BGP")
.description("acc-test")
.bandwidth(2)
.protocol("IPv4")
.securityProtectionTypes("AntiDDoS_Enhanced")
.tags(BandwidthPackageTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
}
final var fooBandwidthPackages = Bandwidth_packageFunctions.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.bandwidth_package.BandwidthPackage(f"fooBandwidthPackage-{range['value']}",
bandwidth_package_name="acc-test-bp",
billing_type="PostPaidByBandwidth",
isp="BGP",
description="acc-test",
bandwidth=2,
protocol="IPv4",
security_protection_types=["AntiDDoS_Enhanced"],
tags=[volcengine.bandwidth_package.BandwidthPackageTagArgs(
key="k1",
value="v1",
)]))
foo_bandwidth_packages = volcengine.bandwidth_package.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.bandwidth_package.BandwidthPackage[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
fooBandwidthPackage.push(new volcengine.bandwidth_package.BandwidthPackage(`fooBandwidthPackage-${range.value}`, {
bandwidthPackageName: "acc-test-bp",
billingType: "PostPaidByBandwidth",
isp: "BGP",
description: "acc-test",
bandwidth: 2,
protocol: "IPv4",
securityProtectionTypes: ["AntiDDoS_Enhanced"],
tags: [{
key: "k1",
value: "v1",
}],
}));
}
const fooBandwidthPackages = volcengine.bandwidth_package.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(bandwidth_package_name: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
isp: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
security_protection_enabled: Optional[bool] = None,
tag_filters: Optional[Sequence[BandwidthPackagesTagFilter]] = None,
opts: Optional[InvokeOptions] = None) -> BandwidthPackagesResult
def bandwidth_packages_output(bandwidth_package_name: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
isp: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
protocol: Optional[pulumi.Input[str]] = None,
security_protection_enabled: Optional[pulumi.Input[bool]] = None,
tag_filters: Optional[pulumi.Input[Sequence[pulumi.Input[BandwidthPackagesTagFilterArgs]]]] = 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:bandwidth_package:BandwidthPackages
arguments:
# arguments dictionary
The following arguments are supported:
- Bandwidth
Package stringName - Shared bandwidth package name to be queried.
- Ids List<string>
- Shared bandwidth package instance ID to be queried.
- Isp string
- Line types for shared bandwidth packages.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the bandwidth package to be queried.
- Protocol string
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - Security
Protection boolEnabled - Security protection types for shared bandwidth packages.
- Tag
Filters List<BandwidthPackages Tag Filter> - A list of tags.
- Bandwidth
Package stringName - Shared bandwidth package name to be queried.
- Ids []string
- Shared bandwidth package instance ID to be queried.
- Isp string
- Line types for shared bandwidth packages.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the bandwidth package to be queried.
- Protocol string
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - Security
Protection boolEnabled - Security protection types for shared bandwidth packages.
- Tag
Filters []BandwidthPackages Tag Filter - A list of tags.
- bandwidth
Package StringName - Shared bandwidth package name to be queried.
- ids List<String>
- Shared bandwidth package instance ID to be queried.
- isp String
- Line types for shared bandwidth packages.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the bandwidth package to be queried.
- protocol String
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security
Protection BooleanEnabled - Security protection types for shared bandwidth packages.
- tag
Filters List<BandwidthPackages Tag Filter> - A list of tags.
- bandwidth
Package stringName - Shared bandwidth package name to be queried.
- ids string[]
- Shared bandwidth package instance ID to be queried.
- isp string
- Line types for shared bandwidth packages.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- project
Name string - The project name of the bandwidth package to be queried.
- protocol string
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security
Protection booleanEnabled - Security protection types for shared bandwidth packages.
- tag
Filters BandwidthPackages Tag Filter[] - A list of tags.
- bandwidth_
package_ strname - Shared bandwidth package name to be queried.
- ids Sequence[str]
- Shared bandwidth package instance ID to be queried.
- isp str
- Line types for shared bandwidth packages.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of the bandwidth package to be queried.
- protocol str
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security_
protection_ boolenabled - Security protection types for shared bandwidth packages.
- tag_
filters Sequence[BandwidthPackages Tag Filter] - A list of tags.
- bandwidth
Package StringName - Shared bandwidth package name to be queried.
- ids List<String>
- Shared bandwidth package instance ID to be queried.
- isp String
- Line types for shared bandwidth packages.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the bandwidth package to be queried.
- protocol String
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security
Protection BooleanEnabled - Security protection types for shared bandwidth packages.
- tag
Filters List<Property Map> - A list of tags.
BandwidthPackages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Packages
List<Bandwidth
Packages Package> - The collection of query.
- Total
Count int - The total count of query.
- Bandwidth
Package stringName - The name of the bandwidth package.
- Ids List<string>
- Isp string
- The line type.
- Name
Regex string - Output
File string - Project
Name string - The project name of the bandwidth package.
- Protocol string
- The protocol of the bandwidth package.
- Security
Protection boolEnabled - Tag
Filters List<BandwidthPackages Tag Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Packages
[]Bandwidth
Packages Package - The collection of query.
- Total
Count int - The total count of query.
- Bandwidth
Package stringName - The name of the bandwidth package.
- Ids []string
- Isp string
- The line type.
- Name
Regex string - Output
File string - Project
Name string - The project name of the bandwidth package.
- Protocol string
- The protocol of the bandwidth package.
- Security
Protection boolEnabled - Tag
Filters []BandwidthPackages Tag Filter
- id String
- The provider-assigned unique ID for this managed resource.
- packages
List<Bandwidth
Packages Package> - The collection of query.
- total
Count Integer - The total count of query.
- bandwidth
Package StringName - The name of the bandwidth package.
- ids List<String>
- isp String
- The line type.
- name
Regex String - output
File String - project
Name String - The project name of the bandwidth package.
- protocol String
- The protocol of the bandwidth package.
- security
Protection BooleanEnabled - tag
Filters List<BandwidthPackages Tag Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- packages
Bandwidth
Packages Package[] - The collection of query.
- total
Count number - The total count of query.
- bandwidth
Package stringName - The name of the bandwidth package.
- ids string[]
- isp string
- The line type.
- name
Regex string - output
File string - project
Name string - The project name of the bandwidth package.
- protocol string
- The protocol of the bandwidth package.
- security
Protection booleanEnabled - tag
Filters BandwidthPackages Tag Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- packages
Sequence[Bandwidth
Packages Package] - The collection of query.
- total_
count int - The total count of query.
- bandwidth_
package_ strname - The name of the bandwidth package.
- ids Sequence[str]
- isp str
- The line type.
- name_
regex str - output_
file str - project_
name str - The project name of the bandwidth package.
- protocol str
- The protocol of the bandwidth package.
- security_
protection_ boolenabled - tag_
filters Sequence[BandwidthPackages Tag Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- packages List<Property Map>
- The collection of query.
- total
Count Number - The total count of query.
- bandwidth
Package StringName - The name of the bandwidth package.
- ids List<String>
- isp String
- The line type.
- name
Regex String - output
File String - project
Name String - The project name of the bandwidth package.
- protocol String
- The protocol of the bandwidth package.
- security
Protection BooleanEnabled - tag
Filters List<Property Map>
Supporting Types
BandwidthPackagesPackage
- Bandwidth int
- The bandwidth of the bandwidth package.
- Bandwidth
Package stringId - The id of the bandwidth package.
- Bandwidth
Package stringName - Shared bandwidth package name to be queried.
- Billing
Type string - The billing type of the bandwidth package.
- Business
Status string - The business status of the bandwidth package.
- Creation
Time string - The creation time of the bandwidth package.
- Deleted
Time string - The deleted time of the bandwidth package.
- Eip
Addresses List<BandwidthPackages Package Eip Address> - List of public IP information included in the shared bandwidth package.
- Expired
Time string - The expiration time of the bandwidth package.
- Id string
- The id of the bandwidth package.
- Isp string
- Line types for shared bandwidth packages.
- Overdue
Time string - The overdue time of the bandwidth package.
- Project
Name string - The project name of the bandwidth package to be queried.
- Protocol string
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - Security
Protection List<string>Types - Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value:
AntiDDoS_Enhanced
. - Status string
- The status of the bandwidth package.
- List<Bandwidth
Packages Package Tag> - Tags.
- Update
Time string - The update time of the bandwidth package.
- Bandwidth int
- The bandwidth of the bandwidth package.
- Bandwidth
Package stringId - The id of the bandwidth package.
- Bandwidth
Package stringName - Shared bandwidth package name to be queried.
- Billing
Type string - The billing type of the bandwidth package.
- Business
Status string - The business status of the bandwidth package.
- Creation
Time string - The creation time of the bandwidth package.
- Deleted
Time string - The deleted time of the bandwidth package.
- Eip
Addresses []BandwidthPackages Package Eip Address - List of public IP information included in the shared bandwidth package.
- Expired
Time string - The expiration time of the bandwidth package.
- Id string
- The id of the bandwidth package.
- Isp string
- Line types for shared bandwidth packages.
- Overdue
Time string - The overdue time of the bandwidth package.
- Project
Name string - The project name of the bandwidth package to be queried.
- Protocol string
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - Security
Protection []stringTypes - Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value:
AntiDDoS_Enhanced
. - Status string
- The status of the bandwidth package.
- []Bandwidth
Packages Package Tag - Tags.
- Update
Time string - The update time of the bandwidth package.
- bandwidth Integer
- The bandwidth of the bandwidth package.
- bandwidth
Package StringId - The id of the bandwidth package.
- bandwidth
Package StringName - Shared bandwidth package name to be queried.
- billing
Type String - The billing type of the bandwidth package.
- business
Status String - The business status of the bandwidth package.
- creation
Time String - The creation time of the bandwidth package.
- deleted
Time String - The deleted time of the bandwidth package.
- eip
Addresses List<BandwidthPackages Package Eip Address> - List of public IP information included in the shared bandwidth package.
- expired
Time String - The expiration time of the bandwidth package.
- id String
- The id of the bandwidth package.
- isp String
- Line types for shared bandwidth packages.
- overdue
Time String - The overdue time of the bandwidth package.
- project
Name String - The project name of the bandwidth package to be queried.
- protocol String
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security
Protection List<String>Types - Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value:
AntiDDoS_Enhanced
. - status String
- The status of the bandwidth package.
- List<Bandwidth
Packages Package Tag> - Tags.
- update
Time String - The update time of the bandwidth package.
- bandwidth number
- The bandwidth of the bandwidth package.
- bandwidth
Package stringId - The id of the bandwidth package.
- bandwidth
Package stringName - Shared bandwidth package name to be queried.
- billing
Type string - The billing type of the bandwidth package.
- business
Status string - The business status of the bandwidth package.
- creation
Time string - The creation time of the bandwidth package.
- deleted
Time string - The deleted time of the bandwidth package.
- eip
Addresses BandwidthPackages Package Eip Address[] - List of public IP information included in the shared bandwidth package.
- expired
Time string - The expiration time of the bandwidth package.
- id string
- The id of the bandwidth package.
- isp string
- Line types for shared bandwidth packages.
- overdue
Time string - The overdue time of the bandwidth package.
- project
Name string - The project name of the bandwidth package to be queried.
- protocol string
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security
Protection string[]Types - Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value:
AntiDDoS_Enhanced
. - status string
- The status of the bandwidth package.
- Bandwidth
Packages Package Tag[] - Tags.
- update
Time string - The update time of the bandwidth package.
- bandwidth int
- The bandwidth of the bandwidth package.
- bandwidth_
package_ strid - The id of the bandwidth package.
- bandwidth_
package_ strname - Shared bandwidth package name to be queried.
- billing_
type str - The billing type of the bandwidth package.
- business_
status str - The business status of the bandwidth package.
- creation_
time str - The creation time of the bandwidth package.
- deleted_
time str - The deleted time of the bandwidth package.
- eip_
addresses Sequence[BandwidthPackages Package Eip Address] - List of public IP information included in the shared bandwidth package.
- expired_
time str - The expiration time of the bandwidth package.
- id str
- The id of the bandwidth package.
- isp str
- Line types for shared bandwidth packages.
- overdue_
time str - The overdue time of the bandwidth package.
- project_
name str - The project name of the bandwidth package to be queried.
- protocol str
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security_
protection_ Sequence[str]types - Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value:
AntiDDoS_Enhanced
. - status str
- The status of the bandwidth package.
- Sequence[Bandwidth
Packages Package Tag] - Tags.
- update_
time str - The update time of the bandwidth package.
- bandwidth Number
- The bandwidth of the bandwidth package.
- bandwidth
Package StringId - The id of the bandwidth package.
- bandwidth
Package StringName - Shared bandwidth package name to be queried.
- billing
Type String - The billing type of the bandwidth package.
- business
Status String - The business status of the bandwidth package.
- creation
Time String - The creation time of the bandwidth package.
- deleted
Time String - The deleted time of the bandwidth package.
- eip
Addresses List<Property Map> - List of public IP information included in the shared bandwidth package.
- expired
Time String - The expiration time of the bandwidth package.
- id String
- The id of the bandwidth package.
- isp String
- Line types for shared bandwidth packages.
- overdue
Time String - The overdue time of the bandwidth package.
- project
Name String - The project name of the bandwidth package to be queried.
- protocol String
- The IP protocol values for shared bandwidth packages are as follows:
IPv4
: IPv4 protocol.IPv6
: IPv6 protocol. - security
Protection List<String>Types - Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value:
AntiDDoS_Enhanced
. - status String
- The status of the bandwidth package.
- List<Property Map>
- Tags.
- update
Time String - The update time of the bandwidth package.
BandwidthPackagesPackageEipAddress
- Allocation
Id string - The id of the eip.
- Eip
Address string - The eip address.
- Allocation
Id string - The id of the eip.
- Eip
Address string - The eip address.
- allocation
Id String - The id of the eip.
- eip
Address String - The eip address.
- allocation
Id string - The id of the eip.
- eip
Address string - The eip address.
- allocation_
id str - The id of the eip.
- eip_
address str - The eip address.
- allocation
Id String - The id of the eip.
- eip
Address String - The eip address.
BandwidthPackagesPackageTag
BandwidthPackagesTagFilter
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.