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.
- Instance
Id string ID of a CEN instance.
- Name
Regex string A regex string to filter CEN Bandwidth Package by name.
- Output
File string
- Ids []string
Limit search to a list of specific CEN Bandwidth Package IDs.
- Instance
Id string ID of a CEN instance.
- Name
Regex string A regex string to filter CEN Bandwidth Package by name.
- Output
File string
- ids string[]
Limit search to a list of specific CEN Bandwidth Package IDs.
- instance
Id string ID of a CEN instance.
- name
Regex string A regex string to filter CEN Bandwidth Package by name.
- output
File 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.
Ali Cloud. Cen. Outputs. Get Bandwidth Packages Package> A list of CEN bandwidth package. Each element contains the following attributes:
- Instance
Id string ID of CEN instance that owns the CEN Bandwidth Package.
- Name
Regex string - Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Packages
[]Get
Bandwidth Packages Package A list of CEN bandwidth package. Each element contains the following attributes:
- Instance
Id string ID of CEN instance that owns the CEN Bandwidth Package.
- Name
Regex string - Output
File string
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- packages
Get
Bandwidth Packages Package[] A list of CEN bandwidth package. Each element contains the following attributes:
- instance
Id string ID of CEN instance that owns the CEN Bandwidth Package.
- name
Regex string - output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
- names List[str]
- packages
List[Get
Bandwidth Packages Package] 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.
- Bandwidth
Package stringCharge Type The billing method, including “POSTPAY” and “PREPAY”.
- Business
Status string Status of the CEN Bandwidth Package, including “Normal”, “FinancialLocked” and “SecurityLocked”.
- Creation
Time string Creation time of the CEN bandwidth package.
- Description string
Description of the CEN Bandwidth Package.
- Geographic
Region stringAId Region ID of the interconnected regions.
- Geographic
Region stringBId Region ID of the interconnected regions.
- Id string
ID of the CEN Bandwidth Package.
- Instance
Id 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.
- Bandwidth
Package stringCharge Type The billing method, including “POSTPAY” and “PREPAY”.
- Business
Status string Status of the CEN Bandwidth Package, including “Normal”, “FinancialLocked” and “SecurityLocked”.
- Creation
Time string Creation time of the CEN bandwidth package.
- Description string
Description of the CEN Bandwidth Package.
- Geographic
Region stringAId Region ID of the interconnected regions.
- Geographic
Region stringBId Region ID of the interconnected regions.
- Id string
ID of the CEN Bandwidth Package.
- Instance
Id 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.
- bandwidth
Package stringCharge Type The billing method, including “POSTPAY” and “PREPAY”.
- business
Status string Status of the CEN Bandwidth Package, including “Normal”, “FinancialLocked” and “SecurityLocked”.
- creation
Time string Creation time of the CEN bandwidth package.
- description string
Description of the CEN Bandwidth Package.
- geographic
Region stringAId Region ID of the interconnected regions.
- geographic
Region stringBId Region ID of the interconnected regions.
- id string
ID of the CEN Bandwidth Package.
- instance
Id 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.
- bandwidth
Package strCharge Type 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.
- geographic
Region strAId Region ID of the interconnected regions.
- geographic
Region strBId 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
alicloudTerraform Provider.