1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getTargetAlertPolicyAssociations
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.getTargetAlertPolicyAssociations

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Gets a list of all target-alert policy associations.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTargetAlertPolicyAssociations = oci.DataSafe.getTargetAlertPolicyAssociations({
        compartmentId: compartmentId,
        accessLevel: targetAlertPolicyAssociationAccessLevel,
        alertPolicyId: testAlertPolicy.id,
        compartmentIdInSubtree: targetAlertPolicyAssociationCompartmentIdInSubtree,
        state: targetAlertPolicyAssociationState,
        targetAlertPolicyAssociationId: testTargetAlertPolicyAssociation.id,
        targetId: testTarget.id,
        timeCreatedGreaterThanOrEqualTo: targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo,
        timeCreatedLessThan: targetAlertPolicyAssociationTimeCreatedLessThan,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_target_alert_policy_associations = oci.DataSafe.get_target_alert_policy_associations(compartment_id=compartment_id,
        access_level=target_alert_policy_association_access_level,
        alert_policy_id=test_alert_policy["id"],
        compartment_id_in_subtree=target_alert_policy_association_compartment_id_in_subtree,
        state=target_alert_policy_association_state,
        target_alert_policy_association_id=test_target_alert_policy_association["id"],
        target_id=test_target["id"],
        time_created_greater_than_or_equal_to=target_alert_policy_association_time_created_greater_than_or_equal_to,
        time_created_less_than=target_alert_policy_association_time_created_less_than)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataSafe.GetTargetAlertPolicyAssociations(ctx, &datasafe.GetTargetAlertPolicyAssociationsArgs{
    			CompartmentId:                   compartmentId,
    			AccessLevel:                     pulumi.StringRef(targetAlertPolicyAssociationAccessLevel),
    			AlertPolicyId:                   pulumi.StringRef(testAlertPolicy.Id),
    			CompartmentIdInSubtree:          pulumi.BoolRef(targetAlertPolicyAssociationCompartmentIdInSubtree),
    			State:                           pulumi.StringRef(targetAlertPolicyAssociationState),
    			TargetAlertPolicyAssociationId:  pulumi.StringRef(testTargetAlertPolicyAssociation.Id),
    			TargetId:                        pulumi.StringRef(testTarget.Id),
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo),
    			TimeCreatedLessThan:             pulumi.StringRef(targetAlertPolicyAssociationTimeCreatedLessThan),
    		}, 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 testTargetAlertPolicyAssociations = Oci.DataSafe.GetTargetAlertPolicyAssociations.Invoke(new()
        {
            CompartmentId = compartmentId,
            AccessLevel = targetAlertPolicyAssociationAccessLevel,
            AlertPolicyId = testAlertPolicy.Id,
            CompartmentIdInSubtree = targetAlertPolicyAssociationCompartmentIdInSubtree,
            State = targetAlertPolicyAssociationState,
            TargetAlertPolicyAssociationId = testTargetAlertPolicyAssociation.Id,
            TargetId = testTarget.Id,
            TimeCreatedGreaterThanOrEqualTo = targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo,
            TimeCreatedLessThan = targetAlertPolicyAssociationTimeCreatedLessThan,
        });
    
    });
    
    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.GetTargetAlertPolicyAssociationsArgs;
    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 testTargetAlertPolicyAssociations = DataSafeFunctions.getTargetAlertPolicyAssociations(GetTargetAlertPolicyAssociationsArgs.builder()
                .compartmentId(compartmentId)
                .accessLevel(targetAlertPolicyAssociationAccessLevel)
                .alertPolicyId(testAlertPolicy.id())
                .compartmentIdInSubtree(targetAlertPolicyAssociationCompartmentIdInSubtree)
                .state(targetAlertPolicyAssociationState)
                .targetAlertPolicyAssociationId(testTargetAlertPolicyAssociation.id())
                .targetId(testTarget.id())
                .timeCreatedGreaterThanOrEqualTo(targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo)
                .timeCreatedLessThan(targetAlertPolicyAssociationTimeCreatedLessThan)
                .build());
    
        }
    }
    
    variables:
      testTargetAlertPolicyAssociations:
        fn::invoke:
          Function: oci:DataSafe:getTargetAlertPolicyAssociations
          Arguments:
            compartmentId: ${compartmentId}
            accessLevel: ${targetAlertPolicyAssociationAccessLevel}
            alertPolicyId: ${testAlertPolicy.id}
            compartmentIdInSubtree: ${targetAlertPolicyAssociationCompartmentIdInSubtree}
            state: ${targetAlertPolicyAssociationState}
            targetAlertPolicyAssociationId: ${testTargetAlertPolicyAssociation.id}
            targetId: ${testTarget.id}
            timeCreatedGreaterThanOrEqualTo: ${targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo}
            timeCreatedLessThan: ${targetAlertPolicyAssociationTimeCreatedLessThan}
    

    Using getTargetAlertPolicyAssociations

    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 getTargetAlertPolicyAssociations(args: GetTargetAlertPolicyAssociationsArgs, opts?: InvokeOptions): Promise<GetTargetAlertPolicyAssociationsResult>
    function getTargetAlertPolicyAssociationsOutput(args: GetTargetAlertPolicyAssociationsOutputArgs, opts?: InvokeOptions): Output<GetTargetAlertPolicyAssociationsResult>
    def get_target_alert_policy_associations(access_level: Optional[str] = None,
                                             alert_policy_id: Optional[str] = None,
                                             compartment_id: Optional[str] = None,
                                             compartment_id_in_subtree: Optional[bool] = None,
                                             filters: Optional[Sequence[_datasafe.GetTargetAlertPolicyAssociationsFilter]] = None,
                                             state: Optional[str] = None,
                                             target_alert_policy_association_id: Optional[str] = None,
                                             target_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) -> GetTargetAlertPolicyAssociationsResult
    def get_target_alert_policy_associations_output(access_level: Optional[pulumi.Input[str]] = None,
                                             alert_policy_id: Optional[pulumi.Input[str]] = None,
                                             compartment_id: Optional[pulumi.Input[str]] = None,
                                             compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetTargetAlertPolicyAssociationsFilterArgs]]]] = None,
                                             state: Optional[pulumi.Input[str]] = None,
                                             target_alert_policy_association_id: Optional[pulumi.Input[str]] = None,
                                             target_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[GetTargetAlertPolicyAssociationsResult]
    func GetTargetAlertPolicyAssociations(ctx *Context, args *GetTargetAlertPolicyAssociationsArgs, opts ...InvokeOption) (*GetTargetAlertPolicyAssociationsResult, error)
    func GetTargetAlertPolicyAssociationsOutput(ctx *Context, args *GetTargetAlertPolicyAssociationsOutputArgs, opts ...InvokeOption) GetTargetAlertPolicyAssociationsResultOutput

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

    public static class GetTargetAlertPolicyAssociations 
    {
        public static Task<GetTargetAlertPolicyAssociationsResult> InvokeAsync(GetTargetAlertPolicyAssociationsArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetAlertPolicyAssociationsResult> Invoke(GetTargetAlertPolicyAssociationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetAlertPolicyAssociationsResult> getTargetAlertPolicyAssociations(GetTargetAlertPolicyAssociationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getTargetAlertPolicyAssociations:getTargetAlertPolicyAssociations
      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.
    AlertPolicyId string
    A filter to return policy by it's OCID.
    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.
    Filters List<GetTargetAlertPolicyAssociationsFilter>
    State string
    An optional filter to return only alert policies that have the given life-cycle state.
    TargetAlertPolicyAssociationId string
    A filter to return only items related to a specific target-alert policy association ID.
    TargetId string
    A filter to return only items related to a specific target 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.
    AlertPolicyId string
    A filter to return policy by it's OCID.
    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.
    Filters []GetTargetAlertPolicyAssociationsFilter
    State string
    An optional filter to return only alert policies that have the given life-cycle state.
    TargetAlertPolicyAssociationId string
    A filter to return only items related to a specific target-alert policy association ID.
    TargetId string
    A filter to return only items related to a specific target 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.
    alertPolicyId String
    A filter to return policy by it's OCID.
    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.
    filters List<GetTargetAlertPolicyAssociationsFilter>
    state String
    An optional filter to return only alert policies that have the given life-cycle state.
    targetAlertPolicyAssociationId String
    A filter to return only items related to a specific target-alert policy association ID.
    targetId String
    A filter to return only items related to a specific target 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.
    alertPolicyId string
    A filter to return policy by it's OCID.
    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.
    filters GetTargetAlertPolicyAssociationsFilter[]
    state string
    An optional filter to return only alert policies that have the given life-cycle state.
    targetAlertPolicyAssociationId string
    A filter to return only items related to a specific target-alert policy association ID.
    targetId string
    A filter to return only items related to a specific target 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.
    alert_policy_id str
    A filter to return policy by it's OCID.
    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.
    filters Sequence[datasafe.GetTargetAlertPolicyAssociationsFilter]
    state str
    An optional filter to return only alert policies that have the given life-cycle state.
    target_alert_policy_association_id str
    A filter to return only items related to a specific target-alert policy association ID.
    target_id str
    A filter to return only items related to a specific target 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.
    alertPolicyId String
    A filter to return policy by it's OCID.
    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.
    filters List<Property Map>
    state String
    An optional filter to return only alert policies that have the given life-cycle state.
    targetAlertPolicyAssociationId String
    A filter to return only items related to a specific target-alert policy association ID.
    targetId String
    A filter to return only items related to a specific target 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

    getTargetAlertPolicyAssociations Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetAlertPolicyAssociationCollections List<GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollection>
    The list of target_alert_policy_association_collection.
    AccessLevel string
    AlertPolicyId string
    CompartmentIdInSubtree bool
    Filters List<GetTargetAlertPolicyAssociationsFilter>
    State string
    The current state of the target-alert policy association.
    TargetAlertPolicyAssociationId string
    TargetId string
    The OCID of the target on which alert policy is to be applied.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    CompartmentId string
    The OCID of the compartment that contains the policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetAlertPolicyAssociationCollections []GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollection
    The list of target_alert_policy_association_collection.
    AccessLevel string
    AlertPolicyId string
    CompartmentIdInSubtree bool
    Filters []GetTargetAlertPolicyAssociationsFilter
    State string
    The current state of the target-alert policy association.
    TargetAlertPolicyAssociationId string
    TargetId string
    The OCID of the target on which alert policy is to be applied.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    compartmentId String
    The OCID of the compartment that contains the policy.
    id String
    The provider-assigned unique ID for this managed resource.
    targetAlertPolicyAssociationCollections List<GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollection>
    The list of target_alert_policy_association_collection.
    accessLevel String
    alertPolicyId String
    compartmentIdInSubtree Boolean
    filters List<GetTargetAlertPolicyAssociationsFilter>
    state String
    The current state of the target-alert policy association.
    targetAlertPolicyAssociationId String
    targetId String
    The OCID of the target on which alert policy is to be applied.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    compartmentId string
    The OCID of the compartment that contains the policy.
    id string
    The provider-assigned unique ID for this managed resource.
    targetAlertPolicyAssociationCollections GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollection[]
    The list of target_alert_policy_association_collection.
    accessLevel string
    alertPolicyId string
    compartmentIdInSubtree boolean
    filters GetTargetAlertPolicyAssociationsFilter[]
    state string
    The current state of the target-alert policy association.
    targetAlertPolicyAssociationId string
    targetId string
    The OCID of the target on which alert policy is to be applied.
    timeCreatedGreaterThanOrEqualTo string
    timeCreatedLessThan string
    compartment_id str
    The OCID of the compartment that contains the policy.
    id str
    The provider-assigned unique ID for this managed resource.
    target_alert_policy_association_collections Sequence[datasafe.GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollection]
    The list of target_alert_policy_association_collection.
    access_level str
    alert_policy_id str
    compartment_id_in_subtree bool
    filters Sequence[datasafe.GetTargetAlertPolicyAssociationsFilter]
    state str
    The current state of the target-alert policy association.
    target_alert_policy_association_id str
    target_id str
    The OCID of the target on which alert policy is to be applied.
    time_created_greater_than_or_equal_to str
    time_created_less_than str
    compartmentId String
    The OCID of the compartment that contains the policy.
    id String
    The provider-assigned unique ID for this managed resource.
    targetAlertPolicyAssociationCollections List<Property Map>
    The list of target_alert_policy_association_collection.
    accessLevel String
    alertPolicyId String
    compartmentIdInSubtree Boolean
    filters List<Property Map>
    state String
    The current state of the target-alert policy association.
    targetAlertPolicyAssociationId String
    targetId String
    The OCID of the target on which alert policy is to be applied.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String

    Supporting Types

    GetTargetAlertPolicyAssociationsFilter

    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

    GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollection

    GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollectionItem

    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
    Describes the target-alert policy association.
    DisplayName string
    The display name of the target-alert policy association.
    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 target-alert policy association.
    IsEnabled bool
    Indicates if the target-alert policy association is enabled or disabled by user.
    LifecycleDetails string
    Details about the current state of the target-alert policy association.
    PolicyId string
    The OCID of the alert policy.
    State string
    An optional filter to return only alert policies that have the given life-cycle 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"}
    TargetId string
    A filter to return only items related to a specific target OCID.
    TimeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    TimeUpdated string
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    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
    Describes the target-alert policy association.
    DisplayName string
    The display name of the target-alert policy association.
    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 target-alert policy association.
    IsEnabled bool
    Indicates if the target-alert policy association is enabled or disabled by user.
    LifecycleDetails string
    Details about the current state of the target-alert policy association.
    PolicyId string
    The OCID of the alert policy.
    State string
    An optional filter to return only alert policies that have the given life-cycle 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"}
    TargetId string
    A filter to return only items related to a specific target OCID.
    TimeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    TimeUpdated string
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    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
    Describes the target-alert policy association.
    displayName String
    The display name of the target-alert policy association.
    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 target-alert policy association.
    isEnabled Boolean
    Indicates if the target-alert policy association is enabled or disabled by user.
    lifecycleDetails String
    Details about the current state of the target-alert policy association.
    policyId String
    The OCID of the alert policy.
    state String
    An optional filter to return only alert policies that have the given life-cycle 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"}
    targetId String
    A filter to return only items related to a specific target OCID.
    timeCreated String
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated String
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    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
    Describes the target-alert policy association.
    displayName string
    The display name of the target-alert policy association.
    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 target-alert policy association.
    isEnabled boolean
    Indicates if the target-alert policy association is enabled or disabled by user.
    lifecycleDetails string
    Details about the current state of the target-alert policy association.
    policyId string
    The OCID of the alert policy.
    state string
    An optional filter to return only alert policies that have the given life-cycle 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"}
    targetId string
    A filter to return only items related to a specific target OCID.
    timeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated string
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    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
    Describes the target-alert policy association.
    display_name str
    The display name of the target-alert policy association.
    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 target-alert policy association.
    is_enabled bool
    Indicates if the target-alert policy association is enabled or disabled by user.
    lifecycle_details str
    Details about the current state of the target-alert policy association.
    policy_id str
    The OCID of the alert policy.
    state str
    An optional filter to return only alert policies that have the given life-cycle 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"}
    target_id str
    A filter to return only items related to a specific target OCID.
    time_created str
    Creation date and time of the alert policy, in the format defined by RFC3339.
    time_updated str
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    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
    Describes the target-alert policy association.
    displayName String
    The display name of the target-alert policy association.
    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 target-alert policy association.
    isEnabled Boolean
    Indicates if the target-alert policy association is enabled or disabled by user.
    lifecycleDetails String
    Details about the current state of the target-alert policy association.
    policyId String
    The OCID of the alert policy.
    state String
    An optional filter to return only alert policies that have the given life-cycle 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"}
    targetId String
    A filter to return only items related to a specific target OCID.
    timeCreated String
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated String
    Last date and time the alert policy was updated, in the format defined by RFC3339.

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi