1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getVpcBandwidthV2
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud

    Provides details about a specific shared bandwidth.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const bandwidthName = config.requireObject<any>("bandwidthName");
    const bandwidth1 = opentelekomcloud.getVpcBandwidthV2({
        name: bandwidthName,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    bandwidth_name = config.require_object("bandwidthName")
    bandwidth1 = opentelekomcloud.get_vpc_bandwidth_v2(name=bandwidth_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		bandwidthName := cfg.RequireObject("bandwidthName")
    		_, err := opentelekomcloud.LookupVpcBandwidthV2(ctx, &opentelekomcloud.LookupVpcBandwidthV2Args{
    			Name: pulumi.StringRef(bandwidthName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var bandwidthName = config.RequireObject<dynamic>("bandwidthName");
        var bandwidth1 = Opentelekomcloud.GetVpcBandwidthV2.Invoke(new()
        {
            Name = bandwidthName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetVpcBandwidthV2Args;
    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 config = ctx.config();
            final var bandwidthName = config.get("bandwidthName");
            final var bandwidth1 = OpentelekomcloudFunctions.getVpcBandwidthV2(GetVpcBandwidthV2Args.builder()
                .name(bandwidthName)
                .build());
    
        }
    }
    
    configuration:
      bandwidthName:
        type: dynamic
    variables:
      bandwidth1:
        fn::invoke:
          function: opentelekomcloud:getVpcBandwidthV2
          arguments:
            name: ${bandwidthName}
    
    Example coming soon!
    

    Using getVpcBandwidthV2

    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 getVpcBandwidthV2(args: GetVpcBandwidthV2Args, opts?: InvokeOptions): Promise<GetVpcBandwidthV2Result>
    function getVpcBandwidthV2Output(args: GetVpcBandwidthV2OutputArgs, opts?: InvokeOutputOptions): Output<GetVpcBandwidthV2Result>
    def get_vpc_bandwidth_v2(enterprise_project_id: Optional[str] = None,
                             id: Optional[str] = None,
                             name: Optional[str] = None,
                             public_border_group: Optional[str] = None,
                             share_type: Optional[str] = None,
                             size: Optional[float] = None,
                             opts: Optional[InvokeOptions] = None) -> GetVpcBandwidthV2Result
    def get_vpc_bandwidth_v2_output(enterprise_project_id: pulumi.Input[Optional[str]] = None,
                             id: pulumi.Input[Optional[str]] = None,
                             name: pulumi.Input[Optional[str]] = None,
                             public_border_group: pulumi.Input[Optional[str]] = None,
                             share_type: pulumi.Input[Optional[str]] = None,
                             size: pulumi.Input[Optional[float]] = None,
                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpcBandwidthV2Result]
    func LookupVpcBandwidthV2(ctx *Context, args *LookupVpcBandwidthV2Args, opts ...InvokeOption) (*LookupVpcBandwidthV2Result, error)
    func LookupVpcBandwidthV2Output(ctx *Context, args *LookupVpcBandwidthV2OutputArgs, opts ...InvokeOption) LookupVpcBandwidthV2ResultOutput

    > Note: This function is named LookupVpcBandwidthV2 in the Go SDK.

    public static class GetVpcBandwidthV2 
    {
        public static Task<GetVpcBandwidthV2Result> InvokeAsync(GetVpcBandwidthV2Args args, InvokeOptions? opts = null)
        public static Output<GetVpcBandwidthV2Result> Invoke(GetVpcBandwidthV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcBandwidthV2Result> Invoke(GetVpcBandwidthV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVpcBandwidthV2Result> getVpcBandwidthV2(GetVpcBandwidthV2Args args, InvokeOptions options)
    public static Output<GetVpcBandwidthV2Result> getVpcBandwidthV2(GetVpcBandwidthV2Args args, InvokeOptions options)
    public static Output<GetVpcBandwidthV2Result> getVpcBandwidthV2(GetVpcBandwidthV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getVpcBandwidthV2:getVpcBandwidthV2
      arguments:
        # arguments dictionary
    data "opentelekomcloud_get_vpc_bandwidth_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    EnterpriseProjectId string
    Specifies the enterprise project associated with the bandwidth.
    Id string
    The ID of the shared bandwidth to retrieve.
    Name string
    The name of the shared bandwidth to retrieve.
    PublicBorderGroup string
    Specifies whether the bandwidth is located at the central site or an edge site.
    ShareType string
    Indicates whether the bandwidth is shared or dedicated.
    Size double
    The size of the shared bandwidth to retrieve.
    EnterpriseProjectId string
    Specifies the enterprise project associated with the bandwidth.
    Id string
    The ID of the shared bandwidth to retrieve.
    Name string
    The name of the shared bandwidth to retrieve.
    PublicBorderGroup string
    Specifies whether the bandwidth is located at the central site or an edge site.
    ShareType string
    Indicates whether the bandwidth is shared or dedicated.
    Size float64
    The size of the shared bandwidth to retrieve.
    enterprise_project_id string
    Specifies the enterprise project associated with the bandwidth.
    id string
    The ID of the shared bandwidth to retrieve.
    name string
    The name of the shared bandwidth to retrieve.
    public_border_group string
    Specifies whether the bandwidth is located at the central site or an edge site.
    share_type string
    Indicates whether the bandwidth is shared or dedicated.
    size number
    The size of the shared bandwidth to retrieve.
    enterpriseProjectId String
    Specifies the enterprise project associated with the bandwidth.
    id String
    The ID of the shared bandwidth to retrieve.
    name String
    The name of the shared bandwidth to retrieve.
    publicBorderGroup String
    Specifies whether the bandwidth is located at the central site or an edge site.
    shareType String
    Indicates whether the bandwidth is shared or dedicated.
    size Double
    The size of the shared bandwidth to retrieve.
    enterpriseProjectId string
    Specifies the enterprise project associated with the bandwidth.
    id string
    The ID of the shared bandwidth to retrieve.
    name string
    The name of the shared bandwidth to retrieve.
    publicBorderGroup string
    Specifies whether the bandwidth is located at the central site or an edge site.
    shareType string
    Indicates whether the bandwidth is shared or dedicated.
    size number
    The size of the shared bandwidth to retrieve.
    enterprise_project_id str
    Specifies the enterprise project associated with the bandwidth.
    id str
    The ID of the shared bandwidth to retrieve.
    name str
    The name of the shared bandwidth to retrieve.
    public_border_group str
    Specifies whether the bandwidth is located at the central site or an edge site.
    share_type str
    Indicates whether the bandwidth is shared or dedicated.
    size float
    The size of the shared bandwidth to retrieve.
    enterpriseProjectId String
    Specifies the enterprise project associated with the bandwidth.
    id String
    The ID of the shared bandwidth to retrieve.
    name String
    The name of the shared bandwidth to retrieve.
    publicBorderGroup String
    Specifies whether the bandwidth is located at the central site or an edge site.
    shareType String
    Indicates whether the bandwidth is shared or dedicated.
    size Number
    The size of the shared bandwidth to retrieve.

    getVpcBandwidthV2 Result

    The following output properties are available:

    BandwidthType string
    Indicates the bandwidth type.
    BillingInfo string
    Specifies yearly/monthly billing information, when applicable.
    ChargeMode string
    Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
    CreatedAt string
    Specifies when the bandwidth was created.
    EnterpriseProjectId string
    Name string
    See Argument Reference above.
    PublicBorderGroup string
    PublicipInfos List<GetVpcBandwidthV2PublicipInfo>
    Lists EIPs associated with the bandwidth:
    ShareType string
    Indicates whether the bandwidth is a shared or dedicated one.
    Size double
    See Argument Reference above.
    Status string
    Indicates the bandwidth status.
    TenantId string
    Specifies the project ID.
    UpdatedAt string
    Specifies when the bandwidth was last updated.
    Id string
    EIP ID.
    BandwidthType string
    Indicates the bandwidth type.
    BillingInfo string
    Specifies yearly/monthly billing information, when applicable.
    ChargeMode string
    Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
    CreatedAt string
    Specifies when the bandwidth was created.
    EnterpriseProjectId string
    Name string
    See Argument Reference above.
    PublicBorderGroup string
    PublicipInfos []GetVpcBandwidthV2PublicipInfo
    Lists EIPs associated with the bandwidth:
    ShareType string
    Indicates whether the bandwidth is a shared or dedicated one.
    Size float64
    See Argument Reference above.
    Status string
    Indicates the bandwidth status.
    TenantId string
    Specifies the project ID.
    UpdatedAt string
    Specifies when the bandwidth was last updated.
    Id string
    EIP ID.
    bandwidth_type string
    Indicates the bandwidth type.
    billing_info string
    Specifies yearly/monthly billing information, when applicable.
    charge_mode string
    Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
    created_at string
    Specifies when the bandwidth was created.
    enterprise_project_id string
    name string
    See Argument Reference above.
    public_border_group string
    publicip_infos list(object)
    Lists EIPs associated with the bandwidth:
    share_type string
    Indicates whether the bandwidth is a shared or dedicated one.
    size number
    See Argument Reference above.
    status string
    Indicates the bandwidth status.
    tenant_id string
    Specifies the project ID.
    updated_at string
    Specifies when the bandwidth was last updated.
    id string
    EIP ID.
    bandwidthType String
    Indicates the bandwidth type.
    billingInfo String
    Specifies yearly/monthly billing information, when applicable.
    chargeMode String
    Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
    createdAt String
    Specifies when the bandwidth was created.
    enterpriseProjectId String
    name String
    See Argument Reference above.
    publicBorderGroup String
    publicipInfos List<GetVpcBandwidthV2PublicipInfo>
    Lists EIPs associated with the bandwidth:
    shareType String
    Indicates whether the bandwidth is a shared or dedicated one.
    size Double
    See Argument Reference above.
    status String
    Indicates the bandwidth status.
    tenantId String
    Specifies the project ID.
    updatedAt String
    Specifies when the bandwidth was last updated.
    id String
    EIP ID.
    bandwidthType string
    Indicates the bandwidth type.
    billingInfo string
    Specifies yearly/monthly billing information, when applicable.
    chargeMode string
    Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
    createdAt string
    Specifies when the bandwidth was created.
    enterpriseProjectId string
    name string
    See Argument Reference above.
    publicBorderGroup string
    publicipInfos GetVpcBandwidthV2PublicipInfo[]
    Lists EIPs associated with the bandwidth:
    shareType string
    Indicates whether the bandwidth is a shared or dedicated one.
    size number
    See Argument Reference above.
    status string
    Indicates the bandwidth status.
    tenantId string
    Specifies the project ID.
    updatedAt string
    Specifies when the bandwidth was last updated.
    id string
    EIP ID.
    bandwidth_type str
    Indicates the bandwidth type.
    billing_info str
    Specifies yearly/monthly billing information, when applicable.
    charge_mode str
    Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
    created_at str
    Specifies when the bandwidth was created.
    enterprise_project_id str
    name str
    See Argument Reference above.
    public_border_group str
    publicip_infos Sequence[GetVpcBandwidthV2PublicipInfo]
    Lists EIPs associated with the bandwidth:
    share_type str
    Indicates whether the bandwidth is a shared or dedicated one.
    size float
    See Argument Reference above.
    status str
    Indicates the bandwidth status.
    tenant_id str
    Specifies the project ID.
    updated_at str
    Specifies when the bandwidth was last updated.
    id str
    EIP ID.
    bandwidthType String
    Indicates the bandwidth type.
    billingInfo String
    Specifies yearly/monthly billing information, when applicable.
    chargeMode String
    Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
    createdAt String
    Specifies when the bandwidth was created.
    enterpriseProjectId String
    name String
    See Argument Reference above.
    publicBorderGroup String
    publicipInfos List<Property Map>
    Lists EIPs associated with the bandwidth:
    shareType String
    Indicates whether the bandwidth is a shared or dedicated one.
    size Number
    See Argument Reference above.
    status String
    Indicates the bandwidth status.
    tenantId String
    Specifies the project ID.
    updatedAt String
    Specifies when the bandwidth was last updated.
    id String
    EIP ID.

    Supporting Types

    GetVpcBandwidthV2PublicipInfo

    Address string
    IPv4 address.
    Id string
    The ID of the shared bandwidth to retrieve.
    IpVersion double
    IP address version.
    Ipv6Address string
    IPv6 address, when available.
    Type string
    EIP type.
    Address string
    IPv4 address.
    Id string
    The ID of the shared bandwidth to retrieve.
    IpVersion float64
    IP address version.
    Ipv6Address string
    IPv6 address, when available.
    Type string
    EIP type.
    address string
    IPv4 address.
    id string
    The ID of the shared bandwidth to retrieve.
    ip_version number
    IP address version.
    ipv6_address string
    IPv6 address, when available.
    type string
    EIP type.
    address String
    IPv4 address.
    id String
    The ID of the shared bandwidth to retrieve.
    ipVersion Double
    IP address version.
    ipv6Address String
    IPv6 address, when available.
    type String
    EIP type.
    address string
    IPv4 address.
    id string
    The ID of the shared bandwidth to retrieve.
    ipVersion number
    IP address version.
    ipv6Address string
    IPv6 address, when available.
    type string
    EIP type.
    address str
    IPv4 address.
    id str
    The ID of the shared bandwidth to retrieve.
    ip_version float
    IP address version.
    ipv6_address str
    IPv6 address, when available.
    type str
    EIP type.
    address String
    IPv4 address.
    id String
    The ID of the shared bandwidth to retrieve.
    ipVersion Number
    IP address version.
    ipv6Address String
    IPv6 address, when available.
    type String
    EIP type.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.37.8
    published on Thursday, Sep 10, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial