Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.OsManagement.getManagedInstanceEventReport
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- 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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi