1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getTargetDatabaseGroups
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataSafe.getTargetDatabaseGroups

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides the list of Target Database Groups in Oracle Cloud Infrastructure Data Safe service.

    Retrieves a list of target database groups according to the specified query parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTargetDatabaseGroups = oci.DataSafe.getTargetDatabaseGroups({
        compartmentId: compartmentId,
        accessLevel: targetDatabaseGroupAccessLevel,
        compartmentIdInSubtree: targetDatabaseGroupCompartmentIdInSubtree,
        displayName: targetDatabaseGroupDisplayName,
        state: targetDatabaseGroupState,
        targetDatabaseGroupId: testTargetDatabaseGroup.id,
        targetDatabaseGroupFilter: targetDatabaseGroupTargetDatabaseGroupFilter,
        timeCreatedGreaterThanOrEqualTo: targetDatabaseGroupTimeCreatedGreaterThanOrEqualTo,
        timeCreatedLessThan: targetDatabaseGroupTimeCreatedLessThan,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_target_database_groups = oci.DataSafe.get_target_database_groups(compartment_id=compartment_id,
        access_level=target_database_group_access_level,
        compartment_id_in_subtree=target_database_group_compartment_id_in_subtree,
        display_name=target_database_group_display_name,
        state=target_database_group_state,
        target_database_group_id=test_target_database_group["id"],
        target_database_group_filter=target_database_group_target_database_group_filter,
        time_created_greater_than_or_equal_to=target_database_group_time_created_greater_than_or_equal_to,
        time_created_less_than=target_database_group_time_created_less_than)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datasafe.GetTargetDatabaseGroups(ctx, &datasafe.GetTargetDatabaseGroupsArgs{
    			CompartmentId:                   compartmentId,
    			AccessLevel:                     pulumi.StringRef(targetDatabaseGroupAccessLevel),
    			CompartmentIdInSubtree:          pulumi.BoolRef(targetDatabaseGroupCompartmentIdInSubtree),
    			DisplayName:                     pulumi.StringRef(targetDatabaseGroupDisplayName),
    			State:                           pulumi.StringRef(targetDatabaseGroupState),
    			TargetDatabaseGroupId:           pulumi.StringRef(testTargetDatabaseGroup.Id),
    			TargetDatabaseGroupFilter:       pulumi.StringRef(targetDatabaseGroupTargetDatabaseGroupFilter),
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(targetDatabaseGroupTimeCreatedGreaterThanOrEqualTo),
    			TimeCreatedLessThan:             pulumi.StringRef(targetDatabaseGroupTimeCreatedLessThan),
    		}, 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 testTargetDatabaseGroups = Oci.DataSafe.GetTargetDatabaseGroups.Invoke(new()
        {
            CompartmentId = compartmentId,
            AccessLevel = targetDatabaseGroupAccessLevel,
            CompartmentIdInSubtree = targetDatabaseGroupCompartmentIdInSubtree,
            DisplayName = targetDatabaseGroupDisplayName,
            State = targetDatabaseGroupState,
            TargetDatabaseGroupId = testTargetDatabaseGroup.Id,
            TargetDatabaseGroupFilter = targetDatabaseGroupTargetDatabaseGroupFilter,
            TimeCreatedGreaterThanOrEqualTo = targetDatabaseGroupTimeCreatedGreaterThanOrEqualTo,
            TimeCreatedLessThan = targetDatabaseGroupTimeCreatedLessThan,
        });
    
    });
    
    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.GetTargetDatabaseGroupsArgs;
    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 testTargetDatabaseGroups = DataSafeFunctions.getTargetDatabaseGroups(GetTargetDatabaseGroupsArgs.builder()
                .compartmentId(compartmentId)
                .accessLevel(targetDatabaseGroupAccessLevel)
                .compartmentIdInSubtree(targetDatabaseGroupCompartmentIdInSubtree)
                .displayName(targetDatabaseGroupDisplayName)
                .state(targetDatabaseGroupState)
                .targetDatabaseGroupId(testTargetDatabaseGroup.id())
                .targetDatabaseGroupFilter(targetDatabaseGroupTargetDatabaseGroupFilter)
                .timeCreatedGreaterThanOrEqualTo(targetDatabaseGroupTimeCreatedGreaterThanOrEqualTo)
                .timeCreatedLessThan(targetDatabaseGroupTimeCreatedLessThan)
                .build());
    
        }
    }
    
    variables:
      testTargetDatabaseGroups:
        fn::invoke:
          function: oci:DataSafe:getTargetDatabaseGroups
          arguments:
            compartmentId: ${compartmentId}
            accessLevel: ${targetDatabaseGroupAccessLevel}
            compartmentIdInSubtree: ${targetDatabaseGroupCompartmentIdInSubtree}
            displayName: ${targetDatabaseGroupDisplayName}
            state: ${targetDatabaseGroupState}
            targetDatabaseGroupId: ${testTargetDatabaseGroup.id}
            targetDatabaseGroupFilter: ${targetDatabaseGroupTargetDatabaseGroupFilter}
            timeCreatedGreaterThanOrEqualTo: ${targetDatabaseGroupTimeCreatedGreaterThanOrEqualTo}
            timeCreatedLessThan: ${targetDatabaseGroupTimeCreatedLessThan}
    

    Using getTargetDatabaseGroups

    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 getTargetDatabaseGroups(args: GetTargetDatabaseGroupsArgs, opts?: InvokeOptions): Promise<GetTargetDatabaseGroupsResult>
    function getTargetDatabaseGroupsOutput(args: GetTargetDatabaseGroupsOutputArgs, opts?: InvokeOptions): Output<GetTargetDatabaseGroupsResult>
    def get_target_database_groups(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[GetTargetDatabaseGroupsFilter]] = None,
                                   state: Optional[str] = None,
                                   target_database_group_filter: Optional[str] = None,
                                   target_database_group_id: Optional[str] = None,
                                   time_created_greater_than_or_equal_to: Optional[str] = None,
                                   time_created_less_than: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetTargetDatabaseGroupsResult
    def get_target_database_groups_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[GetTargetDatabaseGroupsFilterArgs]]]] = None,
                                   state: Optional[pulumi.Input[str]] = None,
                                   target_database_group_filter: Optional[pulumi.Input[str]] = None,
                                   target_database_group_id: Optional[pulumi.Input[str]] = None,
                                   time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                                   time_created_less_than: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetTargetDatabaseGroupsResult]
    func GetTargetDatabaseGroups(ctx *Context, args *GetTargetDatabaseGroupsArgs, opts ...InvokeOption) (*GetTargetDatabaseGroupsResult, error)
    func GetTargetDatabaseGroupsOutput(ctx *Context, args *GetTargetDatabaseGroupsOutputArgs, opts ...InvokeOption) GetTargetDatabaseGroupsResultOutput

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

    public static class GetTargetDatabaseGroups 
    {
        public static Task<GetTargetDatabaseGroupsResult> InvokeAsync(GetTargetDatabaseGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetDatabaseGroupsResult> Invoke(GetTargetDatabaseGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetDatabaseGroupsResult> getTargetDatabaseGroups(GetTargetDatabaseGroupsArgs args, InvokeOptions options)
    public static Output<GetTargetDatabaseGroupsResult> getTargetDatabaseGroups(GetTargetDatabaseGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getTargetDatabaseGroups:getTargetDatabaseGroups
      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<GetTargetDatabaseGroupsFilter>
    State string
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    TargetDatabaseGroupFilter string
    The scim query filter parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) Ex:** filter=(targetDatabaseId eq 'ocid1.datasafetargetdatabase.oc1.iad.abuwcljr3u2va4ba5wek53idpe5qq5kkbigzclscc6mysfecxzjt5dgmxqza')
    TargetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    TimeCreatedGreaterThanOrEqualTo string

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    TimeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    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 []GetTargetDatabaseGroupsFilter
    State string
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    TargetDatabaseGroupFilter string
    The scim query filter parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) Ex:** filter=(targetDatabaseId eq 'ocid1.datasafetargetdatabase.oc1.iad.abuwcljr3u2va4ba5wek53idpe5qq5kkbigzclscc6mysfecxzjt5dgmxqza')
    TargetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    TimeCreatedGreaterThanOrEqualTo string

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    TimeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    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<GetTargetDatabaseGroupsFilter>
    state String
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    targetDatabaseGroupFilter String
    The scim query filter parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) Ex:** filter=(targetDatabaseId eq 'ocid1.datasafetargetdatabase.oc1.iad.abuwcljr3u2va4ba5wek53idpe5qq5kkbigzclscc6mysfecxzjt5dgmxqza')
    targetDatabaseGroupId String
    A filter to return the target database group that matches the specified OCID.
    timeCreatedGreaterThanOrEqualTo String

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan String

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    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 GetTargetDatabaseGroupsFilter[]
    state string
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    targetDatabaseGroupFilter string
    The scim query filter parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) Ex:** filter=(targetDatabaseId eq 'ocid1.datasafetargetdatabase.oc1.iad.abuwcljr3u2va4ba5wek53idpe5qq5kkbigzclscc6mysfecxzjt5dgmxqza')
    targetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    timeCreatedGreaterThanOrEqualTo string

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    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[GetTargetDatabaseGroupsFilter]
    state str
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    target_database_group_filter str
    The scim query filter parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) Ex:** filter=(targetDatabaseId eq 'ocid1.datasafetargetdatabase.oc1.iad.abuwcljr3u2va4ba5wek53idpe5qq5kkbigzclscc6mysfecxzjt5dgmxqza')
    target_database_group_id str
    A filter to return the target database group that matches the specified OCID.
    time_created_greater_than_or_equal_to str

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    time_created_less_than str

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    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>
    state String
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    targetDatabaseGroupFilter String
    The scim query filter parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) Ex:** filter=(targetDatabaseId eq 'ocid1.datasafetargetdatabase.oc1.iad.abuwcljr3u2va4ba5wek53idpe5qq5kkbigzclscc6mysfecxzjt5dgmxqza')
    targetDatabaseGroupId String
    A filter to return the target database group that matches the specified OCID.
    timeCreatedGreaterThanOrEqualTo String

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan String

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    getTargetDatabaseGroups Result

    The following output properties are available:

    CompartmentId string
    The OCID for the compartment containing the target database group.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetDatabaseGroupCollections List<GetTargetDatabaseGroupsTargetDatabaseGroupCollection>
    The list of target_database_group_collection.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The name of the target database group.
    Filters List<GetTargetDatabaseGroupsFilter>
    State string
    The lifecycle status of the target database group.
    TargetDatabaseGroupFilter string
    TargetDatabaseGroupId string
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    CompartmentId string
    The OCID for the compartment containing the target database group.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetDatabaseGroupCollections []GetTargetDatabaseGroupsTargetDatabaseGroupCollection
    The list of target_database_group_collection.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The name of the target database group.
    Filters []GetTargetDatabaseGroupsFilter
    State string
    The lifecycle status of the target database group.
    TargetDatabaseGroupFilter string
    TargetDatabaseGroupId string
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    compartmentId String
    The OCID for the compartment containing the target database group.
    id String
    The provider-assigned unique ID for this managed resource.
    targetDatabaseGroupCollections List<GetTargetDatabaseGroupsTargetDatabaseGroupCollection>
    The list of target_database_group_collection.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The name of the target database group.
    filters List<GetTargetDatabaseGroupsFilter>
    state String
    The lifecycle status of the target database group.
    targetDatabaseGroupFilter String
    targetDatabaseGroupId String
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    compartmentId string
    The OCID for the compartment containing the target database group.
    id string
    The provider-assigned unique ID for this managed resource.
    targetDatabaseGroupCollections GetTargetDatabaseGroupsTargetDatabaseGroupCollection[]
    The list of target_database_group_collection.
    accessLevel string
    compartmentIdInSubtree boolean
    displayName string
    The name of the target database group.
    filters GetTargetDatabaseGroupsFilter[]
    state string
    The lifecycle status of the target database group.
    targetDatabaseGroupFilter string
    targetDatabaseGroupId string
    timeCreatedGreaterThanOrEqualTo string
    timeCreatedLessThan string
    compartment_id str
    The OCID for the compartment containing the target database group.
    id str
    The provider-assigned unique ID for this managed resource.
    target_database_group_collections Sequence[GetTargetDatabaseGroupsTargetDatabaseGroupCollection]
    The list of target_database_group_collection.
    access_level str
    compartment_id_in_subtree bool
    display_name str
    The name of the target database group.
    filters Sequence[GetTargetDatabaseGroupsFilter]
    state str
    The lifecycle status of the target database group.
    target_database_group_filter str
    target_database_group_id str
    time_created_greater_than_or_equal_to str
    time_created_less_than str
    compartmentId String
    The OCID for the compartment containing the target database group.
    id String
    The provider-assigned unique ID for this managed resource.
    targetDatabaseGroupCollections List<Property Map>
    The list of target_database_group_collection.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The name of the target database group.
    filters List<Property Map>
    state String
    The lifecycle status of the target database group.
    targetDatabaseGroupFilter String
    targetDatabaseGroupId String
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String

    Supporting Types

    GetTargetDatabaseGroupsFilter

    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

    GetTargetDatabaseGroupsTargetDatabaseGroupCollection

    GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItem

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    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
    Description of the target database group.
    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 compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    LifecycleDetails string
    Details for the lifecycle status of the target database group.
    MatchingCriterias List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteria>
    Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria).
    MembershipCount int
    The number of target databases in the specified target database group.
    MembershipUpdateTime string
    Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed.
    State string
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    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
    Time when the target database group was created.
    TimeUpdated string
    Time when the target database group was last updated.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    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
    Description of the target database group.
    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 compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    LifecycleDetails string
    Details for the lifecycle status of the target database group.
    MatchingCriterias []GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteria
    Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria).
    MembershipCount int
    The number of target databases in the specified target database group.
    MembershipUpdateTime string
    Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed.
    State string
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    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
    Time when the target database group was created.
    TimeUpdated string
    Time when the target database group was last updated.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    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
    Description of the target database group.
    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 compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    lifecycleDetails String
    Details for the lifecycle status of the target database group.
    matchingCriterias List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteria>
    Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria).
    membershipCount Integer
    The number of target databases in the specified target database group.
    membershipUpdateTime String
    Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed.
    state String
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    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
    Time when the target database group was created.
    timeUpdated String
    Time when the target database group was last updated.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    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
    Description of the target database group.
    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 compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    lifecycleDetails string
    Details for the lifecycle status of the target database group.
    matchingCriterias GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteria[]
    Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria).
    membershipCount number
    The number of target databases in the specified target database group.
    membershipUpdateTime string
    Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed.
    state string
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    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
    Time when the target database group was created.
    timeUpdated string
    Time when the target database group was last updated.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    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
    Description of the target database group.
    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 compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    lifecycle_details str
    Details for the lifecycle status of the target database group.
    matching_criterias Sequence[GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteria]
    Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria).
    membership_count int
    The number of target databases in the specified target database group.
    membership_update_time str
    Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed.
    state str
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    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
    Time when the target database group was created.
    time_updated str
    Time when the target database group was last updated.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    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
    Description of the target database group.
    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 compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    lifecycleDetails String
    Details for the lifecycle status of the target database group.
    matchingCriterias List<Property Map>
    Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria).
    membershipCount Number
    The number of target databases in the specified target database group.
    membershipUpdateTime String
    Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed.
    state String
    A filter to retrieve resources that exclusively align with the designated lifecycle state.
    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
    Time when the target database group was created.
    timeUpdated String
    Time when the target database group was last updated.

    GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteria

    Excludes List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaExclude>
    Criteria to exclude certain target databases from the target database group.
    Includes List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaInclude>
    Criteria to determine whether a target database should be included in the target database group. If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group
    Excludes []GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaExclude
    Criteria to exclude certain target databases from the target database group.
    Includes []GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaInclude
    Criteria to determine whether a target database should be included in the target database group. If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group
    excludes List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaExclude>
    Criteria to exclude certain target databases from the target database group.
    includes List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaInclude>
    Criteria to determine whether a target database should be included in the target database group. If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group
    excludes GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaExclude[]
    Criteria to exclude certain target databases from the target database group.
    includes GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaInclude[]
    Criteria to determine whether a target database should be included in the target database group. If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group
    excludes Sequence[GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaExclude]
    Criteria to exclude certain target databases from the target database group.
    includes Sequence[GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaInclude]
    Criteria to determine whether a target database should be included in the target database group. If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group
    excludes List<Property Map>
    Criteria to exclude certain target databases from the target database group.
    includes List<Property Map>
    Criteria to determine whether a target database should be included in the target database group. If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group

    GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaExclude

    TargetDatabaseIds List<string>
    The list of target database OCIDs to be included in the target database group.
    TargetDatabaseIds []string
    The list of target database OCIDs to be included in the target database group.
    targetDatabaseIds List<String>
    The list of target database OCIDs to be included in the target database group.
    targetDatabaseIds string[]
    The list of target database OCIDs to be included in the target database group.
    target_database_ids Sequence[str]
    The list of target database OCIDs to be included in the target database group.
    targetDatabaseIds List<String>
    The list of target database OCIDs to be included in the target database group.

    GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaInclude

    Compartments List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaIncludeCompartment>
    List of compartment objects, each containing the OCID of the compartment and a boolean value that indicates whether the target databases in the compartments and sub-compartments should also be included in the target database group.
    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"}
    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"}
    TargetDatabaseIds List<string>
    The list of target database OCIDs to be included in the target database group.
    Compartments []GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaIncludeCompartment
    List of compartment objects, each containing the OCID of the compartment and a boolean value that indicates whether the target databases in the compartments and sub-compartments should also be included in the target database group.
    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"}
    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"}
    TargetDatabaseIds []string
    The list of target database OCIDs to be included in the target database group.
    compartments List<GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaIncludeCompartment>
    List of compartment objects, each containing the OCID of the compartment and a boolean value that indicates whether the target databases in the compartments and sub-compartments should also be included in the target database group.
    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"}
    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"}
    targetDatabaseIds List<String>
    The list of target database OCIDs to be included in the target database group.
    compartments GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaIncludeCompartment[]
    List of compartment objects, each containing the OCID of the compartment and a boolean value that indicates whether the target databases in the compartments and sub-compartments should also be included in the target database group.
    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"}
    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"}
    targetDatabaseIds string[]
    The list of target database OCIDs to be included in the target database group.
    compartments Sequence[GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaIncludeCompartment]
    List of compartment objects, each containing the OCID of the compartment and a boolean value that indicates whether the target databases in the compartments and sub-compartments should also be included in the target database group.
    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"}
    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"}
    target_database_ids Sequence[str]
    The list of target database OCIDs to be included in the target database group.
    compartments List<Property Map>
    List of compartment objects, each containing the OCID of the compartment and a boolean value that indicates whether the target databases in the compartments and sub-compartments should also be included in the target database group.
    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"}
    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"}
    targetDatabaseIds List<String>
    The list of target database OCIDs to be included in the target database group.

    GetTargetDatabaseGroupsTargetDatabaseGroupCollectionItemMatchingCriteriaIncludeCompartment

    Id string
    The OCID of the compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    IsIncludeSubtree bool
    This indicates whether the target databases of sub-compartments should also be included in the target database group. By default, this parameter is set to false.
    Id string
    The OCID of the compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    IsIncludeSubtree bool
    This indicates whether the target databases of sub-compartments should also be included in the target database group. By default, this parameter is set to false.
    id String
    The OCID of the compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    isIncludeSubtree Boolean
    This indicates whether the target databases of sub-compartments should also be included in the target database group. By default, this parameter is set to false.
    id string
    The OCID of the compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    isIncludeSubtree boolean
    This indicates whether the target databases of sub-compartments should also be included in the target database group. By default, this parameter is set to false.
    id str
    The OCID of the compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    is_include_subtree bool
    This indicates whether the target databases of sub-compartments should also be included in the target database group. By default, this parameter is set to false.
    id String
    The OCID of the compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group.
    isIncludeSubtree Boolean
    This indicates whether the target databases of sub-compartments should also be included in the target database group. By default, this parameter is set to false.

    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 v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi