1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getVpcBandwidth
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.getVpcBandwidth

Explore with Pulumi AI

opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

Up-to-date reference of API arguments for VPC shared bandwidth you can get at documentation portal

Provides details about a specific shared bandwidth.

~> Deprecated, use opentelekomcloud.VpcBandwidthV2 data source instead

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const bandwidthName = config.requireObject("bandwidthName");
const bandwidth1 = opentelekomcloud.getVpcBandwidth({
    name: bandwidthName,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
bandwidth_name = config.require_object("bandwidthName")
bandwidth1 = opentelekomcloud.get_vpc_bandwidth(name=bandwidth_name)
Copy
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.GetVpcBandwidth(ctx, &opentelekomcloud.GetVpcBandwidthArgs{
			Name: bandwidthName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.GetVpcBandwidth.Invoke(new()
    {
        Name = bandwidthName,
    });

});
Copy
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.GetVpcBandwidthArgs;
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.getVpcBandwidth(GetVpcBandwidthArgs.builder()
            .name(bandwidthName)
            .build());

    }
}
Copy
configuration:
  bandwidthName:
    type: dynamic
variables:
  bandwidth1:
    fn::invoke:
      function: opentelekomcloud:getVpcBandwidth
      arguments:
        name: ${bandwidthName}
Copy

Using getVpcBandwidth

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 getVpcBandwidth(args: GetVpcBandwidthArgs, opts?: InvokeOptions): Promise<GetVpcBandwidthResult>
function getVpcBandwidthOutput(args: GetVpcBandwidthOutputArgs, opts?: InvokeOptions): Output<GetVpcBandwidthResult>
Copy
def get_vpc_bandwidth(enterprise_project_id: Optional[str] = None,
                      id: Optional[str] = None,
                      name: Optional[str] = None,
                      region: Optional[str] = None,
                      size: Optional[float] = None,
                      opts: Optional[InvokeOptions] = None) -> GetVpcBandwidthResult
def get_vpc_bandwidth_output(enterprise_project_id: Optional[pulumi.Input[str]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      region: Optional[pulumi.Input[str]] = None,
                      size: Optional[pulumi.Input[float]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetVpcBandwidthResult]
Copy
func GetVpcBandwidth(ctx *Context, args *GetVpcBandwidthArgs, opts ...InvokeOption) (*GetVpcBandwidthResult, error)
func GetVpcBandwidthOutput(ctx *Context, args *GetVpcBandwidthOutputArgs, opts ...InvokeOption) GetVpcBandwidthResultOutput
Copy

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

public static class GetVpcBandwidth 
{
    public static Task<GetVpcBandwidthResult> InvokeAsync(GetVpcBandwidthArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcBandwidthResult> Invoke(GetVpcBandwidthInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpcBandwidthResult> getVpcBandwidth(GetVpcBandwidthArgs args, InvokeOptions options)
public static Output<GetVpcBandwidthResult> getVpcBandwidth(GetVpcBandwidthArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getVpcBandwidth:getVpcBandwidth
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the Shared Bandwidth to retrieve.
EnterpriseProjectId string
Id string
ID of the Shared Bandwidth.
Region string
The region in which to obtain the bandwidth. If omitted, the provider-level region will be used.
Size double
The size of the Shared Bandwidth to retrieve. The value ranges from 5 Mbit/s to 2000 Mbit/s.
Name This property is required. string
The name of the Shared Bandwidth to retrieve.
EnterpriseProjectId string
Id string
ID of the Shared Bandwidth.
Region string
The region in which to obtain the bandwidth. If omitted, the provider-level region will be used.
Size float64
The size of the Shared Bandwidth to retrieve. The value ranges from 5 Mbit/s to 2000 Mbit/s.
name This property is required. String
The name of the Shared Bandwidth to retrieve.
enterpriseProjectId String
id String
ID of the Shared Bandwidth.
region String
The region in which to obtain the bandwidth. If omitted, the provider-level region will be used.
size Double
The size of the Shared Bandwidth to retrieve. The value ranges from 5 Mbit/s to 2000 Mbit/s.
name This property is required. string
The name of the Shared Bandwidth to retrieve.
enterpriseProjectId string
id string
ID of the Shared Bandwidth.
region string
The region in which to obtain the bandwidth. If omitted, the provider-level region will be used.
size number
The size of the Shared Bandwidth to retrieve. The value ranges from 5 Mbit/s to 2000 Mbit/s.
name This property is required. str
The name of the Shared Bandwidth to retrieve.
enterprise_project_id str
id str
ID of the Shared Bandwidth.
region str
The region in which to obtain the bandwidth. If omitted, the provider-level region will be used.
size float
The size of the Shared Bandwidth to retrieve. The value ranges from 5 Mbit/s to 2000 Mbit/s.
name This property is required. String
The name of the Shared Bandwidth to retrieve.
enterpriseProjectId String
id String
ID of the Shared Bandwidth.
region String
The region in which to obtain the bandwidth. If omitted, the provider-level region will be used.
size Number
The size of the Shared Bandwidth to retrieve. The value ranges from 5 Mbit/s to 2000 Mbit/s.

getVpcBandwidth Result

The following output properties are available:

BandwidthType string
Indicates the bandwidth type.
ChargeMode string
Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
Id string
ID of the Shared Bandwidth.
Name string
See Argument Reference above.
Region string
ShareType string
Indicates whether the bandwidth is a shared or dedicated one.
Status string
Indicates the bandwidth status.
EnterpriseProjectId string
Size double
See Argument Reference above.
BandwidthType string
Indicates the bandwidth type.
ChargeMode string
Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
Id string
ID of the Shared Bandwidth.
Name string
See Argument Reference above.
Region string
ShareType string
Indicates whether the bandwidth is a shared or dedicated one.
Status string
Indicates the bandwidth status.
EnterpriseProjectId string
Size float64
See Argument Reference above.
bandwidthType String
Indicates the bandwidth type.
chargeMode String
Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
id String
ID of the Shared Bandwidth.
name String
See Argument Reference above.
region String
shareType String
Indicates whether the bandwidth is a shared or dedicated one.
status String
Indicates the bandwidth status.
enterpriseProjectId String
size Double
See Argument Reference above.
bandwidthType string
Indicates the bandwidth type.
chargeMode string
Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
id string
ID of the Shared Bandwidth.
name string
See Argument Reference above.
region string
shareType string
Indicates whether the bandwidth is a shared or dedicated one.
status string
Indicates the bandwidth status.
enterpriseProjectId string
size number
See Argument Reference above.
bandwidth_type str
Indicates the bandwidth type.
charge_mode str
Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
id str
ID of the Shared Bandwidth.
name str
See Argument Reference above.
region str
share_type str
Indicates whether the bandwidth is a shared or dedicated one.
status str
Indicates the bandwidth status.
enterprise_project_id str
size float
See Argument Reference above.
bandwidthType String
Indicates the bandwidth type.
chargeMode String
Specifies that the bandwidth is billed by bandwidth. The value can be traffic.
id String
ID of the Shared Bandwidth.
name String
See Argument Reference above.
region String
shareType String
Indicates whether the bandwidth is a shared or dedicated one.
status String
Indicates the bandwidth status.
enterpriseProjectId String
size Number
See Argument Reference above.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud