1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getAlertPolicies
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi

oci.DataSafe.getAlertPolicies

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 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

    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 = @var.Compartment_id,
            AccessLevel = @var.Alert_policy_access_level,
            AlertPolicyId = oci_data_safe_alert_policy.Test_alert_policy.Id,
            CompartmentIdInSubtree = @var.Alert_policy_compartment_id_in_subtree,
            DisplayName = @var.Alert_policy_display_name,
            IsUserDefined = @var.Alert_policy_is_user_defined,
            State = @var.Alert_policy_state,
            TimeCreatedGreaterThanOrEqualTo = @var.Alert_policy_time_created_greater_than_or_equal_to,
            TimeCreatedLessThan = @var.Alert_policy_time_created_less_than,
            Type = @var.Alert_policy_type,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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:                   _var.Compartment_id,
    			AccessLevel:                     pulumi.StringRef(_var.Alert_policy_access_level),
    			AlertPolicyId:                   pulumi.StringRef(oci_data_safe_alert_policy.Test_alert_policy.Id),
    			CompartmentIdInSubtree:          pulumi.BoolRef(_var.Alert_policy_compartment_id_in_subtree),
    			DisplayName:                     pulumi.StringRef(_var.Alert_policy_display_name),
    			IsUserDefined:                   pulumi.BoolRef(_var.Alert_policy_is_user_defined),
    			State:                           pulumi.StringRef(_var.Alert_policy_state),
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(_var.Alert_policy_time_created_greater_than_or_equal_to),
    			TimeCreatedLessThan:             pulumi.StringRef(_var.Alert_policy_time_created_less_than),
    			Type:                            pulumi.StringRef(_var.Alert_policy_type),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(var_.compartment_id())
                .accessLevel(var_.alert_policy_access_level())
                .alertPolicyId(oci_data_safe_alert_policy.test_alert_policy().id())
                .compartmentIdInSubtree(var_.alert_policy_compartment_id_in_subtree())
                .displayName(var_.alert_policy_display_name())
                .isUserDefined(var_.alert_policy_is_user_defined())
                .state(var_.alert_policy_state())
                .timeCreatedGreaterThanOrEqualTo(var_.alert_policy_time_created_greater_than_or_equal_to())
                .timeCreatedLessThan(var_.alert_policy_time_created_less_than())
                .type(var_.alert_policy_type())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_alert_policies = oci.DataSafe.get_alert_policies(compartment_id=var["compartment_id"],
        access_level=var["alert_policy_access_level"],
        alert_policy_id=oci_data_safe_alert_policy["test_alert_policy"]["id"],
        compartment_id_in_subtree=var["alert_policy_compartment_id_in_subtree"],
        display_name=var["alert_policy_display_name"],
        is_user_defined=var["alert_policy_is_user_defined"],
        state=var["alert_policy_state"],
        time_created_greater_than_or_equal_to=var["alert_policy_time_created_greater_than_or_equal_to"],
        time_created_less_than=var["alert_policy_time_created_less_than"],
        type=var["alert_policy_type"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAlertPolicies = oci.DataSafe.getAlertPolicies({
        compartmentId: _var.compartment_id,
        accessLevel: _var.alert_policy_access_level,
        alertPolicyId: oci_data_safe_alert_policy.test_alert_policy.id,
        compartmentIdInSubtree: _var.alert_policy_compartment_id_in_subtree,
        displayName: _var.alert_policy_display_name,
        isUserDefined: _var.alert_policy_is_user_defined,
        state: _var.alert_policy_state,
        timeCreatedGreaterThanOrEqualTo: _var.alert_policy_time_created_greater_than_or_equal_to,
        timeCreatedLessThan: _var.alert_policy_time_created_less_than,
        type: _var.alert_policy_type,
    });
    
    variables:
      testAlertPolicies:
        fn::invoke:
          Function: oci:DataSafe:getAlertPolicies
          Arguments:
            compartmentId: ${var.compartment_id}
            accessLevel: ${var.alert_policy_access_level}
            alertPolicyId: ${oci_data_safe_alert_policy.test_alert_policy.id}
            compartmentIdInSubtree: ${var.alert_policy_compartment_id_in_subtree}
            displayName: ${var.alert_policy_display_name}
            isUserDefined: ${var.alert_policy_is_user_defined}
            state: ${var.alert_policy_state}
            timeCreatedGreaterThanOrEqualTo: ${var.alert_policy_time_created_greater_than_or_equal_to}
            timeCreatedLessThan: ${var.alert_policy_time_created_less_than}
            type: ${var.alert_policy_type}
    

    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 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 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 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

    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, object>

    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, object>

    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.

    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, object>

    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.

    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]interface{}

    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]interface{}

    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.

    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]interface{}

    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.

    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,Object>

    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,Object>

    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.

    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,Object>

    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.

    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]: any}

    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]: any}

    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.

    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]: any}

    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_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, Any]

    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, Any]

    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.

    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, Any]

    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.

    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<Any>

    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<Any>

    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.

    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<Any>

    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.

    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 v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi