1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getManagedInstanceEventReport
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.OsManagement.getManagedInstanceEventReport

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Managed Instance Event Report resource in Oracle Cloud Infrastructure OS Management service.

    Get summary information about events on this instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceEventReport = oci.OsManagement.getManagedInstanceEventReport({
        compartmentId: compartmentId,
        managedInstanceId: testManagedInstance.id,
        latestTimestampGreaterThanOrEqualTo: managedInstanceEventReportLatestTimestampGreaterThanOrEqualTo,
        latestTimestampLessThan: managedInstanceEventReportLatestTimestampLessThan,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_event_report = oci.OsManagement.get_managed_instance_event_report(compartment_id=compartment_id,
        managed_instance_id=test_managed_instance["id"],
        latest_timestamp_greater_than_or_equal_to=managed_instance_event_report_latest_timestamp_greater_than_or_equal_to,
        latest_timestamp_less_than=managed_instance_event_report_latest_timestamp_less_than)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OsManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagement.GetManagedInstanceEventReport(ctx, &osmanagement.GetManagedInstanceEventReportArgs{
    			CompartmentId:                       compartmentId,
    			ManagedInstanceId:                   testManagedInstance.Id,
    			LatestTimestampGreaterThanOrEqualTo: pulumi.StringRef(managedInstanceEventReportLatestTimestampGreaterThanOrEqualTo),
    			LatestTimestampLessThan:             pulumi.StringRef(managedInstanceEventReportLatestTimestampLessThan),
    		}, 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 testManagedInstanceEventReport = Oci.OsManagement.GetManagedInstanceEventReport.Invoke(new()
        {
            CompartmentId = compartmentId,
            ManagedInstanceId = testManagedInstance.Id,
            LatestTimestampGreaterThanOrEqualTo = managedInstanceEventReportLatestTimestampGreaterThanOrEqualTo,
            LatestTimestampLessThan = managedInstanceEventReportLatestTimestampLessThan,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagement.OsManagementFunctions;
    import com.pulumi.oci.OsManagement.inputs.GetManagedInstanceEventReportArgs;
    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 testManagedInstanceEventReport = OsManagementFunctions.getManagedInstanceEventReport(GetManagedInstanceEventReportArgs.builder()
                .compartmentId(compartmentId)
                .managedInstanceId(testManagedInstance.id())
                .latestTimestampGreaterThanOrEqualTo(managedInstanceEventReportLatestTimestampGreaterThanOrEqualTo)
                .latestTimestampLessThan(managedInstanceEventReportLatestTimestampLessThan)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceEventReport:
        fn::invoke:
          Function: oci:OsManagement:getManagedInstanceEventReport
          Arguments:
            compartmentId: ${compartmentId}
            managedInstanceId: ${testManagedInstance.id}
            latestTimestampGreaterThanOrEqualTo: ${managedInstanceEventReportLatestTimestampGreaterThanOrEqualTo}
            latestTimestampLessThan: ${managedInstanceEventReportLatestTimestampLessThan}
    

    Using getManagedInstanceEventReport

    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 getManagedInstanceEventReport(args: GetManagedInstanceEventReportArgs, opts?: InvokeOptions): Promise<GetManagedInstanceEventReportResult>
    function getManagedInstanceEventReportOutput(args: GetManagedInstanceEventReportOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceEventReportResult>
    def get_managed_instance_event_report(compartment_id: Optional[str] = None,
                                          latest_timestamp_greater_than_or_equal_to: Optional[str] = None,
                                          latest_timestamp_less_than: Optional[str] = None,
                                          managed_instance_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetManagedInstanceEventReportResult
    def get_managed_instance_event_report_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                          latest_timestamp_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                                          latest_timestamp_less_than: Optional[pulumi.Input[str]] = None,
                                          managed_instance_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceEventReportResult]
    func GetManagedInstanceEventReport(ctx *Context, args *GetManagedInstanceEventReportArgs, opts ...InvokeOption) (*GetManagedInstanceEventReportResult, error)
    func GetManagedInstanceEventReportOutput(ctx *Context, args *GetManagedInstanceEventReportOutputArgs, opts ...InvokeOption) GetManagedInstanceEventReportResultOutput

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

    public static class GetManagedInstanceEventReport 
    {
        public static Task<GetManagedInstanceEventReportResult> InvokeAsync(GetManagedInstanceEventReportArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceEventReportResult> Invoke(GetManagedInstanceEventReportInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceEventReportResult> getManagedInstanceEventReport(GetManagedInstanceEventReportArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagement/getManagedInstanceEventReport:getManagedInstanceEventReport
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    ManagedInstanceId string
    Instance Oracle Cloud identifier (ocid)
    LatestTimestampGreaterThanOrEqualTo string
    filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    LatestTimestampLessThan string
    filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    CompartmentId string
    The ID of the compartment in which to list resources.
    ManagedInstanceId string
    Instance Oracle Cloud identifier (ocid)
    LatestTimestampGreaterThanOrEqualTo string
    filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    LatestTimestampLessThan string
    filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    compartmentId String
    The ID of the compartment in which to list resources.
    managedInstanceId String
    Instance Oracle Cloud identifier (ocid)
    latestTimestampGreaterThanOrEqualTo String
    filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    latestTimestampLessThan String
    filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    compartmentId string
    The ID of the compartment in which to list resources.
    managedInstanceId string
    Instance Oracle Cloud identifier (ocid)
    latestTimestampGreaterThanOrEqualTo string
    filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    latestTimestampLessThan string
    filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    compartment_id str
    The ID of the compartment in which to list resources.
    managed_instance_id str
    Instance Oracle Cloud identifier (ocid)
    latest_timestamp_greater_than_or_equal_to str
    filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    latest_timestamp_less_than str
    filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    compartmentId String
    The ID of the compartment in which to list resources.
    managedInstanceId String
    Instance Oracle Cloud identifier (ocid)
    latestTimestampGreaterThanOrEqualTo String
    filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    latestTimestampLessThan String
    filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z

    getManagedInstanceEventReport Result

    The following output properties are available:

    CompartmentId string
    Counts int
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceId string
    LatestTimestampGreaterThanOrEqualTo string
    LatestTimestampLessThan string
    CompartmentId string
    Counts int
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceId string
    LatestTimestampGreaterThanOrEqualTo string
    LatestTimestampLessThan string
    compartmentId String
    counts Integer
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    latestTimestampGreaterThanOrEqualTo String
    latestTimestampLessThan String
    compartmentId string
    counts number
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceId string
    latestTimestampGreaterThanOrEqualTo string
    latestTimestampLessThan string
    compartment_id str
    counts int
    id str
    The provider-assigned unique ID for this managed resource.
    managed_instance_id str
    latest_timestamp_greater_than_or_equal_to str
    latest_timestamp_less_than str
    compartmentId String
    counts Number
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    latestTimestampGreaterThanOrEqualTo String
    latestTimestampLessThan String

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi