oci.DataSafe.getTargetAlertPolicyAssociations
Explore with Pulumi AI
This data source provides the list of Target Alert Policy Associations in Oracle Cloud Infrastructure Data Safe service.
Gets a list of all target-alert policy associations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetAlertPolicyAssociations = oci.DataSafe.getTargetAlertPolicyAssociations({
    compartmentId: compartmentId,
    accessLevel: targetAlertPolicyAssociationAccessLevel,
    alertPolicyId: testAlertPolicy.id,
    compartmentIdInSubtree: targetAlertPolicyAssociationCompartmentIdInSubtree,
    state: targetAlertPolicyAssociationState,
    targetAlertPolicyAssociationId: testTargetAlertPolicyAssociation.id,
    targetId: testTarget.id,
    timeCreatedGreaterThanOrEqualTo: targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo,
    timeCreatedLessThan: targetAlertPolicyAssociationTimeCreatedLessThan,
});
import pulumi
import pulumi_oci as oci
test_target_alert_policy_associations = oci.DataSafe.get_target_alert_policy_associations(compartment_id=compartment_id,
    access_level=target_alert_policy_association_access_level,
    alert_policy_id=test_alert_policy["id"],
    compartment_id_in_subtree=target_alert_policy_association_compartment_id_in_subtree,
    state=target_alert_policy_association_state,
    target_alert_policy_association_id=test_target_alert_policy_association["id"],
    target_id=test_target["id"],
    time_created_greater_than_or_equal_to=target_alert_policy_association_time_created_greater_than_or_equal_to,
    time_created_less_than=target_alert_policy_association_time_created_less_than)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetTargetAlertPolicyAssociations(ctx, &datasafe.GetTargetAlertPolicyAssociationsArgs{
			CompartmentId:                   compartmentId,
			AccessLevel:                     pulumi.StringRef(targetAlertPolicyAssociationAccessLevel),
			AlertPolicyId:                   pulumi.StringRef(testAlertPolicy.Id),
			CompartmentIdInSubtree:          pulumi.BoolRef(targetAlertPolicyAssociationCompartmentIdInSubtree),
			State:                           pulumi.StringRef(targetAlertPolicyAssociationState),
			TargetAlertPolicyAssociationId:  pulumi.StringRef(testTargetAlertPolicyAssociation.Id),
			TargetId:                        pulumi.StringRef(testTarget.Id),
			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo),
			TimeCreatedLessThan:             pulumi.StringRef(targetAlertPolicyAssociationTimeCreatedLessThan),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testTargetAlertPolicyAssociations = Oci.DataSafe.GetTargetAlertPolicyAssociations.Invoke(new()
    {
        CompartmentId = compartmentId,
        AccessLevel = targetAlertPolicyAssociationAccessLevel,
        AlertPolicyId = testAlertPolicy.Id,
        CompartmentIdInSubtree = targetAlertPolicyAssociationCompartmentIdInSubtree,
        State = targetAlertPolicyAssociationState,
        TargetAlertPolicyAssociationId = testTargetAlertPolicyAssociation.Id,
        TargetId = testTarget.Id,
        TimeCreatedGreaterThanOrEqualTo = targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo,
        TimeCreatedLessThan = targetAlertPolicyAssociationTimeCreatedLessThan,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetTargetAlertPolicyAssociationsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testTargetAlertPolicyAssociations = DataSafeFunctions.getTargetAlertPolicyAssociations(GetTargetAlertPolicyAssociationsArgs.builder()
            .compartmentId(compartmentId)
            .accessLevel(targetAlertPolicyAssociationAccessLevel)
            .alertPolicyId(testAlertPolicy.id())
            .compartmentIdInSubtree(targetAlertPolicyAssociationCompartmentIdInSubtree)
            .state(targetAlertPolicyAssociationState)
            .targetAlertPolicyAssociationId(testTargetAlertPolicyAssociation.id())
            .targetId(testTarget.id())
            .timeCreatedGreaterThanOrEqualTo(targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo)
            .timeCreatedLessThan(targetAlertPolicyAssociationTimeCreatedLessThan)
            .build());
    }
}
variables:
  testTargetAlertPolicyAssociations:
    fn::invoke:
      function: oci:DataSafe:getTargetAlertPolicyAssociations
      arguments:
        compartmentId: ${compartmentId}
        accessLevel: ${targetAlertPolicyAssociationAccessLevel}
        alertPolicyId: ${testAlertPolicy.id}
        compartmentIdInSubtree: ${targetAlertPolicyAssociationCompartmentIdInSubtree}
        state: ${targetAlertPolicyAssociationState}
        targetAlertPolicyAssociationId: ${testTargetAlertPolicyAssociation.id}
        targetId: ${testTarget.id}
        timeCreatedGreaterThanOrEqualTo: ${targetAlertPolicyAssociationTimeCreatedGreaterThanOrEqualTo}
        timeCreatedLessThan: ${targetAlertPolicyAssociationTimeCreatedLessThan}
Using getTargetAlertPolicyAssociations
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTargetAlertPolicyAssociations(args: GetTargetAlertPolicyAssociationsArgs, opts?: InvokeOptions): Promise<GetTargetAlertPolicyAssociationsResult>
function getTargetAlertPolicyAssociationsOutput(args: GetTargetAlertPolicyAssociationsOutputArgs, opts?: InvokeOptions): Output<GetTargetAlertPolicyAssociationsResult>def get_target_alert_policy_associations(access_level: Optional[str] = None,
                                         alert_policy_id: Optional[str] = None,
                                         compartment_id: Optional[str] = None,
                                         compartment_id_in_subtree: Optional[bool] = None,
                                         filters: Optional[Sequence[GetTargetAlertPolicyAssociationsFilter]] = None,
                                         state: Optional[str] = None,
                                         target_alert_policy_association_id: Optional[str] = None,
                                         target_id: Optional[str] = None,
                                         time_created_greater_than_or_equal_to: Optional[str] = None,
                                         time_created_less_than: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetTargetAlertPolicyAssociationsResult
def get_target_alert_policy_associations_output(access_level: Optional[pulumi.Input[str]] = None,
                                         alert_policy_id: Optional[pulumi.Input[str]] = None,
                                         compartment_id: Optional[pulumi.Input[str]] = None,
                                         compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTargetAlertPolicyAssociationsFilterArgs]]]] = None,
                                         state: Optional[pulumi.Input[str]] = None,
                                         target_alert_policy_association_id: Optional[pulumi.Input[str]] = None,
                                         target_id: Optional[pulumi.Input[str]] = None,
                                         time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                                         time_created_less_than: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetTargetAlertPolicyAssociationsResult]func GetTargetAlertPolicyAssociations(ctx *Context, args *GetTargetAlertPolicyAssociationsArgs, opts ...InvokeOption) (*GetTargetAlertPolicyAssociationsResult, error)
