Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getCrossConnectPortSpeedShape
Explore with Pulumi AI
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:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Cross Connect Port Speed Shape Filter>
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Cross Connect Port Speed Shape Filter
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Cross Connect Port Speed Shape Filter>
- compartment
Id string - The OCID of the compartment.
- filters
Get
Cross Connect Port Speed Shape Filter[]
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[core.
Get Cross Connect Port Speed Shape Filter]
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
getCrossConnectPortSpeedShape Result
The following output properties are available:
- Compartment
Id string - Cross
Connect List<GetPort Speed Shapes Cross Connect Port Speed Shape Cross Connect Port Speed Shape> - The list of cross_connect_port_speed_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Cross Connect Port Speed Shape Filter>
- Compartment
Id string - Cross
Connect []GetPort Speed Shapes Cross Connect Port Speed Shape Cross Connect Port Speed Shape - The list of cross_connect_port_speed_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Cross Connect Port Speed Shape Filter
- compartment
Id String - cross
Connect List<GetPort Speed Shapes Cross Connect Port Speed Shape Cross Connect Port Speed Shape> - The list of cross_connect_port_speed_shapes.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Cross Connect Port Speed Shape Filter>
- compartment
Id string - cross
Connect GetPort Speed Shapes Cross Connect Port Speed Shape Cross Connect Port Speed Shape[] - The list of cross_connect_port_speed_shapes.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Cross Connect Port Speed Shape Filter[]
- compartment_
id str - cross_
connect_ Sequence[core.port_ speed_ shapes Get Cross Connect Port Speed Shape Cross Connect Port Speed Shape] - The list of cross_connect_port_speed_shapes.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[core.
Get Cross Connect Port Speed Shape Filter]
- compartment
Id String - cross
Connect List<Property Map>Port Speed Shapes - 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
- Port
Speed intIn Gbps - The port speed in Gbps. Example:
10
- Name string
- The name of the port speed shape. Example:
10 Gbps
- Port
Speed intIn Gbps - The port speed in Gbps. Example:
10
- name String
- The name of the port speed shape. Example:
10 Gbps
- port
Speed IntegerIn Gbps - The port speed in Gbps. Example:
10
- name string
- The name of the port speed shape. Example:
10 Gbps
- port
Speed numberIn Gbps - The port speed in Gbps. Example:
10
- name str
- The name of the port speed shape. Example:
10 Gbps
- port_
speed_ intin_ gbps - The port speed in Gbps. Example:
10
- name String
- The name of the port speed shape. Example:
10 Gbps
- port
Speed NumberIn Gbps - The port speed in Gbps. Example:
10
GetCrossConnectPortSpeedShapeFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.