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

oci.DataSafe.getAlertPolicies

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 Alert Policies in Oracle Cloud Infrastructure Data Safe service.

    Gets a list of all alert policies.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAlertPolicies = oci.DataSafe.getAlertPolicies({
        compartmentId: compartmentId,
        accessLevel: alertPolicyAccessLevel,
        alertPolicyId: testAlertPolicy.id,
        compartmentIdInSubtree: alertPolicyCompartmentIdInSubtree,
        displayName: alertPolicyDisplayName,
        isUserDefined: alertPolicyIsUserDefined,
        state: alertPolicyState,
        timeCreatedGreaterThanOrEqualTo: alertPolicyTimeCreatedGreaterThanOrEqualTo,
        timeCreatedLessThan: alertPolicyTimeCreatedLessThan,
        type: alertPolicyType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_alert_policies = oci.DataSafe.get_alert_policies(compartment_id=compartment_id,
        access_level=alert_policy_access_level,
        alert_policy_id=test_alert_policy["id"],
        compartment_id_in_subtree=alert_policy_compartment_id_in_subtree,
        display_name=alert_policy_display_name,
        is_user_defined=alert_policy_is_user_defined,
        state=alert_policy_state,
        time_created_greater_than_or_equal_to=alert_policy_time_created_greater_than_or_equal_to,
        time_created_less_than=alert_policy_time_created_less_than,
        type=alert_policy_type)
    
    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.GetAlertPolicies(ctx, &datasafe.GetAlertPoliciesArgs{
    			CompartmentId:                   compartmentId,
    			AccessLevel:                     pulumi.StringRef(alertPolicyAccessLevel),
    			AlertPolicyId:                   pulumi.StringRef(testAlertPolicy.Id),
    			CompartmentIdInSubtree:          pulumi.BoolRef(alertPolicyCompartmentIdInSubtree),
    			DisplayName:                     pulumi.StringRef(alertPolicyDisplayName),
    			IsUserDefined:                   pulumi.BoolRef(alertPolicyIsUserDefined),
    			State:                           pulumi.StringRef(alertPolicyState),
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(alertPolicyTimeCreatedGreaterThanOrEqualTo),
    			TimeCreatedLessThan:             pulumi.StringRef(alertPolicyTimeCreatedLessThan),
    			Type:                            pulumi.StringRef(alertPolicyType),
    		}, 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 testAlertPolicies = Oci.DataSafe.GetAlertPolicies.Invoke(new()
        {
            CompartmentId = compartmentId,
            AccessLevel = alertPolicyAccessLevel,
            AlertPolicyId = testAlertPolicy.Id,
            CompartmentIdInSubtree = alertPolicyCompartmentIdInSubtree,
            DisplayName = alertPolicyDisplayName,
            IsUserDefined = alertPolicyIsUserDefined,
            State = alertPolicyState,
            TimeCreatedGreaterThanOrEqualTo = alertPolicyTimeCreatedGreaterThanOrEqualTo,
            TimeCreatedLessThan = alertPolicyTimeCreatedLessThan,
            Type = alertPolicyType,
        });
    
    });
    
    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.GetAlertPoliciesArgs;
    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 testAlertPolicies = DataSafeFunctions.getAlertPolicies(GetAlertPoliciesArgs.builder()
                .compartmentId(compartmentId)
                .accessLevel(alertPolicyAccessLevel)
                .alertPolicyId(testAlertPolicy.id())
                .compartmentIdInSubtree(alertPolicyCompartmentIdInSubtree)
                .displayName(alertPolicyDisplayName)
                .isUserDefined(alertPolicyIsUserDefined)
                .state(alertPolicyState)
                .timeCreatedGreaterThanOrEqualTo(alertPolicyTimeCreatedGreaterThanOrEqualTo)
                .timeCreatedLessThan(alertPolicyTimeCreatedLessThan)
                .type(alertPolicyType)
                .build());
    
        }
    }
    
    variables:
      testAlertPolicies:
        fn::invoke:
          Function: oci:DataSafe:getAlertPolicies
          Arguments:
            compartmentId: ${compartmentId}
            accessLevel: ${alertPolicyAccessLevel}
            alertPolicyId: ${testAlertPolicy.id}
            compartmentIdInSubtree: ${alertPolicyCompartmentIdInSubtree}
            displayName: ${alertPolicyDisplayName}
            isUserDefined: ${alertPolicyIsUserDefined}
            state: ${alertPolicyState}
            timeCreatedGreaterThanOrEqualTo: ${alertPolicyTimeCreatedGreaterThanOrEqualTo}
            timeCreatedLessThan: ${alertPolicyTimeCreatedLessThan}
            type: ${alertPolicyType}
    

    Using getAlertPolicies

    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 getAlertPolicies(args: GetAlertPoliciesArgs, opts?: InvokeOptions): Promise<GetAlertPoliciesResult>
    function getAlertPoliciesOutput(args: GetAlertPoliciesOutputArgs, opts?: InvokeOptions): Output<GetAlertPoliciesResult>
    def get_alert_policies(access_level: Optional[str] = None,
                           alert_policy_id: Optional[str] = None,
                           compartment_id: Optional[str] = None,
                           compartment_id_in_subtree: Optional[bool] = None,
                           display_name: Optional[str] = None,
                           filters: Optional[Sequence[_datasafe.GetAlertPoliciesFilter]] = None,
                           is_user_defined: Optional[bool] = None,
                           state: Optional[str] = None,
                           time_created_greater_than_or_equal_to: Optional[str] = None,
                           time_created_less_than: Optional[str] = None,
                           type: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAlertPoliciesResult
    def get_alert_policies_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,
                           display_name: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetAlertPoliciesFilterArgs]]]] = None,
                           is_user_defined: Optional[pulumi.Input[bool]] = None,
                           state: 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,
                           type: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAlertPoliciesResult]
    func GetAlertPolicies(ctx *Context, args *GetAlertPoliciesArgs, opts ...InvokeOption) (*GetAlertPoliciesResult, error)
    func GetAlertPoliciesOutput(ctx *Context, args *GetAlertPoliciesOutputArgs, opts ...InvokeOption) GetAlertPoliciesResultOutput

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

    public static class GetAlertPolicies 
    {
        public static Task<GetAlertPoliciesResult> InvokeAsync(GetAlertPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertPoliciesResult> Invoke(GetAlertPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertPoliciesResult> getAlertPolicies(GetAlertPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getAlertPolicies:getAlertPolicies
      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.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters List<GetAlertPoliciesFilter>
    IsUserDefined bool
    An optional filter to return only alert policies that are user-defined or not.
    State string
    An optional filter to return only alert policies that have the given life-cycle state.
    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

    Type string
    An optional filter to return only alert policies of a certain type.
    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.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters []GetAlertPoliciesFilter
    IsUserDefined bool
    An optional filter to return only alert policies that are user-defined or not.
    State string
    An optional filter to return only alert policies that have the given life-cycle state.
    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

    Type string
    An optional filter to return only alert policies of a certain type.
    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.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<GetAlertPoliciesFilter>
    isUserDefined Boolean
    An optional filter to return only alert policies that are user-defined or not.
    state String
    An optional filter to return only alert policies that have the given life-cycle state.
    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

    type String
    An optional filter to return only alert policies of a certain type.
    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.
    displayName string
    A filter to return only resources that match the specified display name.
    filters GetAlertPoliciesFilter[]
    isUserDefined boolean
    An optional filter to return only alert policies that are user-defined or not.
    state string
    An optional filter to return only alert policies that have the given life-cycle state.
    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

    type string
    An optional filter to return only alert policies of a certain type.
    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.
    display_name str
    A filter to return only resources that match the specified display name.
    filters Sequence[datasafe.GetAlertPoliciesFilter]
    is_user_defined bool
    An optional filter to return only alert policies that are user-defined or not.
    state str
    An optional filter to return only alert policies that have the given life-cycle state.
    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

    type str
    An optional filter to return only alert policies of a certain type.
    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.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<Property Map>
    isUserDefined Boolean
    An optional filter to return only alert policies that are user-defined or not.
    state String
    An optional filter to return only alert policies that have the given life-cycle state.
    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

    type String
    An optional filter to return only alert policies of a certain type.

    getAlertPolicies Result

    The following output properties are available:

    AlertPolicyCollections List<GetAlertPoliciesAlertPolicyCollection>
    The list of alert_policy_collection.
    CompartmentId string
    The OCID of the compartment that contains the alert policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessLevel string
    AlertPolicyId string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the alert policy.
    Filters List<GetAlertPoliciesFilter>
    IsUserDefined bool
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    State string
    The current state of the alert.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    Type string
    AlertPolicyCollections []GetAlertPoliciesAlertPolicyCollection
    The list of alert_policy_collection.
    CompartmentId string
    The OCID of the compartment that contains the alert policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessLevel string
    AlertPolicyId string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the alert policy.
    Filters []GetAlertPoliciesFilter
    IsUserDefined bool
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    State string
    The current state of the alert.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    Type string
    alertPolicyCollections List<GetAlertPoliciesAlertPolicyCollection>
    The list of alert_policy_collection.
    compartmentId String
    The OCID of the compartment that contains the alert policy.
    id String
    The provider-assigned unique ID for this managed resource.
    accessLevel String
    alertPolicyId String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the alert policy.
    filters List<GetAlertPoliciesFilter>
    isUserDefined Boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    state String
    The current state of the alert.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    type String
    alertPolicyCollections GetAlertPoliciesAlertPolicyCollection[]
    The list of alert_policy_collection.
    compartmentId string
    The OCID of the compartment that contains the alert policy.
    id string
    The provider-assigned unique ID for this managed resource.
    accessLevel string
    alertPolicyId string
    compartmentIdInSubtree boolean
    displayName string
    The display name of the alert policy.
    filters GetAlertPoliciesFilter[]
    isUserDefined boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    state string
    The current state of the alert.
    timeCreatedGreaterThanOrEqualTo string
    timeCreatedLessThan string
    type string
    alert_policy_collections Sequence[datasafe.GetAlertPoliciesAlertPolicyCollection]
    The list of alert_policy_collection.
    compartment_id str
    The OCID of the compartment that contains the alert policy.
    id str
    The provider-assigned unique ID for this managed resource.
    access_level str
    alert_policy_id str
    compartment_id_in_subtree bool
    display_name str
    The display name of the alert policy.
    filters Sequence[datasafe.GetAlertPoliciesFilter]
    is_user_defined bool
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    state str
    The current state of the alert.
    time_created_greater_than_or_equal_to str
    time_created_less_than str
    type str
    alertPolicyCollections List<Property Map>
    The list of alert_policy_collection.
    compartmentId String
    The OCID of the compartment that contains the alert policy.
    id String
    The provider-assigned unique ID for this managed resource.
    accessLevel String
    alertPolicyId String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the alert policy.
    filters List<Property Map>
    isUserDefined Boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    state String
    The current state of the alert.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    type String

    Supporting Types

    GetAlertPoliciesAlertPolicyCollection

    GetAlertPoliciesAlertPolicyCollectionItem

    AlertPolicyRuleDetails List<GetAlertPoliciesAlertPolicyCollectionItemAlertPolicyRuleDetail>
    AlertPolicyType string
    Indicates the Data Safe feature to which the alert policy belongs.
    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
    The description of the alert policy.
    DisplayName string
    A filter to return only resources that match the specified display name.
    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 alert policy.
    IsUserDefined bool
    An optional filter to return only alert policies that are user-defined or not.
    LifecycleDetails string
    Details about the current state of the alert policy.
    Severity string
    Severity level of the alert raised by this 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"}
    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.
    AlertPolicyRuleDetails []GetAlertPoliciesAlertPolicyCollectionItemAlertPolicyRuleDetail
    AlertPolicyType string
    Indicates the Data Safe feature to which the alert policy belongs.
    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
    The description of the alert policy.
    DisplayName string
    A filter to return only resources that match the specified display name.
    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 alert policy.
    IsUserDefined bool
    An optional filter to return only alert policies that are user-defined or not.
    LifecycleDetails string
    Details about the current state of the alert policy.
    Severity string
    Severity level of the alert raised by this 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"}
    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.
    alertPolicyRuleDetails List<GetAlertPoliciesAlertPolicyCollectionItemAlertPolicyRuleDetail>
    alertPolicyType String
    Indicates the Data Safe feature to which the alert policy belongs.
    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
    The description of the alert policy.
    displayName String
    A filter to return only resources that match the specified display name.
    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 alert policy.
    isUserDefined Boolean
    An optional filter to return only alert policies that are user-defined or not.
    lifecycleDetails String
    Details about the current state of the alert policy.
    severity String
    Severity level of the alert raised by this 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"}
    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.
    alertPolicyRuleDetails GetAlertPoliciesAlertPolicyCollectionItemAlertPolicyRuleDetail[]
    alertPolicyType string
    Indicates the Data Safe feature to which the alert policy belongs.
    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
    The description of the alert policy.
    displayName string
    A filter to return only resources that match the specified display name.
    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 alert policy.
    isUserDefined boolean
    An optional filter to return only alert policies that are user-defined or not.
    lifecycleDetails string
    Details about the current state of the alert policy.
    severity string
    Severity level of the alert raised by this 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"}
    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.
    alert_policy_rule_details Sequence[datasafe.GetAlertPoliciesAlertPolicyCollectionItemAlertPolicyRuleDetail]
    alert_policy_type str
    Indicates the Data Safe feature to which the alert policy belongs.
    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
    The description of the alert policy.
    display_name str
    A filter to return only resources that match the specified display name.
    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 alert policy.
    is_user_defined bool
    An optional filter to return only alert policies that are user-defined or not.
    lifecycle_details str
    Details about the current state of the alert policy.
    severity str
    Severity level of the alert raised by this 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"}
    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.
    alertPolicyRuleDetails List<Property Map>
    alertPolicyType String
    Indicates the Data Safe feature to which the alert policy belongs.
    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
    The description of the alert policy.
    displayName String
    A filter to return only resources that match the specified display name.
    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 alert policy.
    isUserDefined Boolean
    An optional filter to return only alert policies that are user-defined or not.
    lifecycleDetails String
    Details about the current state of the alert policy.
    severity String
    Severity level of the alert raised by this 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"}
    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.

    GetAlertPoliciesAlertPolicyCollectionItemAlertPolicyRuleDetail

    Description string
    The description of the alert policy.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Expression string
    Description string
    The description of the alert policy.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Expression string
    description String
    The description of the alert policy.
    displayName String
    A filter to return only resources that match the specified display name.
    expression String
    description string
    The description of the alert policy.
    displayName string
    A filter to return only resources that match the specified display name.
    expression string
    description str
    The description of the alert policy.
    display_name str
    A filter to return only resources that match the specified display name.
    expression str
    description String
    The description of the alert policy.
    displayName String
    A filter to return only resources that match the specified display name.
    expression String

    GetAlertPoliciesFilter

    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

    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