func GetTargetAlertPolicyAssociationsOutput(ctx *Context, args *GetTargetAlertPolicyAssociationsOutputArgs, opts ...InvokeOption) GetTargetAlertPolicyAssociationsResultOutput> Note: This function is named GetTargetAlertPolicyAssociations in the Go SDK.
public static class GetTargetAlertPolicyAssociations 
{
    public static Task<GetTargetAlertPolicyAssociationsResult> InvokeAsync(GetTargetAlertPolicyAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetTargetAlertPolicyAssociationsResult> Invoke(GetTargetAlertPolicyAssociationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTargetAlertPolicyAssociationsResult> getTargetAlertPolicyAssociations(GetTargetAlertPolicyAssociationsArgs args, InvokeOptions options)
public static Output<GetTargetAlertPolicyAssociationsResult> getTargetAlertPolicyAssociations(GetTargetAlertPolicyAssociationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getTargetAlertPolicyAssociations:getTargetAlertPolicyAssociations
  arguments:
    # arguments dictionaryThe 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.
- AlertPolicy stringId 
- A filter to return policy by it's OCID.
- CompartmentId 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.
- Filters
List<GetTarget Alert Policy Associations Filter> 
- State string
- An optional filter to return only alert policies that have the given life-cycle state.
- TargetAlert stringPolicy Association Id 
- A filter to return only items related to a specific target-alert policy association ID.
- TargetId string
- A filter to return only items related to a specific target OCID.
- TimeCreated 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 
- TimeCreated stringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.- Example: 2016-12-19T16:39:57.600Z 
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- AccessLevel string
- Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- AlertPolicy stringId 
- A filter to return policy by it's OCID.
- CompartmentId 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.
- Filters
[]GetTarget Alert Policy Associations Filter 
- State string
- An optional filter to return only alert policies that have the given life-cycle state.
- TargetAlert stringPolicy Association Id 
- A filter to return only items related to a specific target-alert policy association ID.
- TargetId string
- A filter to return only items related to a specific target OCID.
- TimeCreated 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 
- TimeCreated stringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.- Example: 2016-12-19T16:39:57.600Z 
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
- accessLevel String
- Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- alertPolicy StringId 
- A filter to return policy by it's OCID.
- compartmentId 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.
- filters
List<GetTarget Alert Policy Associations Filter> 
- state String
- An optional filter to return only alert policies that have the given life-cycle state.
- targetAlert StringPolicy Association Id 
- A filter to return only items related to a specific target-alert policy association ID.
- targetId String
- A filter to return only items related to a specific target OCID.
- timeCreated 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 
- timeCreated StringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.- Example: 2016-12-19T16:39:57.600Z 
- compartmentId string
- A filter to return only resources that match the specified compartment OCID.
- accessLevel string
- Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- alertPolicy stringId 
- A filter to return policy by it's OCID.
- compartmentId 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.
- filters
GetTarget Alert Policy Associations Filter[] 
- state string
- An optional filter to return only alert policies that have the given life-cycle state.
- targetAlert stringPolicy Association Id 
- A filter to return only items related to a specific target-alert policy association ID.
- targetId string
- A filter to return only items related to a specific target OCID.
- timeCreated 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 
- timeCreated stringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.- Example: 2016-12-19T16:39:57.600Z 
- compartment_id str
- A filter to return only resources that match the specified compartment OCID.
- access_level str
- Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- alert_policy_ 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.
- filters
Sequence[GetTarget Alert Policy Associations Filter] 
- state str
- An optional filter to return only alert policies that have the given life-cycle state.
- target_alert_ strpolicy_ association_ id 
- A filter to return only items related to a specific target-alert policy association ID.
- target_id str
- A filter to return only items related to a specific target OCID.
- time_created_ 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 - timeCreatedLessThanparameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.- Example: 2016-12-19T16:39:57.600Z 
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
- accessLevel String
- Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- alertPolicy StringId 
- A filter to return policy by it's OCID.
- compartmentId 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.
- filters List<Property Map>
- state String
- An optional filter to return only alert policies that have the given life-cycle state.
- targetAlert StringPolicy Association Id 
- A filter to return only items related to a specific target-alert policy association ID.
- targetId String
- A filter to return only items related to a specific target OCID.
- timeCreated 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 
- timeCreated StringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.- Example: 2016-12-19T16:39:57.600Z 
getTargetAlertPolicyAssociations Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- TargetAlert List<GetPolicy Association Collections Target Alert Policy Associations Target Alert Policy Association Collection> 
- The list of target_alert_policy_association_collection.
- AccessLevel string
- AlertPolicy stringId 
- CompartmentId boolIn Subtree 
- Filters
List<GetTarget Alert Policy Associations Filter> 
- State string
- The current state of the target-alert policy association.
- TargetAlert stringPolicy Association Id 
- TargetId string
- The OCID of the target on which alert policy is to be applied.
- TimeCreated stringGreater Than Or Equal To 
- TimeCreated stringLess Than 
- CompartmentId string
- The OCID of the compartment that contains the policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- TargetAlert []GetPolicy Association Collections Target Alert Policy Associations Target Alert Policy Association Collection 
- The list of target_alert_policy_association_collection.
- AccessLevel string
- AlertPolicy stringId 
- CompartmentId boolIn Subtree 
- Filters
[]GetTarget Alert Policy Associations Filter 
- State string
- The current state of the target-alert policy association.
- TargetAlert stringPolicy Association Id 
- TargetId string
- The OCID of the target on which alert policy is to be applied.
- TimeCreated stringGreater Than Or Equal To 
- TimeCreated stringLess Than 
- compartmentId String
- The OCID of the compartment that contains the policy.
- id String
- The provider-assigned unique ID for this managed resource.
- targetAlert List<GetPolicy Association Collections Target Alert Policy Associations Target Alert Policy Association Collection> 
- The list of target_alert_policy_association_collection.
- accessLevel String
- alertPolicy StringId 
- compartmentId BooleanIn Subtree 
- filters
List<GetTarget Alert Policy Associations Filter> 
- state String
- The current state of the target-alert policy association.
- targetAlert StringPolicy Association Id 
- targetId String
- The OCID of the target on which alert policy is to be applied.
- timeCreated StringGreater Than Or Equal To 
- timeCreated StringLess Than 
- compartmentId string
- The OCID of the compartment that contains the policy.
- id string
- The provider-assigned unique ID for this managed resource.
- targetAlert GetPolicy Association Collections Target Alert Policy Associations Target Alert Policy Association Collection[] 
- The list of target_alert_policy_association_collection.
- accessLevel string
- alertPolicy stringId 
- compartmentId booleanIn Subtree 
- filters
GetTarget Alert Policy Associations Filter[] 
- state string
- The current state of the target-alert policy association.
- targetAlert stringPolicy Association Id 
- targetId string
- The OCID of the target on which alert policy is to be applied.
- timeCreated stringGreater Than Or Equal To 
- timeCreated stringLess Than 
- compartment_id str
- The OCID of the compartment that contains the policy.
- id str
- The provider-assigned unique ID for this managed resource.
- target_alert_ Sequence[Getpolicy_ association_ collections Target Alert Policy Associations Target Alert Policy Association Collection] 
- The list of target_alert_policy_association_collection.
- access_level str
- alert_policy_ strid 
- compartment_id_ boolin_ subtree 
- filters
Sequence[GetTarget Alert Policy Associations Filter] 
- state str
- The current state of the target-alert policy association.
- target_alert_ strpolicy_ association_ id 
- target_id str
- The OCID of the target on which alert policy is to be applied.
- time_created_ strgreater_ than_ or_ equal_ to 
- time_created_ strless_ than 
- compartmentId String
- The OCID of the compartment that contains the policy.
- id String
- The provider-assigned unique ID for this managed resource.
- targetAlert List<Property Map>Policy Association Collections 
- The list of target_alert_policy_association_collection.
- accessLevel String
- alertPolicy StringId 
- compartmentId BooleanIn Subtree 
- filters List<Property Map>
- state String
- The current state of the target-alert policy association.
- targetAlert StringPolicy Association Id 
- targetId String
- The OCID of the target on which alert policy is to be applied.
- timeCreated StringGreater Than Or Equal To 
- timeCreated StringLess Than 
Supporting Types
GetTargetAlertPolicyAssociationsFilter     
GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollection         
GetTargetAlertPolicyAssociationsTargetAlertPolicyAssociationCollectionItem          
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- Describes the target-alert policy association.
- DisplayName string
- The display name of the target-alert policy association.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- Id string
- The OCID of the target-alert policy association.
- IsEnabled bool
- Indicates if the target-alert policy association is enabled or disabled by user.
- LifecycleDetails string
- Details about the current state of the target-alert policy association.
- PolicyId string
- The OCID of the alert policy.
- State string
- An optional filter to return only alert policies that have the given life-cycle state.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TargetId string
- A filter to return only items related to a specific target OCID.
- TimeCreated string
- Creation date and time of the alert policy, in the format defined by RFC3339.
- TimeUpdated string
- Last date and time the alert policy was updated, in the format defined by RFC3339.
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- Describes the target-alert policy association.
- DisplayName string
- The display name of the target-alert policy association.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- Id string
- The OCID of the target-alert policy association.
- IsEnabled bool
- Indicates if the target-alert policy association is enabled or disabled by user.
- LifecycleDetails string
- Details about the current state of the target-alert policy association.
- PolicyId string
- The OCID of the alert policy.
- State string
- An optional filter to return only alert policies that have the given life-cycle state.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TargetId string
- A filter to return only items related to a specific target OCID.
- TimeCreated string
- Creation date and time of the alert policy, in the format defined by RFC3339.
- TimeUpdated string
- Last date and time the alert policy was updated, in the format defined by RFC3339.
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- Describes the target-alert policy association.
- displayName String
- The display name of the target-alert policy association.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id String
- The OCID of the target-alert policy association.
- isEnabled Boolean
- Indicates if the target-alert policy association is enabled or disabled by user.
- lifecycleDetails String
- Details about the current state of the target-alert policy association.
- policyId String
- The OCID of the alert policy.
- state String
- An optional filter to return only alert policies that have the given life-cycle state.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- targetId String
- A filter to return only items related to a specific target OCID.
- timeCreated String
- Creation date and time of the alert policy, in the format defined by RFC3339.
- timeUpdated String
- Last date and time the alert policy was updated, in the format defined by RFC3339.
- compartmentId string
- A filter to return only resources that match the specified compartment OCID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description string
- Describes the target-alert policy association.
- displayName string
- The display name of the target-alert policy association.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id string
- The OCID of the target-alert policy association.
- isEnabled boolean
- Indicates if the target-alert policy association is enabled or disabled by user.
- lifecycleDetails string
- Details about the current state of the target-alert policy association.
- policyId string
- The OCID of the alert policy.
- state string
- An optional filter to return only alert policies that have the given life-cycle state.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- targetId string
- A filter to return only items related to a specific target OCID.
- timeCreated string
- Creation date and time of the alert policy, in the format defined by RFC3339.
- timeUpdated string
- Last date and time the alert policy was updated, in the format defined by RFC3339.
- compartment_id str
- A filter to return only resources that match the specified compartment OCID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description str
- Describes the target-alert policy association.
- display_name str
- The display name of the target-alert policy association.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id str
- The OCID of the target-alert policy association.
- is_enabled bool
- Indicates if the target-alert policy association is enabled or disabled by user.
- lifecycle_details str
- Details about the current state of the target-alert policy association.
- policy_id str
- The OCID of the alert policy.
- state str
- An optional filter to return only alert policies that have the given life-cycle state.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- target_id str
- A filter to return only items related to a specific target OCID.
- time_created str
- Creation date and time of the alert policy, in the format defined by RFC3339.
- time_updated str
- Last date and time the alert policy was updated, in the format defined by RFC3339.
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- Describes the target-alert policy association.
- displayName String
- The display name of the target-alert policy association.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id String
- The OCID of the target-alert policy association.
- isEnabled Boolean
- Indicates if the target-alert policy association is enabled or disabled by user.
- lifecycleDetails String
- Details about the current state of the target-alert policy association.
- policyId String
- The OCID of the alert policy.
- state String
- An optional filter to return only alert policies that have the given life-cycle state.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- targetId String
- A filter to return only items related to a specific target OCID.
- timeCreated String
- Creation date and time of the alert policy, in the format defined by RFC3339.
- timeUpdated String
- Last date and time the alert policy was updated, in the format defined by RFC3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.