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

oci.Streaming.getConnectHarnesses

Explore with Pulumi AI

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

    This data source provides the list of Connect Harnesses in Oracle Cloud Infrastructure Streaming service.

    Lists the connectharness.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testConnectHarnesses = oci.Streaming.getConnectHarnesses({
        compartmentId: _var.compartment_id,
        id: _var.connect_harness_id,
        name: _var.connect_harness_name,
        state: _var.connect_harness_state,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_connect_harnesses = oci.Streaming.get_connect_harnesses(compartment_id=var["compartment_id"],
        id=var["connect_harness_id"],
        name=var["connect_harness_name"],
        state=var["connect_harness_state"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Streaming"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Streaming.GetConnectHarnesses(ctx, &streaming.GetConnectHarnessesArgs{
    			CompartmentId: _var.Compartment_id,
    			Id:            pulumi.StringRef(_var.Connect_harness_id),
    			Name:          pulumi.StringRef(_var.Connect_harness_name),
    			State:         pulumi.StringRef(_var.Connect_harness_state),
    		}, 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 testConnectHarnesses = Oci.Streaming.GetConnectHarnesses.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            Id = @var.Connect_harness_id,
            Name = @var.Connect_harness_name,
            State = @var.Connect_harness_state,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Streaming.StreamingFunctions;
    import com.pulumi.oci.Streaming.inputs.GetConnectHarnessesArgs;
    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 testConnectHarnesses = StreamingFunctions.getConnectHarnesses(GetConnectHarnessesArgs.builder()
                .compartmentId(var_.compartment_id())
                .id(var_.connect_harness_id())
                .name(var_.connect_harness_name())
                .state(var_.connect_harness_state())
                .build());
    
        }
    }
    
    variables:
      testConnectHarnesses:
        fn::invoke:
          Function: oci:Streaming:getConnectHarnesses
          Arguments:
            compartmentId: ${var.compartment_id}
            id: ${var.connect_harness_id}
            name: ${var.connect_harness_name}
            state: ${var.connect_harness_state}
    

    Using getConnectHarnesses

    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 getConnectHarnesses(args: GetConnectHarnessesArgs, opts?: InvokeOptions): Promise<GetConnectHarnessesResult>
    function getConnectHarnessesOutput(args: GetConnectHarnessesOutputArgs, opts?: InvokeOptions): Output<GetConnectHarnessesResult>
    def get_connect_harnesses(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[_streaming.GetConnectHarnessesFilter]] = None,
                              id: Optional[str] = None,
                              name: Optional[str] = None,
                              state: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetConnectHarnessesResult
    def get_connect_harnesses_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_streaming.GetConnectHarnessesFilterArgs]]]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              state: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetConnectHarnessesResult]
    func GetConnectHarnesses(ctx *Context, args *GetConnectHarnessesArgs, opts ...InvokeOption) (*GetConnectHarnessesResult, error)
    func GetConnectHarnessesOutput(ctx *Context, args *GetConnectHarnessesOutputArgs, opts ...InvokeOption) GetConnectHarnessesResultOutput

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

    public static class GetConnectHarnesses 
    {
        public static Task<GetConnectHarnessesResult> InvokeAsync(GetConnectHarnessesArgs args, InvokeOptions? opts = null)
        public static Output<GetConnectHarnessesResult> Invoke(GetConnectHarnessesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConnectHarnessesResult> getConnectHarnesses(GetConnectHarnessesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Streaming/getConnectHarnesses:getConnectHarnesses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment.
    Filters List<GetConnectHarnessesFilter>
    Id string
    A filter to return only resources that match the given ID exactly.
    Name string
    A filter to return only resources that match the given name exactly.
    State string
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    CompartmentId string
    The OCID of the compartment.
    Filters []GetConnectHarnessesFilter
    Id string
    A filter to return only resources that match the given ID exactly.
    Name string
    A filter to return only resources that match the given name exactly.
    State string
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment.
    filters List<GetConnectHarnessesFilter>
    id String
    A filter to return only resources that match the given ID exactly.
    name String
    A filter to return only resources that match the given name exactly.
    state String
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId string
    The OCID of the compartment.
    filters GetConnectHarnessesFilter[]
    id string
    A filter to return only resources that match the given ID exactly.
    name string
    A filter to return only resources that match the given name exactly.
    state string
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    compartment_id str
    The OCID of the compartment.
    filters Sequence[streaming.GetConnectHarnessesFilter]
    id str
    A filter to return only resources that match the given ID exactly.
    name str
    A filter to return only resources that match the given name exactly.
    state str
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment.
    filters List<Property Map>
    id String
    A filter to return only resources that match the given ID exactly.
    name String
    A filter to return only resources that match the given name exactly.
    state String
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.

    getConnectHarnesses Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the connect harness.
    ConnectHarnesses List<GetConnectHarnessesConnectHarness>
    The list of connect_harness.
    Filters List<GetConnectHarnessesFilter>
    Id string
    The OCID of the connect harness.
    Name string
    The name of the connect harness. Avoid entering confidential information. Example: JDBCConnector
    State string
    The current state of the connect harness.
    CompartmentId string
    The OCID of the compartment that contains the connect harness.
    ConnectHarnesses []GetConnectHarnessesConnectHarness
    The list of connect_harness.
    Filters []GetConnectHarnessesFilter
    Id string
    The OCID of the connect harness.
    Name string
    The name of the connect harness. Avoid entering confidential information. Example: JDBCConnector
    State string
    The current state of the connect harness.
    compartmentId String
    The OCID of the compartment that contains the connect harness.
    connectHarnesses List<GetConnectHarnessesConnectHarness>
    The list of connect_harness.
    filters List<GetConnectHarnessesFilter>
    id String
    The OCID of the connect harness.
    name String
    The name of the connect harness. Avoid entering confidential information. Example: JDBCConnector
    state String
    The current state of the connect harness.
    compartmentId string
    The OCID of the compartment that contains the connect harness.
    connectHarnesses GetConnectHarnessesConnectHarness[]
    The list of connect_harness.
    filters GetConnectHarnessesFilter[]
    id string
    The OCID of the connect harness.
    name string
    The name of the connect harness. Avoid entering confidential information. Example: JDBCConnector
    state string
    The current state of the connect harness.
    compartment_id str
    The OCID of the compartment that contains the connect harness.
    connect_harnesses Sequence[streaming.GetConnectHarnessesConnectHarness]
    The list of connect_harness.
    filters Sequence[streaming.GetConnectHarnessesFilter]
    id str
    The OCID of the connect harness.
    name str
    The name of the connect harness. Avoid entering confidential information. Example: JDBCConnector
    state str
    The current state of the connect harness.
    compartmentId String
    The OCID of the compartment that contains the connect harness.
    connectHarnesses List<Property Map>
    The list of connect_harness.
    filters List<Property Map>
    id String
    The OCID of the connect harness.
    name String
    The name of the connect harness. Avoid entering confidential information. Example: JDBCConnector
    state String
    The current state of the connect harness.

    Supporting Types

    GetConnectHarnessesConnectHarness

    CompartmentId string
    The OCID of the compartment.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    A filter to return only resources that match the given ID exactly.
    LifecycleStateDetails string
    Any additional details about the current state of the connect harness.
    Name string
    A filter to return only resources that match the given name exactly.
    State string
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    TimeCreated string
    The date and time the connect harness was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    CompartmentId string
    The OCID of the compartment.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    A filter to return only resources that match the given ID exactly.
    LifecycleStateDetails string
    Any additional details about the current state of the connect harness.
    Name string
    A filter to return only resources that match the given name exactly.
    State string
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    TimeCreated string
    The date and time the connect harness was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    A filter to return only resources that match the given ID exactly.
    lifecycleStateDetails String
    Any additional details about the current state of the connect harness.
    name String
    A filter to return only resources that match the given name exactly.
    state String
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    timeCreated String
    The date and time the connect harness was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartmentId string
    The OCID of the compartment.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    A filter to return only resources that match the given ID exactly.
    lifecycleStateDetails string
    Any additional details about the current state of the connect harness.
    name string
    A filter to return only resources that match the given name exactly.
    state string
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    timeCreated string
    The date and time the connect harness was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartment_id str
    The OCID of the compartment.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    A filter to return only resources that match the given ID exactly.
    lifecycle_state_details str
    Any additional details about the current state of the connect harness.
    name str
    A filter to return only resources that match the given name exactly.
    state str
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    time_created str
    The date and time the connect harness was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z
    compartmentId String
    The OCID of the compartment.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"Operations": {"CostCenter": "42"}}'
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    A filter to return only resources that match the given ID exactly.
    lifecycleStateDetails String
    Any additional details about the current state of the connect harness.
    name String
    A filter to return only resources that match the given name exactly.
    state String
    A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
    timeCreated String
    The date and time the connect harness was created, expressed in in RFC 3339 timestamp format. Example: 2018-04-20T00:00:07.405Z

    GetConnectHarnessesFilter

    Name string
    A filter to return only resources that match the given name exactly.
    Values List<string>
    Regex bool
    Name string
    A filter to return only resources that match the given name exactly.
    Values []string
    Regex bool
    name String
    A filter to return only resources that match the given name exactly.
    values List<String>
    regex Boolean
    name string
    A filter to return only resources that match the given name exactly.
    values string[]
    regex boolean
    name str
    A filter to return only resources that match the given name exactly.
    values Sequence[str]
    regex bool
    name String
    A filter to return only resources that match the given name exactly.
    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi