Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level 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.
- 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 string - A filter to return only resources that match the specified display name.
- Filters
List<Get
Onprem Connectors Filter> - On
Prem stringConnector Id - A filter to return only the on-premises connector that matches the specified id.
- On
Prem stringConnector Lifecycle State - A filter to return only on-premises connector resources that match the specified lifecycle state.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level 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.
- 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 string - A filter to return only resources that match the specified display name.
- Filters
[]Get
Onprem Connectors Filter - On
Prem stringConnector Id - A filter to return only the on-premises connector that matches the specified id.
- On
Prem stringConnector Lifecycle State - A filter to return only on-premises connector resources that match the specified lifecycle state.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- compartment
Id 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.
- display
Name String - A filter to return only resources that match the specified display name.
- filters
List<Get
Onprem Connectors Filter> - on
Prem StringConnector Id - A filter to return only the on-premises connector that matches the specified id.
- on
Prem StringConnector Lifecycle State - A filter to return only on-premises connector resources that match the specified lifecycle state.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- compartment
Id 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.
- display
Name string - A filter to return only resources that match the specified display name.
- filters
Get
Onprem Connectors Filter[] - on
Prem stringConnector Id - A filter to return only the on-premises connector that matches the specified id.
- on
Prem 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[datasafe.
Get Onprem 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.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- compartment
Id 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.
- display
Name String - A filter to return only resources that match the specified display name.
- filters List<Property Map>
- on
Prem StringConnector Id - A filter to return only the on-premises connector that matches the specified id.
- on
Prem 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:
- Compartment
Id string - The OCID of the compartment that contains the on-premises connector.
- Id string
- The provider-assigned unique ID for this managed resource.
- On
Prem List<GetConnectors Onprem Connectors On Prem Connector> - The list of on_prem_connectors.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - The display name of the on-premises connector.
- Filters
List<Get
Onprem Connectors Filter> - On
Prem stringConnector Id - On
Prem stringConnector Lifecycle State
- Compartment
Id string - The OCID of the compartment that contains the on-premises connector.
- Id string
- The provider-assigned unique ID for this managed resource.
- On
Prem []GetConnectors Onprem Connectors On Prem Connector - The list of on_prem_connectors.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - The display name of the on-premises connector.
- Filters
[]Get
Onprem Connectors Filter - On
Prem stringConnector Id - On
Prem stringConnector Lifecycle State
- compartment
Id String - The OCID of the compartment that contains the on-premises connector.
- id String
- The provider-assigned unique ID for this managed resource.
- on
Prem List<GetConnectors Onprem Connectors On Prem Connector> - The list of on_prem_connectors.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - The display name of the on-premises connector.
- filters
List<Get
Onprem Connectors Filter> - on
Prem StringConnector Id - on
Prem StringConnector Lifecycle State
- compartment
Id string - The OCID of the compartment that contains the on-premises connector.
- id string
- The provider-assigned unique ID for this managed resource.
- on
Prem GetConnectors Onprem Connectors On Prem Connector[] - The list of on_prem_connectors.
- access
Level string - compartment
Id booleanIn Subtree - display
Name string - The display name of the on-premises connector.
- filters
Get
Onprem Connectors Filter[] - on
Prem stringConnector Id - on
Prem 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[datasafe.connectors Get 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[datasafe.
Get Onprem Connectors Filter] - on_
prem_ strconnector_ id - on_
prem_ strconnector_ lifecycle_ state
- compartment
Id String - The OCID of the compartment that contains the on-premises connector.
- id String
- The provider-assigned unique ID for this managed resource.
- on
Prem List<Property Map>Connectors - The list of on_prem_connectors.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - The display name of the on-premises connector.
- filters List<Property Map>
- on
Prem StringConnector Id - on
Prem StringConnector Lifecycle State
Supporting Types
GetOnpremConnectorsFilter
GetOnpremConnectorsOnPremConnector
- Available
Version string - Latest available version of the on-premises connector.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Created
Version 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.
- Display
Name 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.
- Lifecycle
Details 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"}
- Time
Created string - The date and time the on-premises connector was created, in the format defined by RFC3339.
- Available
Version string - Latest available version of the on-premises connector.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Created
Version 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.
- Display
Name 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.
- Lifecycle
Details 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"}
- Time
Created string - The date and time the on-premises connector was created, in the format defined by RFC3339.
- available
Version String - Latest available version of the on-premises connector.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- created
Version 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.
- display
Name 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.
- lifecycle
Details 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"}
- time
Created String - The date and time the on-premises connector was created, in the format defined by RFC3339.
- available
Version string - Latest available version of the on-premises connector.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- created
Version 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.
- display
Name 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.
- lifecycle
Details 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"}
- time
Created 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.
- available
Version String - Latest available version of the on-premises connector.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- created
Version 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.
- display
Name 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.
- lifecycle
Details 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"}
- time
Created 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.