1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vpc
  5. getIpv6InternetBandwidths
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetIpv6InternetBandwidths(ctx *Context, args *GetIpv6InternetBandwidthsArgs, opts ...InvokeOption) (*GetIpv6InternetBandwidthsResult, error)
func GetIpv6InternetBandwidthsOutput(ctx *Context, args *GetIpv6InternetBandwidthsOutputArgs, opts ...InvokeOption) GetIpv6InternetBandwidthsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIpv6InternetBandwidthsResult> getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs args, InvokeOptions options)
public static Output<GetIpv6InternetBandwidthsResult> getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of Ipv6 Internet Bandwidth IDs.
Ipv6AddressId Changes to this property will trigger replacement. string
The ID of the IPv6 address.
Ipv6InternetBandwidthId Changes to this property will trigger replacement. string
The ID of the Ipv6 Internet Bandwidth.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
Ids Changes to this property will trigger replacement. []string
A list of Ipv6 Internet Bandwidth IDs.
Ipv6AddressId Changes to this property will trigger replacement. string
The ID of the IPv6 address.
Ipv6InternetBandwidthId Changes to this property will trigger replacement. string
The ID of the Ipv6 Internet Bandwidth.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
ids Changes to this property will trigger replacement. List<String>
A list of Ipv6 Internet Bandwidth IDs.
ipv6AddressId Changes to this property will trigger replacement. String
The ID of the IPv6 address.
ipv6InternetBandwidthId Changes to this property will trigger replacement. String
The ID of the Ipv6 Internet Bandwidth.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
ids Changes to this property will trigger replacement. string[]
A list of Ipv6 Internet Bandwidth IDs.
ipv6AddressId Changes to this property will trigger replacement. string
The ID of the IPv6 address.
ipv6InternetBandwidthId Changes to this property will trigger replacement. string
The ID of the Ipv6 Internet Bandwidth.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Ipv6 Internet Bandwidth IDs.
ipv6_address_id Changes to this property will trigger replacement. str
The ID of the IPv6 address.
ipv6_internet_bandwidth_id Changes to this property will trigger replacement. str
The ID of the Ipv6 Internet Bandwidth.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
ids Changes to this property will trigger replacement. List<String>
A list of Ipv6 Internet Bandwidth IDs.
ipv6AddressId Changes to this property will trigger replacement. String
The ID of the IPv6 address.
ipv6InternetBandwidthId Changes to this property will trigger replacement. String
The ID of the Ipv6 Internet Bandwidth.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.

getIpv6InternetBandwidths Result

The following output properties are available:

Bandwidths List<Pulumi.AliCloud.Vpc.Outputs.GetIpv6InternetBandwidthsBandwidth>
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Ipv6AddressId string
Ipv6InternetBandwidthId string
OutputFile string
Status string
Bandwidths []GetIpv6InternetBandwidthsBandwidth
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Ipv6AddressId string
Ipv6InternetBandwidthId string
OutputFile string
Status string
bandwidths List<GetIpv6InternetBandwidthsBandwidth>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
ipv6AddressId String
ipv6InternetBandwidthId String
outputFile String
status String
bandwidths GetIpv6InternetBandwidthsBandwidth[]
id string
The provider-assigned unique ID for this managed resource.
ids string[]
ipv6AddressId string
ipv6InternetBandwidthId string
outputFile string
status string
bandwidths Sequence[GetIpv6InternetBandwidthsBandwidth]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
ipv6_address_id str
ipv6_internet_bandwidth_id str
output_file str
status str
bandwidths List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
ipv6AddressId String
ipv6InternetBandwidthId String
outputFile String
status String

Supporting Types

GetIpv6InternetBandwidthsBandwidth

Bandwidth This property is required. int
The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
Id This property is required. string
The ID of the Ipv6 Internet Bandwidth.
InternetChargeType This property is required. string
The metering method of the Internet bandwidth resources of the IPv6 gateway.
Ipv6AddressId This property is required. string
The ID of the IPv6 address.
Ipv6GatewayId This property is required. string
The ID of the IPv6 gateway.
Ipv6InternetBandwidthId This property is required. string
The ID of the Ipv6 Internet Bandwidth.
PaymentType This property is required. string
The payment type of the resource.
Status This property is required. string
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
Bandwidth This property is required. int
The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
Id This property is required. string
The ID of the Ipv6 Internet Bandwidth.
InternetChargeType This property is required. string
The metering method of the Internet bandwidth resources of the IPv6 gateway.
Ipv6AddressId This property is required. string
The ID of the IPv6 address.
Ipv6GatewayId This property is required. string
The ID of the IPv6 gateway.
Ipv6InternetBandwidthId This property is required. string
The ID of the Ipv6 Internet Bandwidth.
PaymentType This property is required. string
The payment type of the resource.
Status This property is required. string
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
bandwidth This property is required. Integer
The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
id This property is required. String
The ID of the Ipv6 Internet Bandwidth.
internetChargeType This property is required. String
The metering method of the Internet bandwidth resources of the IPv6 gateway.
ipv6AddressId This property is required. String
The ID of the IPv6 address.
ipv6GatewayId This property is required. String
The ID of the IPv6 gateway.
ipv6InternetBandwidthId This property is required. String
The ID of the Ipv6 Internet Bandwidth.
paymentType This property is required. String
The payment type of the resource.
status This property is required. String
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
bandwidth This property is required. number
The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
id This property is required. string
The ID of the Ipv6 Internet Bandwidth.
internetChargeType This property is required. string
The metering method of the Internet bandwidth resources of the IPv6 gateway.
ipv6AddressId This property is required. string
The ID of the IPv6 address.
ipv6GatewayId This property is required. string
The ID of the IPv6 gateway.
ipv6InternetBandwidthId This property is required. string
The ID of the Ipv6 Internet Bandwidth.
paymentType This property is required. string
The payment type of the resource.
status This property is required. string
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
bandwidth This property is required. int
The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
id This property is required. str
The ID of the Ipv6 Internet Bandwidth.
internet_charge_type This property is required. str
The metering method of the Internet bandwidth resources of the IPv6 gateway.
ipv6_address_id This property is required. str
The ID of the IPv6 address.
ipv6_gateway_id This property is required. str
The ID of the IPv6 gateway.
ipv6_internet_bandwidth_id This property is required. str
The ID of the Ipv6 Internet Bandwidth.
payment_type This property is required. str
The payment type of the resource.
status This property is required. str
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
bandwidth This property is required. Number
The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
id This property is required. String
The ID of the Ipv6 Internet Bandwidth.
internetChargeType This property is required. String
The metering method of the Internet bandwidth resources of the IPv6 gateway.
ipv6AddressId This property is required. String
The ID of the IPv6 address.
ipv6GatewayId This property is required. String
The ID of the IPv6 gateway.
ipv6InternetBandwidthId This property is required. String
The ID of the Ipv6 Internet Bandwidth.
paymentType This property is required. String
The payment type of the resource.
status This property is required. String
The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.