1. Packages
  2. Alicloud Provider
  3. API Docs
  4. vpc
  5. getIpv6InternetBandwidths
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.vpc.getIpv6InternetBandwidths

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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.
    Ipv6AddressId string
    The ID of the IPv6 address.
    Ipv6InternetBandwidthId string
    The ID of the Ipv6 Internet Bandwidth.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    Ids []string
    A list of Ipv6 Internet Bandwidth IDs.
    Ipv6AddressId string
    The ID of the IPv6 address.
    Ipv6InternetBandwidthId string
    The ID of the Ipv6 Internet Bandwidth.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    ids List<String>
    A list of Ipv6 Internet Bandwidth IDs.
    ipv6AddressId String
    The ID of the IPv6 address.
    ipv6InternetBandwidthId String
    The ID of the Ipv6 Internet Bandwidth.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    ids string[]
    A list of Ipv6 Internet Bandwidth IDs.
    ipv6AddressId string
    The ID of the IPv6 address.
    ipv6InternetBandwidthId string
    The ID of the Ipv6 Internet Bandwidth.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    ids Sequence[str]
    A list of Ipv6 Internet Bandwidth IDs.
    ipv6_address_id str
    The ID of the IPv6 address.
    ipv6_internet_bandwidth_id str
    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 and SecurityLocked.
    ids List<String>
    A list of Ipv6 Internet Bandwidth IDs.
    ipv6AddressId String
    The ID of the IPv6 address.
    ipv6InternetBandwidthId String
    The ID of the Ipv6 Internet Bandwidth.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status 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 int
    The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
    Id string
    The ID of the Ipv6 Internet Bandwidth.
    InternetChargeType string
    The metering method of the Internet bandwidth resources of the IPv6 gateway.
    Ipv6AddressId string
    The ID of the IPv6 address.
    Ipv6GatewayId string
    The ID of the IPv6 gateway.
    Ipv6InternetBandwidthId string
    The ID of the Ipv6 Internet Bandwidth.
    PaymentType string
    The payment type of the resource.
    Status string
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    Bandwidth int
    The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
    Id string
    The ID of the Ipv6 Internet Bandwidth.
    InternetChargeType string
    The metering method of the Internet bandwidth resources of the IPv6 gateway.
    Ipv6AddressId string
    The ID of the IPv6 address.
    Ipv6GatewayId string
    The ID of the IPv6 gateway.
    Ipv6InternetBandwidthId string
    The ID of the Ipv6 Internet Bandwidth.
    PaymentType string
    The payment type of the resource.
    Status string
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    bandwidth Integer
    The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
    id String
    The ID of the Ipv6 Internet Bandwidth.
    internetChargeType String
    The metering method of the Internet bandwidth resources of the IPv6 gateway.
    ipv6AddressId String
    The ID of the IPv6 address.
    ipv6GatewayId String
    The ID of the IPv6 gateway.
    ipv6InternetBandwidthId String
    The ID of the Ipv6 Internet Bandwidth.
    paymentType String
    The payment type of the resource.
    status String
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    bandwidth number
    The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
    id string
    The ID of the Ipv6 Internet Bandwidth.
    internetChargeType string
    The metering method of the Internet bandwidth resources of the IPv6 gateway.
    ipv6AddressId string
    The ID of the IPv6 address.
    ipv6GatewayId string
    The ID of the IPv6 gateway.
    ipv6InternetBandwidthId string
    The ID of the Ipv6 Internet Bandwidth.
    paymentType string
    The payment type of the resource.
    status string
    The status of the resource. Valid values: Normal, FinancialLocked and SecurityLocked.
    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_type str
    The metering method of the Internet bandwidth resources of the IPv6 gateway.
    ipv6_address_id str
    The ID of the IPv6 address.
    ipv6_gateway_id str
    The ID of the IPv6 gateway.
    ipv6_internet_bandwidth_id str
    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 and SecurityLocked.
    bandwidth Number
    The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s.
    id String
    The ID of the Ipv6 Internet Bandwidth.
    internetChargeType String
    The metering method of the Internet bandwidth resources of the IPv6 gateway.
    ipv6AddressId String
    The ID of the IPv6 address.
    ipv6GatewayId String
    The ID of the IPv6 gateway.
    ipv6InternetBandwidthId String
    The ID of the Ipv6 Internet Bandwidth.
    paymentType String
    The payment type of the resource.
    status 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.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi