GetCommonBandwidthPackages

This data source provides a list of Common Bandwidth Packages owned by an Alibaba Cloud account.

NOTE: Available in 1.36.0+.

Public ip addresses Block

The public ip addresses mapping supports the following:

  • ip_address - The address of the EIP.
  • allocation_id - The ID of the EIP instance.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var fooCommonBandwithPackage = new AliCloud.Vpc.CommonBandwithPackage("fooCommonBandwithPackage", new AliCloud.Vpc.CommonBandwithPackageArgs
        {
            Bandwidth = 2,
            Description = "tf-testAcc-CommonBandwidthPackage",
        });
        var fooCommonBandwidthPackages = fooCommonBandwithPackage.Id.Apply(id => AliCloud.Vpc.GetCommonBandwidthPackages.InvokeAsync(new AliCloud.Vpc.GetCommonBandwidthPackagesArgs
        {
            Ids = 
            {
                id,
            },
            NameRegex = "^tf-testAcc.*",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

foo_common_bandwith_package = alicloud.vpc.CommonBandwithPackage("fooCommonBandwithPackage",
    bandwidth="2",
    description="tf-testAcc-CommonBandwidthPackage")
foo_common_bandwidth_packages = foo_common_bandwith_package.id.apply(lambda id: alicloud.vpc.get_common_bandwidth_packages(ids=[id],
    name_regex="^tf-testAcc.*"))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const fooCommonBandwithPackage = new alicloud.vpc.CommonBandwithPackage("foo", {
    bandwidth: 2,
    description: "tf-testAcc-CommonBandwidthPackage",
});
const fooCommonBandwidthPackages = fooCommonBandwithPackage.id.apply(id => alicloud.vpc.getCommonBandwidthPackages({
    ids: [id],
    nameRegex: "^tf-testAcc.*",
}, { async: true }));

Using GetCommonBandwidthPackages

function getCommonBandwidthPackages(args: GetCommonBandwidthPackagesArgs, opts?: InvokeOptions): Promise<GetCommonBandwidthPackagesResult>
function  get_common_bandwidth_packages(ids=None, name_regex=None, output_file=None, resource_group_id=None, opts=None)
func GetCommonBandwidthPackages(ctx *Context, args *GetCommonBandwidthPackagesArgs, opts ...InvokeOption) (*GetCommonBandwidthPackagesResult, error)
public static class GetCommonBandwidthPackages {
    public static Task<GetCommonBandwidthPackagesResult> InvokeAsync(GetCommonBandwidthPackagesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of Common Bandwidth Packages IDs.

NameRegex string

A regex string to filter results by name.

OutputFile string
ResourceGroupId string

The Id of resource group which the common bandwidth package belongs.

Ids []string

A list of Common Bandwidth Packages IDs.

NameRegex string

A regex string to filter results by name.

OutputFile string
ResourceGroupId string

The Id of resource group which the common bandwidth package belongs.

ids string[]

A list of Common Bandwidth Packages IDs.

nameRegex string

A regex string to filter results by name.

outputFile string
resourceGroupId string

The Id of resource group which the common bandwidth package belongs.

ids List[str]

A list of Common Bandwidth Packages IDs.

name_regex str

A regex string to filter results by name.

output_file str
resource_group_id str

The Id of resource group which the common bandwidth package belongs.

GetCommonBandwidthPackages Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

(Optional) A list of Common Bandwidth Packages IDs.

Names List<string>

A list of Common Bandwidth Packages names.

Packages List<Pulumi.AliCloud.Vpc.Outputs.GetCommonBandwidthPackagesPackage>

A list of Common Bandwidth Packages. Each element contains the following attributes:

NameRegex string
OutputFile string
ResourceGroupId string

The Id of resource group which the common bandwidth package belongs.

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

(Optional) A list of Common Bandwidth Packages IDs.

Names []string

A list of Common Bandwidth Packages names.

Packages []GetCommonBandwidthPackagesPackage

A list of Common Bandwidth Packages. Each element contains the following attributes:

NameRegex string
OutputFile string
ResourceGroupId string

The Id of resource group which the common bandwidth package belongs.

id string

The provider-assigned unique ID for this managed resource.

ids string[]

(Optional) A list of Common Bandwidth Packages IDs.

names string[]

A list of Common Bandwidth Packages names.

packages GetCommonBandwidthPackagesPackage[]

A list of Common Bandwidth Packages. Each element contains the following attributes:

nameRegex string
outputFile string
resourceGroupId string

The Id of resource group which the common bandwidth package belongs.

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

(Optional) A list of Common Bandwidth Packages IDs.

names List[str]

A list of Common Bandwidth Packages names.

packages List[GetCommonBandwidthPackagesPackage]

A list of Common Bandwidth Packages. Each element contains the following attributes:

name_regex str
output_file str
resource_group_id str

The Id of resource group which the common bandwidth package belongs.

Supporting Types

GetCommonBandwidthPackagesPackage

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 string

The peak bandwidth of the Internet Shared Bandwidth instance.

BusinessStatus string

The business status of the Common Bandwidth Package instance.

CreationTime string

Time of creation.

Description string

The description of the Common Bandwidth Package instance.

Id string

ID of the Common Bandwidth Package.

Isp string

ISP of the Common Bandwidth Package.

Name string

Name of the Common Bandwidth Package.

PublicIpAddresses List<Pulumi.AliCloud.Vpc.Inputs.GetCommonBandwidthPackagesPackagePublicIpAddressArgs>

Public ip addresses that in the Common Bandwidth Pakcage.

Status string

Status of the Common Bandwidth Package.

ResourceGroupId string

The Id of resource group which the common bandwidth package belongs.

Bandwidth string

The peak bandwidth of the Internet Shared Bandwidth instance.

BusinessStatus string

The business status of the Common Bandwidth Package instance.

CreationTime string

Time of creation.

Description string

The description of the Common Bandwidth Package instance.

Id string

ID of the Common Bandwidth Package.

Isp string

ISP of the Common Bandwidth Package.

Name string

Name of the Common Bandwidth Package.

PublicIpAddresses []GetCommonBandwidthPackagesPackagePublicIpAddress

Public ip addresses that in the Common Bandwidth Pakcage.

Status string

Status of the Common Bandwidth Package.

ResourceGroupId string

The Id of resource group which the common bandwidth package belongs.

bandwidth string

The peak bandwidth of the Internet Shared Bandwidth instance.

businessStatus string

The business status of the Common Bandwidth Package instance.

creationTime string

Time of creation.

description string

The description of the Common Bandwidth Package instance.

id string

ID of the Common Bandwidth Package.

isp string

ISP of the Common Bandwidth Package.

name string

Name of the Common Bandwidth Package.

publicIpAddresses GetCommonBandwidthPackagesPackagePublicIpAddress[]

Public ip addresses that in the Common Bandwidth Pakcage.

status string

Status of the Common Bandwidth Package.

resourceGroupId string

The Id of resource group which the common bandwidth package belongs.

bandwidth str

The peak bandwidth of the Internet Shared Bandwidth instance.

business_status str

The business status of the Common Bandwidth Package instance.

creation_time str

Time of creation.

description str

The description of the Common Bandwidth Package instance.

id str

ID of the Common Bandwidth Package.

isp str

ISP of the Common Bandwidth Package.

name str

Name of the Common Bandwidth Package.

publicIpAddresses List[GetCommonBandwidthPackagesPackagePublicIpAddress]

Public ip addresses that in the Common Bandwidth Pakcage.

status str

Status of the Common Bandwidth Package.

resource_group_id str

The Id of resource group which the common bandwidth package belongs.

GetCommonBandwidthPackagesPackagePublicIpAddress

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AllocationId string
IpAddress string
AllocationId string
IpAddress string
allocationId string
ipAddress string
allocation_id str
ip_address str

Package Details

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