GetBandwidthPackages

This data source provides CEN Bandwidth Packages available to the user.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var bwp = Output.Create(AliCloud.Cen.GetBandwidthPackages.InvokeAsync(new AliCloud.Cen.GetBandwidthPackagesArgs
        {
            InstanceId = "cen-id1",
            NameRegex = "^foo",
        }));
        this.FirstCenBandwidthPackageId = bwp.Apply(bwp => bwp.Packages[0].Id);
    }

    [Output("firstCenBandwidthPackageId")]
    public Output<string> FirstCenBandwidthPackageId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

bwp = alicloud.cen.get_bandwidth_packages(instance_id="cen-id1",
    name_regex="^foo")
pulumi.export("firstCenBandwidthPackageId", bwp.packages[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const bwp = pulumi.output(alicloud.cen.getBandwidthPackages({
    instanceId: "cen-id1",
    nameRegex: "^foo",
}, { async: true }));

export const firstCenBandwidthPackageId = bwp.packages[0].id;

Using GetBandwidthPackages

function getBandwidthPackages(args: GetBandwidthPackagesArgs, opts?: InvokeOptions): Promise<GetBandwidthPackagesResult>
function  get_bandwidth_packages(ids=None, instance_id=None, name_regex=None, output_file=None, opts=None)
func GetBandwidthPackages(ctx *Context, args *GetBandwidthPackagesArgs, opts ...InvokeOption) (*GetBandwidthPackagesResult, error)
public static class GetBandwidthPackages {
    public static Task<GetBandwidthPackagesResult> InvokeAsync(GetBandwidthPackagesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

Limit search to a list of specific CEN Bandwidth Package IDs.

InstanceId string

ID of a CEN instance.

NameRegex string

A regex string to filter CEN Bandwidth Package by name.

OutputFile string
Ids []string

Limit search to a list of specific CEN Bandwidth Package IDs.

InstanceId string

ID of a CEN instance.

NameRegex string

A regex string to filter CEN Bandwidth Package by name.

OutputFile string
ids string[]

Limit search to a list of specific CEN Bandwidth Package IDs.

instanceId string

ID of a CEN instance.

nameRegex string

A regex string to filter CEN Bandwidth Package by name.

outputFile string
ids List[str]

Limit search to a list of specific CEN Bandwidth Package IDs.

instance_id str

ID of a CEN instance.

name_regex str

A regex string to filter CEN Bandwidth Package by name.

output_file str

GetBandwidthPackages Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
Packages List<Pulumi.AliCloud.Cen.Outputs.GetBandwidthPackagesPackage>

A list of CEN bandwidth package. Each element contains the following attributes:

InstanceId string

ID of CEN instance that owns the CEN Bandwidth Package.

NameRegex string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
Packages []GetBandwidthPackagesPackage

A list of CEN bandwidth package. Each element contains the following attributes:

InstanceId string

ID of CEN instance that owns the CEN Bandwidth Package.

NameRegex string
OutputFile string
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
packages GetBandwidthPackagesPackage[]

A list of CEN bandwidth package. Each element contains the following attributes:

instanceId string

ID of CEN instance that owns the CEN Bandwidth Package.

nameRegex string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]
names List[str]
packages List[GetBandwidthPackagesPackage]

A list of CEN bandwidth package. Each element contains the following attributes:

instance_id str

ID of CEN instance that owns the CEN Bandwidth Package.

name_regex str
output_file str

Supporting Types

GetBandwidthPackagesPackage

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Bandwidth int

The bandwidth in Mbps of the CEN bandwidth package.

BandwidthPackageChargeType string

The billing method, including “POSTPAY” and “PREPAY”.

BusinessStatus string

Status of the CEN Bandwidth Package, including “Normal”, “FinancialLocked” and “SecurityLocked”.

CreationTime string

Creation time of the CEN bandwidth package.

Description string

Description of the CEN Bandwidth Package.

GeographicRegionAId string

Region ID of the interconnected regions.

GeographicRegionBId string

Region ID of the interconnected regions.

Id string

ID of the CEN Bandwidth Package.

InstanceId string

ID of a CEN instance.

Name string

Name of the CEN Bandwidth Package.

Status string

Status of the CEN Bandwidth Package in CEN instance, including “Idle” and “InUse”.

Bandwidth int

The bandwidth in Mbps of the CEN bandwidth package.

BandwidthPackageChargeType string

The billing method, including “POSTPAY” and “PREPAY”.

BusinessStatus string

Status of the CEN Bandwidth Package, including “Normal”, “FinancialLocked” and “SecurityLocked”.

CreationTime string

Creation time of the CEN bandwidth package.

Description string

Description of the CEN Bandwidth Package.

GeographicRegionAId string

Region ID of the interconnected regions.

GeographicRegionBId string

Region ID of the interconnected regions.

Id string

ID of the CEN Bandwidth Package.

InstanceId string

ID of a CEN instance.

Name string

Name of the CEN Bandwidth Package.

Status string

Status of the CEN Bandwidth Package in CEN instance, including “Idle” and “InUse”.

bandwidth number

The bandwidth in Mbps of the CEN bandwidth package.

bandwidthPackageChargeType string

The billing method, including “POSTPAY” and “PREPAY”.

businessStatus string

Status of the CEN Bandwidth Package, including “Normal”, “FinancialLocked” and “SecurityLocked”.

creationTime string

Creation time of the CEN bandwidth package.

description string

Description of the CEN Bandwidth Package.

geographicRegionAId string

Region ID of the interconnected regions.

geographicRegionBId string

Region ID of the interconnected regions.

id string

ID of the CEN Bandwidth Package.

instanceId string

ID of a CEN instance.

name string

Name of the CEN Bandwidth Package.

status string

Status of the CEN Bandwidth Package in CEN instance, including “Idle” and “InUse”.

bandwidth float

The bandwidth in Mbps of the CEN bandwidth package.

bandwidthPackageChargeType str

The billing method, including “POSTPAY” and “PREPAY”.

business_status str

Status of the CEN Bandwidth Package, including “Normal”, “FinancialLocked” and “SecurityLocked”.

creation_time str

Creation time of the CEN bandwidth package.

description str

Description of the CEN Bandwidth Package.

geographicRegionAId str

Region ID of the interconnected regions.

geographicRegionBId str

Region ID of the interconnected regions.

id str

ID of the CEN Bandwidth Package.

instance_id str

ID of a CEN instance.

name str

Name of the CEN Bandwidth Package.

status str

Status of the CEN Bandwidth Package in CEN instance, including “Idle” and “InUse”.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.