oci.DataSafe.getAlertPolicies
Explore with Pulumi AI
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/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:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level 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.
- Alert
Policy stringId - A filter to return policy by it's OCID.
- Compartment
Id boolIn Subtree - 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 string - A filter to return only resources that match the specified display name.
- Filters
List<Get
Alert Policies Filter> - Is
User boolDefined - 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.
- Time
Created stringGreater Than Or Equal To 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 stringLess Than 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 string - A filter to return only resources that match the specified compartment OCID.
- Access
Level 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.
- Alert
Policy stringId - A filter to return policy by it's OCID.
- Compartment
Id boolIn Subtree - 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 string - A filter to return only resources that match the specified display name.
- Filters
[]Get
Alert Policies Filter - Is
User boolDefined - 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.
- Time
Created stringGreater Than Or Equal To 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 stringLess Than 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 String - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- alert
Policy StringId - A filter to return policy by it's OCID.
- compartment
Id BooleanIn Subtree - 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 String - A filter to return only resources that match the specified display name.
- filters
List<Get
Alert Policies Filter> - is
User BooleanDefined - 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.
- time
Created StringGreater Than Or Equal To 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 StringLess Than 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 string - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- alert
Policy stringId - A filter to return policy by it's OCID.
- compartment
Id booleanIn Subtree - 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 string - A filter to return only resources that match the specified display name.
- filters
Get
Alert Policies Filter[] - is
User booleanDefined - 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.
- time
Created stringGreater Than Or Equal To 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 stringLess Than 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_ strid - A filter to return policy by it's OCID.
- compartment_
id_ boolin_ subtree - 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.
Get Alert Policies Filter] - is_
user_ booldefined - 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_ strgreater_ than_ or_ equal_ to 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_ strless_ than 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.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- alert
Policy StringId - A filter to return policy by it's OCID.
- compartment
Id BooleanIn Subtree - 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 String - A filter to return only resources that match the specified display name.
- filters List<Property Map>
- is
User BooleanDefined - 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.
- time
Created StringGreater Than Or Equal To 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 StringLess Than 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:
- Alert
Policy List<GetCollections Alert Policies Alert Policy Collection> - The list of alert_policy_collection.
- Compartment
Id string - The OCID of the compartment that contains the alert policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Access
Level string - Alert
Policy stringId - Compartment
Id boolIn Subtree - Display
Name string - The display name of the alert policy.
- Filters
List<Get
Alert Policies Filter> - Is
User boolDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- State string
- The current state of the alert.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Type string
- Alert
Policy []GetCollections Alert Policies Alert Policy Collection - The list of alert_policy_collection.
- Compartment
Id string - The OCID of the compartment that contains the alert policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Access
Level string - Alert
Policy stringId - Compartment
Id boolIn Subtree - Display
Name string - The display name of the alert policy.
- Filters
[]Get
Alert Policies Filter - Is
User boolDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- State string
- The current state of the alert.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Type string
- alert
Policy List<GetCollections Alert Policies Alert Policy Collection> - The list of alert_policy_collection.
- compartment
Id String - The OCID of the compartment that contains the alert policy.
- id String
- The provider-assigned unique ID for this managed resource.
- access
Level String - alert
Policy StringId - compartment
Id BooleanIn Subtree - display
Name String - The display name of the alert policy.
- filters
List<Get
Alert Policies Filter> - is
User BooleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- state String
- The current state of the alert.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - type String
- alert
Policy GetCollections Alert Policies Alert Policy Collection[] - The list of alert_policy_collection.
- compartment
Id string - The OCID of the compartment that contains the alert policy.
- id string
- The provider-assigned unique ID for this managed resource.
- access
Level string - alert
Policy stringId - compartment
Id booleanIn Subtree - display
Name string - The display name of the alert policy.
- filters
Get
Alert Policies Filter[] - is
User booleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- state string
- The current state of the alert.
- time
Created stringGreater Than Or Equal To - time
Created stringLess Than - type string
- alert_
policy_ Sequence[datasafe.collections Get Alert Policies Alert Policy Collection] - 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_ strid - compartment_
id_ boolin_ subtree - display_
name str - The display name of the alert policy.
- filters
Sequence[datasafe.
Get Alert Policies Filter] - is_
user_ booldefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- state str
- The current state of the alert.
- time_
created_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than - type str
- alert
Policy List<Property Map>Collections - The list of alert_policy_collection.
- compartment
Id String - The OCID of the compartment that contains the alert policy.
- id String
- The provider-assigned unique ID for this managed resource.
- access
Level String - alert
Policy StringId - compartment
Id BooleanIn Subtree - display
Name String - The display name of the alert policy.
- filters List<Property Map>
- is
User BooleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- state String
- The current state of the alert.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - type String
Supporting Types
GetAlertPoliciesAlertPolicyCollection
GetAlertPoliciesAlertPolicyCollectionItem
- Alert
Policy stringType - Indicates the Data Safe feature to which the alert policy belongs.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- 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.
- Display
Name string - A filter to return only resources that match the specified display name.
- 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.
- Is
User boolDefined - 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.
- 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"}
- Time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- Time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- Alert
Policy stringType - Indicates the Data Safe feature to which the alert policy belongs.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- 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.
- Display
Name string - A filter to return only resources that match the specified display name.
- 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.
- Is
User boolDefined - 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.
- 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"}
- Time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- Time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- alert
Policy StringType - Indicates the Data Safe feature to which the alert policy belongs.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- 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.
- display
Name String - A filter to return only resources that match the specified display name.
- 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.
- is
User BooleanDefined - 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.
- 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"}
- time
Created String - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated String - Last date and time the alert policy was updated, in the format defined by RFC3339.
- alert
Policy stringType - Indicates the Data Safe feature to which the alert policy belongs.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- {[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.
- display
Name string - A filter to return only resources that match the specified display name.
- {[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.
- is
User booleanDefined - 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.
- {[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"}
- time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- alert_
policy_ strtype - 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.
- 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.
- 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_ booldefined - 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.
- 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.
- alert
Policy StringType - Indicates the Data Safe feature to which the alert policy belongs.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- 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.
- display
Name String - A filter to return only resources that match the specified display name.
- 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.
- is
User BooleanDefined - 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.
- 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"}
- time
Created String - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated String - Last date and time the alert policy was updated, in the format defined by RFC3339.
GetAlertPoliciesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.