Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getAlert
Explore with Pulumi AI
This data source provides details about a specific Alert resource in Oracle Cloud Infrastructure Data Safe service.
Gets the details of the specified alerts.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAlert = oci.DataSafe.getAlert({
    alertId: testAlertOciDataSafeAlert.id,
});
import pulumi
import pulumi_oci as oci
test_alert = oci.DataSafe.get_alert(alert_id=test_alert_oci_data_safe_alert["id"])
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.GetAlert(ctx, &datasafe.GetAlertArgs{
			AlertId: testAlertOciDataSafeAlert.Id,
		}, 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 testAlert = Oci.DataSafe.GetAlert.Invoke(new()
    {
        AlertId = testAlertOciDataSafeAlert.Id,
    });
});
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.GetAlertArgs;
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 testAlert = DataSafeFunctions.getAlert(GetAlertArgs.builder()
            .alertId(testAlertOciDataSafeAlert.id())
            .build());
    }
}
variables:
  testAlert:
    fn::invoke:
      function: oci:DataSafe:getAlert
      arguments:
        alertId: ${testAlertOciDataSafeAlert.id}
Using getAlert
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 getAlert(args: GetAlertArgs, opts?: InvokeOptions): Promise<GetAlertResult>
function getAlertOutput(args: GetAlertOutputArgs, opts?: InvokeOptions): Output<GetAlertResult>def get_alert(alert_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetAlertResult
def get_alert_output(alert_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetAlertResult]func LookupAlert(ctx *Context, args *LookupAlertArgs, opts ...InvokeOption) (*LookupAlertResult, error)
func LookupAlertOutput(ctx *Context, args *LookupAlertOutputArgs, opts ...InvokeOption) LookupAlertResultOutput> Note: This function is named LookupAlert in the Go SDK.
public static class GetAlert 
{
    public static Task<GetAlertResult> InvokeAsync(GetAlertArgs args, InvokeOptions? opts = null)
    public static Output<GetAlertResult> Invoke(GetAlertInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAlertResult> getAlert(GetAlertArgs args, InvokeOptions options)
public static Output<GetAlertResult> getAlert(GetAlertArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getAlert:getAlert
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AlertId string
- The OCID of alert.
- AlertId string
- The OCID of alert.
- alertId String
- The OCID of alert.
- alertId string
- The OCID of alert.
- alert_id str
- The OCID of alert.
- alertId String
- The OCID of alert.
getAlert Result
The following output properties are available:
- AlertId string
- AlertPolicy stringRule Key 
- The key of the rule of alert policy that triggered alert.
- AlertPolicy stringRule Name 
- The display name of the rule of alert policy that triggered alert.
- AlertType string
- Type of the alert. Indicates the Data Safe feature triggering the alert.
- Comment string
- A comment for the alert. Entered by the user.
- CompartmentId string
- The OCID of the compartment that contains the alert.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- The description of the alert.
- DisplayName string
- The display name of the alert.
- FeatureDetails Dictionary<string, string>
- Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- Id string
- The OCID of the alert.
- Operation string
- The operation (event) that triggered alert.
- OperationStatus string
- The result of the operation (event) that triggered alert.
- OperationTime string
- Creation date and time of the operation that triggered alert, in the format defined by RFC3339.
- PolicyId string
- The OCID of the policy that triggered alert.
- ResourceName string
- The resource endpoint that triggered the alert.
- Severity string
- Severity level of the alert.
- State string
- The current state of the alert.
- Status string
- The status of the alert.
- 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"}
- TargetIds List<string>
- Array of OCIDs of the target database which are associated with the alert.
- TargetNames List<string>
- Array of names of the target database.
- TimeCreated string
- Creation date and time of the alert, in the format defined by RFC3339.
- TimeUpdated string
- Last date and time the alert was updated, in the format defined by RFC3339.
- AlertId string
- AlertPolicy stringRule Key 
- The key of the rule of alert policy that triggered alert.
- AlertPolicy stringRule Name 
- The display name of the rule of alert policy that triggered alert.
- AlertType string
- Type of the alert. Indicates the Data Safe feature triggering the alert.
- Comment string
- A comment for the alert. Entered by the user.
- CompartmentId string
- The OCID of the compartment that contains the alert.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- The description of the alert.
- DisplayName string
- The display name of the alert.
- FeatureDetails map[string]string
- Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- Id string
- The OCID of the alert.
- Operation string
- The operation (event) that triggered alert.
- OperationStatus string
- The result of the operation (event) that triggered alert.
- OperationTime string
- Creation date and time of the operation that triggered alert, in the format defined by RFC3339.
- PolicyId string
- The OCID of the policy that triggered alert.
- ResourceName string
- The resource endpoint that triggered the alert.
- Severity string
- Severity level of the alert.
- State string
- The current state of the alert.
- Status string
- The status of the alert.
- 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"}
- TargetIds []string
- Array of OCIDs of the target database which are associated with the alert.
- TargetNames []string
- Array of names of the target database.
- TimeCreated string
- Creation date and time of the alert, in the format defined by RFC3339.
- TimeUpdated string
- Last date and time the alert was updated, in the format defined by RFC3339.
- alertId String
- alertPolicy StringRule Key 
- The key of the rule of alert policy that triggered alert.
- alertPolicy StringRule Name 
- The display name of the rule of alert policy that triggered alert.
- alertType String
- Type of the alert. Indicates the Data Safe feature triggering the alert.
- comment String
- A comment for the alert. Entered by the user.
- compartmentId String
- The OCID of the compartment that contains the alert.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- The description of the alert.
- displayName String
- The display name of the alert.
- featureDetails Map<String,String>
- Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id String
- The OCID of the alert.
- operation String
- The operation (event) that triggered alert.
- operationStatus String
- The result of the operation (event) that triggered alert.
- operationTime String
- Creation date and time of the operation that triggered alert, in the format defined by RFC3339.
- policyId String
- The OCID of the policy that triggered alert.
- resourceName String
- The resource endpoint that triggered the alert.
- severity String
- Severity level of the alert.
- state String
- The current state of the alert.
- status String
- The status of the alert.
- 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"}
- targetIds List<String>
- Array of OCIDs of the target database which are associated with the alert.
- targetNames List<String>
- Array of names of the target database.
- timeCreated String
- Creation date and time of the alert, in the format defined by RFC3339.
- timeUpdated String
- Last date and time the alert was updated, in the format defined by RFC3339.
- alertId string
- alertPolicy stringRule Key 
- The key of the rule of alert policy that triggered alert.
- alertPolicy stringRule Name 
- The display name of the rule of alert policy that triggered alert.
- alertType string
- Type of the alert. Indicates the Data Safe feature triggering the alert.
- comment string
- A comment for the alert. Entered by the user.
- compartmentId string
- The OCID of the compartment that contains the alert.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description string
- The description of the alert.
- displayName string
- The display name of the alert.
- featureDetails {[key: string]: string}
- Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id string
- The OCID of the alert.
- operation string
- The operation (event) that triggered alert.
- operationStatus string
- The result of the operation (event) that triggered alert.
- operationTime string
- Creation date and time of the operation that triggered alert, in the format defined by RFC3339.
- policyId string
- The OCID of the policy that triggered alert.
- resourceName string
- The resource endpoint that triggered the alert.
- severity string
- Severity level of the alert.
- state string
- The current state of the alert.
- status string
- The status of the alert.
- {[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"}
- targetIds string[]
- Array of OCIDs of the target database which are associated with the alert.
- targetNames string[]
- Array of names of the target database.
- timeCreated string
- Creation date and time of the alert, in the format defined by RFC3339.
- timeUpdated string
- Last date and time the alert was updated, in the format defined by RFC3339.
- alert_id str
- alert_policy_ strrule_ key 
- The key of the rule of alert policy that triggered alert.
- alert_policy_ strrule_ name 
- The display name of the rule of alert policy that triggered alert.
- alert_type str
- Type of the alert. Indicates the Data Safe feature triggering the alert.
- comment str
- A comment for the alert. Entered by the user.
- compartment_id str
- The OCID of the compartment that contains the alert.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description str
- The description of the alert.
- display_name str
- The display name of the alert.
- feature_details Mapping[str, str]
- Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id str
- The OCID of the alert.
- operation str
- The operation (event) that triggered alert.
- operation_status str
- The result of the operation (event) that triggered alert.
- operation_time str
- Creation date and time of the operation that triggered alert, in the format defined by RFC3339.
- policy_id str
- The OCID of the policy that triggered alert.
- resource_name str
- The resource endpoint that triggered the alert.
- severity str
- Severity level of the alert.
- state str
- The current state of the alert.
- status str
- The status of the alert.
- 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_ids Sequence[str]
- Array of OCIDs of the target database which are associated with the alert.
- target_names Sequence[str]
- Array of names of the target database.
- time_created str
- Creation date and time of the alert, in the format defined by RFC3339.
- time_updated str
- Last date and time the alert was updated, in the format defined by RFC3339.
- alertId String
- alertPolicy StringRule Key 
- The key of the rule of alert policy that triggered alert.
- alertPolicy StringRule Name 
- The display name of the rule of alert policy that triggered alert.
- alertType String
- Type of the alert. Indicates the Data Safe feature triggering the alert.
- comment String
- A comment for the alert. Entered by the user.
- compartmentId String
- The OCID of the compartment that contains the alert.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- The description of the alert.
- displayName String
- The display name of the alert.
- featureDetails Map<String>
- Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id String
- The OCID of the alert.
- operation String
- The operation (event) that triggered alert.
- operationStatus String
- The result of the operation (event) that triggered alert.
- operationTime String
- Creation date and time of the operation that triggered alert, in the format defined by RFC3339.
- policyId String
- The OCID of the policy that triggered alert.
- resourceName String
- The resource endpoint that triggered the alert.
- severity String
- Severity level of the alert.
- state String
- The current state of the alert.
- status String
- The status of the alert.
- 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"}
- targetIds List<String>
- Array of OCIDs of the target database which are associated with the alert.
- targetNames List<String>
- Array of names of the target database.
- timeCreated String
- Creation date and time of the alert, in the format defined by RFC3339.
- timeUpdated String
- Last date and time the alert 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.