Oracle Cloud Infrastructure
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:
- Compartment
Id string The ID of the compartment in which to list resources.
- Managed
Instance stringId Instance Oracle Cloud identifier (ocid)
- Latest
Timestamp 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
- Latest
Timestamp 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 string The ID of the compartment in which to list resources.
- Managed
Instance stringId Instance Oracle Cloud identifier (ocid)
- Latest
Timestamp 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
- Latest
Timestamp 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 String The ID of the compartment in which to list resources.
- managed
Instance StringId Instance Oracle Cloud identifier (ocid)
- latest
Timestamp 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
- latest
Timestamp 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 string The ID of the compartment in which to list resources.
- managed
Instance stringId Instance Oracle Cloud identifier (ocid)
- latest
Timestamp 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
- latest
Timestamp 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
- compartment
Id String The ID of the compartment in which to list resources.
- managed
Instance StringId Instance Oracle Cloud identifier (ocid)
- latest
Timestamp 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
- latest
Timestamp 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:
- Compartment
Id string - Counts int
- Id string
The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Latest
Timestamp stringGreater Than Or Equal To - Latest
Timestamp stringLess Than
- Compartment
Id string - Counts int
- Id string
The provider-assigned unique ID for this managed resource.
- Managed
Instance stringId - Latest
Timestamp stringGreater Than Or Equal To - Latest
Timestamp stringLess Than
- compartment
Id String - counts Integer
- id String
The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - latest
Timestamp StringGreater Than Or Equal To - latest
Timestamp StringLess Than
- compartment
Id string - counts number
- id string
The provider-assigned unique ID for this managed resource.
- managed
Instance stringId - latest
Timestamp stringGreater Than Or Equal To - latest
Timestamp 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
- compartment
Id String - counts Number
- id String
The provider-assigned unique ID for this managed resource.
- managed
Instance StringId - latest
Timestamp StringGreater Than Or Equal To - latest
Timestamp StringLess Than
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.