Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagement.getManagedInstanceEventReport
Explore with Pulumi AI
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)
public static Output<GetManagedInstanceEventReportResult> getManagedInstanceEventReport(GetManagedInstanceEventReportArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagement/getManagedInstanceEventReport:getManagedInstanceEventReport
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- ManagedInstance stringId 
- Instance Oracle Cloud identifier (ocid)
- LatestTimestamp stringGreater Than Or Equal To 
- filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- LatestTimestamp stringLess Than 
- 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.
- ManagedInstance stringId 
- Instance Oracle Cloud identifier (ocid)
- LatestTimestamp stringGreater Than Or Equal To 
- filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- LatestTimestamp stringLess Than 
- 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.
- managedInstance StringId 
- Instance Oracle Cloud identifier (ocid)
- latestTimestamp StringGreater Than Or Equal To 
- filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- latestTimestamp StringLess Than 
- 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.
- managedInstance stringId 
- Instance Oracle Cloud identifier (ocid)
- latestTimestamp stringGreater Than Or Equal To 
- filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- latestTimestamp stringLess Than 
- 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_ strid 
- Instance Oracle Cloud identifier (ocid)
- latest_timestamp_ strgreater_ than_ or_ equal_ to 
- 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_ strless_ than 
- 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.
- managedInstance StringId 
- Instance Oracle Cloud identifier (ocid)
- latestTimestamp StringGreater Than Or Equal To 
- filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- latestTimestamp StringLess Than 
- 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.
- ManagedInstance stringId 
- LatestTimestamp stringGreater Than Or Equal To 
- LatestTimestamp stringLess Than 
- CompartmentId string
- Counts int
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- LatestTimestamp stringGreater Than Or Equal To 
- LatestTimestamp stringLess Than 
- compartmentId String
- counts Integer
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- latestTimestamp StringGreater Than Or Equal To 
- latestTimestamp StringLess Than 
- compartmentId string
- counts number
- id string
- The provider-assigned unique ID for this managed resource.
- managedInstance stringId 
- latestTimestamp stringGreater Than Or Equal To 
- latestTimestamp stringLess Than 
- compartment_id str
- counts int
- id str
- The provider-assigned unique ID for this managed resource.
- managed_instance_ strid 
- latest_timestamp_ strgreater_ than_ or_ equal_ to 
- latest_timestamp_ strless_ than 
- compartmentId String
- counts Number
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- latestTimestamp StringGreater Than Or Equal To 
- latestTimestamp StringLess Than 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.