1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getCrossConnectStatus
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Core.getCrossConnectStatus

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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: oci_core_cross_connect.test_cross_connect.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cross_connect_status = oci.Core.get_cross_connect_status(cross_connect_id=oci_core_cross_connect["test_cross_connect"]["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.GetCrossConnectStatus(ctx, &core.GetCrossConnectStatusArgs{
    			CrossConnectId: oci_core_cross_connect.Test_cross_connect.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 = oci_core_cross_connect.Test_cross_connect.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(oci_core_cross_connect.test_cross_connect().id())
                .build());
    
        }
    }
    
    variables:
      testCrossConnectStatus:
        fn::invoke:
          Function: oci:Core:getCrossConnectStatus
          Arguments:
            crossConnectId: ${oci_core_cross_connect.test_cross_connect.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:

    CrossConnectId string
    The OCID of the cross-connect.
    CrossConnectId string
    The OCID of the cross-connect.
    crossConnectId String
    The OCID of the cross-connect.
    crossConnectId string
    The OCID of the cross-connect.
    cross_connect_id str
    The OCID of the cross-connect.
    crossConnectId String
    The OCID of the cross-connect.

    getCrossConnectStatus Result

    The following output properties are available:

    CrossConnectId string
    The OCID of the cross-connect.
    EncryptionStatus string
    Encryption status of the CrossConnect
    Id string
    The provider-assigned unique ID for this managed resource.
    InterfaceState string
    Whether Oracle's side of the interface is up or down.
    LightLevelIndBm double
    The light level of the cross-connect (in dBm). Example: 14.0
    LightLevelIndicator string
    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
    CrossConnectId string
    The OCID of the cross-connect.
    EncryptionStatus string
    Encryption status of the CrossConnect
    Id string
    The provider-assigned unique ID for this managed resource.
    InterfaceState string
    Whether Oracle's side of the interface is up or down.
    LightLevelIndBm float64
    The light level of the cross-connect (in dBm). Example: 14.0
    LightLevelIndicator string
    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
    crossConnectId String
    The OCID of the cross-connect.
    encryptionStatus String
    Encryption status of the CrossConnect
    id String
    The provider-assigned unique ID for this managed resource.
    interfaceState String
    Whether Oracle's side of the interface is up or down.
    lightLevelIndBm Double
    The light level of the cross-connect (in dBm). Example: 14.0
    lightLevelIndicator String
    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
    crossConnectId string
    The OCID of the cross-connect.
    encryptionStatus string
    Encryption status of the CrossConnect
    id string
    The provider-assigned unique ID for this managed resource.
    interfaceState string
    Whether Oracle's side of the interface is up or down.
    lightLevelIndBm number
    The light level of the cross-connect (in dBm). Example: 14.0
    lightLevelIndicator string
    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_id str
    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_ind_bm float
    The light level of the cross-connect (in dBm). Example: 14.0
    light_level_indicator str
    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
    crossConnectId String
    The OCID of the cross-connect.
    encryptionStatus String
    Encryption status of the CrossConnect
    id String
    The provider-assigned unique ID for this managed resource.
    interfaceState String
    Whether Oracle's side of the interface is up or down.
    lightLevelIndBm Number
    The light level of the cross-connect (in dBm). Example: 14.0
    lightLevelIndicator String
    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.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi