1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getExternalExadataStorageServerOpenAlertHistory
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.DatabaseManagement.getExternalExadataStorageServerOpenAlertHistory

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    This data source provides details about a specific External Exadata Storage Server Open Alert History resource in Oracle Cloud Infrastructure Database Management service.

    Gets the open alerts from the specified Exadata storage server.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testExternalExadataStorageServerOpenAlertHistory = oci.DatabaseManagement.getExternalExadataStorageServerOpenAlertHistory({
        externalExadataStorageServerId: testExternalExadataStorageServer.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_external_exadata_storage_server_open_alert_history = oci.DatabaseManagement.get_external_exadata_storage_server_open_alert_history(external_exadata_storage_server_id=test_external_exadata_storage_server["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DatabaseManagement.GetExternalExadataStorageServerOpenAlertHistory(ctx, &databasemanagement.GetExternalExadataStorageServerOpenAlertHistoryArgs{
    			ExternalExadataStorageServerId: testExternalExadataStorageServer.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 testExternalExadataStorageServerOpenAlertHistory = Oci.DatabaseManagement.GetExternalExadataStorageServerOpenAlertHistory.Invoke(new()
        {
            ExternalExadataStorageServerId = testExternalExadataStorageServer.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
    import com.pulumi.oci.DatabaseManagement.inputs.GetExternalExadataStorageServerOpenAlertHistoryArgs;
    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 testExternalExadataStorageServerOpenAlertHistory = DatabaseManagementFunctions.getExternalExadataStorageServerOpenAlertHistory(GetExternalExadataStorageServerOpenAlertHistoryArgs.builder()
                .externalExadataStorageServerId(testExternalExadataStorageServer.id())
                .build());
    
        }
    }
    
    variables:
      testExternalExadataStorageServerOpenAlertHistory:
        fn::invoke:
          Function: oci:DatabaseManagement:getExternalExadataStorageServerOpenAlertHistory
          Arguments:
            externalExadataStorageServerId: ${testExternalExadataStorageServer.id}
    

    Using getExternalExadataStorageServerOpenAlertHistory

    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 getExternalExadataStorageServerOpenAlertHistory(args: GetExternalExadataStorageServerOpenAlertHistoryArgs, opts?: InvokeOptions): Promise<GetExternalExadataStorageServerOpenAlertHistoryResult>
    function getExternalExadataStorageServerOpenAlertHistoryOutput(args: GetExternalExadataStorageServerOpenAlertHistoryOutputArgs, opts?: InvokeOptions): Output<GetExternalExadataStorageServerOpenAlertHistoryResult>
    def get_external_exadata_storage_server_open_alert_history(external_exadata_storage_server_id: Optional[str] = None,
                                                               opts: Optional[InvokeOptions] = None) -> GetExternalExadataStorageServerOpenAlertHistoryResult
    def get_external_exadata_storage_server_open_alert_history_output(external_exadata_storage_server_id: Optional[pulumi.Input[str]] = None,
                                                               opts: Optional[InvokeOptions] = None) -> Output[GetExternalExadataStorageServerOpenAlertHistoryResult]
    func GetExternalExadataStorageServerOpenAlertHistory(ctx *Context, args *GetExternalExadataStorageServerOpenAlertHistoryArgs, opts ...InvokeOption) (*GetExternalExadataStorageServerOpenAlertHistoryResult, error)
    func GetExternalExadataStorageServerOpenAlertHistoryOutput(ctx *Context, args *GetExternalExadataStorageServerOpenAlertHistoryOutputArgs, opts ...InvokeOption) GetExternalExadataStorageServerOpenAlertHistoryResultOutput

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

    public static class GetExternalExadataStorageServerOpenAlertHistory 
    {
        public static Task<GetExternalExadataStorageServerOpenAlertHistoryResult> InvokeAsync(GetExternalExadataStorageServerOpenAlertHistoryArgs args, InvokeOptions? opts = null)
        public static Output<GetExternalExadataStorageServerOpenAlertHistoryResult> Invoke(GetExternalExadataStorageServerOpenAlertHistoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetExternalExadataStorageServerOpenAlertHistoryResult> getExternalExadataStorageServerOpenAlertHistory(GetExternalExadataStorageServerOpenAlertHistoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DatabaseManagement/getExternalExadataStorageServerOpenAlertHistory:getExternalExadataStorageServerOpenAlertHistory
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExternalExadataStorageServerId string
    The OCID of the Exadata storage server.
    ExternalExadataStorageServerId string
    The OCID of the Exadata storage server.
    externalExadataStorageServerId String
    The OCID of the Exadata storage server.
    externalExadataStorageServerId string
    The OCID of the Exadata storage server.
    external_exadata_storage_server_id str
    The OCID of the Exadata storage server.
    externalExadataStorageServerId String
    The OCID of the Exadata storage server.

    getExternalExadataStorageServerOpenAlertHistory Result

    The following output properties are available:

    Alerts List<GetExternalExadataStorageServerOpenAlertHistoryAlert>
    A list of open alerts.
    ExternalExadataStorageServerId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Alerts []GetExternalExadataStorageServerOpenAlertHistoryAlert
    A list of open alerts.
    ExternalExadataStorageServerId string
    Id string
    The provider-assigned unique ID for this managed resource.
    alerts List<GetExternalExadataStorageServerOpenAlertHistoryAlert>
    A list of open alerts.
    externalExadataStorageServerId String
    id String
    The provider-assigned unique ID for this managed resource.
    alerts GetExternalExadataStorageServerOpenAlertHistoryAlert[]
    A list of open alerts.
    externalExadataStorageServerId string
    id string
    The provider-assigned unique ID for this managed resource.
    alerts Sequence[databasemanagement.GetExternalExadataStorageServerOpenAlertHistoryAlert]
    A list of open alerts.
    external_exadata_storage_server_id str
    id str
    The provider-assigned unique ID for this managed resource.
    alerts List<Property Map>
    A list of open alerts.
    externalExadataStorageServerId String
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetExternalExadataStorageServerOpenAlertHistoryAlert

    Message string
    The alert message.
    Severity string
    The severity of the alert.
    TimeStartAt string
    The start time of the alert.
    Type string
    The type of alert.
    Message string
    The alert message.
    Severity string
    The severity of the alert.
    TimeStartAt string
    The start time of the alert.
    Type string
    The type of alert.
    message String
    The alert message.
    severity String
    The severity of the alert.
    timeStartAt String
    The start time of the alert.
    type String
    The type of alert.
    message string
    The alert message.
    severity string
    The severity of the alert.
    timeStartAt string
    The start time of the alert.
    type string
    The type of alert.
    message str
    The alert message.
    severity str
    The severity of the alert.
    time_start_at str
    The start time of the alert.
    type str
    The type of alert.
    message String
    The alert message.
    severity String
    The severity of the alert.
    timeStartAt String
    The start time of the alert.
    type String
    The type of alert.

    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.34.0 published on Friday, May 3, 2024 by Pulumi