1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getOnpremConnectors
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.DataSafe.getOnpremConnectors

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testOnPremConnectors:
    fn::invoke:
      function: oci:DataSafe:getOnpremConnectors
      arguments:
        compartmentId: ${compartmentId}
        accessLevel: ${onPremConnectorAccessLevel}
        compartmentIdInSubtree: ${onPremConnectorCompartmentIdInSubtree}
        displayName: ${onPremConnectorDisplayName}
        onPremConnectorId: ${testOnPremConnector.id}
        onPremConnectorLifecycleState: ${onPremConnectorOnPremConnectorLifecycleState}
Copy

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>
Copy
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]
Copy
func GetOnpremConnectors(ctx *Context, args *GetOnpremConnectorsArgs, opts ...InvokeOption) (*GetOnpremConnectorsResult, error)
func GetOnpremConnectorsOutput(ctx *Context, args *GetOnpremConnectorsOutputArgs, opts ...InvokeOption) GetOnpremConnectorsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOnpremConnectorsResult> getOnpremConnectors(GetOnpremConnectorsArgs args, InvokeOptions options)
public static Output<GetOnpremConnectorsResult> getOnpremConnectors(GetOnpremConnectorsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataSafe/getOnpremConnectors:getOnpremConnectors
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. []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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetOnpremConnectorsOnPremConnector

AvailableVersion This property is required. string
Latest available version of the on-premises connector.
CompartmentId This property is required. string
A filter to return only resources that match the specified compartment OCID.
CreatedVersion This property is required. string
Created version of the on-premises connector.
DefinedTags This property is required. 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 This property is required. string
The description of the on-premises connector.
DisplayName This property is required. string
A filter to return only resources that match the specified display name.
FreeformTags This property is required. 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 This property is required. string
The OCID of the on-premises connector.
LifecycleDetails This property is required. string
Details about the current state of the on-premises connector.
State This property is required. string
The current state of the on-premises connector.
SystemTags This property is required. 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 This property is required. string
The date and time the on-premises connector was created, in the format defined by RFC3339.
AvailableVersion This property is required. string
Latest available version of the on-premises connector.
CompartmentId This property is required. string
A filter to return only resources that match the specified compartment OCID.
CreatedVersion This property is required. string
Created version of the on-premises connector.
DefinedTags This property is required. 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 This property is required. string
The description of the on-premises connector.
DisplayName This property is required. string
A filter to return only resources that match the specified display name.
FreeformTags This property is required. 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 This property is required. string
The OCID of the on-premises connector.
LifecycleDetails This property is required. string
Details about the current state of the on-premises connector.
State This property is required. string
The current state of the on-premises connector.
SystemTags This property is required. 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 This property is required. string
The date and time the on-premises connector was created, in the format defined by RFC3339.
availableVersion This property is required. String
Latest available version of the on-premises connector.
compartmentId This property is required. String
A filter to return only resources that match the specified compartment OCID.
createdVersion This property is required. String
Created version of the on-premises connector.
definedTags This property is required. 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 This property is required. String
The description of the on-premises connector.
displayName This property is required. String
A filter to return only resources that match the specified display name.
freeformTags This property is required. 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 This property is required. String
The OCID of the on-premises connector.
lifecycleDetails This property is required. String
Details about the current state of the on-premises connector.
state This property is required. String
The current state of the on-premises connector.
systemTags This property is required. 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 This property is required. String
The date and time the on-premises connector was created, in the format defined by RFC3339.
availableVersion This property is required. string
Latest available version of the on-premises connector.
compartmentId This property is required. string
A filter to return only resources that match the specified compartment OCID.
createdVersion This property is required. string
Created version of the on-premises connector.
definedTags This property is required. {[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 This property is required. string
The description of the on-premises connector.
displayName This property is required. string
A filter to return only resources that match the specified display name.
freeformTags This property is required. {[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 This property is required. string
The OCID of the on-premises connector.
lifecycleDetails This property is required. string
Details about the current state of the on-premises connector.
state This property is required. string
The current state of the on-premises connector.
systemTags This property is required. {[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 This property is required. string
The date and time the on-premises connector was created, in the format defined by RFC3339.
available_version This property is required. str
Latest available version of the on-premises connector.
compartment_id This property is required. str
A filter to return only resources that match the specified compartment OCID.
created_version This property is required. str
Created version of the on-premises connector.
defined_tags This property is required. 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 This property is required. str
The description of the on-premises connector.
display_name This property is required. str
A filter to return only resources that match the specified display name.
freeform_tags This property is required. 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 This property is required. str
The OCID of the on-premises connector.
lifecycle_details This property is required. str
Details about the current state of the on-premises connector.
state This property is required. str
The current state of the on-premises connector.
system_tags This property is required. 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 This property is required. str
The date and time the on-premises connector was created, in the format defined by RFC3339.
availableVersion This property is required. String
Latest available version of the on-premises connector.
compartmentId This property is required. String
A filter to return only resources that match the specified compartment OCID.
createdVersion This property is required. String
Created version of the on-premises connector.
definedTags This property is required. 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 This property is required. String
The description of the on-premises connector.
displayName This property is required. String
A filter to return only resources that match the specified display name.
freeformTags This property is required. 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 This property is required. String
The OCID of the on-premises connector.
lifecycleDetails This property is required. String
Details about the current state of the on-premises connector.
state This property is required. String
The current state of the on-premises connector.
systemTags This property is required. 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 This property is required. 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.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi