Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.vpc.getCommonBandwidthPackages
Explore with Pulumi AI
This data source provides a list of Common Bandwidth Packages owned by an Alibaba Cloud account.
NOTE: Available in 1.36.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const fooCommonBandwithPackage = new alicloud.vpc.CommonBandwithPackage("foo", {
bandwidth: "2",
name: "tf-testAccCommonBandwidthPackage",
description: "tf-testAcc-CommonBandwidthPackage",
});
const foo = alicloud.vpc.getCommonBandwidthPackagesOutput({
nameRegex: "^tf-testAcc.*",
ids: [fooCommonBandwithPackage.id],
});
import pulumi
import pulumi_alicloud as alicloud
foo_common_bandwith_package = alicloud.vpc.CommonBandwithPackage("foo",
bandwidth="2",
name="tf-testAccCommonBandwidthPackage",
description="tf-testAcc-CommonBandwidthPackage")
foo = alicloud.vpc.get_common_bandwidth_packages_output(name_regex="^tf-testAcc.*",
ids=[foo_common_bandwith_package.id])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooCommonBandwithPackage, err := vpc.NewCommonBandwithPackage(ctx, "foo", &vpc.CommonBandwithPackageArgs{
Bandwidth: pulumi.String("2"),
Name: pulumi.String("tf-testAccCommonBandwidthPackage"),
Description: pulumi.String("tf-testAcc-CommonBandwidthPackage"),
})
if err != nil {
return err
}
_ = vpc.GetCommonBandwidthPackagesOutput(ctx, vpc.GetCommonBandwidthPackagesOutputArgs{
NameRegex: pulumi.String("^tf-testAcc.*"),
Ids: pulumi.StringArray{
fooCommonBandwithPackage.ID(),
},
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var fooCommonBandwithPackage = new AliCloud.Vpc.CommonBandwithPackage("foo", new()
{
Bandwidth = "2",
Name = "tf-testAccCommonBandwidthPackage",
Description = "tf-testAcc-CommonBandwidthPackage",
});
var foo = AliCloud.Vpc.GetCommonBandwidthPackages.Invoke(new()
{
NameRegex = "^tf-testAcc.*",
Ids = new[]
{
fooCommonBandwithPackage.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.CommonBandwithPackage;
import com.pulumi.alicloud.vpc.CommonBandwithPackageArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetCommonBandwidthPackagesArgs;
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) {
var fooCommonBandwithPackage = new CommonBandwithPackage("fooCommonBandwithPackage", CommonBandwithPackageArgs.builder()
.bandwidth("2")
.name("tf-testAccCommonBandwidthPackage")
.description("tf-testAcc-CommonBandwidthPackage")
.build());
final var foo = VpcFunctions.getCommonBandwidthPackages(GetCommonBandwidthPackagesArgs.builder()
.nameRegex("^tf-testAcc.*")
.ids(fooCommonBandwithPackage.id())
.build());
}
}
resources:
fooCommonBandwithPackage:
type: alicloud:vpc:CommonBandwithPackage
name: foo
properties:
bandwidth: '2'
name: tf-testAccCommonBandwidthPackage
description: tf-testAcc-CommonBandwidthPackage
variables:
foo:
fn::invoke:
Function: alicloud:vpc:getCommonBandwidthPackages
Arguments:
nameRegex: ^tf-testAcc.*
ids:
- ${fooCommonBandwithPackage.id}
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.bandwidth_package_ip_relation_status
- The IP relation status of bandwidth package.
Using getCommonBandwidthPackages
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 getCommonBandwidthPackages(args: GetCommonBandwidthPackagesArgs, opts?: InvokeOptions): Promise<GetCommonBandwidthPackagesResult>
function getCommonBandwidthPackagesOutput(args: GetCommonBandwidthPackagesOutputArgs, opts?: InvokeOptions): Output<GetCommonBandwidthPackagesResult>
def get_common_bandwidth_packages(bandwidth_package_name: Optional[str] = None,
dry_run: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
include_reservation_data: Optional[bool] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCommonBandwidthPackagesResult
def get_common_bandwidth_packages_output(bandwidth_package_name: Optional[pulumi.Input[str]] = None,
dry_run: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
include_reservation_data: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCommonBandwidthPackagesResult]
func GetCommonBandwidthPackages(ctx *Context, args *GetCommonBandwidthPackagesArgs, opts ...InvokeOption) (*GetCommonBandwidthPackagesResult, error)
func GetCommonBandwidthPackagesOutput(ctx *Context, args *GetCommonBandwidthPackagesOutputArgs, opts ...InvokeOption) GetCommonBandwidthPackagesResultOutput
> Note: This function is named GetCommonBandwidthPackages
in the Go SDK.
public static class GetCommonBandwidthPackages
{
public static Task<GetCommonBandwidthPackagesResult> InvokeAsync(GetCommonBandwidthPackagesArgs args, InvokeOptions? opts = null)
public static Output<GetCommonBandwidthPackagesResult> Invoke(GetCommonBandwidthPackagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCommonBandwidthPackagesResult> getCommonBandwidthPackages(GetCommonBandwidthPackagesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:vpc/getCommonBandwidthPackages:getCommonBandwidthPackages
arguments:
# arguments dictionary
The following arguments are supported:
- Bandwidth
Package stringName - The name of bandwidth package.
- Dry
Run bool - Specifies whether to precheck only the request.
- Ids List<string>
- A list of Common Bandwidth Packages IDs.
- Include
Reservation boolData - Specifies whether to return data of orders that have not taken effect.
- Name
Regex string - A regex string to filter results by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- Status string
- The status of bandwidth package. Valid values:
Available
andPending
.
- Bandwidth
Package stringName - The name of bandwidth package.
- Dry
Run bool - Specifies whether to precheck only the request.
- Ids []string
- A list of Common Bandwidth Packages IDs.
- Include
Reservation boolData - Specifies whether to return data of orders that have not taken effect.
- Name
Regex string - A regex string to filter results by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- Status string
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth
Package StringName - The name of bandwidth package.
- dry
Run Boolean - Specifies whether to precheck only the request.
- ids List<String>
- A list of Common Bandwidth Packages IDs.
- include
Reservation BooleanData - Specifies whether to return data of orders that have not taken effect.
- name
Regex String - A regex string to filter results by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The Id of resource group which the common bandwidth package belongs.
- status String
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth
Package stringName - The name of bandwidth package.
- dry
Run boolean - Specifies whether to precheck only the request.
- ids string[]
- A list of Common Bandwidth Packages IDs.
- include
Reservation booleanData - Specifies whether to return data of orders that have not taken effect.
- name
Regex string - A regex string to filter results by name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- status string
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth_
package_ strname - The name of bandwidth package.
- dry_
run bool - Specifies whether to precheck only the request.
- ids Sequence[str]
- A list of Common Bandwidth Packages IDs.
- include_
reservation_ booldata - Specifies whether to return data of orders that have not taken effect.
- name_
regex str - A regex string to filter results by name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - resource_
group_ strid - The Id of resource group which the common bandwidth package belongs.
- status str
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth
Package StringName - The name of bandwidth package.
- dry
Run Boolean - Specifies whether to precheck only the request.
- ids List<String>
- A list of Common Bandwidth Packages IDs.
- include
Reservation BooleanData - Specifies whether to return data of orders that have not taken effect.
- name
Regex String - A regex string to filter results by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The Id of resource group which the common bandwidth package belongs.
- status String
- The status of bandwidth package. Valid values:
Available
andPending
.
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:
- Bandwidth
Package stringName - The name of bandwidth package.
- Dry
Run bool - Include
Reservation boolData - Name
Regex string - Output
File string - Resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- Status string
- Status of the Common Bandwidth Package.
- 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:
- Bandwidth
Package stringName - The name of bandwidth package.
- Dry
Run bool - Include
Reservation boolData - Name
Regex string - Output
File string - Resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- Status string
- Status of the Common Bandwidth Package.
- 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<Get
Common Bandwidth Packages Package> - A list of Common Bandwidth Packages. Each element contains the following attributes:
- bandwidth
Package StringName - The name of bandwidth package.
- dry
Run Boolean - include
Reservation BooleanData - name
Regex String - output
File String - resource
Group StringId - The Id of resource group which the common bandwidth package belongs.
- status String
- Status of the Common Bandwidth Package.
- 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:
- bandwidth
Package stringName - The name of bandwidth package.
- dry
Run boolean - include
Reservation booleanData - name
Regex string - output
File string - resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- status string
- Status of the Common Bandwidth Package.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- (Optional) A list of Common Bandwidth Packages IDs.
- names Sequence[str]
- A list of Common Bandwidth Packages names.
- packages
Sequence[Get
Common Bandwidth Packages Package] - A list of Common Bandwidth Packages. Each element contains the following attributes:
- bandwidth_
package_ strname - The name of bandwidth package.
- dry_
run bool - include_
reservation_ booldata - name_
regex str - output_
file str - resource_
group_ strid - The Id of resource group which the common bandwidth package belongs.
- status str
- Status of the Common Bandwidth Package.
- 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<Property Map>
- A list of Common Bandwidth Packages. Each element contains the following attributes:
- bandwidth
Package StringName - The name of bandwidth package.
- dry
Run Boolean - include
Reservation BooleanData - name
Regex String - output
File String - resource
Group StringId - The Id of resource group which the common bandwidth package belongs.
- status String
- Status of the Common Bandwidth Package.
Supporting Types
GetCommonBandwidthPackagesPackage
- Bandwidth string
- The peak bandwidth of the Internet Shared Bandwidth instance.
- Bandwidth
Package stringId - The resource ID of bandwidth package.
- Bandwidth
Package stringName - The name of bandwidth package.
- Business
Status string - The business status of the Common Bandwidth Package instance.
- Deletion
Protection bool - The deletion protection of bandwidth package.
- Description string
- The description of the Common Bandwidth Package instance.
- Expired
Time string - The expired time of bandwidth package.
- Has
Reservation boolData - Is has reservation data.
- Id string
- ID of the Common Bandwidth Package.
- Internet
Charge stringType - The internet charge type of bandwidth package.
- Isp string
- ISP of the Common Bandwidth Package.
- Name string
- Name of the Common Bandwidth Package.
- Payment
Type string - The payment type of bandwidth package.
- Public
Ip List<Pulumi.Addresses Ali Cloud. Vpc. Inputs. Get Common Bandwidth Packages Package Public Ip Address> - Public ip addresses that in the Common Bandwidth Pakcage.
- Ratio int
- The ratio of bandwidth package.
- Reservation
Active stringTime - The active time of reservation.
- Reservation
Bandwidth string - The bandwidth of reservation.
- Reservation
Internet stringCharge Type - The charge type of reservation internet.
- Reservation
Order stringType - The type of reservation order.
- Resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- Service
Managed int - The service managed.
- Status string
- The status of bandwidth package. Valid values:
Available
andPending
.
- Bandwidth string
- The peak bandwidth of the Internet Shared Bandwidth instance.
- Bandwidth
Package stringId - The resource ID of bandwidth package.
- Bandwidth
Package stringName - The name of bandwidth package.
- Business
Status string - The business status of the Common Bandwidth Package instance.
- Deletion
Protection bool - The deletion protection of bandwidth package.
- Description string
- The description of the Common Bandwidth Package instance.
- Expired
Time string - The expired time of bandwidth package.
- Has
Reservation boolData - Is has reservation data.
- Id string
- ID of the Common Bandwidth Package.
- Internet
Charge stringType - The internet charge type of bandwidth package.
- Isp string
- ISP of the Common Bandwidth Package.
- Name string
- Name of the Common Bandwidth Package.
- Payment
Type string - The payment type of bandwidth package.
- Public
Ip []GetAddresses Common Bandwidth Packages Package Public Ip Address - Public ip addresses that in the Common Bandwidth Pakcage.
- Ratio int
- The ratio of bandwidth package.
- Reservation
Active stringTime - The active time of reservation.
- Reservation
Bandwidth string - The bandwidth of reservation.
- Reservation
Internet stringCharge Type - The charge type of reservation internet.
- Reservation
Order stringType - The type of reservation order.
- Resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- Service
Managed int - The service managed.
- Status string
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth String
- The peak bandwidth of the Internet Shared Bandwidth instance.
- bandwidth
Package StringId - The resource ID of bandwidth package.
- bandwidth
Package StringName - The name of bandwidth package.
- business
Status String - The business status of the Common Bandwidth Package instance.
- deletion
Protection Boolean - The deletion protection of bandwidth package.
- description String
- The description of the Common Bandwidth Package instance.
- expired
Time String - The expired time of bandwidth package.
- has
Reservation BooleanData - Is has reservation data.
- id String
- ID of the Common Bandwidth Package.
- internet
Charge StringType - The internet charge type of bandwidth package.
- isp String
- ISP of the Common Bandwidth Package.
- name String
- Name of the Common Bandwidth Package.
- payment
Type String - The payment type of bandwidth package.
- public
Ip List<GetAddresses Common Bandwidth Packages Package Public Ip Address> - Public ip addresses that in the Common Bandwidth Pakcage.
- ratio Integer
- The ratio of bandwidth package.
- reservation
Active StringTime - The active time of reservation.
- reservation
Bandwidth String - The bandwidth of reservation.
- reservation
Internet StringCharge Type - The charge type of reservation internet.
- reservation
Order StringType - The type of reservation order.
- resource
Group StringId - The Id of resource group which the common bandwidth package belongs.
- service
Managed Integer - The service managed.
- status String
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth string
- The peak bandwidth of the Internet Shared Bandwidth instance.
- bandwidth
Package stringId - The resource ID of bandwidth package.
- bandwidth
Package stringName - The name of bandwidth package.
- business
Status string - The business status of the Common Bandwidth Package instance.
- deletion
Protection boolean - The deletion protection of bandwidth package.
- description string
- The description of the Common Bandwidth Package instance.
- expired
Time string - The expired time of bandwidth package.
- has
Reservation booleanData - Is has reservation data.
- id string
- ID of the Common Bandwidth Package.
- internet
Charge stringType - The internet charge type of bandwidth package.
- isp string
- ISP of the Common Bandwidth Package.
- name string
- Name of the Common Bandwidth Package.
- payment
Type string - The payment type of bandwidth package.
- public
Ip GetAddresses Common Bandwidth Packages Package Public Ip Address[] - Public ip addresses that in the Common Bandwidth Pakcage.
- ratio number
- The ratio of bandwidth package.
- reservation
Active stringTime - The active time of reservation.
- reservation
Bandwidth string - The bandwidth of reservation.
- reservation
Internet stringCharge Type - The charge type of reservation internet.
- reservation
Order stringType - The type of reservation order.
- resource
Group stringId - The Id of resource group which the common bandwidth package belongs.
- service
Managed number - The service managed.
- status string
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth str
- The peak bandwidth of the Internet Shared Bandwidth instance.
- bandwidth_
package_ strid - The resource ID of bandwidth package.
- bandwidth_
package_ strname - The name of bandwidth package.
- business_
status str - The business status of the Common Bandwidth Package instance.
- deletion_
protection bool - The deletion protection of bandwidth package.
- description str
- The description of the Common Bandwidth Package instance.
- expired_
time str - The expired time of bandwidth package.
- has_
reservation_ booldata - Is has reservation data.
- id str
- ID of the Common Bandwidth Package.
- internet_
charge_ strtype - The internet charge type of bandwidth package.
- isp str
- ISP of the Common Bandwidth Package.
- name str
- Name of the Common Bandwidth Package.
- payment_
type str - The payment type of bandwidth package.
- public_
ip_ Sequence[Getaddresses Common Bandwidth Packages Package Public Ip Address] - Public ip addresses that in the Common Bandwidth Pakcage.
- ratio int
- The ratio of bandwidth package.
- reservation_
active_ strtime - The active time of reservation.
- reservation_
bandwidth str - The bandwidth of reservation.
- reservation_
internet_ strcharge_ type - The charge type of reservation internet.
- reservation_
order_ strtype - The type of reservation order.
- resource_
group_ strid - The Id of resource group which the common bandwidth package belongs.
- service_
managed int - The service managed.
- status str
- The status of bandwidth package. Valid values:
Available
andPending
.
- bandwidth String
- The peak bandwidth of the Internet Shared Bandwidth instance.
- bandwidth
Package StringId - The resource ID of bandwidth package.
- bandwidth
Package StringName - The name of bandwidth package.
- business
Status String - The business status of the Common Bandwidth Package instance.
- deletion
Protection Boolean - The deletion protection of bandwidth package.
- description String
- The description of the Common Bandwidth Package instance.
- expired
Time String - The expired time of bandwidth package.
- has
Reservation BooleanData - Is has reservation data.
- id String
- ID of the Common Bandwidth Package.
- internet
Charge StringType - The internet charge type of bandwidth package.
- isp String
- ISP of the Common Bandwidth Package.
- name String
- Name of the Common Bandwidth Package.
- payment
Type String - The payment type of bandwidth package.
- public
Ip List<Property Map>Addresses - Public ip addresses that in the Common Bandwidth Pakcage.
- ratio Number
- The ratio of bandwidth package.
- reservation
Active StringTime - The active time of reservation.
- reservation
Bandwidth String - The bandwidth of reservation.
- reservation
Internet StringCharge Type - The charge type of reservation internet.
- reservation
Order StringType - The type of reservation order.
- resource
Group StringId - The Id of resource group which the common bandwidth package belongs.
- service
Managed Number - The service managed.
- status String
- The status of bandwidth package. Valid values:
Available
andPending
.
GetCommonBandwidthPackagesPackagePublicIpAddress
- Allocation
Id string - Bandwidth
Package stringIp Relation Status - Ip
Address string
- Allocation
Id string - Bandwidth
Package stringIp Relation Status - Ip
Address string
- allocation
Id String - bandwidth
Package StringIp Relation Status - ip
Address String
- allocation
Id string - bandwidth
Package stringIp Relation Status - ip
Address string
- allocation
Id String - bandwidth
Package StringIp Relation Status - ip
Address String
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.