1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getOnpremConnectors
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DataSafe.getOnpremConnectors

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of On Prem Connectors in Oracle Cloud Infrastructure Data Safe service.

    Gets a list of on-premises connectors.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOnPremConnectors = oci.DataSafe.getOnpremConnectors({
        compartmentId: compartmentId,
        accessLevel: onPremConnectorAccessLevel,
        compartmentIdInSubtree: onPremConnectorCompartmentIdInSubtree,
        displayName: onPremConnectorDisplayName,
        onPremConnectorId: testOnPremConnector.id,
        onPremConnectorLifecycleState: onPremConnectorOnPremConnectorLifecycleState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_on_prem_connectors = oci.DataSafe.get_onprem_connectors(compartment_id=compartment_id,
        access_level=on_prem_connector_access_level,
        compartment_id_in_subtree=on_prem_connector_compartment_id_in_subtree,
        display_name=on_prem_connector_display_name,
        on_prem_connector_id=test_on_prem_connector["id"],
        on_prem_connector_lifecycle_state=on_prem_connector_on_prem_connector_lifecycle_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataSafe.GetOnpremConnectors(ctx, &datasafe.GetOnpremConnectorsArgs{
    			CompartmentId:                 compartmentId,
    			AccessLevel:                   pulumi.StringRef(onPremConnectorAccessLevel),
    			CompartmentIdInSubtree:        pulumi.BoolRef(onPremConnectorCompartmentIdInSubtree),
    			DisplayName:                   pulumi.StringRef(onPremConnectorDisplayName),
    			OnPremConnectorId:             pulumi.StringRef(testOnPremConnector.Id),
    			OnPremConnectorLifecycleState: pulumi.StringRef(onPremConnectorOnPremConnectorLifecycleState),
    		}, 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 testOnPremConnectors = Oci.DataSafe.GetOnpremConnectors.Invoke(new()
        {
            CompartmentId = compartmentId,
            AccessLevel = onPremConnectorAccessLevel,
            CompartmentIdInSubtree = onPremConnectorCompartmentIdInSubtree,
            DisplayName = onPremConnectorDisplayName,
            OnPremConnectorId = testOnPremConnector.Id,
            OnPremConnectorLifecycleState = onPremConnectorOnPremConnectorLifecycleState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.DataSafeFunctions;
    import com.pulumi.oci.DataSafe.inputs.GetOnpremConnectorsArgs;
    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 testOnPremConnectors = DataSafeFunctions.getOnpremConnectors(GetOnpremConnectorsArgs.builder()
                .compartmentId(compartmentId)
                .accessLevel(onPremConnectorAccessLevel)
                .compartmentIdInSubtree(onPremConnectorCompartmentIdInSubtree)
                .displayName(onPremConnectorDisplayName)
                .onPremConnectorId(testOnPremConnector.id())
                .onPremConnectorLifecycleState(onPremConnectorOnPremConnectorLifecycleState)
                .build());
    
        }
    }
    
    variables:
      testOnPremConnectors:
        fn::invoke:
          Function: oci:DataSafe:getOnpremConnectors
          Arguments:
            compartmentId: ${compartmentId}
            accessLevel: ${onPremConnectorAccessLevel}
            compartmentIdInSubtree: ${onPremConnectorCompartmentIdInSubtree}
            displayName: ${onPremConnectorDisplayName}
            onPremConnectorId: ${testOnPremConnector.id}
            onPremConnectorLifecycleState: ${onPremConnectorOnPremConnectorLifecycleState}
    

    Using getOnpremConnectors

    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 getOnpremConnectors(args: GetOnpremConnectorsArgs, opts?: InvokeOptions): Promise<GetOnpremConnectorsResult>
    function getOnpremConnectorsOutput(args: GetOnpremConnectorsOutputArgs, opts?: InvokeOptions): Output<GetOnpremConnectorsResult>
    def get_onprem_connectors(access_level: Optional[str] = None,
                              compartment_id: Optional[str] = None,
                              compartment_id_in_subtree: Optional[bool] = None,
                              display_name: Optional[str] = None,
                              filters: Optional[Sequence[_datasafe.GetOnpremConnectorsFilter]] = None,
                              on_prem_connector_id: Optional[str] = None,
                              on_prem_connector_lifecycle_state: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetOnpremConnectorsResult
    def get_onprem_connectors_output(access_level: Optional[pulumi.Input[str]] = None,
                              compartment_id: Optional[pulumi.Input[str]] = None,
                              compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                              display_name: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetOnpremConnectorsFilterArgs]]]] = None,
                              on_prem_connector_id: Optional[pulumi.Input[str]] = None,
                              on_prem_connector_lifecycle_state: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetOnpremConnectorsResult]
    func GetOnpremConnectors(ctx *Context, args *GetOnpremConnectorsArgs, opts ...InvokeOption) (*GetOnpremConnectorsResult, error)
    func GetOnpremConnectorsOutput(ctx *Context, args *GetOnpremConnectorsOutputArgs, opts ...InvokeOption) GetOnpremConnectorsResultOutput

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

    public static class GetOnpremConnectors 
    {
        public static Task<GetOnpremConnectorsResult> InvokeAsync(GetOnpremConnectorsArgs args, InvokeOptions? opts = null)
        public static Output<GetOnpremConnectorsResult> Invoke(GetOnpremConnectorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOnpremConnectorsResult> getOnpremConnectors(GetOnpremConnectorsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getOnpremConnectors:getOnpremConnectors
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters List<GetOnpremConnectorsFilter>
    OnPremConnectorId string
    A filter to return only the on-premises connector that matches the specified id.
    OnPremConnectorLifecycleState string
    A filter to return only on-premises connector resources that match the specified lifecycle state.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters []GetOnpremConnectorsFilter
    OnPremConnectorId string
    A filter to return only the on-premises connector that matches the specified id.
    OnPremConnectorLifecycleState string
    A filter to return only on-premises connector resources that match the specified lifecycle state.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<GetOnpremConnectorsFilter>
    onPremConnectorId String
    A filter to return only the on-premises connector that matches the specified id.
    onPremConnectorLifecycleState String
    A filter to return only on-premises connector resources that match the specified lifecycle state.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    accessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName string
    A filter to return only resources that match the specified display name.
    filters GetOnpremConnectorsFilter[]
    onPremConnectorId string
    A filter to return only the on-premises connector that matches the specified id.
    onPremConnectorLifecycleState string
    A filter to return only on-premises connector resources that match the specified lifecycle state.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    access_level str
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartment_id_in_subtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    display_name str
    A filter to return only resources that match the specified display name.
    filters Sequence[datasafe.GetOnpremConnectorsFilter]
    on_prem_connector_id str
    A filter to return only the on-premises connector that matches the specified id.
    on_prem_connector_lifecycle_state str
    A filter to return only on-premises connector resources that match the specified lifecycle state.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<Property Map>
    onPremConnectorId String
    A filter to return only the on-premises connector that matches the specified id.
    onPremConnectorLifecycleState String
    A filter to return only on-premises connector resources that match the specified lifecycle state.

    getOnpremConnectors Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the on-premises connector.
    Id string
    The provider-assigned unique ID for this managed resource.
    OnPremConnectors List<GetOnpremConnectorsOnPremConnector>
    The list of on_prem_connectors.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the on-premises connector.
    Filters List<GetOnpremConnectorsFilter>
    OnPremConnectorId string
    OnPremConnectorLifecycleState string
    CompartmentId string
    The OCID of the compartment that contains the on-premises connector.
    Id string
    The provider-assigned unique ID for this managed resource.
    OnPremConnectors []GetOnpremConnectorsOnPremConnector
    The list of on_prem_connectors.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the on-premises connector.
    Filters []GetOnpremConnectorsFilter
    OnPremConnectorId string
    OnPremConnectorLifecycleState string
    compartmentId String
    The OCID of the compartment that contains the on-premises connector.
    id String
    The provider-assigned unique ID for this managed resource.
    onPremConnectors List<GetOnpremConnectorsOnPremConnector>
    The list of on_prem_connectors.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the on-premises connector.
    filters List<GetOnpremConnectorsFilter>
    onPremConnectorId String
    onPremConnectorLifecycleState String
    compartmentId string
    The OCID of the compartment that contains the on-premises connector.
    id string
    The provider-assigned unique ID for this managed resource.
    onPremConnectors GetOnpremConnectorsOnPremConnector[]
    The list of on_prem_connectors.
    accessLevel string
    compartmentIdInSubtree boolean
    displayName string
    The display name of the on-premises connector.
    filters GetOnpremConnectorsFilter[]
    onPremConnectorId string
    onPremConnectorLifecycleState string
    compartment_id str
    The OCID of the compartment that contains the on-premises connector.
    id str
    The provider-assigned unique ID for this managed resource.
    on_prem_connectors Sequence[datasafe.GetOnpremConnectorsOnPremConnector]
    The list of on_prem_connectors.
    access_level str
    compartment_id_in_subtree bool
    display_name str
    The display name of the on-premises connector.
    filters Sequence[datasafe.GetOnpremConnectorsFilter]
    on_prem_connector_id str
    on_prem_connector_lifecycle_state str
    compartmentId String
    The OCID of the compartment that contains the on-premises connector.
    id String
    The provider-assigned unique ID for this managed resource.
    onPremConnectors List<Property Map>
    The list of on_prem_connectors.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the on-premises connector.
    filters List<Property Map>
    onPremConnectorId String
    onPremConnectorLifecycleState String

    Supporting Types

    GetOnpremConnectorsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetOnpremConnectorsOnPremConnector

    AvailableVersion string
    Latest available version of the on-premises connector.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    CreatedVersion string
    Created version of the on-premises connector.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    The description of the on-premises connector.
    DisplayName string
    A filter to return only resources that match the specified display name.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    Id string
    The OCID of the on-premises connector.
    LifecycleDetails string
    Details about the current state of the on-premises connector.
    State string
    The current state of the on-premises connector.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the on-premises connector was created, in the format defined by RFC3339.
    AvailableVersion string
    Latest available version of the on-premises connector.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    CreatedVersion string
    Created version of the on-premises connector.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    The description of the on-premises connector.
    DisplayName string
    A filter to return only resources that match the specified display name.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    Id string
    The OCID of the on-premises connector.
    LifecycleDetails string
    Details about the current state of the on-premises connector.
    State string
    The current state of the on-premises connector.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the on-premises connector was created, in the format defined by RFC3339.
    availableVersion String
    Latest available version of the on-premises connector.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    createdVersion String
    Created version of the on-premises connector.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    The description of the on-premises connector.
    displayName String
    A filter to return only resources that match the specified display name.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id String
    The OCID of the on-premises connector.
    lifecycleDetails String
    Details about the current state of the on-premises connector.
    state String
    The current state of the on-premises connector.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the on-premises connector was created, in the format defined by RFC3339.
    availableVersion string
    Latest available version of the on-premises connector.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    createdVersion string
    Created version of the on-premises connector.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description string
    The description of the on-premises connector.
    displayName string
    A filter to return only resources that match the specified display name.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id string
    The OCID of the on-premises connector.
    lifecycleDetails string
    Details about the current state of the on-premises connector.
    state string
    The current state of the on-premises connector.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the on-premises connector was created, in the format defined by RFC3339.
    available_version str
    Latest available version of the on-premises connector.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    created_version str
    Created version of the on-premises connector.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description str
    The description of the on-premises connector.
    display_name str
    A filter to return only resources that match the specified display name.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id str
    The OCID of the on-premises connector.
    lifecycle_details str
    Details about the current state of the on-premises connector.
    state str
    The current state of the on-premises connector.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the on-premises connector was created, in the format defined by RFC3339.
    availableVersion String
    Latest available version of the on-premises connector.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    createdVersion String
    Created version of the on-premises connector.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    The description of the on-premises connector.
    displayName String
    A filter to return only resources that match the specified display name.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id String
    The OCID of the on-premises connector.
    lifecycleDetails String
    Details about the current state of the on-premises connector.
    state String
    The current state of the on-premises connector.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the on-premises connector was created, in the format defined by RFC3339.

    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi