1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DataSafe
  6. getTargetAlertPolicyAssociationUnassociatedTargetMembers
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi

    This data source provides the list of Target Alert Policy Association Unassociated Target Members in Oracle Cloud Infrastructure Data Safe service.

    Gets the details of target-alert policy association and its unassociated members by its ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTargetAlertPolicyAssociationUnassociatedTargetMembers = oci.datasafe.getTargetAlertPolicyAssociationUnassociatedTargetMembers({
        targetAlertPolicyAssociationId: testTargetAlertPolicyAssociation.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_target_alert_policy_association_unassociated_target_members = oci.datasafe.get_target_alert_policy_association_unassociated_target_members(target_alert_policy_association_id=test_target_alert_policy_association["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.GetTargetAlertPolicyAssociationUnassociatedTargetMembers(ctx, &datasafe.GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs{
    			TargetAlertPolicyAssociationId: testTargetAlertPolicyAssociation.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 testTargetAlertPolicyAssociationUnassociatedTargetMembers = Oci.DataSafe.GetTargetAlertPolicyAssociationUnassociatedTargetMembers.Invoke(new()
        {
            TargetAlertPolicyAssociationId = testTargetAlertPolicyAssociation.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.GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testTargetAlertPolicyAssociationUnassociatedTargetMembers = DataSafeFunctions.getTargetAlertPolicyAssociationUnassociatedTargetMembers(GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs.builder()
                .targetAlertPolicyAssociationId(testTargetAlertPolicyAssociation.id())
                .build());
    
        }
    }
    
    variables:
      testTargetAlertPolicyAssociationUnassociatedTargetMembers:
        fn::invoke:
          function: oci:DataSafe:getTargetAlertPolicyAssociationUnassociatedTargetMembers
          arguments:
            targetAlertPolicyAssociationId: ${testTargetAlertPolicyAssociation.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_datasafe_gettargetalertpolicyassociationunassociatedtargetmembers" "testTargetAlertPolicyAssociationUnassociatedTargetMembers" {
      target_alert_policy_association_id = testTargetAlertPolicyAssociation.id
    }
    

    Using getTargetAlertPolicyAssociationUnassociatedTargetMembers

    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 getTargetAlertPolicyAssociationUnassociatedTargetMembers(args: GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs, opts?: InvokeOptions): Promise<GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult>
    function getTargetAlertPolicyAssociationUnassociatedTargetMembersOutput(args: GetTargetAlertPolicyAssociationUnassociatedTargetMembersOutputArgs, opts?: InvokeOptions): Output<GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult>
    def get_target_alert_policy_association_unassociated_target_members(filters: Optional[Sequence[GetTargetAlertPolicyAssociationUnassociatedTargetMembersFilter]] = None,
                                                                        target_alert_policy_association_id: Optional[str] = None,
                                                                        opts: Optional[InvokeOptions] = None) -> GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult
    def get_target_alert_policy_association_unassociated_target_members_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetTargetAlertPolicyAssociationUnassociatedTargetMembersFilterArgs]]]] = None,
                                                                        target_alert_policy_association_id: pulumi.Input[Optional[str]] = None,
                                                                        opts: Optional[InvokeOptions] = None) -> Output[GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult]
    func GetTargetAlertPolicyAssociationUnassociatedTargetMembers(ctx *Context, args *GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs, opts ...InvokeOption) (*GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult, error)
    func GetTargetAlertPolicyAssociationUnassociatedTargetMembersOutput(ctx *Context, args *GetTargetAlertPolicyAssociationUnassociatedTargetMembersOutputArgs, opts ...InvokeOption) GetTargetAlertPolicyAssociationUnassociatedTargetMembersResultOutput

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

    public static class GetTargetAlertPolicyAssociationUnassociatedTargetMembers 
    {
        public static Task<GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult> InvokeAsync(GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult> Invoke(GetTargetAlertPolicyAssociationUnassociatedTargetMembersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult> getTargetAlertPolicyAssociationUnassociatedTargetMembers(GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs args, InvokeOptions options)
    public static Output<GetTargetAlertPolicyAssociationUnassociatedTargetMembersResult> getTargetAlertPolicyAssociationUnassociatedTargetMembers(GetTargetAlertPolicyAssociationUnassociatedTargetMembersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getTargetAlertPolicyAssociationUnassociatedTargetMembers:getTargetAlertPolicyAssociationUnassociatedTargetMembers
      arguments:
        # arguments dictionary
    data "oci_data_safe_get_target_alert_policy_association_unassociated_target_members" "name" {
        # arguments
    }

    The following arguments are supported:

    target_alert_policy_association_id string
    The OCID of the target-alert policy association.
    filters list(object)
    targetAlertPolicyAssociationId String
    The OCID of the target-alert policy association.
    filters List<Property Map>

    getTargetAlertPolicyAssociationUnassociatedTargetMembers Result

    The following output properties are available:

    id string
    The provider-assigned unique ID for this managed resource.
    target_alert_policy_association_id string
    target_alert_policy_unassociated_collections list(object)
    The list of target_alert_policy_unassociated_collection.
    filters list(object)
    id String
    The provider-assigned unique ID for this managed resource.
    targetAlertPolicyAssociationId String
    targetAlertPolicyUnassociatedCollections List<Property Map>
    The list of target_alert_policy_unassociated_collection.
    filters List<Property Map>

    Supporting Types

    GetTargetAlertPolicyAssociationUnassociatedTargetMembersFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name string
    values list(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

    GetTargetAlertPolicyAssociationUnassociatedTargetMembersTargetAlertPolicyUnassociatedCollection

    items list(object)
    Array of unassociated target alert policy association summary.
    items List<Property Map>
    Array of unassociated target alert policy association summary.

    GetTargetAlertPolicyAssociationUnassociatedTargetMembersTargetAlertPolicyUnassociatedCollectionItem

    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"}
    IsEnabled bool
    Indicates if the target-alert policy association is enabled or disabled by user.
    NotAppliedReason string
    Details on why policy is not applied on target.
    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"}
    TargetDatabaseId string
    The OCID of the target database that differs from the alert policy association of 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"}
    IsEnabled bool
    Indicates if the target-alert policy association is enabled or disabled by user.
    NotAppliedReason string
    Details on why policy is not applied on target.
    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"}
    TargetDatabaseId string
    The OCID of the target database that differs from the alert policy association of the target database group.
    defined_tags 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"}
    freeform_tags 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"}
    is_enabled bool
    Indicates if the target-alert policy association is enabled or disabled by user.
    not_applied_reason string
    Details on why policy is not applied on target.
    system_tags 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_id string
    The OCID of the target database that differs from the alert policy association of 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"}
    isEnabled Boolean
    Indicates if the target-alert policy association is enabled or disabled by user.
    notAppliedReason String
    Details on why policy is not applied on target.
    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"}
    targetDatabaseId String
    The OCID of the target database that differs from the alert policy association of 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"}
    isEnabled boolean
    Indicates if the target-alert policy association is enabled or disabled by user.
    notAppliedReason string
    Details on why policy is not applied on target.
    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"}
    targetDatabaseId string
    The OCID of the target database that differs from the alert policy association of 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"}
    is_enabled bool
    Indicates if the target-alert policy association is enabled or disabled by user.
    not_applied_reason str
    Details on why policy is not applied on target.
    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"}
    target_database_id str
    The OCID of the target database that differs from the alert policy association of 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"}
    isEnabled Boolean
    Indicates if the target-alert policy association is enabled or disabled by user.
    notAppliedReason String
    Details on why policy is not applied on target.
    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"}
    targetDatabaseId String
    The OCID of the target database that differs from the alert policy association of the target database group.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.20.0
    published on Wednesday, Jul 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial