1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getTargetDatabaseGroupGroupMember
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.DataSafe.getTargetDatabaseGroupGroupMember

Start a Neo task
Explain and create an oci.DataSafe.getTargetDatabaseGroupGroupMember resource
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

    This data source provides details about a specific Target Database Group Group Member resource in Oracle Cloud Infrastructure Data Safe service.

    Retrieves the members of the target database group with the specified OCID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTargetDatabaseGroupGroupMember = oci.DataSafe.getTargetDatabaseGroupGroupMember({
        targetDatabaseGroupId: testTargetDatabaseGroup.id,
        targetDatabaseId: testTargetDatabase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_target_database_group_group_member = oci.DataSafe.get_target_database_group_group_member(target_database_group_id=test_target_database_group["id"],
        target_database_id=test_target_database["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.GetTargetDatabaseGroupGroupMember(ctx, &datasafe.GetTargetDatabaseGroupGroupMemberArgs{
    			TargetDatabaseGroupId: testTargetDatabaseGroup.Id,
    			TargetDatabaseId:      pulumi.StringRef(testTargetDatabase.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 testTargetDatabaseGroupGroupMember = Oci.DataSafe.GetTargetDatabaseGroupGroupMember.Invoke(new()
        {
            TargetDatabaseGroupId = testTargetDatabaseGroup.Id,
            TargetDatabaseId = testTargetDatabase.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.GetTargetDatabaseGroupGroupMemberArgs;
    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 testTargetDatabaseGroupGroupMember = DataSafeFunctions.getTargetDatabaseGroupGroupMember(GetTargetDatabaseGroupGroupMemberArgs.builder()
                .targetDatabaseGroupId(testTargetDatabaseGroup.id())
                .targetDatabaseId(testTargetDatabase.id())
                .build());
    
        }
    }
    
    variables:
      testTargetDatabaseGroupGroupMember:
        fn::invoke:
          function: oci:DataSafe:getTargetDatabaseGroupGroupMember
          arguments:
            targetDatabaseGroupId: ${testTargetDatabaseGroup.id}
            targetDatabaseId: ${testTargetDatabase.id}
    

    Using getTargetDatabaseGroupGroupMember

    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 getTargetDatabaseGroupGroupMember(args: GetTargetDatabaseGroupGroupMemberArgs, opts?: InvokeOptions): Promise<GetTargetDatabaseGroupGroupMemberResult>
    function getTargetDatabaseGroupGroupMemberOutput(args: GetTargetDatabaseGroupGroupMemberOutputArgs, opts?: InvokeOptions): Output<GetTargetDatabaseGroupGroupMemberResult>
    def get_target_database_group_group_member(target_database_group_id: Optional[str] = None,
                                               target_database_id: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetTargetDatabaseGroupGroupMemberResult
    def get_target_database_group_group_member_output(target_database_group_id: Optional[pulumi.Input[str]] = None,
                                               target_database_id: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetTargetDatabaseGroupGroupMemberResult]
    func GetTargetDatabaseGroupGroupMember(ctx *Context, args *GetTargetDatabaseGroupGroupMemberArgs, opts ...InvokeOption) (*GetTargetDatabaseGroupGroupMemberResult, error)
    func GetTargetDatabaseGroupGroupMemberOutput(ctx *Context, args *GetTargetDatabaseGroupGroupMemberOutputArgs, opts ...InvokeOption) GetTargetDatabaseGroupGroupMemberResultOutput

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

    public static class GetTargetDatabaseGroupGroupMember 
    {
        public static Task<GetTargetDatabaseGroupGroupMemberResult> InvokeAsync(GetTargetDatabaseGroupGroupMemberArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetDatabaseGroupGroupMemberResult> Invoke(GetTargetDatabaseGroupGroupMemberInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetDatabaseGroupGroupMemberResult> getTargetDatabaseGroupGroupMember(GetTargetDatabaseGroupGroupMemberArgs args, InvokeOptions options)
    public static Output<GetTargetDatabaseGroupGroupMemberResult> getTargetDatabaseGroupGroupMember(GetTargetDatabaseGroupGroupMemberArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getTargetDatabaseGroupGroupMember:getTargetDatabaseGroupGroupMember
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TargetDatabaseGroupId string
    The OCID of the specified target database group.
    TargetDatabaseId string
    A filter to return the target database only if it is a member of the target database group.
    TargetDatabaseGroupId string
    The OCID of the specified target database group.
    TargetDatabaseId string
    A filter to return the target database only if it is a member of the target database group.
    targetDatabaseGroupId String
    The OCID of the specified target database group.
    targetDatabaseId String
    A filter to return the target database only if it is a member of the target database group.
    targetDatabaseGroupId string
    The OCID of the specified target database group.
    targetDatabaseId string
    A filter to return the target database only if it is a member of the target database group.
    target_database_group_id str
    The OCID of the specified target database group.
    target_database_id str
    A filter to return the target database only if it is a member of the target database group.
    targetDatabaseGroupId String
    The OCID of the specified target database group.
    targetDatabaseId String
    A filter to return the target database only if it is a member of the target database group.

    getTargetDatabaseGroupGroupMember Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TargetDatabaseGroupId string
    TargetDatabases List<string>
    List of the OCIDs of the target databases which are members of the target database group.
    TargetDatabaseId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetDatabaseGroupId string
    TargetDatabases []string
    List of the OCIDs of the target databases which are members of the target database group.
    TargetDatabaseId string
    id String
    The provider-assigned unique ID for this managed resource.
    targetDatabaseGroupId String
    targetDatabases List<String>
    List of the OCIDs of the target databases which are members of the target database group.
    targetDatabaseId String
    id string
    The provider-assigned unique ID for this managed resource.
    targetDatabaseGroupId string
    targetDatabases string[]
    List of the OCIDs of the target databases which are members of the target database group.
    targetDatabaseId string
    id str
    The provider-assigned unique ID for this managed resource.
    target_database_group_id str
    target_databases Sequence[str]
    List of the OCIDs of the target databases which are members of the target database group.
    target_database_id str
    id String
    The provider-assigned unique ID for this managed resource.
    targetDatabaseGroupId String
    targetDatabases List<String>
    List of the OCIDs of the target databases which are members of the target database group.
    targetDatabaseId String

    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.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate