1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getVirtualCircuitBandwidthShapes
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Core.getVirtualCircuitBandwidthShapes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This data source provides the list of Virtual Circuit Bandwidth Shapes in Oracle Cloud Infrastructure Core service.

    Gets the list of available virtual circuit bandwidth levels for a provider. You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit.

    For more information about virtual circuits, see FastConnect Overview.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVirtualCircuitBandwidthShapes = oci.Core.getVirtualCircuitBandwidthShapes({
        providerServiceId: data.oci_core_fast_connect_provider_services.test_fast_connect_provider_services.fast_connect_provider_services[0].id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_virtual_circuit_bandwidth_shapes = oci.Core.get_virtual_circuit_bandwidth_shapes(provider_service_id=data["oci_core_fast_connect_provider_services"]["test_fast_connect_provider_services"]["fast_connect_provider_services"][0]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetVirtualCircuitBandwidthShapes(ctx, &core.GetVirtualCircuitBandwidthShapesArgs{
    			ProviderServiceId: data.Oci_core_fast_connect_provider_services.Test_fast_connect_provider_services.Fast_connect_provider_services[0].Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testVirtualCircuitBandwidthShapes = Oci.Core.GetVirtualCircuitBandwidthShapes.Invoke(new()
        {
            ProviderServiceId = data.Oci_core_fast_connect_provider_services.Test_fast_connect_provider_services.Fast_connect_provider_services[0].Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetVirtualCircuitBandwidthShapesArgs;
    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 testVirtualCircuitBandwidthShapes = CoreFunctions.getVirtualCircuitBandwidthShapes(GetVirtualCircuitBandwidthShapesArgs.builder()
                .providerServiceId(data.oci_core_fast_connect_provider_services().test_fast_connect_provider_services().fast_connect_provider_services()[0].id())
                .build());
    
        }
    }
    
    variables:
      testVirtualCircuitBandwidthShapes:
        fn::invoke:
          Function: oci:Core:getVirtualCircuitBandwidthShapes
          Arguments:
            providerServiceId: ${data.oci_core_fast_connect_provider_services.test_fast_connect_provider_services.fast_connect_provider_services[0].id}
    

    Using getVirtualCircuitBandwidthShapes

    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 getVirtualCircuitBandwidthShapes(args: GetVirtualCircuitBandwidthShapesArgs, opts?: InvokeOptions): Promise<GetVirtualCircuitBandwidthShapesResult>
    function getVirtualCircuitBandwidthShapesOutput(args: GetVirtualCircuitBandwidthShapesOutputArgs, opts?: InvokeOptions): Output<GetVirtualCircuitBandwidthShapesResult>
    def get_virtual_circuit_bandwidth_shapes(filters: Optional[Sequence[_core.GetVirtualCircuitBandwidthShapesFilter]] = None,
                                             provider_service_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetVirtualCircuitBandwidthShapesResult
    def get_virtual_circuit_bandwidth_shapes_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetVirtualCircuitBandwidthShapesFilterArgs]]]] = None,
                                             provider_service_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetVirtualCircuitBandwidthShapesResult]
    func GetVirtualCircuitBandwidthShapes(ctx *Context, args *GetVirtualCircuitBandwidthShapesArgs, opts ...InvokeOption) (*GetVirtualCircuitBandwidthShapesResult, error)
    func GetVirtualCircuitBandwidthShapesOutput(ctx *Context, args *GetVirtualCircuitBandwidthShapesOutputArgs, opts ...InvokeOption) GetVirtualCircuitBandwidthShapesResultOutput

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

    public static class GetVirtualCircuitBandwidthShapes 
    {
        public static Task<GetVirtualCircuitBandwidthShapesResult> InvokeAsync(GetVirtualCircuitBandwidthShapesArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualCircuitBandwidthShapesResult> Invoke(GetVirtualCircuitBandwidthShapesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualCircuitBandwidthShapesResult> getVirtualCircuitBandwidthShapes(GetVirtualCircuitBandwidthShapesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getVirtualCircuitBandwidthShapes:getVirtualCircuitBandwidthShapes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    providerServiceId String
    The OCID of the provider service.
    filters List<Property Map>

    getVirtualCircuitBandwidthShapes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ProviderServiceId string
    VirtualCircuitBandwidthShapes List<GetVirtualCircuitBandwidthShapesVirtualCircuitBandwidthShape>
    The list of virtual_circuit_bandwidth_shapes.
    Filters List<GetVirtualCircuitBandwidthShapesFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ProviderServiceId string
    VirtualCircuitBandwidthShapes []GetVirtualCircuitBandwidthShapesVirtualCircuitBandwidthShape
    The list of virtual_circuit_bandwidth_shapes.
    Filters []GetVirtualCircuitBandwidthShapesFilter
    id String
    The provider-assigned unique ID for this managed resource.
    providerServiceId String
    virtualCircuitBandwidthShapes List<GetVirtualCircuitBandwidthShapesVirtualCircuitBandwidthShape>
    The list of virtual_circuit_bandwidth_shapes.
    filters List<GetVirtualCircuitBandwidthShapesFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    providerServiceId string
    virtualCircuitBandwidthShapes GetVirtualCircuitBandwidthShapesVirtualCircuitBandwidthShape[]
    The list of virtual_circuit_bandwidth_shapes.
    filters GetVirtualCircuitBandwidthShapesFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    providerServiceId String
    virtualCircuitBandwidthShapes List<Property Map>
    The list of virtual_circuit_bandwidth_shapes.
    filters List<Property Map>

    Supporting Types

    GetVirtualCircuitBandwidthShapesFilter

    Name string
    The name of the bandwidth shape. Example: 10 Gbps
    Values List<string>
    Regex bool
    Name string
    The name of the bandwidth shape. Example: 10 Gbps
    Values []string
    Regex bool
    name String
    The name of the bandwidth shape. Example: 10 Gbps
    values List<String>
    regex Boolean
    name string
    The name of the bandwidth shape. Example: 10 Gbps
    values string[]
    regex boolean
    name str
    The name of the bandwidth shape. Example: 10 Gbps
    values Sequence[str]
    regex bool
    name String
    The name of the bandwidth shape. Example: 10 Gbps
    values List<String>
    regex Boolean

    GetVirtualCircuitBandwidthShapesVirtualCircuitBandwidthShape

    BandwidthInMbps int
    The bandwidth in Mbps. Example: 10000
    Name string
    The name of the bandwidth shape. Example: 10 Gbps
    BandwidthInMbps int
    The bandwidth in Mbps. Example: 10000
    Name string
    The name of the bandwidth shape. Example: 10 Gbps
    bandwidthInMbps Integer
    The bandwidth in Mbps. Example: 10000
    name String
    The name of the bandwidth shape. Example: 10 Gbps
    bandwidthInMbps number
    The bandwidth in Mbps. Example: 10000
    name string
    The name of the bandwidth shape. Example: 10 Gbps
    bandwidth_in_mbps int
    The bandwidth in Mbps. Example: 10000
    name str
    The name of the bandwidth shape. Example: 10 Gbps
    bandwidthInMbps Number
    The bandwidth in Mbps. Example: 10000
    name String
    The name of the bandwidth shape. Example: 10 Gbps

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi