Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getOnpremConnectors
Explore with Pulumi AI
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[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[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)
public static Output<GetOnpremConnectorsResult> getOnpremConnectors(GetOnpremConnectorsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getOnpremConnectors:getOnpremConnectors
  arguments:
    # arguments dictionaryThe 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.
- CompartmentId boolIn Subtree 
- 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<GetOnprem Connectors Filter> 
- OnPrem stringConnector Id 
- A filter to return only the on-premises connector that matches the specified id.
- OnPrem stringConnector Lifecycle State 
- 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.
- CompartmentId boolIn Subtree 
- 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
[]GetOnprem Connectors Filter 
- OnPrem stringConnector Id 
- A filter to return only the on-premises connector that matches the specified id.
- OnPrem stringConnector Lifecycle State 
- 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.
- compartmentId BooleanIn Subtree 
- 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<GetOnprem Connectors Filter> 
- onPrem StringConnector Id 
- A filter to return only the on-premises connector that matches the specified id.
- onPrem StringConnector Lifecycle State 
- 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.
- compartmentId booleanIn Subtree 
- 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
GetOnprem Connectors Filter[] 
- onPrem stringConnector Id 
- A filter to return only the on-premises connector that matches the specified id.
- onPrem stringConnector Lifecycle State 
- 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_ boolin_ subtree 
- 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[GetOnprem Connectors Filter] 
- on_prem_ strconnector_ id 
- A filter to return only the on-premises connector that matches the specified id.
- on_prem_ strconnector_ lifecycle_ state 
- 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.
- compartmentId BooleanIn Subtree 
- 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>
- onPrem StringConnector Id 
- A filter to return only the on-premises connector that matches the specified id.
- onPrem StringConnector Lifecycle State 
- 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.
- OnPrem List<GetConnectors Onprem Connectors On Prem Connector> 
- The list of on_prem_connectors.
- AccessLevel string
- CompartmentId boolIn Subtree 
- DisplayName string
- The display name of the on-premises connector.
- Filters
List<GetOnprem Connectors Filter> 
- OnPrem stringConnector Id 
- OnPrem stringConnector Lifecycle State 
- CompartmentId string
- The OCID of the compartment that contains the on-premises connector.
- Id string
- The provider-assigned unique ID for this managed resource.
- OnPrem []GetConnectors Onprem Connectors On Prem Connector 
- The list of on_prem_connectors.
- AccessLevel string
- CompartmentId boolIn Subtree 
- DisplayName string
- The display name of the on-premises connector.
- Filters
[]GetOnprem Connectors Filter 
- OnPrem stringConnector Id 
- OnPrem stringConnector Lifecycle State 
- compartmentId String
- The OCID of the compartment that contains the on-premises connector.
- id String
- The provider-assigned unique ID for this managed resource.
- onPrem List<GetConnectors Onprem Connectors On Prem Connector> 
- The list of on_prem_connectors.
- accessLevel String
- compartmentId BooleanIn Subtree 
- displayName String
- The display name of the on-premises connector.
- filters
List<GetOnprem Connectors Filter> 
- onPrem StringConnector Id 
- onPrem StringConnector Lifecycle State 
- compartmentId string
- The OCID of the compartment that contains the on-premises connector.
- id string
- The provider-assigned unique ID for this managed resource.
- onPrem GetConnectors Onprem Connectors On Prem Connector[] 
- The list of on_prem_connectors.
- accessLevel string
- compartmentId booleanIn Subtree 
- displayName string
- The display name of the on-premises connector.
- filters
GetOnprem Connectors Filter[] 
- onPrem stringConnector Id 
- onPrem stringConnector Lifecycle State 
- 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_ Sequence[Getconnectors Onprem Connectors On Prem Connector] 
- The list of on_prem_connectors.
- access_level str
- compartment_id_ boolin_ subtree 
- display_name str
- The display name of the on-premises connector.
- filters
Sequence[GetOnprem Connectors Filter] 
- on_prem_ strconnector_ id 
- on_prem_ strconnector_ lifecycle_ state 
- compartmentId String
- The OCID of the compartment that contains the on-premises connector.
- id String
- The provider-assigned unique ID for this managed resource.
- onPrem List<Property Map>Connectors 
- The list of on_prem_connectors.
- accessLevel String
- compartmentId BooleanIn Subtree 
- displayName String
- The display name of the on-premises connector.
- filters List<Property Map>
- onPrem StringConnector Id 
- onPrem StringConnector Lifecycle State 
Supporting Types
GetOnpremConnectorsFilter   
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- {[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.
- {[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.
- {[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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 ociTerraform Provider.