Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 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/v4/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 dictionaryThe following arguments are supported:
- Target
Database stringGroup Id - The OCID of the specified target database group.
- Target
Database stringId - A filter to return the target database only if it is a member of the target database group.
- Target
Database stringGroup Id - The OCID of the specified target database group.
- Target
Database stringId - A filter to return the target database only if it is a member of the target database group.
- target
Database StringGroup Id - The OCID of the specified target database group.
- target
Database StringId - A filter to return the target database only if it is a member of the target database group.
- target
Database stringGroup Id - The OCID of the specified target database group.
- target
Database stringId - A filter to return the target database only if it is a member of the target database group.
- target_
database_ strgroup_ id - The OCID of the specified target database group.
- target_
database_ strid - A filter to return the target database only if it is a member of the target database group.
- target
Database StringGroup Id - The OCID of the specified target database group.
- target
Database StringId - 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.
- Target
Database stringGroup Id - Target
Databases List<string> - List of the OCIDs of the target databases which are members of the target database group.
- Target
Database stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Target
Database stringGroup Id - Target
Databases []string - List of the OCIDs of the target databases which are members of the target database group.
- Target
Database stringId
- id String
- The provider-assigned unique ID for this managed resource.
- target
Database StringGroup Id - target
Databases List<String> - List of the OCIDs of the target databases which are members of the target database group.
- target
Database StringId
- id string
- The provider-assigned unique ID for this managed resource.
- target
Database stringGroup Id - target
Databases string[] - List of the OCIDs of the target databases which are members of the target database group.
- target
Database stringId
- id str
- The provider-assigned unique ID for this managed resource.
- target_
database_ strgroup_ id - target_
databases Sequence[str] - List of the OCIDs of the target databases which are members of the target database group.
- target_
database_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- target
Database StringGroup Id - target
Databases List<String> - List of the OCIDs of the target databases which are members of the target database group.
- target
Database StringId
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
