Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DataSafe.getTargetDatabaseGroup
Explore with Pulumi AI
This data source provides details about a specific Target Database Group resource in Oracle Cloud Infrastructure Data Safe service.
Returns the details of the specified target database group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetDatabaseGroup = oci.DataSafe.getTargetDatabaseGroup({
targetDatabaseGroupId: testTargetDatabaseGroupOciDataSafeTargetDatabaseGroup.id,
});
import pulumi
import pulumi_oci as oci
test_target_database_group = oci.DataSafe.get_target_database_group(target_database_group_id=test_target_database_group_oci_data_safe_target_database_group["id"])
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.GetTargetDatabaseGroup(ctx, &datasafe.GetTargetDatabaseGroupArgs{
TargetDatabaseGroupId: testTargetDatabaseGroupOciDataSafeTargetDatabaseGroup.Id,
}, 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 testTargetDatabaseGroup = Oci.DataSafe.GetTargetDatabaseGroup.Invoke(new()
{
TargetDatabaseGroupId = testTargetDatabaseGroupOciDataSafeTargetDatabaseGroup.Id,
});
});
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.GetTargetDatabaseGroupArgs;
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 testTargetDatabaseGroup = DataSafeFunctions.getTargetDatabaseGroup(GetTargetDatabaseGroupArgs.builder()
.targetDatabaseGroupId(testTargetDatabaseGroupOciDataSafeTargetDatabaseGroup.id())
.build());
}
}
variables:
testTargetDatabaseGroup:
fn::invoke:
function: oci:DataSafe:getTargetDatabaseGroup
arguments:
targetDatabaseGroupId: ${testTargetDatabaseGroupOciDataSafeTargetDatabaseGroup.id}
Using getTargetDatabaseGroup
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 getTargetDatabaseGroup(args: GetTargetDatabaseGroupArgs, opts?: InvokeOptions): Promise<GetTargetDatabaseGroupResult>
function getTargetDatabaseGroupOutput(args: GetTargetDatabaseGroupOutputArgs, opts?: InvokeOptions): Output<GetTargetDatabaseGroupResult>
def get_target_database_group(target_database_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTargetDatabaseGroupResult
def get_target_database_group_output(target_database_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTargetDatabaseGroupResult]
func LookupTargetDatabaseGroup(ctx *Context, args *LookupTargetDatabaseGroupArgs, opts ...InvokeOption) (*LookupTargetDatabaseGroupResult, error)
func LookupTargetDatabaseGroupOutput(ctx *Context, args *LookupTargetDatabaseGroupOutputArgs, opts ...InvokeOption) LookupTargetDatabaseGroupResultOutput
> Note: This function is named LookupTargetDatabaseGroup
in the Go SDK.
public static class GetTargetDatabaseGroup
{
public static Task<GetTargetDatabaseGroupResult> InvokeAsync(GetTargetDatabaseGroupArgs args, InvokeOptions? opts = null)
public static Output<GetTargetDatabaseGroupResult> Invoke(GetTargetDatabaseGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTargetDatabaseGroupResult> getTargetDatabaseGroup(GetTargetDatabaseGroupArgs args, InvokeOptions options)
public static Output<GetTargetDatabaseGroupResult> getTargetDatabaseGroup(GetTargetDatabaseGroupArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getTargetDatabaseGroup:getTargetDatabaseGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Target
Database stringGroup Id - The OCID of the specified target database group.
- Target
Database stringGroup Id - The OCID of the specified target database group.
- target
Database StringGroup Id - The OCID of the specified target database group.
- target
Database stringGroup Id - The OCID of the specified target database group.
- target_
database_ strgroup_ id - The OCID of the specified target database group.
- target
Database StringGroup Id - The OCID of the specified target database group.
getTargetDatabaseGroup Result
The following output properties are available:
- Compartment
Id string - The OCID for the compartment containing the target database group.
- 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.
- Display
Name string - The name of the target database group.
- 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.
- Lifecycle
Details string - Details for the lifecycle status of the target database group.
- Matching
Criterias List<GetTarget Database Group Matching Criteria> - 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 stringTime - 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
- The lifecycle status of the target database group.
- 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"}
- Target
Database stringGroup Id - Time
Created string - Time when the target database group was created.
- Time
Updated string - Time when the target database group was last updated.
- Compartment
Id string - The OCID for the compartment containing the target database group.
- 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.
- Display
Name string - The name of the target database group.
- 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.
- Lifecycle
Details string - Details for the lifecycle status of the target database group.
- Matching
Criterias []GetTarget Database Group Matching Criteria - 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 stringTime - 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
- The lifecycle status of the target database group.
- 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"}
- Target
Database stringGroup Id - Time
Created string - Time when the target database group was created.
- Time
Updated string - Time when the target database group was last updated.
- compartment
Id String - The OCID for the compartment containing the target database group.
- 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.
- display
Name String - The name of the target database group.
- 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.
- lifecycle
Details String - Details for the lifecycle status of the target database group.
- matching
Criterias List<GetTarget Database Group Matching Criteria> - 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 Integer - The number of target databases in the specified target database group.
- membership
Update StringTime - 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
- The lifecycle status of the target database group.
- 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"}
- target
Database StringGroup Id - time
Created String - Time when the target database group was created.
- time
Updated String - Time when the target database group was last updated.
- compartment
Id string - The OCID for the compartment containing the target database group.
- {[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.
- display
Name string - The name of the target database group.
- {[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.
- lifecycle
Details string - Details for the lifecycle status of the target database group.
- matching
Criterias GetTarget Database Group Matching Criteria[] - 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 number - The number of target databases in the specified target database group.
- membership
Update stringTime - 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
- The lifecycle status of the target database group.
- {[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"}
- target
Database stringGroup Id - time
Created string - Time when the target database group was created.
- time
Updated string - Time when the target database group was last updated.
- compartment_
id str - The OCID for the compartment containing the target database group.
- 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 - The name of the target database group.
- 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[GetTarget Database Group Matching Criteria] - 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_ strtime - 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
- The lifecycle status of the target database group.
- 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"}
- target_
database_ strgroup_ id - time_
created str - Time when the target database group was created.
- time_
updated str - Time when the target database group was last updated.
- compartment
Id String - The OCID for the compartment containing the target database group.
- 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.
- display
Name String - The name of the target database group.
- 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.
- lifecycle
Details String - Details for the lifecycle status of the target database group.
- matching
Criterias 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).
- membership
Count Number - The number of target databases in the specified target database group.
- membership
Update StringTime - 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
- The lifecycle status of the target database group.
- 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"}
- target
Database StringGroup Id - time
Created String - Time when the target database group was created.
- time
Updated String - Time when the target database group was last updated.
Supporting Types
GetTargetDatabaseGroupMatchingCriteria
- Excludes
List<Get
Target Database Group Matching Criteria Exclude> - Criteria to exclude certain target databases from the target database group.
- Includes
List<Get
Target Database Group Matching Criteria Include> - 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
[]Get
Target Database Group Matching Criteria Exclude - Criteria to exclude certain target databases from the target database group.
- Includes
[]Get
Target Database Group Matching Criteria Include - 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<Get
Target Database Group Matching Criteria Exclude> - Criteria to exclude certain target databases from the target database group.
- includes
List<Get
Target Database Group Matching Criteria Include> - 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
Get
Target Database Group Matching Criteria Exclude[] - Criteria to exclude certain target databases from the target database group.
- includes
Get
Target Database Group Matching Criteria Include[] - 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[Get
Target Database Group Matching Criteria Exclude] - Criteria to exclude certain target databases from the target database group.
- includes
Sequence[Get
Target Database Group Matching Criteria Include] - 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
GetTargetDatabaseGroupMatchingCriteriaExclude
- Target
Database List<string>Ids - The list of target database OCIDs to be included in the target database group.
- Target
Database []stringIds - The list of target database OCIDs to be included in the target database group.
- target
Database List<String>Ids - The list of target database OCIDs to be included in the target database group.
- target
Database string[]Ids - The list of target database OCIDs to be included in the target database group.
- target_
database_ Sequence[str]ids - The list of target database OCIDs to be included in the target database group.
- target
Database List<String>Ids - The list of target database OCIDs to be included in the target database group.
GetTargetDatabaseGroupMatchingCriteriaInclude
- Compartments
List<Get
Target Database Group Matching Criteria Include Compartment> - 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.
- 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"}
- 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"}
- Target
Database List<string>Ids - The list of target database OCIDs to be included in the target database group.
- Compartments
[]Get
Target Database Group Matching Criteria Include Compartment - 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.
- 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"}
- 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"}
- Target
Database []stringIds - The list of target database OCIDs to be included in the target database group.
- compartments
List<Get
Target Database Group Matching Criteria Include Compartment> - 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.
- 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"}
- 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"}
- target
Database List<String>Ids - The list of target database OCIDs to be included in the target database group.
- compartments
Get
Target Database Group Matching Criteria Include Compartment[] - 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.
- {[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"}
- {[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"}
- target
Database string[]Ids - The list of target database OCIDs to be included in the target database group.
- compartments
Sequence[Get
Target Database Group Matching Criteria Include Compartment] - 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.
- 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"}
- 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_ Sequence[str]ids - 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.
- 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"}
- 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"}
- target
Database List<String>Ids - The list of target database OCIDs to be included in the target database group.
GetTargetDatabaseGroupMatchingCriteriaIncludeCompartment
- 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.
- Is
Include boolSubtree - 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.
- Is
Include boolSubtree - 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.
- is
Include BooleanSubtree - 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.
- is
Include booleanSubtree - 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_ boolsubtree - 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.
- is
Include BooleanSubtree - 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.