Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getCrossConnectPortSpeedShape

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testCrossConnectPortSpeedShapes = Oci.Core.GetCrossConnectPortSpeedShape.Invoke(new()
    {
        CompartmentId = @var.Compartment_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.GetCrossConnectPortSpeedShape(ctx, &core.GetCrossConnectPortSpeedShapeArgs{
			CompartmentId: _var.Compartment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(var_.compartment_id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_cross_connect_port_speed_shapes = oci.Core.get_cross_connect_port_speed_shape(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCrossConnectPortSpeedShapes = oci.Core.getCrossConnectPortSpeedShape({
    compartmentId: _var.compartment_id,
});
variables:
  testCrossConnectPortSpeedShapes:
    Fn::Invoke:
      Function: oci:Core:getCrossConnectPortSpeedShape
      Arguments:
        compartmentId: ${var.compartment_id}

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[]
compartment_id str
cross_connect_port_speed_shapes GetCrossConnectPortSpeedShapeCrossConnectPortSpeedShape]

The list of cross_connect_port_speed_shapes.

id str

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.