Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getManagedInstanceEventReport

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testManagedInstanceEventReport = Output.Create(Oci.OsManagement.GetManagedInstanceEventReport.InvokeAsync(new Oci.OsManagement.GetManagedInstanceEventReportArgs
        {
            CompartmentId = @var.Compartment_id,
            ManagedInstanceId = oci_osmanagement_managed_instance.Test_managed_instance.Id,
            LatestTimestampGreaterThanOrEqualTo = @var.Managed_instance_event_report_latest_timestamp_greater_than_or_equal_to,
            LatestTimestampLessThan = @var.Managed_instance_event_report_latest_timestamp_less_than,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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:                       _var.Compartment_id,
			ManagedInstanceId:                   oci_osmanagement_managed_instance.Test_managed_instance.Id,
			LatestTimestampGreaterThanOrEqualTo: pulumi.StringRef(_var.Managed_instance_event_report_latest_timestamp_greater_than_or_equal_to),
			LatestTimestampLessThan:             pulumi.StringRef(_var.Managed_instance_event_report_latest_timestamp_less_than),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_managed_instance_event_report = oci.OsManagement.get_managed_instance_event_report(compartment_id=var["compartment_id"],
    managed_instance_id=oci_osmanagement_managed_instance["test_managed_instance"]["id"],
    latest_timestamp_greater_than_or_equal_to=var["managed_instance_event_report_latest_timestamp_greater_than_or_equal_to"],
    latest_timestamp_less_than=var["managed_instance_event_report_latest_timestamp_less_than"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagedInstanceEventReport = oci.OsManagement.getManagedInstanceEventReport({
    compartmentId: _var.compartment_id,
    managedInstanceId: oci_osmanagement_managed_instance.test_managed_instance.id,
    latestTimestampGreaterThanOrEqualTo: _var.managed_instance_event_report_latest_timestamp_greater_than_or_equal_to,
    latestTimestampLessThan: _var.managed_instance_event_report_latest_timestamp_less_than,
});

Coming soon!

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.