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.
- Name
Regex string A regex string to filter results by name.
- Output
File string - Resource
Group stringId The Id of resource group which the common bandwidth package belongs.
- Ids []string
A list of Common Bandwidth Packages IDs.
- Name
Regex string A regex string to filter results by name.
- Output
File string - Resource
Group stringId The Id of resource group which the common bandwidth package belongs.
- ids string[]
A list of Common Bandwidth Packages IDs.
- name
Regex string A regex string to filter results by name.
- output
File string - resource
Group stringId 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_ strid 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.
Ali Cloud. Vpc. Outputs. Get Common Bandwidth Packages Package> A list of Common Bandwidth Packages. Each element contains the following attributes:
- Name
Regex string - Output
File string - Resource
Group stringId 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
[]Get
Common Bandwidth Packages Package A list of Common Bandwidth Packages. Each element contains the following attributes:
- Name
Regex string - Output
File string - Resource
Group stringId 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
Get
Common Bandwidth Packages Package[] A list of Common Bandwidth Packages. Each element contains the following attributes:
- name
Regex string - output
File string - resource
Group stringId 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[Get
Common Bandwidth Packages Package] A list of Common Bandwidth Packages. Each element contains the following attributes:
- name_
regex str - output_
file str - resource_
group_ strid 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.
- Business
Status string The business status of the Common Bandwidth Package instance.
- Creation
Time 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.
- Public
Ip List<Pulumi.Addresses Ali Cloud. Vpc. Inputs. Get Common Bandwidth Packages Package Public Ip Address Args> Public ip addresses that in the Common Bandwidth Pakcage.
- Status string
Status of the Common Bandwidth Package.
- Resource
Group stringId The Id of resource group which the common bandwidth package belongs.
- Bandwidth string
The peak bandwidth of the Internet Shared Bandwidth instance.
- Business
Status string The business status of the Common Bandwidth Package instance.
- Creation
Time 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.
- Public
Ip []GetAddresses Common Bandwidth Packages Package Public Ip Address Public ip addresses that in the Common Bandwidth Pakcage.
- Status string
Status of the Common Bandwidth Package.
- Resource
Group stringId The Id of resource group which the common bandwidth package belongs.
- bandwidth string
The peak bandwidth of the Internet Shared Bandwidth instance.
- business
Status string The business status of the Common Bandwidth Package instance.
- creation
Time 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.
- public
Ip GetAddresses Common Bandwidth Packages Package Public Ip Address[] Public ip addresses that in the Common Bandwidth Pakcage.
- status string
Status of the Common Bandwidth Package.
- resource
Group stringId 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.
- public
Ip List[GetAddresses Common Bandwidth Packages Package Public Ip Address] Public ip addresses that in the Common Bandwidth Pakcage.
- status str
Status of the Common Bandwidth Package.
- resource_
group_ strid 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.