1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getCrossConnectPortSpeedShape
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getCrossConnectPortSpeedShape

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Cross Connect Port Speed Shapes in Oracle Cloud Infrastructure Core service.

    Lists the available port speeds for cross-connects. You need this information so you can specify your desired port speed (that is, shape) when you create a cross-connect.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCrossConnectPortSpeedShapes = oci.Core.getCrossConnectPortSpeedShape({
        compartmentId: compartmentId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cross_connect_port_speed_shapes = oci.Core.get_cross_connect_port_speed_shape(compartment_id=compartment_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetCrossConnectPortSpeedShape(ctx, &core.GetCrossConnectPortSpeedShapeArgs{
    			CompartmentId: compartmentId,
    		}, 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 testCrossConnectPortSpeedShapes = Oci.Core.GetCrossConnectPortSpeedShape.Invoke(new()
        {
            CompartmentId = compartmentId,
        });
    
    });
    
    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.GetCrossConnectPortSpeedShapeArgs;
    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 testCrossConnectPortSpeedShapes = CoreFunctions.getCrossConnectPortSpeedShape(GetCrossConnectPortSpeedShapeArgs.builder()
                .compartmentId(compartmentId)
                .build());
    
        }
    }
    
    variables:
      testCrossConnectPortSpeedShapes:
        fn::invoke:
          Function: oci:Core:getCrossConnectPortSpeedShape
          Arguments:
            compartmentId: ${compartmentId}
    

    Using getCrossConnectPortSpeedShape

    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 getCrossConnectPortSpeedShape(args: GetCrossConnectPortSpeedShapeArgs, opts?: InvokeOptions): Promise<GetCrossConnectPortSpeedShapeResult>
    function getCrossConnectPortSpeedShapeOutput(args: GetCrossConnectPortSpeedShapeOutputArgs, opts?: InvokeOptions): Output<GetCrossConnectPortSpeedShapeResult>
    def get_cross_connect_port_speed_shape(compartment_id: Optional[str] = None,
                                           filters: Optional[Sequence[_core.GetCrossConnectPortSpeedShapeFilter]] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetCrossConnectPortSpeedShapeResult
    def get_cross_connect_port_speed_shape_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetCrossConnectPortSpeedShapeFilterArgs]]]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetCrossConnectPortSpeedShapeResult]
    func GetCrossConnectPortSpeedShape(ctx *Context, args *GetCrossConnectPortSpeedShapeArgs, opts ...InvokeOption) (*GetCrossConnectPortSpeedShapeResult, error)
    func GetCrossConnectPortSpeedShapeOutput(ctx *Context, args *GetCrossConnectPortSpeedShapeOutputArgs, opts ...InvokeOption) GetCrossConnectPortSpeedShapeResultOutput

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

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

    The following arguments are supported:

    compartmentId String
    The OCID of the compartment.
    filters List<Property Map>

    getCrossConnectPortSpeedShape Result

    The following output properties are available:

    CompartmentId string
    CrossConnectPortSpeedShapes List<GetCrossConnectPortSpeedShapeCrossConnectPortSpeedShape>
    The list of cross_connect_port_speed_shapes.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetCrossConnectPortSpeedShapeFilter>
    CompartmentId string
    CrossConnectPortSpeedShapes []GetCrossConnectPortSpeedShapeCrossConnectPortSpeedShape
    The list of cross_connect_port_speed_shapes.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetCrossConnectPortSpeedShapeFilter
    compartmentId String
    crossConnectPortSpeedShapes List<GetCrossConnectPortSpeedShapeCrossConnectPortSpeedShape>
    The list of cross_connect_port_speed_shapes.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetCrossConnectPortSpeedShapeFilter>
    compartmentId string
    crossConnectPortSpeedShapes GetCrossConnectPortSpeedShapeCrossConnectPortSpeedShape[]
    The list of cross_connect_port_speed_shapes.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetCrossConnectPortSpeedShapeFilter[]
    compartmentId String
    crossConnectPortSpeedShapes List<Property Map>
    The list of cross_connect_port_speed_shapes.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetCrossConnectPortSpeedShapeCrossConnectPortSpeedShape

    Name string
    The name of the port speed shape. Example: 10 Gbps
    PortSpeedInGbps int
    The port speed in Gbps. Example: 10
    Name string
    The name of the port speed shape. Example: 10 Gbps
    PortSpeedInGbps int
    The port speed in Gbps. Example: 10
    name String
    The name of the port speed shape. Example: 10 Gbps
    portSpeedInGbps Integer
    The port speed in Gbps. Example: 10
    name string
    The name of the port speed shape. Example: 10 Gbps
    portSpeedInGbps number
    The port speed in Gbps. Example: 10
    name str
    The name of the port speed shape. Example: 10 Gbps
    port_speed_in_gbps int
    The port speed in Gbps. Example: 10
    name String
    The name of the port speed shape. Example: 10 Gbps
    portSpeedInGbps Number
    The port speed in Gbps. Example: 10

    GetCrossConnectPortSpeedShapeFilter

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

    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi