Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.vpc.getIpv6InternetBandwidths
Explore with Pulumi AI
This data source provides the Vpc Ipv6 Internet Bandwidths of the current Alibaba Cloud user.
NOTE: Available in v1.143.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.vpc.getIpv6InternetBandwidths({
ids: ["example_id"],
});
export const vpcIpv6InternetBandwidthId1 = ids.then(ids => ids.bandwidths?.[0]?.id);
const ipv6InternetBandwidthId = alicloud.vpc.getIpv6InternetBandwidths({
ipv6InternetBandwidthId: "example_value",
});
export const vpcIpv6InternetBandwidthId2 = ipv6InternetBandwidthId.then(ipv6InternetBandwidthId => ipv6InternetBandwidthId.bandwidths?.[0]?.id);
const ipv6AddressId = alicloud.vpc.getIpv6InternetBandwidths({
ipv6AddressId: "example_value",
});
export const vpcIpv6InternetBandwidthId3 = ipv6AddressId.then(ipv6AddressId => ipv6AddressId.bandwidths?.[0]?.id);
const status = alicloud.vpc.getIpv6InternetBandwidths({
status: "Normal",
});
export const vpcIpv6InternetBandwidthId4 = status.then(status => status.bandwidths?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.vpc.get_ipv6_internet_bandwidths(ids=["example_id"])
pulumi.export("vpcIpv6InternetBandwidthId1", ids.bandwidths[0].id)
ipv6_internet_bandwidth_id = alicloud.vpc.get_ipv6_internet_bandwidths(ipv6_internet_bandwidth_id="example_value")
pulumi.export("vpcIpv6InternetBandwidthId2", ipv6_internet_bandwidth_id.bandwidths[0].id)
ipv6_address_id = alicloud.vpc.get_ipv6_internet_bandwidths(ipv6_address_id="example_value")
pulumi.export("vpcIpv6InternetBandwidthId3", ipv6_address_id.bandwidths[0].id)
status = alicloud.vpc.get_ipv6_internet_bandwidths(status="Normal")
pulumi.export("vpcIpv6InternetBandwidthId4", status.bandwidths[0].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 {
ids, err := vpc.GetIpv6InternetBandwidths(ctx, &vpc.GetIpv6InternetBandwidthsArgs{
Ids: []string{
"example_id",
},
}, nil)
if err != nil {
return err
}
ctx.Export("vpcIpv6InternetBandwidthId1", ids.Bandwidths[0].Id)
ipv6InternetBandwidthId, err := vpc.GetIpv6InternetBandwidths(ctx, &vpc.GetIpv6InternetBandwidthsArgs{
Ipv6InternetBandwidthId: pulumi.StringRef("example_value"),
}, nil)
if err != nil {
return err
}
ctx.Export("vpcIpv6InternetBandwidthId2", ipv6InternetBandwidthId.Bandwidths[0].Id)
ipv6AddressId, err := vpc.GetIpv6InternetBandwidths(ctx, &vpc.GetIpv6InternetBandwidthsArgs{
Ipv6AddressId: pulumi.StringRef("example_value"),
}, nil)
if err != nil {
return err
}
ctx.Export("vpcIpv6InternetBandwidthId3", ipv6AddressId.Bandwidths[0].Id)
status, err := vpc.GetIpv6InternetBandwidths(ctx, &vpc.GetIpv6InternetBandwidthsArgs{
Status: pulumi.StringRef("Normal"),
}, nil)
if err != nil {
return err
}
ctx.Export("vpcIpv6InternetBandwidthId4", status.Bandwidths[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new()
{
Ids = new[]
{
"example_id",
},
});
var ipv6InternetBandwidthId = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new()
{
Ipv6InternetBandwidthId = "example_value",
});
var ipv6AddressId = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new()
{
Ipv6AddressId = "example_value",
});
var status = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new()
{
Status = "Normal",
});
return new Dictionary<string, object?>
{
["vpcIpv6InternetBandwidthId1"] = ids.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id),
["vpcIpv6InternetBandwidthId2"] = ipv6InternetBandwidthId.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id),
["vpcIpv6InternetBandwidthId3"] = ipv6AddressId.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id),
["vpcIpv6InternetBandwidthId4"] = status.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetIpv6InternetBandwidthsArgs;
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) {
final var ids = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
.ids("example_id")
.build());
ctx.export("vpcIpv6InternetBandwidthId1", ids.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
final var ipv6InternetBandwidthId = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
.ipv6InternetBandwidthId("example_value")
.build());
ctx.export("vpcIpv6InternetBandwidthId2", ipv6InternetBandwidthId.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
final var ipv6AddressId = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
.ipv6AddressId("example_value")
.build());
ctx.export("vpcIpv6InternetBandwidthId3", ipv6AddressId.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
final var status = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
.status("Normal")
.build());
ctx.export("vpcIpv6InternetBandwidthId4", status.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:vpc:getIpv6InternetBandwidths
Arguments:
ids:
- example_id
ipv6InternetBandwidthId:
fn::invoke:
Function: alicloud:vpc:getIpv6InternetBandwidths
Arguments:
ipv6InternetBandwidthId: example_value
ipv6AddressId:
fn::invoke:
Function: alicloud:vpc:getIpv6InternetBandwidths
Arguments:
ipv6AddressId: example_value
status:
fn::invoke:
Function: alicloud:vpc:getIpv6InternetBandwidths
Arguments:
status: Normal
outputs:
vpcIpv6InternetBandwidthId1: ${ids.bandwidths[0].id}
vpcIpv6InternetBandwidthId2: ${ipv6InternetBandwidthId.bandwidths[0].id}
vpcIpv6InternetBandwidthId3: ${ipv6AddressId.bandwidths[0].id}
vpcIpv6InternetBandwidthId4: ${status.bandwidths[0].id}
Using getIpv6InternetBandwidths
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 getIpv6InternetBandwidths(args: GetIpv6InternetBandwidthsArgs, opts?: InvokeOptions): Promise<GetIpv6InternetBandwidthsResult>
function getIpv6InternetBandwidthsOutput(args: GetIpv6InternetBandwidthsOutputArgs, opts?: InvokeOptions): Output<GetIpv6InternetBandwidthsResult>
def get_ipv6_internet_bandwidths(ids: Optional[Sequence[str]] = None,
ipv6_address_id: Optional[str] = None,
ipv6_internet_bandwidth_id: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIpv6InternetBandwidthsResult
def get_ipv6_internet_bandwidths_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ipv6_address_id: Optional[pulumi.Input[str]] = None,
ipv6_internet_bandwidth_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIpv6InternetBandwidthsResult]
func GetIpv6InternetBandwidths(ctx *Context, args *GetIpv6InternetBandwidthsArgs, opts ...InvokeOption) (*GetIpv6InternetBandwidthsResult, error)
func GetIpv6InternetBandwidthsOutput(ctx *Context, args *GetIpv6InternetBandwidthsOutputArgs, opts ...InvokeOption) GetIpv6InternetBandwidthsResultOutput
> Note: This function is named GetIpv6InternetBandwidths
in the Go SDK.
public static class GetIpv6InternetBandwidths
{
public static Task<GetIpv6InternetBandwidthsResult> InvokeAsync(GetIpv6InternetBandwidthsArgs args, InvokeOptions? opts = null)
public static Output<GetIpv6InternetBandwidthsResult> Invoke(GetIpv6InternetBandwidthsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpv6InternetBandwidthsResult> getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Ipv6 Internet Bandwidth IDs.
- Ipv6Address
Id string - The ID of the IPv6 address.
- Ipv6Internet
Bandwidth stringId - The ID of the Ipv6 Internet Bandwidth.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- Ids []string
- A list of Ipv6 Internet Bandwidth IDs.
- Ipv6Address
Id string - The ID of the IPv6 address.
- Ipv6Internet
Bandwidth stringId - The ID of the Ipv6 Internet Bandwidth.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- ids List<String>
- A list of Ipv6 Internet Bandwidth IDs.
- ipv6Address
Id String - The ID of the IPv6 address.
- ipv6Internet
Bandwidth StringId - The ID of the Ipv6 Internet Bandwidth.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- ids string[]
- A list of Ipv6 Internet Bandwidth IDs.
- ipv6Address
Id string - The ID of the IPv6 address.
- ipv6Internet
Bandwidth stringId - The ID of the Ipv6 Internet Bandwidth.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- ids Sequence[str]
- A list of Ipv6 Internet Bandwidth IDs.
- ipv6_
address_ strid - The ID of the IPv6 address.
- ipv6_
internet_ strbandwidth_ id - The ID of the Ipv6 Internet Bandwidth.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- ids List<String>
- A list of Ipv6 Internet Bandwidth IDs.
- ipv6Address
Id String - The ID of the IPv6 address.
- ipv6Internet
Bandwidth StringId - The ID of the Ipv6 Internet Bandwidth.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
getIpv6InternetBandwidths Result
The following output properties are available:
- Bandwidths
List<Pulumi.
Ali Cloud. Vpc. Outputs. Get Ipv6Internet Bandwidths Bandwidth> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Ipv6Address
Id string - Ipv6Internet
Bandwidth stringId - Output
File string - Status string
- Bandwidths
[]Get
Ipv6Internet Bandwidths Bandwidth - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Ipv6Address
Id string - Ipv6Internet
Bandwidth stringId - Output
File string - Status string
- bandwidths
List<Get
Ipv6Internet Bandwidths Bandwidth> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- ipv6Address
Id String - ipv6Internet
Bandwidth StringId - output
File String - status String
- bandwidths
Get
Ipv6Internet Bandwidths Bandwidth[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- ipv6Address
Id string - ipv6Internet
Bandwidth stringId - output
File string - status string
- bandwidths
Sequence[Get
Ipv6Internet Bandwidths Bandwidth] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- ipv6_
address_ strid - ipv6_
internet_ strbandwidth_ id - output_
file str - status str
- bandwidths List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- ipv6Address
Id String - ipv6Internet
Bandwidth StringId - output
File String - status String
Supporting Types
GetIpv6InternetBandwidthsBandwidth
- Bandwidth int
- The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. - Id string
- The ID of the Ipv6 Internet Bandwidth.
- Internet
Charge stringType - The metering method of the Internet bandwidth resources of the IPv6 gateway.
- Ipv6Address
Id string - The ID of the IPv6 address.
- Ipv6Gateway
Id string - The ID of the IPv6 gateway.
- Ipv6Internet
Bandwidth stringId - The ID of the Ipv6 Internet Bandwidth.
- Payment
Type string - The payment type of the resource.
- Status string
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- Bandwidth int
- The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. - Id string
- The ID of the Ipv6 Internet Bandwidth.
- Internet
Charge stringType - The metering method of the Internet bandwidth resources of the IPv6 gateway.
- Ipv6Address
Id string - The ID of the IPv6 address.
- Ipv6Gateway
Id string - The ID of the IPv6 gateway.
- Ipv6Internet
Bandwidth stringId - The ID of the Ipv6 Internet Bandwidth.
- Payment
Type string - The payment type of the resource.
- Status string
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- bandwidth Integer
- The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. - id String
- The ID of the Ipv6 Internet Bandwidth.
- internet
Charge StringType - The metering method of the Internet bandwidth resources of the IPv6 gateway.
- ipv6Address
Id String - The ID of the IPv6 address.
- ipv6Gateway
Id String - The ID of the IPv6 gateway.
- ipv6Internet
Bandwidth StringId - The ID of the Ipv6 Internet Bandwidth.
- payment
Type String - The payment type of the resource.
- status String
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- bandwidth number
- The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. - id string
- The ID of the Ipv6 Internet Bandwidth.
- internet
Charge stringType - The metering method of the Internet bandwidth resources of the IPv6 gateway.
- ipv6Address
Id string - The ID of the IPv6 address.
- ipv6Gateway
Id string - The ID of the IPv6 gateway.
- ipv6Internet
Bandwidth stringId - The ID of the Ipv6 Internet Bandwidth.
- payment
Type string - The payment type of the resource.
- status string
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- bandwidth int
- The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. - id str
- The ID of the Ipv6 Internet Bandwidth.
- internet_
charge_ strtype - The metering method of the Internet bandwidth resources of the IPv6 gateway.
- ipv6_
address_ strid - The ID of the IPv6 address.
- ipv6_
gateway_ strid - The ID of the IPv6 gateway.
- ipv6_
internet_ strbandwidth_ id - The ID of the Ipv6 Internet Bandwidth.
- payment_
type str - The payment type of the resource.
- status str
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- bandwidth Number
- The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. - id String
- The ID of the Ipv6 Internet Bandwidth.
- internet
Charge StringType - The metering method of the Internet bandwidth resources of the IPv6 gateway.
- ipv6Address
Id String - The ID of the IPv6 address.
- ipv6Gateway
Id String - The ID of the IPv6 gateway.
- ipv6Internet
Bandwidth StringId - The ID of the Ipv6 Internet Bandwidth.
- payment
Type String - The payment type of the resource.
- status String
- The status of the resource. Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.