Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getCrossConnectStatus
Explore with Pulumi AI
This data source provides details about a specific Cross Connect Status resource in Oracle Cloud Infrastructure Core service.
Gets the status of the specified cross-connect.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCrossConnectStatus = oci.Core.getCrossConnectStatus({
crossConnectId: testCrossConnect.id,
});
import pulumi
import pulumi_oci as oci
test_cross_connect_status = oci.Core.get_cross_connect_status(cross_connect_id=test_cross_connect["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.GetCrossConnectStatus(ctx, &core.GetCrossConnectStatusArgs{
CrossConnectId: testCrossConnect.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 testCrossConnectStatus = Oci.Core.GetCrossConnectStatus.Invoke(new()
{
CrossConnectId = testCrossConnect.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.GetCrossConnectStatusArgs;
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 testCrossConnectStatus = CoreFunctions.getCrossConnectStatus(GetCrossConnectStatusArgs.builder()
.crossConnectId(testCrossConnect.id())
.build());
}
}
variables:
testCrossConnectStatus:
fn::invoke:
Function: oci:Core:getCrossConnectStatus
Arguments:
crossConnectId: ${testCrossConnect.id}
Using getCrossConnectStatus
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 getCrossConnectStatus(args: GetCrossConnectStatusArgs, opts?: InvokeOptions): Promise<GetCrossConnectStatusResult>
function getCrossConnectStatusOutput(args: GetCrossConnectStatusOutputArgs, opts?: InvokeOptions): Output<GetCrossConnectStatusResult>
def get_cross_connect_status(cross_connect_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCrossConnectStatusResult
def get_cross_connect_status_output(cross_connect_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCrossConnectStatusResult]
func GetCrossConnectStatus(ctx *Context, args *GetCrossConnectStatusArgs, opts ...InvokeOption) (*GetCrossConnectStatusResult, error)
func GetCrossConnectStatusOutput(ctx *Context, args *GetCrossConnectStatusOutputArgs, opts ...InvokeOption) GetCrossConnectStatusResultOutput
> Note: This function is named GetCrossConnectStatus
in the Go SDK.
public static class GetCrossConnectStatus
{
public static Task<GetCrossConnectStatusResult> InvokeAsync(GetCrossConnectStatusArgs args, InvokeOptions? opts = null)
public static Output<GetCrossConnectStatusResult> Invoke(GetCrossConnectStatusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCrossConnectStatusResult> getCrossConnectStatus(GetCrossConnectStatusArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getCrossConnectStatus:getCrossConnectStatus
arguments:
# arguments dictionary
The following arguments are supported:
- Cross
Connect stringId - The OCID of the cross-connect.
- Cross
Connect stringId - The OCID of the cross-connect.
- cross
Connect StringId - The OCID of the cross-connect.
- cross
Connect stringId - The OCID of the cross-connect.
- cross_
connect_ strid - The OCID of the cross-connect.
- cross
Connect StringId - The OCID of the cross-connect.
getCrossConnectStatus Result
The following output properties are available:
- Cross
Connect stringId - The OCID of the cross-connect.
- Encryption
Status string - Encryption status of the CrossConnect
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
State string - Whether Oracle's side of the interface is up or down.
- Light
Level doubleInd Bm - The light level of the cross-connect (in dBm). Example:
14.0
- Light
Level stringIndicator - Status indicator corresponding to the light level.
- NO_LIGHT: No measurable light
- LOW_WARN: There's measurable light but it's too low
- HIGH_WARN: Light level is too high
- BAD: There's measurable light but the signal-to-noise ratio is bad
- GOOD: Good light level
- Cross
Connect stringId - The OCID of the cross-connect.
- Encryption
Status string - Encryption status of the CrossConnect
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
State string - Whether Oracle's side of the interface is up or down.
- Light
Level float64Ind Bm - The light level of the cross-connect (in dBm). Example:
14.0
- Light
Level stringIndicator - Status indicator corresponding to the light level.
- NO_LIGHT: No measurable light
- LOW_WARN: There's measurable light but it's too low
- HIGH_WARN: Light level is too high
- BAD: There's measurable light but the signal-to-noise ratio is bad
- GOOD: Good light level
- cross
Connect StringId - The OCID of the cross-connect.
- encryption
Status String - Encryption status of the CrossConnect
- id String
- The provider-assigned unique ID for this managed resource.
- interface
State String - Whether Oracle's side of the interface is up or down.
- light
Level DoubleInd Bm - The light level of the cross-connect (in dBm). Example:
14.0
- light
Level StringIndicator - Status indicator corresponding to the light level.
- NO_LIGHT: No measurable light
- LOW_WARN: There's measurable light but it's too low
- HIGH_WARN: Light level is too high
- BAD: There's measurable light but the signal-to-noise ratio is bad
- GOOD: Good light level
- cross
Connect stringId - The OCID of the cross-connect.
- encryption
Status string - Encryption status of the CrossConnect
- id string
- The provider-assigned unique ID for this managed resource.
- interface
State string - Whether Oracle's side of the interface is up or down.
- light
Level numberInd Bm - The light level of the cross-connect (in dBm). Example:
14.0
- light
Level stringIndicator - Status indicator corresponding to the light level.
- NO_LIGHT: No measurable light
- LOW_WARN: There's measurable light but it's too low
- HIGH_WARN: Light level is too high
- BAD: There's measurable light but the signal-to-noise ratio is bad
- GOOD: Good light level
- cross_
connect_ strid - The OCID of the cross-connect.
- encryption_
status str - Encryption status of the CrossConnect
- id str
- The provider-assigned unique ID for this managed resource.
- interface_
state str - Whether Oracle's side of the interface is up or down.
- light_
level_ floatind_ bm - The light level of the cross-connect (in dBm). Example:
14.0
- light_
level_ strindicator - Status indicator corresponding to the light level.
- NO_LIGHT: No measurable light
- LOW_WARN: There's measurable light but it's too low
- HIGH_WARN: Light level is too high
- BAD: There's measurable light but the signal-to-noise ratio is bad
- GOOD: Good light level
- cross
Connect StringId - The OCID of the cross-connect.
- encryption
Status String - Encryption status of the CrossConnect
- id String
- The provider-assigned unique ID for this managed resource.
- interface
State String - Whether Oracle's side of the interface is up or down.
- light
Level NumberInd Bm - The light level of the cross-connect (in dBm). Example:
14.0
- light
Level StringIndicator - Status indicator corresponding to the light level.
- NO_LIGHT: No measurable light
- LOW_WARN: There's measurable light but it's too low
- HIGH_WARN: Light level is too high
- BAD: There's measurable light but the signal-to-noise ratio is bad
- GOOD: Good light level
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.